joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002290
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400043a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400022b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400022b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400022b0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000230d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140002304
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400022b0
add rax, 0x28
cmp rax, r9
jne 0x1400022f0
xor eax, eax
ret

Function at 0x140002310
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043a0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000232f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002338
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000232f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400023d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043a0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400023ef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400023f8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1800021c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov eax, 9
xor ebx, ebx
mov dword [rsp + 0x20], eax
mov rdi, rcx
mov dword [rsp + 0x24], 0x58525b5b
mov edx, ebx
mov dword [rsp + 0x28], 0x2f5c1048
mov dword [rsp + 0x2c], 0x422c
test eax, eax
je 0x180002219
nop word [rax + rax]
mov eax, edx
lea rcx, [rsp + 0x24]
add rcx, rax
lea eax, [rdx + 0x39]
inc edx
xor byte [rcx], al
mov eax, dword [rsp + 0x20]
cmp edx, eax
jb 0x180002200
mov byte [rsp + rax + 0x24], bl
lea rax, [rsp + 0x24]
mov qword [rsp + 0x48], rax
nop word [rax + rax]
mov rdx, qword [rsp + rbx*8 + 0x48]
mov rcx, rdi
call fcn.1800524a0
test rax, rax
jne 0x180002256
inc rbx
cmp rbx, 1
jb 0x180002230
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rdi
ret

Function at 0x180002b30
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
cmp edx, 1
jne 0x180002c58
lea rcx, [0x1800a6be0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor ebx, ebx
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x10], rbx
mov qword [rbp - 8], rbx
mov qword [rbp - 0x10], rbx
mov qword [rbp - 8], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x20], bl
lea r8d, [rbx + 0xb]
lea rdx, str.__.bbk._
lea rcx, [rbp - 0x20]
call fcn.180003ef0
nop
mov dword [rbp - 0x40], reloc.WLDAP32.dll_Ordinal_27
movdqa xmm0, xmmword [str.8_nzy_177.0_p]
movdqu xmmword [rbp - 0x3c], xmm0
mov dword [rbp - 0x2c], 0xc071218
mov dword [rbp - 0x28], 0x490f1505
mov dword [rbp - 0x24], 0x6b07060b
mov edx, ebx
mov eax, edx
lea rcx, [rbp - 0x3c]
add rcx, rax
lea eax, [rdx + 0x50]
xor byte [rcx], al
inc edx
mov eax, dword [rbp - 0x40]
cmp edx, eax
jb 0x180002bb0
mov byte [rbp + rax - 0x3c], 0
lea r8, [rbp - 0x20]
lea rdx, [rbp - 0x50]
call fcn.1800068a0
mov rcx, qword [rax]
add rcx, 0x40
lea rax, [rbp - 0x3c]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180002bf0
lea rdx, [rbp - 0x3c]
call fcn.180003ef0
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x180002c3b
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180002c36
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180002c6b
call fcn.1800505dc
mov qword [rbp - 0x10], rbx
mov qword [rbp - 8], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x20], 0
lea rcx, [0x1800a6be0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, 1
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rbp
ret
call fcn.18005724c
int3
Function at 0x1800052b0
Capabilities:
Reference http user-agent string

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x1800a40f0]
xor rax, rsp
mov qword [rbp + 0x47], rax
lea rax, [rbp - 0x29]
mov qword [rbp + 0x17], rax
lea rax, [rbp - 9]
mov qword [rbp + 0x1f], rax
xor ebx, ebx
mov qword [rbp - 0x29], rbx
mov qword [rbp - 0x19], rbx
mov qword [rbp - 0x11], reloc.WS2_32.dll_ntohs
lea r8d, [rbx + 0x77]
lea rdx, str.Mozilla_5.0__Macintosh__Intel_Mac_OS_X_10_9_3__AppleWebKit_537.75.14__KHTML__like_Gecko__Version_7.0.3_Safari_7046A194A
lea rcx, [rbp - 0x29]
call fcn.180003ef0
nop
mov qword [rbp - 9], rbx
mov qword [rbp + 7], rbx
mov qword [rbp + reloc.WS2_32.dll_ntohs], 0xf
lea r8d, [rbx + 0x15]
lea rdx, str.https:__www.baidu.com
lea rcx, [rbp - 9]
call fcn.180003ef0
nop
lea r8, [rbp - 0x29]
lea rdx, [rbp - 9]
lea rcx, [rbp + 0x27]
call fcn.1800024f0
nop
lea r8, [rbp + 0x27]
cmp qword [rbp + 0x3f], 0x10
cmovae r8, qword [rbp + 0x27]
mov edx, dword [rbp + 0x37]
lea rcx, str._d__s
call fcn.1800033d0
nop
mov rdx, qword [rbp + 0x3f]
cmp rdx, 0x10
jb 0x180005393
inc rdx
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000538e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800053c0
call fcn.1800505dc
mov qword [rbp + 0x37], rbx
mov qword [rbp + 0x3f], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x27], 0
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.180050590
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rbp
ret
call fcn.18005724c
int3

Function at 0x180006f20
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x180006f54
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x180006f40
ret
Function at 0x1800169e0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
lea rax, [rcx + rdx]
mov rbp, rax
mov rbx, rcx
sub rbp, rcx
mov esi, 0x1505
cmp rcx, rax
cmova rbp, rdi
test rbp, rbp
je 0x180016633
movzx ecx, byte [rbx]
call fcn.180022860
imul rsi, rsi, 0x21
movsx rcx, al
lea rbx, [rbx + 1]
xor rsi, rcx
inc rdi
cmp rdi, rbp
jb 0x180016614
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
movzx eax, sil
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x180016a16
call fcn.180016d60
test al, al
jne 0x180016a16
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.180016cb0
mov rdx, qword [rsp + 0x30]
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x1800165e0
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x18001fa00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x730], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x18001fa5e
mov dl, 1
call fcn.180012cf0
mov rax, qword [rdi + 0x688]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x730]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.180012cf0
mov eax, ebx
jmp 0x18001faa0
cmp ebx, 2
ja 0x18001fa9e
mov r9, qword [rdi + 0x680]
lea rdx, [0x180081af8]
lea rcx, [rbx + rbx*2]
add rcx, rdx
mov edx, 2
lea r8d, [rdx - 1]
call fcn.18005ac48
mov r9, qword [rdi + 0x680]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call fcn.18005ac48
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x18001fd70
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 0x18001fdab
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 0x18001fee0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0xb0
mov rax, qword [0x1800a40f0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r14, qword [rsp + 0x100]
mov rsi, r9
movsxd rax, edx
mov rdi, r8
mov r15, rcx
mov rbx, qword [rcx + rax*8 + 0x250]
call fcn.1800204f0
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
mov dword [r14], 0
cmp rdi, 0xffffffffffffffff
jne 0x18001ff92
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x18001ff5e
mov dword [r14], 0x51
xor eax, eax
jmp 0x18001ff95
mov r8d, Ordinal_133
lea rdx, [rsp + 0x20]
mov ecx, ebx
call fcn.1800452b0
mov rcx, qword [r15]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.18001fac0
mov rcx, qword [r15]
mov dword [rcx + 0x1100], ebx
mov dword [r14], gethostname
mov rax, rdi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.180050590
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800204f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
movsxd rcx, edx
mov rax, rcx
shl rax, 5
lea rbx, [rsi + 0x298]
add rbx, rax
mov rax, qword [rsi + 0x3c0]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x7c], 3
je 0x1800205ea
lea rax, [0x18001fe00]
cmp qword [rsi + rcx*8 + 0x278], rax
jne 0x1800205ea
cmp qword [rbx], 0
je 0x180020553
test rdi, rdi
je 0x1800205ea
mov rdx, 0xffffffffffffffff
mov qword [rsp + 0x30], rbp
mov rbp, qword [rsi + rcx*8 + 0x250]
xor r9d, r9d
mov rcx, rbp
mov r8, rdx
call fcn.18001f630
cmp eax, 0xffffffff
je 0x1800205e5
test al, 1
je 0x1800205e5
mov rax, qword [rbx]
test rax, rax
jne 0x1800205ba
mov rax, qword [rsi]
mov ecx, dword [rax + 0xb70]
add ecx, ecx
movsxd rcx, ecx
mov qword [rbx + 8], rcx
call qword [section..data]
mov rdi, qword [rbx + 8]
mov qword [rbx], rax
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
test rax, rax
je 0x1800205dd
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rax
mov r8d, edi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x1800205e5
add qword [rbx + 0x10], rcx
jmp 0x1800205e5
mov qword [rbx + 8], 0
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
sub rsp, 0x28
test byte [rcx + 0x2e0], 1
jne 0x18002072a
mov rcx, qword [rcx + 0x250]
cmp rcx, 0xffffffffffffffff
je 0x18002072a
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x18002072a
mov al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret
Function at 0x1800211f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x1c0
mov rax, qword [0x1800a40f0]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
cmp dword [rcx + 0xbc], 2
mov rdi, rdx
mov rbx, rcx
je 0x180021425
mov eax, dword [rcx + 0x39c]
mov qword [rsp + 0x1e0], rsi
test al, 2
jne 0x180021415
bt eax, 0x1b
jb 0x180021415
mov rsi, qword [rcx]
lea r8, [rsp + 0x20]
mov rcx, rdi
mov dword [rsp + 0x20], Ordinal_133
lea rdx, [rsp + 0xb0]
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x18002129e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, Ordinal_133
lea rdx, [rsp + 0x130]
mov ecx, eax
mov ebx, eax
call fcn.1800452b0
mov r9, rax
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.18001fac0
jmp 0x18002141d
xorps xmm0, xmm0
mov dword [rsp + 0x20], Ordinal_133
lea r8, [rsp + 0x20]
mov rcx, rdi
lea rdx, [rsp + 0x30]
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 0x180021328
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, Ordinal_133
lea rdx, [rsp + 0x130]
mov ecx, eax
mov ebx, eax
call fcn.1800452b0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.18001fac0
jmp 0x18002141d
lea rdi, [rbx + 0x18e]
mov rdx, rdi
lea r8, [rbx + 0x1bc]
lea rcx, [rsp + 0xb0]
call fcn.180021970
test al, al
jne 0x180021388
call fcn.180060a98
mov ebx, dword [rax]
call fcn.180060a98
mov r8d, Ordinal_133
lea rdx, [rsp + 0x130]
mov ecx, ebx
mov rdi, rax
call fcn.1800452b0
mov r8d, dword [rdi]
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.18001fac0
jmp 0x18002141d
movups xmm0, xmmword [rdi]
mov eax, dword [rdi + 0x28]
lea r8, [rbx + 0x1f0]
movups xmm1, xmmword [rdi + 0x10]
lea rdx, [rbx + 0x1c0]
movups xmmword [rbx + 0x88], xmm0
lea rcx, [rsp + 0x30]
movsd xmm0, qword [rdi + 0x20]
movups xmmword [rbx + 0x98], xmm1
movsd qword [rbx + 0xa8], xmm0
mov dword [rbx + 0xb0], eax
movzx eax, word [rdi + 0x2c]
mov word [rbx + 0xb4], ax
call fcn.180021970
test al, al
jne 0x180021415
call fcn.180060a98
mov ebx, dword [rax]
call fcn.180060a98
mov r8d, Ordinal_133
lea rdx, [rsp + 0x130]
mov ecx, ebx
mov rdi, rax
call fcn.1800452b0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.18001fac0
jmp 0x18002141d
mov rcx, rbx
call fcn.180020e20
mov rsi, qword [rsp + 0x1e0]
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.180050590
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1c0
pop rdi
ret
Function at 0x180021d20
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1800a40f0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov eax, dword [rcx + 0xe8c]
lea r9, [rsp + 0x50]
mov rdi, rdx
shr eax, 0xb
and eax, 1
mov dword [rsp + 0x20], 4
mov rbx, rcx
mov dword [rsp + 0x50], eax
mov edx, 0xffff
mov r8d, 8
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x180021d8b
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov rcx, rbx
call fcn.18001fbd0
jmp 0x180021e1a
mov ecx, dword [rbx + 0xe14]
mov dword [rsp + 0x58], 1
call fcn.1800220d0
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0xe18]
call fcn.1800220d0
imul ecx, eax, 0x3e8
lea r8, [rsp + 0x58]
lea rax, [rsp + 0x54]
mov edx, 0x98000004
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x60], ecx
xor ecx, ecx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
lea r9d, [rcx + 0xc]
mov qword [rsp + 0x20], rcx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x180021e1a
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.18001fbd0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180050590
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret

Function at 0x180021e40
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x1800a40f0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx]
lea r9, [rsp + 0x30]
mov rax, rdx
mov dword [rsp + 0x30], 1
mov edx, 6
mov dword [rsp + 0x20], 4
mov rcx, rax
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x180021eb8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, Ordinal_133
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.1800452b0
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
call fcn.18001fbd0
jmp 0x180021ec7
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.18001fbd0
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.180050590
add rsp, 0xd0
pop rbx
ret

Function at 0x180022090
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.180022120
mov r8d, eax
mov rdx, rbx
mov ecx, edi
call fcn.180069220
mov rbx, qword [rsp + 0x30]
cdqe
add rsp, 0x20
pop rdi
ret
Function at 0x1800226e0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1800a40f0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
test cl, 2
je 0x180022746
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x180022729
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x180022723
shr ax, 8
cmp al, 2
je 0x180022746
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.180050590
add rsp, 0x1d8
ret
lea rcx, str.iphlpapi.dll
call fcn.1800223e0
mov qword [0x1800a52d8], rax
test rax, rax
je 0x180022783
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800a52d0]
test rax, rax
cmovne rcx, rax
mov qword [0x1800a52d0], rcx
xor edx, edx
lea r9d, [rdx + 3]
lea r8d, [rdx + 2]
lea ecx, [rdx + 6]
call fcn.180022580
test al, al
je 0x1800227af
lea rcx, [0x1800a6c48]
mov byte [0x1800a6c40], 1
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
jmp 0x1800227b6
mov byte [0x1800a6c40], 0
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.180050590
add rsp, 0x1d8
ret
Function at 0x18002f9b0
Capabilities:
Resolve dns

Disassembly:
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
mov esi, r13d
lea r9, [rsp + 0x68]
mov r15d, r13d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x18002fb4e
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x18002fb33
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov eax, dword [rdi + 4]
cmp eax, 2
jne 0x18002fa0d
lea ebp, [rax + 0xe]
jmp 0x18002fa19
cmp eax, 0x17
jne 0x18002fac1
lea ebp, [rax + 5]
cmp qword [rdi + 0x20], r13
je 0x18002fac1
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x18002fac1
cmp rax, rbp
jb 0x18002fac1
mov ecx, 0x30
call qword [section..data]
mov rbx, rax
test rax, rax
je 0x18002fafc
mov eax, dword [rdi]
mov rcx, rbp
mov dword [rbx], eax
mov eax, dword [rdi + 4]
mov dword [rbx + 4], eax
mov eax, dword [rdi + 8]
mov dword [rbx + 8], eax
mov eax, dword [rdi + 0xc]
mov dword [rbx + 0xc], eax
mov dword [rbx + 0x10], ebp
mov qword [rbx + 0x20], r13
mov qword [rbx + 0x18], r13
mov qword [rbx + 0x28], r13
call qword [section..data]
mov qword [rbx + 0x20], rax
test rax, rax
je 0x18002faeb
mov rdx, qword [rdi + 0x20]
mov r8, rbp
mov rcx, rax
call fcn.180052ac0
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x18002faae
call qword [fcn.180057950]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x18002fad0
test rsi, rsi
cmove rsi, rbx
test r15, r15
je 0x18002fabe
mov qword [r15 + 0x28], rbx
mov r15, rbx
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x18002fa00
jmp 0x18002fb02
mov rcx, qword [rbx + 0x20]
mov r14d, 8
call qword [fcn.1800572c4]
mov rcx, rbx
call qword [fcn.1800572c4]
jmp 0x18002fb02
mov rcx, rbx
mov r14d, 8
call qword [fcn.1800572c4]
jmp 0x18002fb02
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
test rcx, rcx
je 0x18002fb1c
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x18002fb2e
mov rcx, rsi
call fcn.18002f960
mov rsi, r13
jmp 0x18002fb42
test rsi, rsi
jne 0x18002fb42
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r14d
mov qword [r12], rsi
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x180035ad0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1800a40f0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbp, qword [rcx + 0x258]
lea r8, [rsp + 0x20]
mov rsi, qword [rcx]
lea rdx, [rsp + 0x30]
mov rdi, rcx
mov dword [rsp + 0x20], Ordinal_133
mov rcx, rbp
mov rbx, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x180035b4a
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_133
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov rdx, rbp
mov rcx, rdi
call fcn.180020600
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x180035b6f
lea rdx, str.Error_accept__ing_server_connect
call fcn.18001fac0
lea eax, [rbx + 0x1f]
jmp 0x180035beb
lea rdx, str.Connection_accepted_from_server_n
call fcn.18001fbd0
and dword [rdi + 0x39c], 0xfffff7ff
mov edx, 1
mov rcx, rbx
mov qword [rdi + 0x258], rbx
call fcn.180045cf0
mov byte [rdi + 0x271], 1
cmp qword [rsi + 0x740], 0
je 0x180035be9
mov dl, 1
mov rcx, rsi
call fcn.180012cf0
mov rcx, qword [rsi + 0x748]
mov r8d, 1
mov rdx, rbx
call qword [rsi + 0x740]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call fcn.180012cf0
test ebx, ebx
je 0x180035be9
mov rcx, rdi
call fcn.1800360c0
mov eax, Ordinal_46
jmp 0x180035beb
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.180050590
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x180036cb0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rcx + 0x59a], 0
mov rbx, rcx
jne 0x180036d5a
xor edx, edx
mov dword [rcx + 0x5bc], edx
mov rax, qword [rcx]
mov ecx, edx
cmp dword [rax + 0xbac], 2
sete cl
mov dword [rbx + 0x5c0], ecx
mov rax, qword [rbx]
cmp dword [rax + 0xba0], 2
jne 0x180036cf7
cmp dword [rbx + 0x59c], edx
je 0x180036d57
test byte [rbx + 0x39c], 2
je 0x180036d14
mov r8, qword [rbx + 0x578]
test r8, r8
je 0x180036d14
mov dword [rbx + 0x59c], edx
jmp 0x180036d30
cmp dword [rbx + 0x588], edx
je 0x180036d57
mov r8, qword [rbx + 0x580]
mov dword [rbx + 0x59c], 1
mov r8, qword [r8]
lea rdx, str.CWD__s
lea rcx, [rbx + 0x508]
call fcn.18004a990
test eax, eax
jne 0x180036d64
lea edx, [rax + 0x10]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1800360b0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.180037140
add rsp, 0x20
pop rbx
ret

Function at 0x180037140
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
add rcx, 0x508
test dword [rax + 0xe88], 0x200
jne 0x180037168
cmp dword [rax + 0xa08], 0
je 0x180037194
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x180037194
lea rdx, str.MDTM__s
call fcn.18004a990
test eax, eax
jne 0x1800371a1
lea edx, [rax + 0x12]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1800360b0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1800381e0
add rsp, 0x20
pop rbx
ret
Function at 0x180037900
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, qword [rcx]
lea eax, [rdx - 0xc8]
mov rdi, rcx
cmp eax, 0x64
jb 0x180037985
mov qword [rsp + 0x30], rbx
mov ebx, dword [rcx + 0x5b8]
test ebx, ebx
jne 0x180037943
lea rdx, str.disabling_EPRT_usage_n
mov rcx, rsi
call fcn.18001fbd0
and dword [rdi + 0x39c], 0xfffbffff
inc ebx
cmp ebx, 2
jne 0x18003796c
lea rdx, str.Failed_to_do_PORT
mov rcx, rsi
call fcn.18001fac0
lea eax, [rbx + 0x1c]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1800385b0
lea rdx, str.Connect_data_stream_actively_n
mov rcx, rsi
call fcn.18001fbd0
xor edx, edx
mov rcx, rdi
call fcn.1800360b0
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.180036220