joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008fa0
Capabilities:
Hash data using fnv

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
mov eax, 0x40
call fcn.1401b4b30
sub rsp, rax
mov rsi, qword [rdx]
lea r14, [rcx + 0x60]
mov rbx, rdx
mov edx, dword [r14]
mov rdi, rcx
mov rcx, qword [r14 + 0x10]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x20]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
call fcn.1400033a0
test rax, rax
je 0x140009023
mov rax, qword [rax]
test rax, rax
je 0x140009023
mov rax, qword [rax + 0x10]
cmp byte [rax + 4], 0
je 0x140009011
cmp byte [rbx + 0x1c], 0
je 0x140009011
mov edx, 1
mov byte [rax + 4], dl
xor eax, eax
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
xor edx, edx
mov byte [rax + 4], dl
xor eax, eax
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov edx, dword [rdi + 0xe8]
mov rcx, qword [rdi + 0xf8]
lea r8, [rsp + 0x28]
xor r9d, r9d
call fcn.1400033a0
test rax, rax
je 0x140009045
mov rax, qword [rax]
mov rdi, qword [rax + 0x10]
mov r8, qword [rbx + 8]
lea rcx, [rsp + 0x38]
mov rdx, qword [rdi + 8]
call qword [0x1402ed8c0]
cmp eax, 0x1f4
je 0x1400091be
test eax, eax
je 0x14000907d
mov ecx, eax
call fcn.140002fb0
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x18
call fcn.14000b850
test rax, rax
je 0x1400091cb
mov edx, dword [rbx + 0x18]
mov r9, qword [rsp + 0x38]
movzx r8d, byte [rbx + 0x1c]
mov dword [rax], edx
lea rdx, [rsp + 0x28]
mov rcx, r14
mov byte [rax + 4], r8b
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r9
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rax
call fcn.140009920
mov ecx, dword [rdi + 0x60]
test ecx, ecx
jne 0x1400090e0
lea edx, [rcx + 1]
lea rcx, [rdi + 0x60]
call fcn.14000a3d0
mov ecx, dword [rdi + 0x60]
test ecx, ecx
je 0x1400091cb
mov r8, qword [rdi + 0x70]
test ecx, ecx
jne 0x1400090f3
mov ebp, dword [rsp + 0x20]
xor ebx, ebx
jmp 0x140009182
movzx eax, byte [rsp + 0x21]
movzx ebp, sil
xor edx, edx
xor ebp, 0x811c9dc5
imul ebp, ebp, 0x1000193
xor ebp, eax
movzx eax, byte [rsp + 0x22]
imul ebp, ebp, 0x1000193
xor ebp, eax
movzx eax, byte [rsp + 0x23]
imul ebp, ebp, 0x1000193
xor ebp, eax
movzx eax, byte [rsp + 0x24]
imul ebp, ebp, 0x1000193
xor ebp, eax
movzx eax, byte [rsp + 0x25]
imul ebp, ebp, 0x1000193
xor ebp, eax
movzx eax, byte [rsp + 0x26]
imul ebp, ebp, 0x1000193
xor ebp, eax
movzx eax, byte [rsp + 0x27]
imul ebp, ebp, 0x1000193
xor ebp, eax
imul ebp, ebp, 0x1000193
mov eax, ebp
div ecx
mov rax, qword [r8 + rdx*8]
lea rbx, [r8 + rdx*8]
test rax, rax
je 0x140009182
cmp qword [rax + 8], rsi
je 0x140009182
mov rbx, rax
mov rax, qword [rax]
test rax, rax
jne 0x140009171
cmp qword [rbx], 0
jne 0x1400091be
mov ecx, 0x18
call fcn.14000b850
test rax, rax
je 0x1400091a5
mov qword [rax], 0
mov qword [rax + 8], rsi
mov dword [rax + 0x10], ebp
mov qword [rbx], rax
test rax, rax
je 0x1400091cb
inc qword [rdi + 0x68]
mov rdx, qword [rdi + 0x68]
lea rcx, [rdi + 0x60]
call fcn.14000a3d0
xor eax, eax
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, 2
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000b9a0
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, 0x28
call fcn.1401b4b30
sub rsp, rax
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.DLL_TlsAlloc]

Function at 0x14000b9e0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1401b4b30
sub rsp, rax
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.DLL_TlsGetValue]

Function at 0x14000ba00
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1401b4b30
sub rsp, rax
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
neg eax
sbb eax, eax
neg eax
dec eax
add rsp, 0x28
ret
Function at 0x14000d9f0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x20
call fcn.1401b4b30
sub rsp, rax
xor edi, edi
mov rbx, rcx
mov esi, edi
test rcx, rcx
je 0x14000dab4
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
or rdx, 0xffffffffffffffff
mov ebp, eax
nop dword [rax]
inc rdx
cmp word [rbx + rdx*2], si
jne 0x14000da30
lea ecx, [rax + 1]
add rdx, rcx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x14000dab7
mov edx, ebp
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
mov r8d, eax
lea ecx, [r8 - 1]
cmp word [rsi + rcx*2], 0x5c
je 0x14000da7b
mov eax, 0x5c
mov word [rsi + r8*2], ax
inc r8d
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [rbx + rax*2], di
jne 0x14000da80
test rax, rax
je 0x14000dab4
mov rdx, rdi
movzx eax, word [rbx + rdx*2]
lea ecx, [rdi + r8]
inc edi
mov word [rsi + rcx*2], ax
or rax, 0xffffffffffffffff
mov edx, edi
inc rax
cmp word [rbx + rax*2], 0
jne 0x14000daa5
cmp rdx, rax
jb 0x14000da91
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000f8c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov eax, 0x30
call fcn.1401b4b30
sub rsp, rax
mov rbx, rcx
xor ecx, ecx
xor ebp, ebp
call qword [sym.imp.KERNEL32.DLL_SetLastError]
test rbx, rbx
je 0x14000faea
xor edx, edx
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [rbx + rax*2], dx
jne 0x14000f8f0
test rax, rax
je 0x14000f924
xor ecx, ecx
movzx r8d, word [rbx + rcx*2]
cmp r8w, 0x5c
je 0x14000faea
cmp r8w, 0x2f
je 0x14000faea
inc edx
mov ecx, edx
cmp rcx, rax
jb 0x14000f900
mov rcx, rbx
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
call fcn.14000fb10
mov rsi, rax
test rax, rax
je 0x14000fa15
mov qword [rsp + 0x50], r14
call fcn.1400102f0
mov r14, rax
test rax, rax
je 0x14000fa02
mov rcx, rsi
call fcn.14000d810
test eax, eax
je 0x14000f9eb
lea rax, str.system32_
lea rdi, [rsp + 0x20]
mov qword [rsp + 0x20], rax
lea rax, str.SystemRoot_system32_
mov qword [rsp + 0x28], rax
nop word [rax + rax]
mov rdx, qword [rdi]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rdx + rbx*2], bp
jne 0x14000f997
mov r8, rbx
mov rcx, rsi
call fcn.1401ea39c
test eax, eax
je 0x14000f9bf
lea rax, [rsp + 0x30]
add rdi, 8
cmp rdi, rax
jb 0x14000f990
jmp 0x14000f9ce
lea rdx, [rsi + rbx*2]
mov rcx, r14
call fcn.14000f2c0
mov rbp, rax
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x14000f9f9
mov rcx, rsi
call fcn.14000d7b0
test eax, eax
je 0x14000f9f9
mov rbp, rsi
xor esi, esi
jmp 0x14000f9f9
mov rdx, rsi
mov rcx, r14
call fcn.14000f2c0
mov rbp, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_LocalFree]
mov r14, qword [rsp + 0x50]
jmp 0x14000fab6
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7e
jne 0x14000fabf
mov rcx, rbx
call fcn.14000d680
mov rdi, rax
test rax, rax
je 0x14000fabf
mov ecx, 0x37e4
call fcn.14000ee00
test eax, eax
je 0x14000fa54
lea rcx, [0x140299f08]
call fcn.140010020
jmp 0x14000fa59
call fcn.1400102f0
mov rbx, rax
test rax, rax
je 0x14000faad
mov rdx, rdi
mov rcx, rax
call fcn.14000f2c0
mov rbp, rax
test rax, rax
je 0x14000faa4
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000fa86
test al, 0x50
je 0x14000faa4
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
jne 0x14000fa99
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_LocalFree]
xor ebp, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_LocalFree]
test rbp, rbp
je 0x14000fabf
xor ecx, ecx
jmp 0x14000facc
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x14000fad2
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rax, rbp
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rbp
ret
Function at 0x1400102f0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x20
call fcn.1401b4b30
sub rsp, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_SetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
mov ecx, 0x40
mov edx, eax
mov edi, eax
add rdx, rdx
call qword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x14001035b
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x140010350
cmp edi, eax
jb 0x140010350
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_LocalFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140011020
Capabilities:
Encrypt data using rc4 prga

Disassembly:
add rcx, 4
jmp fcn.140020260
Function at 0x1400143c0
Capabilities:
Log keystrokes
Manipulate console buffer

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1402dd5c8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
mov ecx, dword [rcx + 0x58]
btr ecx, 0xc
mov eax, ecx
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], ecx
jne 0x14001440b
test cl, 1
jne 0x14001440b
test cl, 4
je 0x14001440b
and eax, 0xfffffffb
mov dword [rbx + 0x58], eax
test al, 8
je 0x14001440b
mov rax, qword [rbx + 8]
dec dword [rax + 8]
mov eax, dword [rbx + 0x58]
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0x88], rdi
bt eax, 0x10
jae 0x1400145b6
bt eax, 0x19
jae 0x140014473
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x40]
xor eax, eax
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], eax
mov eax, reloc.WS2_32.dll_recv
mov word [rsp + 0x60], ax
lea r8d, [rax - 0xf]
call qword [sym.imp.KERNEL32.DLL_WriteConsoleInputW]
test eax, eax
jne 0x1400145b6
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x1400145b8
bt eax, 0x15
jb 0x1400145b6
mov rcx, qword [0x1402f1308]
mov edx, 0xffffffff
xor edi, edi
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x1400145de
mov eax, 2
xchg dword [0x1402f12e8], eax
cmp eax, 1
je 0x1400144c9
mov rcx, qword [0x1402f1308]
lea edx, [rdi + 1]
xor r8d, r8d
call qword [sym.imp.KERNEL32.DLL_ReleaseSemaphore]
test eax, eax
je 0x1400145de
jmp 0x1400145af
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0xa8], rbp
lea rcx, str.conout_
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov qword [rsp + 0x80], r14
lea r8d, [r9 + 3]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.DLL_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14001452c
lea rdx, [0x1402f12f0]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetConsoleScreenBufferInfo]
test eax, eax
je 0x14001452c
lock or dword [0x1402f12ec], 1
mov esi, 1
mov dword [rsp + 0x50], 0xd0001
mov r14d, reloc.WS2_32.dll_listen
mov word [rsp + 0x48], si
mov ecx, r14d
mov dword [rsp + 0x4c], esi
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x44]
mov r8d, esi
mov word [rsp + 0x54], ax
lea rdx, [rsp + 0x48]
mov word [rsp + 0x56], r14w
mov dword [rsp + 0x58], edi
call qword [sym.imp.KERNEL32.DLL_WriteConsoleInputW]
mov r14, qword [rsp + 0x80]
test eax, eax
jne 0x140014590
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
cmp rbp, 0xffffffffffffffff
je 0x14001459f
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rbp, qword [rsp + 0xa8]
test edi, edi
je 0x1400145af
mov eax, edi
jmp 0x1400145b8
or dword [rbx + 0x58], 0x200000
xor eax, eax
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401b48e0
add rsp, 0x90
pop rbx
ret
call fcn.1401e9cd4
int3
Function at 0x140014640
Capabilities:
Manipulate console buffer

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1402dd5c8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, qword [rsp + 0xb8]
mov esi, r9d
movzx ebp, r8b
mov edi, edx
mov rbx, rcx
cmp dword [r14], 0
je 0x14001467e
mov eax, 0xffffffff
jmp 0x1400147a7
mov qword [rsp + 0x58], r12
xor r12d, r12d
mov qword [rsp + 0x50], r15
movzx r15d, byte [rsp + 0xb0]
mov rcx, qword [rbx + 0x110]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.DLL_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x1400146b3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [r14], eax
movsx eax, word [rsp + 0x34]
mov edx, edi
movsx r8d, word [rsp + 0x38]
movsx r11d, word [rsp + 0x28]
sub r8d, eax
mov eax, dword [0x1402de8c4]
inc r8d
movsx r9d, word [rsp + 0x2e]
mov dword [0x1402de8d8], r11d
mov dword [0x1402de8c8], r8d
cmp eax, 0xffffffff
jne 0x1400146f0
mov eax, r9d
jmp 0x1400146fd
mov ecx, r9d
sub ecx, r8d
inc ecx
cmp eax, ecx
cmovl eax, ecx
movsx r10d, word [rsp + 0x2a]
lea ecx, [r8 + rax]
cmp ecx, r10d
jle 0x140014712
mov eax, r10d
sub eax, r8d
test eax, eax
lea ecx, [r9 + rsi]
cmovs eax, r12d
mov dword [0x1402de8c4], eax
test r15b, r15b
jne 0x14001472a
lea ecx, [rax + rsi]
cmp ecx, eax
jge 0x140014732
mov ecx, eax
jmp 0x14001473f
lea r9d, [r8 + rax]
cmp ecx, r9d
jl 0x14001473f
lea ecx, [r9 - 1]
test bpl, bpl
je 0x14001474b
movsx edx, word [rsp + 0x2c]
add edx, edi
test edx, edx
jns 0x140014754
mov edx, r12d
jmp 0x14001475d
cmp edx, r11d
jl 0x14001475d
lea edx, [r11 - 1]
mov word [rsp + 0x22], cx
mov rcx, qword [rbx + 0x110]
mov word [rsp + 0x20], dx
mov edx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_SetConsoleCursorPosition]
test eax, eax
jne 0x14001479b
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x57
je 0x140014694
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [r14], eax
mov eax, 0xffffffff
jmp 0x14001479d
xor eax, eax
mov r12, qword [rsp + 0x58]
mov r15, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401b48e0
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140017010
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x20
mov r12, r8
mov r15, rdx
mov r14, rcx
test rcx, rcx
jne 0x14001704c
xor esi, esi
test rdx, rdx
je 0x140017037
mov qword [rdx], rsi
mov qword [r8], rsi
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rdi
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rcx + rdi*2], 0
jne 0x140017060
mov rbx, rdi
nop dword [rax]
test rbx, rbx
je 0x140017089
movzx eax, word [rcx + rbx*2 - 2]
dec rbx
cmp ax, 0x5c
je 0x140017089
cmp ax, 0x2f
jne 0x140017070
mov qword [rsp + 0x48], rbp
test rbx, rbx
jne 0x1400170e4
test r15, r15
je 0x1400170d6
mov ecx, 0x20a
call qword [fcn.1401da214]
mov qword [r15], rax
test rax, rax
je 0x140017183
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
test eax, eax
jne 0x1400170d6
mov rcx, qword [r15]
call fcn.1400109d0
xor esi, esi
lea eax, [rbx - 1]
mov qword [r15], rsi
jmp 0x140017164
mov rcx, r14
call fcn.1401ecf20
mov qword [r12], rax
jmp 0x140017162
xor esi, esi
test r15, r15
je 0x140017122
lea rcx, [rbx*2 + 4]
test rcx, rcx
je 0x140017100
call qword [fcn.1401da214]
jmp 0x140017103
mov rax, rsi
mov qword [r15], rax
test rax, rax
je 0x140017183
lea r8, [rbx + 1]
mov rdx, r14
mov rcx, rax
call fcn.1401ea354
mov rax, qword [r15]
mov word [rax + rbx*2 + 2], si
sub rdi, rbx
lea rbp, [rdi + rdi]
test rbp, rbp
je 0x140017139
mov rcx, rbp
call qword [fcn.1401da214]
jmp 0x14001713c
mov rax, rsi
mov qword [r12], rax
test rax, rax
je 0x140017183
lea rdx, [r14 + 2]
mov rcx, rax
lea rdx, [rdx + rbx*2]
lea r8, [rdi - 1]
call fcn.1401ea354
mov rax, qword [r12]
mov word [rax + rbp - 2], si
xor eax, eax
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
lea rdx, str.uv__malloc
mov ecx, ntohs
call fcn.140023220
int3
Function at 0x140017e60
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1402dd5c8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x140017fdc
test rdx, rdx
je 0x140017fdc
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
mov edx, eax
test eax, eax
jne 0x140017ebf
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.1400232d0
jmp 0x140017f66
cmp edx, 0x104
jbe 0x140017ed1
mov eax, 0xfffff01a
jmp 0x140017f66
mov rax, rdx
mov qword [rsp + 0x280], rsi
add rax, rax
cmp rax, 0x208
jae 0x140017fe3
xor esi, esi
lea ecx, [rdx - 1]
add rcx, rcx
mov word [rsp + rax + 0x40], si
cmp word [rsp + rcx + 0x40], 0x5c
jne 0x140017f1f
cmp edx, 3
jne 0x140017f0d
cmp word [rsp + 0x42], 0x3a
je 0x140017f1f
cmp rcx, 0x208
jae 0x140017fe3
mov word [rsp + rcx + 0x40], si
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rsi
mov r9d, 0xffffffff
mov dword [rsp + 0x28], esi
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
test eax, eax
je 0x140017fc1
mov ecx, dword [rbx]
cmp eax, ecx
jle 0x140017f87
cdqe
mov qword [rbx], rax
mov eax, 0xfffff024
mov rsi, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1401b48e0
mov rbx, qword [rsp + 0x288]
add rsp, 0x260
pop rdi
ret
mov eax, 0x7fffffff
mov qword [rsp + 0x38], rsi
cmp qword [rbx], rax
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rsi
mov r9d, 0xffffffff
cmova ecx, eax
xor edx, edx
mov dword [rsp + 0x28], ecx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
test eax, eax
jne 0x140017fd0
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.1400232d0
jmp 0x140017f5e
dec eax
movsxd rcx, eax
xor eax, eax
mov qword [rbx], rcx
jmp 0x140017f5e
mov eax, 0xfffff019
jmp 0x140017f66
call fcn.1401b51b4
int3
Function at 0x140019d40
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
xor r9d, r9d
mov rdi, rcx
mov r10d, r9d
mov ebx, r9d
mov r11d, r9d
cmp edx, 2
jb 0x140011157
lea eax, [rdx - 2]
mov r8, rcx
shr eax, 1
inc eax
mov ecx, eax
lea r11d, [rax + rax]
nop
mov eax, dword [r8]
lea r8, [r8 + 0x20]
add r9, rax
mov eax, dword [r8 - 0x10]
add r10, rax
sub rcx, 1
jne 0x140011140
cmp r11d, edx
jae 0x140011165
mov eax, r11d
add rax, rax
mov ebx, dword [rdi + rax*8]
mov rdi, qword [rsp + 0x10]
lea rax, [r10 + r9]
add rax, rbx
mov rbx, qword [rsp + 8]
ret
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov eax, dword [rcx + 0x58]
mov ebx, r8d
mov rdi, rdx
test al, 1
je 0x140019d67
mov eax, 0xfffff00d
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
bt eax, 0xf
jb 0x140019d7d
mov eax, 0xfffff031
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov eax, dword [rcx + 0x10]
cmp eax, 7
je 0x140019e3b
cmp eax, 0xc
je 0x140019de5
cmp eax, 0xe
je 0x140019da3
mov eax, 0xfffff02a
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp dword [rcx + 0x100], 0
ja 0x140019e3b
lea r9, [rsp + 0x50]
call fcn.140015080
test eax, eax
je 0x140019dd1
mov ecx, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp fcn.1400232d0
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp 0x140011110
cmp dword [rcx + 0x100], 0
ja 0x140019e3b
mov rcx, qword [rcx + 0x110]
lea r9, [rsp + 0x50]
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x140019e2c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp fcn.1400232d0
mov eax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rbx, qword [rsp + 0x58]
mov eax, 0xfffff008
add rsp, 0x40
pop rdi
ret
Function at 0x14001b1a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, qword [rcx + 0x150]
mov rbp, rcx
mov rcx, rdi
xor esi, esi
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test al, 0x10
jne 0x14001b1e3
mov rax, 0xfffffffffffff02c
mov r8d, 0x10b
jmp 0x14001b2e6
mov ecx, 0x290
call qword [fcn.1401da214]
mov rsi, rax
test rax, rax
je 0x14001b2d9
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x14001b201
test rbx, rbx
jne 0x14001b219
lea r14, [0x1402b3790]
jmp 0x14001b238
movzx eax, word [rdi + rbx*2 - 2]
cmp ax, 0x5c
je 0x14001b231
lea r14, str._s
cmp ax, 0x2f
jne 0x14001b238
lea r14, [0x1402b3798]
lea rcx, [rbx*2 + 8]
test rcx, rcx
je 0x14001b2d9
call qword [fcn.1401da214]
mov r15, rax
test rax, rax
je 0x14001b2d9
lea rdx, [rbx + 3]
mov r9, rdi
mov r8, r14
mov rcx, rax
call fcn.140016fb0
lea rdx, [rsi + 0x38]
mov rcx, r15
call qword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov qword [rsi + 0x30], rax
call fcn.1401e1e4c
mov rcx, r15
mov ebx, dword [rax]
call qword [fcn.1401db01c]
call fcn.1401e1e4c
mov dword [rax], ebx
cmp qword [rsi + 0x30], 0xffffffffffffffff
jne 0x14001b2bb
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
je 0x14001b2bb
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
mov r8d, eax
call fcn.1400232d0
cdqe
jmp 0x14001b2e6
mov dword [rsi + 0x288], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x90], rsi
jmp 0x14001b32c
mov r8d, send
mov rax, 0xfffffffffffff027
mov dword [rbp + 0x14c], r8d
mov qword [rbp + 0x88], rax
call fcn.1401e1e4c
mov rcx, rsi
mov ebx, dword [rax]
call qword [fcn.1401db01c]
call fcn.1401e1e4c
mov dword [rax], ebx
call fcn.1401e1e4c
xor ecx, ecx
mov ebx, dword [rax]
call qword [fcn.1401db01c]
call fcn.1401e1e4c
mov dword [rax], ebx
mov qword [rbp + 0x90], 0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14001d4e0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rdx
mov dword [rsp + 0x38], 0x3c
mov rcx, rbx
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 8
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14001d52b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x40
pop rbx
ret
cmp dword [rsp + 0x30], 0
je 0x14001d556
mov edx, 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x38]
mov rcx, rbx
lea r8d, [rdx - 3]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14001d51f
xor eax, eax
add rsp, 0x40
pop rbx
ret

Function at 0x14001d560
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp qword [rdx + 0x110], 0xffffffffffffffff
mov esi, r9d
mov rdi, r8
mov dword [rsp + 0x60], 1
mov rbx, rdx
mov rbp, rcx
je 0x14001d59c
mov eax, 0xfffff00e
jmp 0x14001d692
lea r8, [rsp + 0x60]
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x14001d5bf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x14001d692
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.DLL_SetHandleInformation]
test eax, eax
jne 0x14001d5de
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x14001d692
mov rdx, qword [rbp + 0x38]
xor r9d, r9d
mov r8, rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CreateIoCompletionPort]
test rax, rax
je 0x14001d5d3
mov ecx, dword [0x1402f1640]
cmp esi, 0x17
mov eax, dword [rbx + 0x58]
cmove ecx, dword [0x1402f163c]
bt eax, 0x13
jb 0x14001d62c
test ecx, ecx
jne 0x14001d62c
mov dl, 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_SetFileCompletionNotificationModes]
test eax, eax
je 0x14001d5d3
or dword [rbx + 0x58], 0x20000
mov eax, dword [rbx + 0x58]
bt eax, 0x18
jae 0x14001d668
mov edx, 6
mov dword [rsp + 0x48], 1
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 4
mov rcx, rdi
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14001d668
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x14001d692
test dword [rbx + 0x58], 0x2000000
je 0x14001d67d
mov rdx, rdi
call fcn.14001d4e0
test eax, eax
jne 0x14001d692
mov qword [rbx + 0x110], rdi
cmp esi, 0x17
jne 0x14001d690
or dword [rbx + 0x58], 0x400000
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret