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

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x30
mov rax, qword [0x14014e110]
xor rax, rsp
mov qword [rsp + 0x20], rax
mov rdi, rdx
mov r10, rcx
movzx edx, byte [r8 + 0x10]
movabs rcx, 0x100000001b3
mov r9, r8
movabs rax, 0xcbf29ce484222325
xor rdx, rax
movzx eax, byte [r8 + 0x11]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [r8 + 0x12]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [r8 + 0x13]
mov r8, qword [r10 + 0x30]
imul rdx, rcx
xor rdx, rax
imul rdx, rcx
mov rcx, qword [r10 + 0x18]
and r8, rdx
shl r8, 4
add rcx, r8
cmp qword [rcx + 8], r9
jne 0x140019f98
cmp qword [rcx], r9
jne 0x140019f8e
mov rax, qword [r10 + 8]
mov qword [rcx], rax
mov rcx, qword [r10 + 0x18]
mov rax, qword [r10 + 8]
mov qword [r8 + rcx + 8], rax
jmp 0x140019fa3
mov rax, qword [r9 + 8]
mov qword [rcx + 8], rax
jmp 0x140019fa3
cmp qword [rcx], r9
jne 0x140019fa8
mov rax, qword [r9]
mov qword [rcx], rax
mov r9, qword [rsp + 0x50]
mov rdx, qword [r9 + 8]
mov rcx, r9
mov rbx, qword [r9]
mov qword [rdx], rbx
mov r8, qword [r9]
mov rdx, qword [r9 + 8]
mov qword [r8 + 8], rdx
dec qword [r10 + 0x10]
call fcn.1400abe38
mov rax, rdi
mov qword [rdi], rbx
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.1400ab460
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14001ae40
Capabilities:
Hash data using fnv

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x14014e110]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, r9
mov r10, r8
mov rsi, rdx
mov r9, rcx
mov qword [rsp + 0x20], rcx
movzx ecx, byte [r8]
movabs rax, 0xcbf29ce484222325
xor rcx, rax
movabs rdx, 0x100000001b3
imul rcx, rdx
movzx eax, byte [r8 + 1]
xor rcx, rax
imul rcx, rdx
movzx eax, byte [r8 + 2]
xor rcx, rax
imul rcx, rdx
movzx eax, byte [r8 + 3]
xor rcx, rax
imul rcx, rdx
mov r8, qword [r9 + 0x30]
and r8, rcx
shl r8, 4
mov rbx, qword [r9 + 0x18]
mov rax, qword [rbx + r8]
cmp rax, qword [r9 + 8]
jne 0x14001aed3
mov rbx, qword [r9 + 8]
jmp 0x14001aedb
mov rbx, qword [rbx + r8 + 8]
mov rbx, qword [rbx]
cmp rbx, rax
je 0x14001af23
mov ecx, dword [r10]
mov rbx, qword [rbx + 8]
cmp ecx, dword [rbx + 0x10]
je 0x14001aef3
cmp rbx, rax
jne 0x14001aee3
jmp 0x14001af23
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi]
mov qword [rdx], rcx
mov rdx, qword [rdi]
mov rcx, qword [rdi + 8]
mov qword [rdx + 8], rcx
dec qword [r9 + 0x10]
mov rcx, rdi
call fcn.1400abe38
mov qword [rsi], rbx
mov byte [rsi + 8], 0
mov rax, rsi
jmp 0x14001afb8
mov qword [rsp + 0x38], rdi
mov rax, qword [rdi]
cmp rbx, rax
je 0x14001af5d
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rdi
mov rdx, qword [rbx + 8]
mov rcx, qword [rax + 8]
mov qword [rbx + 8], rcx
mov rcx, qword [rdi + 8]
mov qword [rax + 8], rcx
mov qword [rdi + 8], rdx
mov rcx, qword [r9 + 0x18]
add rcx, r8
mov rax, qword [rcx]
cmp rax, qword [r9 + 8]
jne 0x14001af7b
mov qword [rcx], rdi
mov rax, qword [r9 + 0x18]
mov qword [rax + r8 + 8], rdi
jmp 0x14001afa5
cmp rax, rbx
jne 0x14001af85
mov qword [rcx], rdi
jmp 0x14001afa5
mov rax, qword [rcx + 8]
mov rdx, qword [rax]
mov qword [rcx + 8], rdx
cmp rdx, rdi
je 0x14001afa5
add r8, qword [r9 + 0x18]
mov rax, qword [r8 + 8]
mov rdx, qword [rax + 8]
mov qword [r8 + 8], rdx
mov rcx, r9
call fcn.140019e30
nop
mov qword [rsi], rdi
mov byte [rsi + 8], 1
mov rax, rsi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400ab460
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x14001d780
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14014e110]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor ebx, ebx
lea rdx, [rsp + 0x30]
mov rdi, rcx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
lea r9d, [rbx + 1]
lea r8d, [rbx + 0x23]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbx
mov word [rdi], bx
cmp word [rsp + 0x30], bx
je 0x14001d7ea
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14001d7e0
mov r8, rbx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14001eac0
mov rax, rdi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400ab460
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x140025f00
Capabilities:
Create directory
Get common file path

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x90], rbx
mov rax, qword [0x14014e110]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x18], 7
xor ebx, ebx
mov qword [rbp - 0x20], rbx
mov word [rbp - 0x30], bx
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], rbx
mov word [rbp - 0x50], bx
lea r9, [rbp - 0x58]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140103e90]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x140025fd6
mov rdx, qword [rbp - 0x58]
cmp word [rdx], ax
jne 0x140025f74
mov r8d, ebx
jmp 0x140025f8b
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140025f80
lea rcx, [rbp - 0x50]
call fcn.14001eac0
mov r8d, reloc.WLDAP32.dll_Ordinal_32
lea rdx, str.NVIDIA_CorporationFrameViewSDK
lea rcx, [rbp - 0x50]
call fcn.140020550
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.14001f340
mov r8d, 0xa
lea rdx, str._nvrla.log
lea rcx, [rbp - 0x30]
call fcn.140020550
jmp 0x140025fe2
lea rcx, str.SHGetKnownFolderPath_Failed_n
call fcn.140026150
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rcx, qword [rbp - 0x50]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rdx, qword [rbp - 0x30]
lea r8, [0x14012bb40]
lea rcx, [0x14015a460]
call fcn.1400d8b50
nop
mov r8, qword [rbp - 0x38]
cmp r8, 8
jb 0x14002603e
inc r8
mov rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x50]
call fcn.14001f2d0
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], rbx
mov word [rbp - 0x50], bx
mov r8, qword [rbp - 0x18]
cmp r8, 8
jb 0x140026068
inc r8
mov rdx, qword [rbp - 0x30]
lea rcx, [rbp - 0x30]
call fcn.14001f2d0
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400ab460
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret
Function at 0x140026150
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rdi
sub rsp, 0x468
mov rax, qword [0x14014e110]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, rcx
lea rdi, [r11 + 0x10]
call fcn.140001250
mov qword [rsp + 0x28], rdi
lea rdx, [rsp + 0x50]
xor edi, edi
mov r9, rbx
mov r8d, 0x400
mov qword [rsp + 0x20], rdi
mov rcx, qword [rax]
or rcx, 2
call fcn.1400d324c
cmp byte [0x14015a459], dil
je 0x1400261c4
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp byte [0x14015a458], dil
je 0x1400261d7
lea rcx, [rsp + 0x50]
call fcn.140001260
mov edx, 0x3ff
mov qword [rsp + 0x48], 7
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x40], rdi
mov word [rsp + 0x30], di
call fcn.1400203f0
lea r8, [rsp + 0x44f]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140026390
mov rcx, qword [0x14015a460]
test rcx, rcx
je 0x140026245
cmp qword [rsp + 0x48], 8
lea r8, [rsp + 0x30]
lea rdx, [0x14012bb4c]
cmovae r8, qword [rsp + 0x30]
call fcn.140025eb0
mov rcx, qword [0x14015a460]
call fcn.1400d3af0
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x140026262
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
inc r8
call fcn.14001f2d0
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400ab460
add rsp, 0x468
pop rdi
pop rbx
ret

Function at 0x140027070
Capabilities:
Hash data via bcrypt

Disassembly:
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x50
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rbx, rdx
mov rdi, rcx
mov dword [rsp + 0x20], 0
mov rdx, qword [r8]
mov r8, qword [r8 + 8]
sub r8, rdx
xor r9d, r9d
mov rcx, qword [rcx + 8]
call qword [sym.imp.bcrypt.dll_BCryptHashData]
test eax, eax
jns 0x1400270de
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x30]
call fcn.140026f60
lea rdx, [0x14014b810]
lea rcx, [rsp + 0x30]
call fcn.1400cd5a4
int3
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov rdx, qword [rdi]
mov rcx, rbx
call fcn.140027160
mov dword [rsp + 0x20], 1
xor r9d, r9d
mov r8d, dword [rdi]
mov rdx, qword [rbx]
mov rcx, qword [rdi + 8]
call qword [sym.imp.bcrypt.dll_BCryptFinishHash]
test eax, eax
jns 0x140027142
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x30]
call fcn.140026f60
lea rdx, [0x14014b810]
lea rcx, [rsp + 0x30]
call fcn.1400cd5a4
int3
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x14002e6f0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
mov esi, edi
test rcx, rcx
je 0x14002e7cf
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, eax
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rbx + rdx*2], si
jne 0x14002e727
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 0x14002e7d2
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
lea ecx, [r8 - 1]
cmp word [rsi + rcx*2], 0x5c
je 0x14002e776
mov eax, 0x5c
mov word [rsi + r8*2], ax
inc r8d
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], di
jne 0x14002e780
test rax, rax
je 0x14002e7cf
mov rdx, rdi
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rbx + rdx*2]
lea ecx, [rdi + r8]
inc edi
mov word [rsi + rcx*2], ax
mov edx, edi
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x14002e7c0
cmp rdx, rax
jb 0x14002e7a0
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 0x1400302a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x30
mov rbx, rcx
xor ebp, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x1400304ce
xor edx, edx
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], dx
jne 0x1400302d0
test rax, rax
je 0x140030304
xor ecx, ecx
movzx r8d, word [rbx + rcx*2]
cmp r8w, 0x5c
je 0x1400304ce
cmp r8w, 0x2f
je 0x1400304ce
inc edx
mov ecx, edx
cmp rcx, rax
jb 0x1400302e0
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
call fcn.1400304f0
mov rsi, rax
test rax, rax
je 0x1400303fe
mov qword [rsp + 0x50], r14
call fcn.140030e80
mov r14, rax
test rax, rax
je 0x1400303eb
mov rcx, rsi
call fcn.14002e6a0
test eax, eax
je 0x1400303d4
lea rax, str.system32_
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x20]
lea rax, str.SystemRoot_system32_
mov qword [rsp + 0x28], rax
nop word [rax + rax]
mov rdx, qword [rdi]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rdx + rbx*2], bp
jne 0x140030380
mov r8, rbx
mov rcx, rsi
call fcn.1400da530
test eax, eax
je 0x1400303a8
add rdi, 8
lea rax, [rsp + 0x30]
cmp rdi, rax
jb 0x140030370
jmp 0x1400303b7
lea rdx, [rsi + rbx*2]
mov rcx, r14
call fcn.14002fd10
mov rbp, rax
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x1400303e2
mov rcx, rsi
call fcn.14002e650
test eax, eax
je 0x1400303e2
mov rbp, rsi
xor esi, esi
jmp 0x1400303e2
mov rdx, rsi
mov rcx, r14
call fcn.14002fd10
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 0x14003049a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x1400304a3
mov rcx, rbx
call fcn.14002e560
mov rdi, rax
test rax, rax
je 0x1400304a3
mov ecx, 0x37e4
call fcn.14002f8a0
test eax, eax
je 0x140030438
xor ecx, ecx
call fcn.140030bc0
jmp 0x14003043d
call fcn.140030e80
mov rbx, rax
test rax, rax
je 0x140030491
mov rdx, rdi
mov rcx, rax
call fcn.14002fd10
mov rbp, rax
test rax, rax
je 0x140030488
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003046a
test al, 0x50
je 0x140030488
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14003047d
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 0x1400304a3
xor ecx, ecx
jmp 0x1400304b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400304b6
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsp + 0x48]
mov rax, rbp
mov rsi, qword [rsp + 0x40]
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 0x140030e80
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov ecx, 0x40
add rdx, rdx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140030ee2
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140030ed7
cmp edi, eax
jb 0x140030ed7
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 0x140047240
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xad6], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x140047309
cmp qword [rcx + 0x270], 0
je 0x1400472be
mov qword [rsp + 0x40], rbx
call fcn.140035d70
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.1400360f0
mov rcx, qword [rdi + 0x1d8]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x270]
movzx edx, bl
mov rcx, rdi
call fcn.1400360f0
mov rbx, qword [rsp + 0x40]
jmp 0x140047309
mov ecx, esi
test edx, edx
je 0x1400472ce
sub ecx, 1
je 0x1400472ce
cmp ecx, 1
jne 0x140047309
mov r9, qword [rdi + 0x1d0]
lea rax, [0x140107628]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call fcn.1400d8860
mov r9, qword [rdi + 0x1d0]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call fcn.1400d8860
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140047530
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x140047572
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, Ordinal_60
mov qword [rbx], 0
cmp eax, 0x2733
mov edx, 0x51
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140047710
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x130
mov rax, qword [0x14014e110]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rsi, qword [rsp + 0x190]
mov rbp, rcx
mov rcx, qword [rcx + 0x18]
mov r15, r8
movsxd r8, edx
mov r12, r9
mov rax, r8
shl rax, 5
lea rbx, [rcx + 0x218]
mov r14, qword [rcx + r8*8 + 0x1d0]
add rbx, rax
mov rax, qword [rcx + 0x3e8]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x84], 3
je 0x14004781a
lea rax, [0x1400475c0]
cmp qword [rcx + r8*8 + 0x1f8], rax
jne 0x14004781a
cmp qword [rbx], 0
je 0x1400477a1
test rdi, rdi
je 0x14004781a
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, r14
call fcn.140059f00
cmp eax, 0xffffffff
je 0x14004781a
test al, 1
je 0x14004781a
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1400477f9
mov eax, dword [rbp + 0x6ec]
lea ecx, [rax + rax]
mov qword [rbx + 8], rcx
call qword [str.P3_r_]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
je 0x140047854
mov rdi, qword [rbx + 8]
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rcx
mov r8d, edi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x14004781a
add qword [rbx + 0x10], rcx
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
mov dword [rsi], 0
cmp rbx, 0xffffffffffffffff
jne 0x140047893
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x140047863
xor ebx, ebx
mov dword [rsi], 0x51
jmp 0x140047893
mov dword [rsi], reloc.WLDAP32.dll_Ordinal_27
mov rax, 0xffffffffffffffff
jmp 0x140047896
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.140031fe0
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.140047320
mov dword [rbp + 0xd94], edi
mov dword [rsi], Ordinal_60
mov rax, rbx
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1400ab460
add rsp, 0x130
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140047db0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x268], 0
je 0x140047dcd
call fcn.1400408e0
test eax, eax
je 0x140047df9
mov al, 1
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x1d0]
cmp rcx, 0xffffffffffffffff
je 0x140047df9
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret
Function at 0x140048040
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x14014e110]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
mov rax, rdx
mov rbx, r8
mov rsi, rcx
lea r8, [rsp + 0x20]
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rdi, r9
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400480f3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.140031fe0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.140047320
jmp 0x1400481bb
movzx ecx, word [rsp + 0x30]
mov edx, ecx
sub edx, 1
je 0x140048190
sub edx, 1
je 0x14004813a
cmp edx, 0x15
jne 0x140048141
lea rdx, [rsp + 0x38]
mov r8, rbx
mov r9d, reloc.WLDAP32.dll_Ordinal_46
call fcn.140077df0
test rax, rax
je 0x140048141
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rdi], eax
jmp 0x1400481bb
lea rdx, [rsp + 0x34]
jmp 0x140048112
mov byte [rbx], 0
mov dword [rdi], 0
call fcn.1400d89a0
mov dword [rax], 0x273f
call fcn.1400d89a0
mov ebx, dword [rax]
call fcn.1400d89a0
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.140031fe0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.140047320
jmp 0x1400481bb
cmp dword [rsp + 0x20], 2
jle 0x1400481b2
lea r9, [rsp + 0x32]
mov edx, reloc.WLDAP32.dll_Ordinal_46
lea r8, [0x140105ec0]
mov rcx, rbx
call fcn.14004c590
jmp 0x1400481b5
mov byte [rbx], 0
mov dword [rdi], 0
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1400ab460
add rsp, 0x1c0
pop rdi
pop rsi
pop rbx
ret

Function at 0x140048af0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x140156a50]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x140048b54
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.140078680
test al, al
je 0x140048b48
mov dword [0x140156a50], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x140156a50], 1
jmp 0x140048b59
cmp eax, 2
je 0x140048bab
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x140048b8a
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x140048bab
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret
Function at 0x14004a030
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.1400e9fa0
cdqe
add rsp, 0x28
ret

Function at 0x14004a330
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, [0x140107ae0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x14004a35a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, [0x140107af0]
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x140107b00]
mov rcx, rbx
mov r14, rax
call fcn.1400de670
test rax, rax
je 0x14004a3bd
mov rcx, rbx
test r14, r14
je 0x14004a3a7
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x14004a3f5
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004a3f5
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x14004a4b8
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x14004a420
lea ecx, [rax + 1]
add rcx, rdx
call qword [str.P3_r_]
mov rdi, rax
test rax, rax
je 0x14004a4aa
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14004a4aa
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x14004a450
mov ecx, 0x5c
mov word [rax + rdi], cx
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x14004a464
mov rcx, rdi
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x14004a480
mov rcx, rdi
test r14, r14
je 0x14004a4a1
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x14004a4a7
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [str.03_r_]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret