joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001d430
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov rdi, qword [rcx]
mov r14, rcx
call fcn.14001aad0
test rdi, rdi
jne 0x14001d479
lea ebx, [rdi + 0x16]
call qword [sym.imp.MSVCR120.dll__errno]
mov dword [rax], ebx
or eax, 0xffffffff
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
lea rcx, [rdi + 8]
call fcn.14001a0a0
mov ebx, eax
test eax, eax
jne 0x14001d458
cmp qword [r14], 0
lea rcx, [rdi + 8]
jne 0x14001d4a4
call fcn.14001a680
call qword [sym.imp.MSVCR120.dll__errno]
mov ebx, reloc.WLDAP32.dll_Ordinal_22
jmp 0x14001d45e
dec dword [rdi]
mov ebx, dword [rdi]
call fcn.14001a680
test ebx, ebx
jns 0x14001d52d
mov rsi, qword [0x140074a20]
lea rax, [0x14001c5c0]
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rdi
test rsi, rsi
jne 0x14001d4d7
xor ebp, ebp
jmp 0x14001d4f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [0x140074a20]
lea rdx, [rsp + 0x20]
mov rcx, rsi
mov qword [rsp + 0x30], rbp
call fcn.14001a910
mov rcx, qword [rdi + 0x10]
or edx, 0xffffffff
call fcn.14001b740
mov ecx, eax
mov ebx, eax
call fcn.14001c180
mov rbp, qword [rsp + 0x50]
test ebx, ebx
jne 0x14001d458
xor eax, eax
jmp 0x14001d463

Function at 0x14001d970
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x140072100]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14001d9d1
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x14001d9cb
shr ax, 8
cmp al, 2
jne 0x14001d9cb
call fcn.140022150
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140058040
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.140058040
add rsp, 0x1d8
ret

Function at 0x140022fa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp dword [rcx + 4], 2
mov rax, rdx
je 0x140022fac
xor eax, eax
ret
mov rdx, qword [rcx + 0x20]
mov r9, r8
mov r8, rax
add rdx, 4
mov ecx, 2
jmp fcn.140039470

Function at 0x140023f60
Capabilities:
Generate random numbers via winapi

Disassembly:
mov rcx, rdx
mov rdx, r8
jmp 0x140039630
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
lea rcx, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14003968c
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x50]
xor edx, edx
test eax, eax
jne 0x14003969c
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x14002b8b0
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 0x14002b8eb
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 0x14002b9c0
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 rbx, qword [rcx + rax*8 + 0x1d0]
mov r14, rcx
call fcn.14002bd80
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 0x14002ba58
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x14002ba2d
mov dword [rsi], 0x51
xor eax, eax
jmp 0x14002ba5b
mov edx, eax
mov rcx, r14
call fcn.140038a90
mov rcx, qword [r14]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.14002b5e0
mov rcx, qword [r14]
mov dword [rcx + 0x8844], 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 0x14002bd80
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 + 0x218]
mov rsi, qword [rcx + r8*8 + 0x1d0]
mov rax, r8
shl rax, 5
add rbx, rax
mov rax, qword [rcx + 0x3e8]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x74], 3
je 0x14002be63
lea rax, [0x14002b900]
cmp qword [rcx + r8*8 + 0x1f8], rax
jne 0x14002be63
cmp qword [rbx], 0
je 0x14002bde4
test rdi, rdi
je 0x14002be63
or r8, 0xffffffffffffffff
xor r9d, r9d
mov rcx, rsi
or rdx, r8
call fcn.14002af10
cmp eax, 0xffffffff
je 0x14002be63
test al, 1
je 0x14002be63
cmp qword [rbx], 0
jne 0x14002be42
mov ecx, 0x8000
mov qword [rbx + 8], 0x8000
call qword [0x140072040]
mov rdi, qword [rbx + 8]
xor ecx, ecx
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], rcx
mov qword [rbx], rax
test rax, rax
jne 0x14002be42
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
mov r8d, edi
add rdx, qword [rbx + 0x10]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x14002be63
add qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14002be80
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 0x14002bec3
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 0x14002bf08
mov r9, qword [rbx + 0x1a0]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x14005b070]
lea r8d, [rdx - 1]
add rcx, rax
call qword [sym.imp.MSVCR120.dll_fwrite]
mov r9, qword [rbx + 0x1a0]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.MSVCR120.dll_fwrite]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x7d0]
mov rsi, rdx
mov rdi, rcx
test rbx, rbx
je 0x14002c130
mov rcx, qword [rcx + 0x80]
test rcx, rcx
jne 0x14002c0f3
cmp qword [rdi + 0x78], rcx
je 0x14002c130
mov qword [rsp + 0x20], rbx
mov byte [rsp + 0x28], 0
test rcx, rcx
jne 0x14002c106
mov rcx, qword [rdi + 0x78]
lea r8, [0x14002cf80]
lea rdx, [rsp + 0x20]
add rcx, 0xc0
call fcn.1400357b0
cmp byte [rsp + 0x28], 0
jne 0x14002c144
mov qword [rdi + 0x7d0], 0
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rsi, rsi
je 0x14002c14c
mov qword [rsi], rbx
cmp byte [rbx + 0x258], 0
mov rdi, qword [rbx + 0x1d0]
je 0x14002c16a
mov rcx, rbx
call fcn.140023820
test eax, eax
jne 0x14002c18c
jmp 0x14002c130
cmp rdi, 0xffffffffffffffff
je 0x14002c18c
mov r9d, 2
lea rdx, [rsp + 0x40]
mov rcx, rdi
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x14002c130
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x30
pop rdi
ret

Function at 0x14002c640
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x140074c18]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x14002c69d
lea r9d, [rax + 3]
lea r8d, [rax + 2]
lea ecx, [rax + 6]
xor edx, edx
call fcn.140037d10
test al, al
je 0x14002c691
mov dword [0x140074c18], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x140074c18], 1
jmp 0x14002c6a2
cmp eax, 2
je 0x14002c6f4
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14002c6d3
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x14002c6f4
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret
Function at 0x14002c7d0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [rcx]
mov rax, rdx
mov edx, 6
mov rdi, rcx
lea r9, [rsp + 0x40]
lea r8d, [rdx - 5]
mov rcx, rax
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14002c83b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
call fcn.140038a90
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
mov r8, rax
call fcn.14002b6a0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.14002b6a0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14002c940
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 [0x140072100]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0xa4], 2
mov rsi, qword [rcx]
mov rbx, rdx
mov rdi, rcx
je 0x14002cb0d
cmp byte [rcx + 0x3ba], 0
jne 0x14002cb05
cmp byte [rcx + 0x3d4], 0
jne 0x14002cb05
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0xb0]
mov rcx, rbx
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x14002c9e2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.140038a90
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.14002b5e0
jmp 0x14002cb0d
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x80
mov dword [rsp + 0x20], 0x80
call sub.MSVCR120.dll_memset
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14002ca3f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.140038a90
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.14002b5e0
jmp 0x14002cb0d
lea rbx, [rdi + 0x114]
lea r8, [rdi + 0x144]
lea rcx, [rsp + 0xb0]
mov rdx, rbx
call fcn.14002cfa0
test al, al
jne 0x14002ca8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.140038a90
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.14002b5e0
jmp 0x14002cb0d
movups xmm0, xmmword [rbx]
mov eax, dword [rbx + 0x28]
movups xmm1, xmmword [rbx + 0x10]
lea r8, [rdi + 0x178]
lea rdx, [rdi + 0x148]
lea rcx, [rsp + 0x30]
movups xmmword [rdi + 0x70], xmm0
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.14002cfa0
test al, al
jne 0x14002cb05
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.140038a90
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.14002b5e0
jmp 0x14002cb0d
mov rcx, rdi
call fcn.14002c580
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140058040
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14002d2d0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140072100]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
mov rdi, rdx
mov rbx, rcx
mov eax, esi
lea r9, [rsp + 0x50]
lea r8d, [rsi + 8]
cmp byte [rcx + 0x63c], al
mov edx, 0xffff
mov rcx, rdi
setne al
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x50], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14002d33f
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov r8, rdi
mov rcx, rbx
call fcn.14002b6a0
jmp 0x14002d3ce
mov ecx, dword [rbx + 0x640]
mov dword [rsp + 0x58], 1
call fcn.140036760
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0x644]
call fcn.140036760
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x58]
mov r9d, ntohl
mov edx, 0x98000004
imul ecx, eax, 0x3e8
lea rax, [rsp + 0x54]
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x60], ecx
mov qword [rsp + 0x30], rax
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x14002d3ce
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov r8d, edi
mov r9d, eax
mov rcx, rbx
call fcn.14002b6a0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140058040
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140036700
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
mov rcx, r8
mov rbx, rdx
call fcn.140036790
mov rdx, rbx
mov ecx, edi
mov r8d, eax
call qword [sym.imp.MSVCR120.dll__read]
mov rbx, qword [rsp + 0x30]
cdqe
add rsp, 0x20
pop rdi
ret

Function at 0x140037b70
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
lea rcx, str.kernel32
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x140037b9a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov rcx, rax
mov qword [rsp + 0x48], r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x14005cf40]
mov rcx, rbx
mov r14, rax
call qword [sym.imp.MSVCR120.dll__mbspbrk]
test rax, rax
je 0x140037bfe
mov rcx, rbx
test r14, r14
je 0x140037be8
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 0x140037c36
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140037c36
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
xor ecx, ecx
mov qword [rsp + 0x50], r15
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x140037cf9
mov qword [rsp + 0x40], rsi
or rsi, 0xffffffffffffffff
mov rdx, rsi
nop dword [rax]
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x140037c60
lea ecx, [rax + 1]
add rcx, rdx
call qword [0x140072040]
mov rdi, rax
test rax, rax
je 0x140037ceb
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x140037ceb
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x140037c90
mov ecx, 0x5c
mov word [rax + rdi], cx
cmp byte [rdi + rsi + 1], bpl
lea rsi, [rsi + 1]
jne 0x140037ca4
lea rcx, [rsi + rdi]
sub rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbx]
lea rbx, [rbx + 1]
mov byte [rcx + rbx - 1], al
test al, al
jne 0x140037cc0
mov rcx, rdi
test r14, r14
je 0x140037ce2
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x140037ce8
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [0x140072048]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov r14, qword [rsp + 0x48]
mov rax, rbp
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x140037ed0
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
lea r9, [rsp + 0x68]
mov esi, r12d
mov r14d, r12d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebp, eax
test eax, eax
jne 0x140038048
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x140038031
mov qword [rsp + 0x58], rdi
nop dword [rax]
cmp dword [rbx + 4], 2
jne 0x140037fc8
cmp qword [rbx + 0x20], r12
je 0x140037fc8
cmp qword [rbx + 0x10], 0x10
jb 0x140037fc8
mov ecx, Ordinal_50
call qword [0x140072040]
mov rdi, rax
test rax, rax
je 0x140038001
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 + reloc.WS2_32.dll_recv], 0x10
mov dword [rax + 0xc], ecx
mov ecx, reloc.WS2_32.dll_recv
mov qword [rax + 0x20], r12
mov qword [rax + 0x18], r12
mov qword [rax + 0x28], r12
call qword [0x140072040]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x140037ff1
mov rcx, qword [rbx + 0x20]
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140037fb5
call qword [case.0x140021eb7.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x140037fd7
test rsi, rsi
cmove rsi, rdi
test r14, r14
je 0x140037fc5
mov qword [r14 + 0x28], rdi
mov r14, rdi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140037f20
jmp 0x140038006
mov rcx, qword [rdi + 0x20]
mov ebp, 8
call qword [0x140072048]
mov rcx, rdi
call qword [0x140072048]
jmp 0x140038006
mov rcx, rdi
mov ebp, 8
call qword [0x140072048]
jmp 0x140038006
mov ebp, 8
mov rcx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x58]
test rcx, rcx
je 0x14003801b
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x14003802c
mov rcx, rsi
call fcn.140037e80
mov rsi, r12
jmp 0x14003803e
test rsi, rsi
jne 0x14003803e
mov ebp, 0x2af9
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rbx, qword [rsp + 0x50]
mov qword [r15], rsi
mov eax, ebp
add rsp, 0x20
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret

Function at 0x1400393d0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.MSVCR120.dll__beginthreadex]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
cmovbe rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x140039470
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x28
mov rax, r8
mov r10, rdx
cmp ecx, 2
je 0x140039491
mov ecx, 0x273f
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
ret
mov r8, r9
mov rdx, rax
mov rcx, r10
add rsp, 0x28
jmp 0x1400394b0
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140072100]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx eax, byte [rcx + 3]
movzx r10d, byte [rcx + 1]
movzx r9d, byte [rcx]
mov rbx, rdx
movzx edx, byte [rcx + 2]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], edx
mov rdi, r8
lea rcx, [rsp + 0x40]
lea r8, str._d._d._d._d
mov edx, reloc.WS2_32.dll_recv
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x20], r10d
call fcn.14002d720
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140039511
test rax, rax
je 0x140039555
cmp rax, rdi
jae 0x140039555
lea rax, [rsp + 0x40]
mov r8, rbx
lea rcx, [rsp + 0x40]
sub r8, rax
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [rcx]
lea rcx, [rcx + 1]
mov byte [r8 + rcx - 1], dl
test dl, dl
jne 0x140039540
mov rax, rbx
jmp 0x140039562
mov ecx, Ordinal_30
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140058040
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x140039630
Capabilities:
Generate random numbers via winapi

Disassembly:
mov rcx, rdx
mov rdx, r8
jmp 0x140039630
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
lea rcx, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14003968c
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x50]
xor edx, edx
test eax, eax
jne 0x14003969c
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x1400414f0
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, 0x40
mov rax, qword [0x140072100]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbp, qword [rcx + 0x1d8]
mov rsi, qword [rcx]
mov rbx, rcx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov rcx, rbp
or rdi, 0xffffffffffffffff
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140041561
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov rcx, rbp
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_accept]
mov rdi, rax
mov rdx, rbp
mov rcx, rbx
call fcn.14002bf20
mov rcx, rsi
cmp rdi, 0xffffffffffffffff
jne 0x140041586
lea rdx, str.Error_accept__ing_server_connect
call fcn.14002b5e0
lea eax, [rdi + 0x1f]
jmp 0x1400415e7
lea rdx, str.Connection_accepted_from_server_n
call fcn.14002b6a0
mov byte [rbx + 0x3c3], 0
mov edx, 1
mov rcx, rdi
mov qword [rbx + 0x1d8], rdi
call fcn.14004f230
mov byte [rbx + 0x1f1], 1
mov rax, qword [rsi + 0x268]
test rax, rax
je 0x1400415e5
mov rcx, qword [rsi + 0x270]
mov r8d, 1
mov rdx, rdi
call rax
test eax, eax
je 0x1400415e5
mov rcx, rbx
call fcn.140041ab0
mov eax, Ordinal_46
jmp 0x1400415e7
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140058040
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x718
cmp byte [rcx + 0x8a], 0
jne 0x1400428bd
xor r9d, r9d
mov dword [rcx + 0xa0], r9d
mov rax, qword [rbx]
mov edx, r9d
cmp dword [rax + 0x42c], 2
sete dl
mov dword [rcx + 0xa4], edx
cmp byte [rbx + 0x3ba], r9b
je 0x140042886
mov r8, qword [rcx + 0x68]
test r8, r8
je 0x140042886
lea rdx, str.CWD__s
mov dword [rcx + 0x9c], r9d
call fcn.140052240
test eax, eax
jne 0x1400428ca
lea edx, [rax + 0x10]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140041aa0
cmp dword [rcx + 0x78], r9d
je 0x1400428bd
mov r8, qword [rcx + 0x70]
mov dword [rcx + 0x9c], 1
lea rdx, str.CWD__s
mov r8, qword [r8]
call fcn.140052240
test eax, eax
jne 0x1400428ca
lea edx, [rax + 0x10]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140041aa0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140042c80
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
add rcx, 0x718
cmp byte [rax + 0x441], 0
jne 0x140042ca5
cmp dword [rax + 0x370], 0
je 0x140042cd1
mov r8, qword [rcx + 0x80]
test r8, r8
je 0x140042cd1
lea rdx, str.MDTM__s
call fcn.140052240
test eax, eax
jne 0x140042cde
lea edx, [rax + 0x12]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140041aa0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140043c50
add rsp, 0x20
pop rbx
ret