joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400041a4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rbx, rcx
and dword [rbp - 0x40], 0
mov dword [rbp - 0x2c], 0x2f2f3a73
mov dword [rbp - 0x30], 0x70747468
mov dword [rbp - 0x24], 0x6e657478
mov dword [rbp - 0x13], 0x68702e6b
mov word [rbp - 0x1b], 0x6f63
mov dword [rbp - 0x18], 0x6162662f
mov word [rbp - 0xe], 0x3f
mov dword [rbp - 0x28], 0x656f7373
mov dword [rbp - 0x20], 0x6e6f6973
mov byte [rbp - 0x19], WSASetLastError
mov byte [rbp - 0x1c], reloc.WLDAP32.dll_Ordinal_46
mov byte [rbp - 0xf], reloc.WS2_32.dll_WSASetLastError
mov byte [rbp - 0x14], 0x63
lea rdx, [rbp - 0x30]
call fcn.1400109fc
mov dword [rbp - 0x40], 1
lea r8, [0x1400bcf54]
lea rdx, str.version_s
mov rcx, rbx
call fcn.140010514
lea rcx, str.guid_s
call fcn.140051300
mov r8d, eax
lea rdx, str.guid_s
mov rcx, rbx
call fcn.14000a930
lea rcx, str.var_s
call fcn.140051300
mov r8d, eax
lea rdx, str.var_s
mov rcx, rbx
call fcn.14000a930
lea rcx, str.value_d
call fcn.140051300
mov r8d, eax
lea rdx, str.value_d
mov rcx, rbx
call fcn.14000a930
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
lea rdx, str.time_d
mov rcx, rbx
call fcn.140010514
mov rax, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rbp
ret

Function at 0x1400118e8
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x58
xor r9d, r9d
cmp byte [rcx + 8], r9b
je 0x14001191b
cmp dword [rcx + 0x3d0], r9d
jle 0x140011916
sub r8, rdx
mov al, byte [r8 + rdx]
inc r9d
xor byte [rdx], al
inc rdx
cmp r9d, dword [rcx + 0x3d0]
jl 0x140011901
add rsp, 0x58
ret
lea rax, vtable.std::exception.0
mov byte [rsp + 0x28], 1
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x38]
xor eax, eax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea rax, str.Object_not_Initialized
mov qword [rsp + 0x20], rax
call fcn.14004f738
lea rdx, [0x1400d1948]
lea rcx, [rsp + 0x30]
call fcn.14004fca4
int3
Function at 0x14001236c
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rsi
push rdi
sub rsp, 0x1d0
mov rax, qword [0x1400d4130]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov eax, dword [0x1400d5db0]
mov esi, 1
mov r8d, eax
mov edi, ecx
add eax, esi
mov dword [0x1400d5db0], eax
test r8d, r8d
jne 0x140012477
test dl, dl
je 0x1400123f6
lea rax, [fcn.1400587a4]
mov qword [section..data], rax
lea rax, [fcn.140058358]
mov qword [fcn.140058358], rax
lea rax, [fcn.14005879c]
mov qword [fcn.14005879c], rax
lea rax, [0x14006bfb4]
mov qword [0x1400d4018], rax
lea rax, [fcn.140060d00]
mov qword [fcn.140060d00], rax
test sil, dil
je 0x14001240b
call fcn.140018634
test eax, eax
jne 0x14001240b
mov eax, 2
jmp 0x140012479
test dil, 2
je 0x140012450
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140012404
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x140012441
shr ax, 8
cmp al, 2
jne 0x140012441
call fcn.140016b58
test eax, eax
je 0x140012450
jmp 0x14001244c
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
test eax, eax
jne 0x140012404
call fcn.140016de4
test eax, eax
jne 0x140012404
mov eax, dword [0x1400d5e10]
test dil, 4
mov dword [0x1400d5db4], edi
cmovne eax, esi
mov dword [0x1400d5e10], eax
call fcn.140022708
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14004d240
mov rsi, qword [rsp + 0x1e0]
add rsp, 0x1d0
pop rdi
ret

Function at 0x140018884
Capabilities:
Generate random numbers via winapi

Disassembly:
mov rcx, rdx
mov rdx, r8
jmp 0x14002ecac
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov dword [rax - 0x18], 0xf0000040
mov rdi, rdx
mov qword [rax + 0x18], rbx
mov rsi, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [rax + 0x18]
lea r9d, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14002eceb
lea eax, [rbx + 2]
jmp 0x14002ed11
mov rcx, qword [rsp + 0x50]
mov r8, rsi
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x14002ed02
lea ebx, [rax + 2]
mov rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140020b34
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 0x140020b69
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
cmp eax, 0x2733
lea edx, [rcx + 0x19]
cmove ecx, edx
mov eax, ecx
jmp 0x140020b6e
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140020ccc
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
mov r14, r9
movsxd rcx, edx
mov r15, r8
mov rax, qword [rdi + 0x598]
mov rbp, qword [rdi + rcx*8 + 0x238]
lea rbx, [rcx + 0x14]
shl rbx, 5
add rbx, rdi
mov rsi, qword [rbx + 8]
sub rsi, qword [rbx + 0x10]
test byte [rax + 0x7c], 3
je 0x140020db2
lea rax, [0x140020ba4]
cmp qword [rdi + rcx*8 + 0x260], rax
jne 0x140020db2
cmp qword [rbx], 0
je 0x140020d3c
test rsi, rsi
je 0x140020db2
or r8, 0xffffffffffffffff
xor r9d, r9d
or rdx, r8
mov rcx, rbp
call fcn.140020224
cmp eax, 0xffffffff
je 0x140020db2
test al, 1
je 0x140020db2
cmp qword [rbx], 0
jne 0x140020d91
mov rax, qword [rdi]
mov ecx, dword [rax + 0x540]
add ecx, ecx
movsxd rcx, ecx
mov qword [rbx + 8], rcx
call qword [section..data]
and qword [rbx + 0x10], 0
and qword [rbx + 0x18], 0
mov rsi, qword [rbx + 8]
mov qword [rbx], rax
test rax, rax
jne 0x140020d91
and qword [rbx + 8], rax
jmp 0x140020db2
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, qword [rbx]
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x140020db2
add qword [rbx + 0x10], rcx
xor r9d, r9d
mov r8d, r14d
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
mov r14, qword [rsp + 0x60]
movsxd rsi, eax
and dword [r14], 0
cmp rsi, 0xffffffffffffffff
jne 0x140020e1c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x140020df0
xor esi, esi
mov dword [r14], 0x51
jmp 0x140020e1c
mov edx, ebx
mov rcx, rdi
call fcn.14002e090
mov rcx, qword [rdi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.140020898
mov rcx, qword [rdi]
mov dword [rcx + 0x4ac4], ebx
mov dword [r14], gethostname
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140021098
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
mov r10, qword [rcx + 0x2b8]
xor ebx, ebx
mov rsi, r9
mov rbp, r8
mov rdi, rcx
test r10, r10
je 0x1400210d5
mov rax, qword [rcx + 0x208]
mov qword [r11 - 0x18], rax
call r10
mov ebx, eax
jmp 0x140021118
cmp edx, 2
ja 0x140021118
mov r9, qword [rdi + 0x200]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x14009cd68]
add rcx, rax
lea r8d, [rdx - 1]
call fcn.14005803c
mov r9, qword [rdi + 0x200]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call fcn.14005803c
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x2c0], 0
je 0x14002120e
call fcn.140018070
test eax, eax
jne 0x140021232
xor al, al
jmp 0x140021234
mov rcx, qword [rcx + 0x238]
cmp rcx, 0xffffffffffffffff
je 0x14002120a
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
jmp 0x140021206
mov al, 1
add rsp, 0x28
ret

Function at 0x1400218bc
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x48], 0
mov rbx, rcx
mov eax, dword [0x1400d5e14]
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x140021911
xor edx, edx
lea ecx, [rax + 6]
lea r9d, [rax + 3]
lea r8d, [rax + 2]
call fcn.14002d384
test al, al
je 0x140021906
mov dword [0x1400d5e14], 2
jmp 0x140021968
mov eax, 1
mov dword [0x1400d5e14], eax
cmp eax, 2
je 0x140021968
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 0x140021947
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x140021968
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 0x140021a3c
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [rcx]
lea r9, [rsp + 0x40]
mov r8d, 1
mov dword [rsp + 0x20], 4
mov rax, rdx
mov dword [rsp + 0x40], r8d
mov rdi, rcx
mov rcx, rax
lea edx, [r8 + 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x140021a9c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
call fcn.14002e090
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
call fcn.140020968
jmp 0x140021aab
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.140020968
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140021bc0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x1400d4130]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0xbc], 2
mov rbx, rdx
mov rbp, qword [rcx]
mov rsi, rcx
je 0x140021d52
cmp byte [rcx + 0x552], 0
jne 0x140021d4a
cmp byte [rcx + 0x56e], 0
jne 0x140021d4a
mov edi, 0x80
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0xb0]
mov dword [rsp + 0x20], edi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x140021c60
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rsi
mov ebx, eax
call fcn.14002e090
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rbp
call fcn.140020898
jmp 0x140021d52
mov r8, rdi
mov dword [rsp + 0x20], edi
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14004e050
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140021ca5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rsi
mov ebx, eax
call fcn.14002e090
lea rdx, str.getsockname___failed_with_errno__d:__s
jmp 0x140021c4d
lea rbx, [rsi + 0x186]
mov rdx, rbx
lea r8, [rsi + 0x1b4]
lea rcx, [rsp + 0xb0]
call fcn.140022184
test al, al
jne 0x140021cf0
call fcn.140057ddc
mov rbx, rax
call fcn.140057ddc
mov edx, dword [rbx]
mov rcx, rsi
mov rdi, rax
call fcn.14002e090
mov r8d, dword [rdi]
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x140021c50
lea rcx, [rsi + 0x88]
mov r8d, reloc.WLDAP32.dll_Ordinal_46
mov rdx, rbx
call fcn.14004dc00
lea r8, [rsi + 0x1e8]
lea rdx, [rsi + 0x1b8]
lea rcx, [rsp + 0x30]
call fcn.140022184
test al, al
jne 0x140021d4a
call fcn.140057ddc
mov rbx, rax
call fcn.140057ddc
mov edx, dword [rbx]
mov rcx, rsi
mov rdi, rax
call fcn.14002e090
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x140021c50
mov rcx, rsi
call fcn.140021830
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14004d240
mov rbx, qword [rsp + 0x170]
add rsp, 0x140
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400221f4
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x1400d4130]
xor rax, rsp
mov qword [rbp], rax
mov r13, qword [rcx]
lea r9, [rsp + 0x28]
or qword [r8], 0xffffffffffffffff
mov r12, r8
lea r8, [rsp + 0x40]
mov r15, rcx
xor esi, esi
call fcn.140021970
mov ebx, eax
test eax, eax
jne 0x140022466
lea r8, [rsp + 0x24]
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x50]
call fcn.140022184
mov r14, qword [rsp + 0x28]
test al, al
jne 0x140022296
call fcn.140057ddc
mov rbx, rax
call fcn.140057ddc
mov edx, dword [rbx]
mov rcx, r15
mov rdi, rax
call fcn.14002e090
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, r13
call fcn.140020898
jmp 0x140022325
lea r8, [rbp - 0x30]
mov rcx, r13
lea rdx, str.__Trying__s..._n
call fcn.140020968
cmp dword [rsp + 0x40], 2
jne 0x1400222ba
cmp dword [rsp + 0x44], 1
mov dil, 1
je 0x1400222bd
mov dil, sil
test dil, dil
je 0x1400222d6
cmp byte [r13 + 0x5ae], sil
je 0x1400222d6
mov rdx, r14
mov rcx, r15
call fcn.140021a3c
mov rcx, r14
call fcn.1400218bc
test dil, dil
je 0x1400222f7
cmp byte [r13 + 0x7e4], sil
je 0x1400222f7
mov rdx, r14
mov rcx, r13
call fcn.140022490
mov rax, qword [r13 + 0x2c8]
test rax, rax
je 0x140022337
mov rcx, qword [r13 + 0x2d0]
xor r8d, r8d
mov rdx, r14
call rax
cmp eax, 2
jne 0x14002231c
mov dil, 1
jmp 0x14002233a
test eax, eax
je 0x140022337
mov esi, Ordinal_46
mov rdx, r14
mov rcx, r15
call fcn.140021130
mov eax, esi
jmp 0x140022468
mov dil, sil
cmp dword [rsp + 0x40], 2
jne 0x140022381
lea rcx, [rsp + 0x50]
call fcn.140042398
mov r8d, dword [rsp + 0x40]
mov r9d, eax
mov rdx, r14
mov rcx, r15
call fcn.140021d78
mov ebx, eax
test eax, eax
je 0x140022381
mov rdx, r14
mov rcx, r15
call fcn.140021130
cmp ebx, 1
mov eax, 7
cmove ebx, eax
mov eax, ebx
jmp 0x140022468
mov edx, 1
mov rcx, r14
call fcn.14004239c
lea rcx, [rsp + 0x28]
call fcn.140016c34
cmp dword [r15 + 0x588], 1
movups xmm0, xmmword [rax]
movdqu xmmword [r15 + 0x578], xmm0
jle 0x1400223c3
mov rdx, qword [r15 + 0x590]
mov r8d, 3
mov rcx, r13
call fcn.140012578
test dil, dil
jne 0x140022462
cmp dword [r15 + 0xbc], 1
jne 0x140022462
cmp byte [r15 + 0x56e], sil
jne 0x1400223fb
mov r8d, dword [rsp + 0x4c]
lea rdx, [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140022451
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0xb
je 0x14002244f
lea ecx, [rax - 0x2733]
cmp ecx, 1
jbe 0x14002244f
mov edx, eax
mov rcx, r15
call fcn.14002e090
mov r9, rax
lea r8, [rbp - 0x30]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov rcx, r13
call fcn.140020968
mov rdx, r14
mov dword [r13 + 0x4ac4], ebx
mov rcx, r15
call fcn.140021130
mov ebx, 7
jmp 0x14002237a
mov ebx, esi
test ebx, ebx
jne 0x14002237a
mov qword [r12], r14
jmp 0x14002237a
mov qword [r12], r14
xor eax, eax
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.14004d240
mov rbx, qword [rsp + 0x168]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140022490
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400d4130]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor eax, eax
mov dword [rsp + 0x20], 4
cmp byte [rcx + 0x7e4], al
lea r9, [rsp + 0x50]
mov rdi, rdx
mov rbx, rcx
setne al
mov edx, 0xffff
mov r8d, 8
mov dword [rsp + 0x50], eax
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1400224fa
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov rcx, rbx
call fcn.140020968
jmp 0x14002258d
mov ecx, dword [rbx + 0x7e8]
mov dword [rsp + 0x58], 1
call fcn.14002af28
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0x7ec]
call fcn.14002af28
and qword [rsp + 0x40], 0
lea r8, [rsp + 0x58]
and qword [rsp + 0x38], 0
mov r9d, listen
imul ecx, eax, 0x3e8
mov edx, 0x98000004
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x60], ecx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x14002258d
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.140020968
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14004d240
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret

Function at 0x14002af18
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.14006c55c
cdqe
add rsp, 0x28
ret
Function at 0x14002d230
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, rcx
xor ebx, ebx
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
je 0x14002d366
lea rdx, str.LoadLibraryExA
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x14009f0d0]
mov rcx, rbp
mov rsi, rax
call fcn.1400661b8
test rax, rax
je 0x14002d2a6
mov rcx, rbp
test rsi, rsi
je 0x14002d29e
mov r8d, 8
jmp 0x14002d2c9
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x14002d2cd
test rsi, rsi
je 0x14002d2d5
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002d2d5
mov r8d, 0x800
mov rcx, rbp
xor edx, edx
call rsi
mov rbx, rax
jmp 0x14002d363
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r14d, eax
test eax, eax
je 0x14002d363
mov rcx, rbp
call fcn.140051300
lea ecx, [r14 + 1]
add rcx, rax
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x14002d35a
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14002d35a
mov rcx, rdi
call fcn.140051300
lea rdx, [0x1400bd118]
lea rcx, [rdi + rax]
call fcn.140066100
mov rcx, rdi
call fcn.140051300
mov rdx, rbp
lea rcx, [rdi + rax]
call fcn.140066100
mov rcx, rdi
test rsi, rsi
je 0x14002d351
xor edx, edx
lea r8d, [rdx + 8]
call rsi
jmp 0x14002d357
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov rcx, rdi
call qword [fcn.140058358]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14002d524
Capabilities:
Resolve dns

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r15, r9
xor ebp, ebp
and qword [r9], rbp
xor r14d, r14d
lea r9, [rax + 0x20]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebx, eax
test eax, eax
jne 0x14002d688
mov rsi, qword [rsp + 0x58]
test rsi, rsi
je 0x14002d676
cmp dword [rsi + 4], 2
jne 0x14002d61d
cmp qword [rsi + 0x20], 0
je 0x14002d61d
cmp qword [rsi + 0x10], 0x10
jb 0x14002d61d
mov ecx, Ordinal_50
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x14002d64c
mov ecx, dword [rsi]
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
and qword [rax + 0x20], 0
and qword [rax + 0x18], 0
and qword [rax + 0x28], 0
mov dword [rax + 0xc], ecx
mov ecx, reloc.WS2_32.dll_recv
mov dword [rax + reloc.WS2_32.dll_recv], 0x10
call qword [section..data]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x14002d645
mov rdx, qword [rsi + 0x20]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rax
call fcn.14004dc00
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x14002d60a
call qword [0x1400d4018]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x14002d62b
test rbp, rbp
cmove rbp, rdi
test r14, r14
je 0x14002d61a
mov qword [r14 + 0x28], rdi
mov r14, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
je 0x14002d651
jmp 0x14002d569
mov rcx, qword [rdi + 0x20]
mov ebx, 8
call qword [fcn.140058358]
mov rcx, rdi
call qword [fcn.140058358]
jmp 0x14002d651
mov ebx, 8
jmp 0x14002d63a
mov ebx, 8
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14002d661
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x14002d671
mov rcx, rbp
call fcn.14002d4dc
xor ebp, ebp
jmp 0x14002d683
test rbp, rbp
jne 0x14002d683
mov ebx, 0x2af9
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov qword [r15], rbp
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x14002ecac
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
mov rcx, rdx
mov rdx, r8
jmp 0x14002ecac
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov dword [rax - 0x18], 0xf0000040
mov rdi, rdx
mov qword [rax + 0x18], rbx
mov rsi, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [rax + 0x18]
lea r9d, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14002eceb
lea eax, [rbx + 2]
jmp 0x14002ed11
mov rcx, qword [rsp + 0x50]
mov r8, rsi
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x14002ed02
lea ebx, [rax + 2]
mov rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140032f88
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x238]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140032fe7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140020898
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.140032878
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140033158
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1400332f6
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov rdi, qword [rbp + 0x1f8]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x14003319a
mov byte [rsi], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400331a8
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400331b6
mov byte [rax], Ordinal_33
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x58], ax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rbx]
movzx r8d, ax
mov word [rsp + 0x50], ax
cmp rcx, rbx
jae 0x1400331f0
mov byte [rcx], r15b
inc qword [rbx]
mov rdx, qword [rbx]
cmp rdx, rbx
jae 0x140033201
mov cl, byte [rsp + 0x59]
mov byte [rdx], cl
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14003320f
mov byte [rax], r8b
inc qword [rbx]
mov rcx, qword [rbx]
cmp rcx, rbx
jae 0x140033220
mov al, byte [rsp + 0x51]
mov byte [rcx], al
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14003322e
mov byte [rax], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14003323c
mov byte [rax], 0xf0
inc qword [rbx]
mov rax, qword [rbx]
lea r8, [rdi + 0x1cba]
mov r9, rax
mov qword [rdi + 0x1ec0], rax
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.140032994
mov rcx, qword [r14 + 0x238]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14003329a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140020898
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140033014
mov rcx, qword [r14 + 0x238]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400332e6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140020898
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret