joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180023160
Capabilities:
Hash data with md5

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [0x1800f10e0]
xor rax, rsp
mov qword [rsp + 0x90], rax
xor eax, eax
mov dword [rsp + 0x30], 0x67452301
mov dword [rsp + 0x44], eax
mov rbx, rcx
mov dword [rsp + 0x34], 0xefcdab89
mov dword [rsp + 0x38], 0x98badcfe
mov qword [rsp + 0x3c], 0x10325476
call fcn.1800051b0
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.1800051a0
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
call fcn.18001b120
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.18001b2a0
mov rcx, qword [rsp + 0x20]
movabs rax, 0xff000000000000
movabs rdx, 0xff0000000000
mov r9, rcx
and r9, rax
mov r8, rcx
shl r8, 0x10
mov rax, rcx
shr rax, 0x10
or r9, rax
mov rax, rcx
and rax, rdx
shr r9, 0x10
or r9, rax
movabs rdx, 0xff00000000
shr r9, 0x10
mov rax, rcx
and rax, rdx
mov rdx, rcx
or r9, rax
and edx, 0xff0000
mov rax, rcx
shr r9, 8
and eax, 0xff00
or r8, rax
mov eax, 0xff000000
shl r8, 0x10
and rax, rcx
or r8, rdx
shl r8, 0x10
or rax, r8
shl rax, 8
or rax, r9
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.18006c2f0
add rsp, 0xa0
pop rbx
ret

Function at 0x1800265c0
Capabilities:
Encode data using xor

Disassembly:
mov r9d, edx
mov r8, rcx
mov eax, edx
test edx, edx
jle 0x18002669e
test rcx, rcx
je 0x18002669e
mov r10d, edx
sar r9d, 2
and r10d, 3
test r9d, r9d
jle 0x18002661a
nop dword [rax]
movzx ecx, word [r8]
dec r9d
movzx edx, word [r8 + 2]
add eax, ecx
mov ecx, eax
shl edx, 0xb
shl ecx, 0x10
add r8, 4
xor edx, ecx
xor eax, edx
mov ecx, eax
shr ecx, 0xb
add eax, ecx
test r9d, r9d
jg 0x1800265f0
sub r10d, 1
je 0x18002665e
sub r10d, 1
je 0x18002664a
cmp r10d, 1
jne 0x180026671
movzx ecx, word [r8]
movsx edx, byte [r8 + 2]
add eax, ecx
mov ecx, eax
shl edx, 0x12
shl ecx, 0x10
xor edx, ecx
xor eax, edx
mov ecx, eax
shr ecx, 0xb
jmp 0x18002666f
movzx ecx, word [r8]
add eax, ecx
mov ecx, eax
shl ecx, 0xb
xor eax, ecx
mov ecx, eax
shr ecx, 0x11
jmp 0x18002666f
movsx ecx, byte [r8]
add eax, ecx
mov ecx, eax
shl ecx, 0xa
xor eax, ecx
mov ecx, eax
shr ecx, 1
add eax, ecx
lea ecx, [rax*8]
xor eax, ecx
mov ecx, eax
shr ecx, 5
add eax, ecx
mov ecx, eax
shl ecx, 4
xor eax, ecx
mov ecx, eax
shr ecx, 0x11
add eax, ecx
mov ecx, eax
shl ecx, 0x19
xor eax, ecx
mov ecx, eax
shr ecx, 6
add eax, ecx
ret
xor eax, eax
ret
Function at 0x180029690
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x1050
call fcn.18006c280
sub rsp, rax
mov rax, qword [0x1800f10e0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rax, [rsp + 0x30]
mov rsi, r8
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x40]
xor ebx, ebx
mov dword [rsp + 0x30], ebx
xor r8d, r8d
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x30], 0x800
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x1800297a0
mov ecx, dword [rsp + 0x34]
cmp ecx, 1
jne 0x180029732
cmp word [rsp + 0x40], bx
je 0x18002971e
lea rax, [rsp + 0x40]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180029714
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1800076e0
mov eax, edi
jmp 0x1800297a0
cmp ecx, 2
jne 0x18002979b
mov r8d, 0x400
lea rdx, [rsp + 0x840]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x30], eax
dec eax
cmp eax, 0x3ff
ja 0x180029794
cmp word [rsp + 0x840], bx
je 0x18002977d
lea rax, [rsp + 0x840]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180029773
mov r8, rbx
lea rdx, [rsp + 0x840]
mov rcx, rsi
call fcn.1800076e0
mov eax, edi
jmp 0x1800297a0
mov eax, 0xea
jmp 0x1800297a0
mov eax, 0x3f4
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18006c2f0
add rsp, 0x1050
pop rdi
pop rsi
pop rbx
ret
Function at 0x18002c7e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov r10d, 2
mov dword [rcx + 0x200], 1
mov r11d, r10d
mov dword [rcx + 0x204], 1
mov esi, r8d
mov word [rcx + 0x208], 0
mov rbp, rdx
lea r9, [0x1800db420]
xor dil, dil
mov rax, rcx
nop dword [rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [r9]
lea r9, [r9 + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm1, xmmword [r9 - 0x70]
movups xmmword [rax - 0x70], xmm1
movups xmm0, xmmword [r9 - 0x60]
movups xmmword [rax - 0x60], xmm0
movups xmm1, xmmword [r9 - 0x50]
movups xmmword [rax - 0x50], xmm1
movups xmm0, xmmword [r9 - 0x40]
movups xmmword [rax - 0x40], xmm0
movups xmm1, xmmword [r9 - 0x30]
movups xmmword [rax - 0x30], xmm1
movups xmm0, xmmword [r9 - 0x20]
movups xmmword [rax - 0x20], xmm0
movups xmm1, xmmword [r9 - 0x10]
movups xmmword [rax - 0x10], xmm1
sub r11, 1
jne 0x18002c830
mov rbx, rcx
nop
movzx r9d, byte [rbx]
lea rbx, [rbx + 1]
xor edx, edx
mov eax, r11d
div esi
inc r11d
movzx eax, byte [rdx + rbp]
add al, r9b
add dil, al
movzx edx, dil
movzx eax, byte [rdx + rcx]
mov byte [rbx - 1], al
mov byte [rdx + rcx], r9b
cmp r11d, 0x100
jb 0x18002c890
lea rax, [rcx + 0x100]
nop dword [rax + rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm1, xmmword [rcx - 0x70]
movups xmmword [rax - 0x70], xmm1
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x60], xmm0
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x50], xmm1
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x40], xmm0
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x30], xmm1
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x20], xmm0
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x10], xmm1
sub r10, 1
jne 0x18002c8d0
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret

Function at 0x18002c940
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1800f10e0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov edi, r9d
mov rbp, r8
mov rsi, rdx
call fcn.1800051a0
mov rbx, rax
call fcn.1800051b0
mov rdx, rax
lea rcx, [rsp + 0x20]
mov r8d, ebx
call fcn.18002c7e0
mov r10d, dword [rsp + 0x220]
movzx r11d, byte [rsp + 0x228]
sub rsi, r10
sub rbp, r10
mov eax, r10d
lea ebx, [r10 + rdi]
cmp r10d, ebx
jae 0x18002c9fa
add rax, rbp
sub rsi, rbp
movzx ecx, r10b
lea r8, [rsp + 0x20]
add r8, rcx
lea rdx, [rsp + 0x20]
inc r10d
lea rax, [rax + 1]
movzx r9d, byte [r8]
add r11b, r9b
movzx ecx, r11b
add rdx, rcx
movzx ecx, byte [rdx]
mov byte [r8], cl
mov byte [rdx], r9b
movzx ecx, byte [r8]
add cl, r9b
movzx edx, cl
movzx ecx, byte [rsp + rdx + 0x20]
xor cl, byte [rsi + rax - 1]
mov byte [rax - 1], cl
cmp r10d, ebx
jb 0x18002c9b0
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.18006c2f0
mov rbx, qword [rsp + 0x268]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret
Function at 0x18002cae0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov dword [rsp + 0x30], 0
add rcx, 8
or r8, 0xffffffffffffffff
mov rbx, rdx
call fcn.180020b80
test al, al
jne 0x18002cb7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x20]
cmp ecx, 1
jbe 0x18002cb6a
cmp eax, 5
jne 0x18002cb36
mov eax, 0x3e8
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea rcx, [rdi + 8]
call fcn.180005090
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 0x3e9
mov edx, 0x3eb
cmp eax, 0xffffffff
cmove ecx, edx
mov eax, ecx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov eax, 0x3ea
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call fcn.1800051a0
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov qword [rdi + 0x30], rax
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x18002ec5c
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x18002ec82
mov r8, rdx
mov rdx, qword [rbx]
call fcn.180030098
jmp 0x18002ece9
cmp byte [0x1800f5d68], 0
jne 0x18002ecc6
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18002ecb6
lea rdx, [0x1800db0d8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800f5d60], rax
jmp 0x18002ecbd
mov rax, qword [0x1800f5d60]
mov byte [0x1800f5d68], 1
jmp 0x18002eccd
mov rax, qword [0x1800f5d60]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x18002ece3
mov r8d, dword [rbx + 8]
xor r9d, r9d
call rax
jmp 0x18002ece9
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180030098
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x1800300fb
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18003010f
lea rdx, [0x1800bbe08]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18003010f
mov rcx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call rax
jmp 0x180030114
cmp dword [rcx + 8], 0
je 0x18003010f
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x180030114
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x180030290
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x1800f10e0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
xor edi, edi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x70], rdi
xor edx, edx
lea r8d, [rdi + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x18003031d
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x18003031d
call fcn.18002e108
mov ebx, eax
jmp 0x18003042e
mov r8, r15
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x18003033e
call fcn.18002e108
jmp 0x18003041d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x180030334
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x180030379
mov ebx, 0x8007000e
jmp 0x18003041f
mov ecx, eax
test eax, eax
je 0x1800303b1
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x1800303a7
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x1800303b1
lea rcx, [rsp + 0x70]
call fcn.18002dd54
jmp 0x1800303bb
mov ecx, 0x80070216
call fcn.18000def0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x1800303cd
cmp qword [rsp + 0x70], rdi
je 0x18003036f
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x180030334
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], di
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.180030124
mov ebx, eax
test rsi, rsi
je 0x18003042e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x180030445
lea rcx, [rsp + 0x70]
call fcn.18002ee48
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.18006c2f0
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800324e0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1800f10e0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x18003253e
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x180032538
shr ax, 8
cmp al, 2
jne 0x180032538
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.18006c2f0
add rsp, 0x1d8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.18006c2f0
add rsp, 0x1d8
ret

Function at 0x180039f10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp dword [rcx + 4], 2
mov rax, rdx
je 0x180039f1c
xor eax, eax
ret
mov rdx, qword [rcx + 0x20]
mov r9, r8
add rdx, 4
mov r8, rax
mov ecx, 2
jmp fcn.18004fba0
Function at 0x180042900
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 0x18004293b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov edx, 0x51
cmp eax, 0x2733
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 0x180042a50
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
movsxd rax, edx
mov rdi, r9
mov rsi, r8
mov r14, rcx
mov rbx, qword [rcx + rax*8 + 0x210]
call fcn.180042e80
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
movsxd rdi, eax
mov dword [rsi], 0
cmp rdi, 0xffffffffffffffff
jne 0x180042ae8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x180042abd
mov dword [rsi], 0x51
xor eax, eax
jmp 0x180042aeb
mov edx, ebx
mov rcx, r14
call fcn.18004f1d0
mov rcx, qword [r14]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.180042620
mov rcx, qword [r14]
mov dword [rcx + 0x49dc], ebx
mov dword [rsi], gethostname
mov rax, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movsxd r8, edx
lea rbx, [rcx + 0x258]
mov rax, r8
shl rax, 5
add rbx, rax
mov rax, qword [rcx + 0x380]
mov rsi, qword [rcx + r8*8 + 0x210]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x74], 3
je 0x180042f63
lea rax, [0x180042990]
cmp qword [rcx + r8*8 + 0x238], rax
jne 0x180042f63
cmp qword [rbx], 0
je 0x180042ee4
test rdi, rdi
je 0x180042f63
or r8, 0xffffffffffffffff
xor r9d, r9d
or rdx, r8
mov rcx, rsi
call fcn.180041fb0
cmp eax, 0xffffffff
je 0x180042f63
test al, 1
je 0x180042f63
cmp qword [rbx], 0
jne 0x180042f42
mov ecx, 0x8000
mov qword [rbx + 8], 0x8000
call qword [section..data]
mov rdi, qword [rbx + 8]
xor ecx, ecx
mov qword [rbx], rax
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], rcx
test rax, rax
jne 0x180042f42
mov qword [rbx + 8], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, qword [rbx]
xor r9d, r9d
add rdx, qword [rbx + 0x10]
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x180042f63
add qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180042f80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r10, qword [rcx + 0x258]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x180042fc3
mov rax, qword [rcx + 0x1a8]
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
ja 0x180043006
mov r9, qword [rbx + 0x1a0]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x1800bdb00]
add rcx, rax
lea r8d, [rdx - 1]
call fcn.18007851c
mov r9, qword [rbx + 0x1a0]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call fcn.18007851c
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x298], 0
je 0x180043114
xor al, al
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x210]
cmp rcx, 0xffffffffffffffff
je 0x18004310d
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

Function at 0x1800439f0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [rcx]
lea r9, [rsp + 0x40]
mov rax, rdx
mov dword [rsp + 0x40], 1
mov edx, 6
mov dword [rsp + 0x20], 4
mov rdi, rcx
mov rcx, rax
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x180043a5b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
call fcn.18004f1d0
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
call fcn.1800426f0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.1800426f0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x180043b70
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x1800f10e0]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0xa4], 2
mov rbx, rdx
mov rsi, qword [rcx]
mov rdi, rcx
je 0x180043d3d
cmp byte [rcx + 0x34a], 0
jne 0x180043d35
cmp byte [rcx + 0x366], 0
jne 0x180043d35
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_133
lea rdx, [rsp + 0xb0]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x180043c12
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.18004f1d0
mov r9, rax
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.180042620
jmp 0x180043d3d
xor edx, edx
mov dword [rsp + 0x20], Ordinal_133
mov r8d, Ordinal_133
lea rcx, [rsp + 0x30]
call fcn.180071390
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x180043c6f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.18004f1d0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.180042620
jmp 0x180043d3d
lea rbx, [rdi + 0x16e]
mov rdx, rbx
lea r8, [rdi + 0x19c]
lea rcx, [rsp + 0xb0]
call fcn.1800441d0
test al, al
jne 0x180043cbd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.18004f1d0
mov r9, rax
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.180042620
jmp 0x180043d3d
movups xmm0, xmmword [rbx]
mov eax, dword [rbx + 0x28]
lea r8, [rdi + 0x1d0]
movups xmm1, xmmword [rbx + 0x10]
lea rdx, [rdi + 0x1a0]
movups xmmword [rdi + 0x70], xmm0
lea rcx, [rsp + 0x30]
movsd xmm0, qword [rbx + 0x20]
movups xmmword [rdi + 0x80], xmm1
movsd qword [rdi + 0x90], xmm0
mov dword [rdi + 0x98], eax
movzx eax, word [rbx + 0x2c]
mov word [rdi + 0x9c], ax
call fcn.1800441d0
test al, al
jne 0x180043d35
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.18004f1d0
mov r9, rax
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.180042620
jmp 0x180043d3d
mov rcx, rdi
call fcn.180043770
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.18006c2f0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180044500
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1800f10e0]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
mov dword [rsp + 0x20], 4
mov eax, esi
lea r9, [rsp + 0x50]
cmp byte [rcx + 0x764], al
mov rdi, rdx
mov rbx, rcx
mov edx, 0xffff
setne al
lea r8d, [rsi + 8]
mov rcx, rdi
mov dword [rsp + 0x50], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x18004456f
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov rcx, rbx
call fcn.1800426f0
jmp 0x1800445fe
mov ecx, dword [rbx + 0x768]
mov dword [rsp + 0x58], 1
call fcn.18004c570
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0x76c]
call fcn.18004c570
imul ecx, eax, 0x3e8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rsi
mov r9d, recvfrom
mov qword [rsp + 0x30], rax
mov edx, 0x98000004
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x60], ecx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1800445fe
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, edi
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov r9d, eax
mov rcx, rbx
call fcn.1800426f0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18006c2f0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18004c500
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
mov rbx, rdx
mov rcx, r8
call fcn.18004c540
mov r8d, eax
mov rdx, rbx
mov ecx, edi
call fcn.180083dcc
mov rbx, qword [rsp + 0x30]
cdqe
add rsp, 0x20
pop rdi
ret

Function at 0x18004edd0
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0x20
xor r12d, r12d
mov r15, r9
mov qword [r9], r12
mov esi, r12d
lea r9, [rsp + 0x68]
mov r14d, r12d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebp, eax
test eax, eax
jne 0x18004ef48
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x18004ef31
mov qword [rsp + 0x58], rdi
nop dword [rax]
cmp dword [rbx + 4], 2
jne 0x18004eec8
cmp qword [rbx + 0x20], r12
je 0x18004eec8
cmp qword [rbx + 0x10], 0x10
jb 0x18004eec8
mov ecx, 0x30
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x18004ef01
mov ecx, dword [rbx]
mov dword [rax], ecx
mov ecx, dword [rbx + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rbx + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rbx + 0xc]
mov dword [rax + 0xc], ecx
mov ecx, reloc.WS2_32.dll_recv
mov dword [rax + reloc.WS2_32.dll_recv], 0x10
mov qword [rax + 0x20], r12
mov qword [rax + 0x18], r12
mov qword [rax + 0x28], r12
call qword [section..data]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x18004eef1
mov rcx, qword [rbx + 0x20]
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x18004eeb5
call qword [case.0x180039076.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x18004eed7
test rsi, rsi
cmove rsi, rdi
test r14, r14
je 0x18004eec5
mov qword [r14 + 0x28], rdi
mov r14, rdi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x18004ee20
jmp 0x18004ef06
mov rcx, qword [rdi + 0x20]
mov ebp, 8
call qword [fcn.18007314c]
mov rcx, rdi
call qword [fcn.18007314c]
jmp 0x18004ef06
mov rcx, rdi
mov ebp, 8
call qword [fcn.18007314c]
jmp 0x18004ef06
mov ebp, 8
mov rcx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x58]
test rcx, rcx
je 0x18004ef1b
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x18004ef2c
mov rcx, rsi
call fcn.18004ed80
mov rsi, r12
jmp 0x18004ef3e
test rsi, rsi
jne 0x18004ef3e
mov ebp, 0x2af9
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rbx, qword [rsp + 0x50]
mov eax, ebp
mov qword [r15], rsi
add rsp, 0x20
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret