joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14018d8c0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x1403f80a0]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rcx
and qword [rcx], 0
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14018d953
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x20], 8
mov r9d, 1
xor r8d, r8d
lea rdx, str.Crypto_RNG
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14018d953
mov dword [rsp + 0x20], Ordinal_46
lea r9d, [rax + 1]
xor r8d, r8d
lea rdx, str.Crypto_RNG
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14018d977
mov rax, rbx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1401304f0
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.CryptAcquireContext
lea rcx, [rsp + 0x30]
call fcn.1400d7cf0
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14018da10
lea rdx, [0x1403f4910]
lea rcx, [rsp + 0x50]
call fcn.140132900
int3

Function at 0x14019c0f0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x1d0
mov rax, qword [0x1403f80a0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov eax, dword [0x140408a9c]
mov esi, 1
mov r8d, eax
mov ebx, ecx
add eax, esi
mov dword [0x140408a9c], eax
test r8d, r8d
je 0x14019c133
xor eax, eax
jmp 0x14019c1bb
test dl, dl
je 0x14019c17d
lea rax, [fcn.14013ec80]
mov qword [fcn.14013ec80], rax
lea rax, [fcn.14013ec60]
mov qword [fcn.14013ec60], rax
lea rax, [0x140149440]
mov qword [0x1403f8e60], rax
lea rax, [0x140307dd0]
mov qword [0x1403f8e68], rax
lea rax, [fcn.140142bd0]
mov qword [fcn.140142bd0], rax
call fcn.1401a7500
test eax, eax
je 0x14019c1b6
test bl, 2
je 0x14019c1dc
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14019c1b6
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x14019c1b0
shr ax, 8
cmp al, 2
je 0x14019c1dc
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1401304f0
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1d0
pop rsi
ret
call fcn.1400d3100
test eax, eax
jne 0x14019c1b6
call fcn.1401a45b0
mov eax, dword [0x140408bcc]
test bl, 4
mov dword [0x140408aa0], ebx
cmovne eax, esi
mov dword [0x140408bcc], eax
call fcn.1401afa50
jmp 0x14019c12c
Function at 0x1401a2900
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1401a29a1
call fcn.1401a2c40
test al, al
jne 0x1401a29a1
xor esi, esi
or rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x1401a292a
mov r8, rdi
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rbx
call fcn.1401bb190
test rax, rax
je 0x1401a296f
sub rax, rbx
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov r8, rax
mov rcx, rbx
call fcn.1401bb190
mov rsi, rax
test rax, rax
je 0x1401a296f
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rdi + rbx]
mov edi, 0x1505
jmp 0x1401a2996
mov cl, byte [rbx]
call fcn.1401afb70
imul rdi, rdi, 0x21
movsx rcx, al
xor rdi, rcx
inc rbx
cmp rbx, rsi
jb 0x1401a2981
movzx eax, dil
jmp 0x1401a29a3
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1401ad5e0
Capabilities:
Write file on windows

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, 0x30
xor ebx, ebx
movsxd rsi, edx
mov rbp, r9
mov r14, r8
mov rdi, rcx
cmp qword [rcx + 0x750], rbx
je 0x1401ad642
mov dl, 1
call fcn.14019ee50
mov rax, qword [rdi + 0x6a0]
mov r9, rbp
mov r8, r14
mov qword [rsp + 0x20], rax
mov edx, esi
mov rcx, rdi
call qword [rdi + 0x750]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.14019ee50
jmp 0x1401ad68d
mov ecx, esi
test edx, edx
je 0x1401ad652
sub ecx, 1
je 0x1401ad652
cmp ecx, 1
jne 0x1401ad68d
mov r9, qword [rdi + 0x698]
lea rax, [0x14033a098]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call fcn.140146210
mov r9, qword [rdi + 0x698]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call fcn.140146210
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x1401ad8f0
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]
cmp eax, 0xffffffff
jne 0x1401ad921
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 0x1401ad925
mov dword [rbx], eax
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1401adad0
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 rbx, rcx
mov r14, r9
movsxd rcx, edx
mov r15, r8
mov rdi, rcx
shl rdi, 5
mov rax, qword [rbx + 0x408]
mov rbp, qword [rbx + rcx*8 + 0x240]
mov rsi, qword [rdi + rbx + 0x290]
sub rsi, qword [rdi + rbx + 0x298]
test byte [rax + 0x7c], 3
je 0x1401adbf3
lea rax, [0x1401ad970]
cmp qword [rbx + rcx*8 + 0x268], rax
jne 0x1401adbf3
cmp qword [rdi + rbx + 0x288], 0
je 0x1401adb4d
test rsi, rsi
je 0x1401adbf3
or r8, 0xffffffffffffffff
xor r9d, r9d
or rdx, r8
mov rcx, rbp
call fcn.1401ad200
cmp eax, 0xffffffff
je 0x1401adbf3
test al, 1
je 0x1401adbf3
mov rax, qword [rdi + rbx + 0x288]
test rax, rax
jne 0x1401adbc0
mov rax, qword [rbx]
mov ecx, dword [rax + 0xba0]
add ecx, ecx
movsxd rcx, ecx
mov qword [rdi + rbx + 0x290], rcx
call qword [fcn.14013ec80]
and qword [rdi + rbx + 0x298], 0
and qword [rdi + rbx + 0x2a0], 0
mov rsi, qword [rdi + rbx + 0x290]
mov qword [rdi + rbx + 0x288], rax
test rax, rax
je 0x1401adbea
mov rdx, qword [rdi + rbx + 0x298]
xor r9d, r9d
add rdx, rax
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1401adbf3
cdqe
add qword [rdi + rbx + 0x298], rax
jmp 0x1401adbf3
and qword [rdi + rbx + 0x290], 0
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]
mov edi, eax
and dword [r14], 0
cmp eax, 0xffffffff
jne 0x1401adc5b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp eax, 0x2733
jne 0x1401adc2f
xor edi, edi
mov dword [r14], 0x51
jmp 0x1401adc5b
mov edx, esi
mov rcx, rbx
call fcn.1401d4100
mov rcx, qword [rbx]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.1401ad6b0
mov rax, qword [rbx]
mov dword [rax + 0x11ac], esi
mov dword [r14], gethostname
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x1401ae930
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1403f80a0]
xor rax, rsp
mov qword [rsp + 0x40], rax
and dword [rsp + 0x30], 0
mov rbx, rcx
mov eax, dword [0x140408bd0]
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x38], 4
test eax, eax
jne 0x1401ae994
xor edx, edx
lea ecx, [rax + 6]
lea r9d, [rax + 3]
lea r8d, [rax + 2]
call fcn.1401d44e0
test al, al
je 0x1401ae989
mov dword [0x140408bd0], 2
jmp 0x1401ae9eb
mov eax, 1
mov dword [0x140408bd0], eax
cmp eax, 2
je 0x1401ae9eb
lea rax, [rsp + 0x38]
mov edx, 0xffff
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1401ae9ca
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jg 0x1401ae9eb
lea r9, [rsp + 0x34]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401304f0
add rsp, 0x50
pop rbx
ret
Function at 0x1401aeaf0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1403f80a0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r8d, 1
mov dword [rsp + 0x20], 4
mov rcx, rdx
mov dword [rsp + 0x30], r8d
lea r9, [rsp + 0x30]
lea edx, [r8 + 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401304f0
add rsp, 0x48
ret

Function at 0x1401aec50
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 [0x1403f80a0]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0xbc], 2
mov rbx, rdx
mov rbp, qword [rcx]
mov rsi, rcx
je 0x1401aee01
cmp byte [rcx + 0x3c2], 0
jne 0x1401aedf9
cmp byte [rcx + 0x3de], 0
jne 0x1401aedf9
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 0x1401aecf0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rsi
mov ebx, eax
call fcn.1401d4100
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rbp
call fcn.1401ad6b0
jmp 0x1401aee01
mov r8, rdi
mov dword [rsp + 0x20], edi
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140133080
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1401aed35
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rsi
mov ebx, eax
call fcn.1401d4100
lea rdx, str.getsockname___failed_with_errno__d:__s
jmp 0x1401aecdd
lea rbx, [rsi + 0x18e]
mov rdx, rbx
lea r8, [rsi + 0x1bc]
lea rcx, [rsp + 0xb0]
call fcn.1401ae380
test al, al
jne 0x1401aed7f
call fcn.140147f00
mov ebx, dword [rax]
call fcn.140147f00
mov edx, ebx
mov rcx, rsi
mov rdi, rax
call fcn.1401d4100
mov r8d, dword [rdi]
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x1401aece0
movups xmm0, xmmword [rbx]
mov eax, dword [rbx + 0x28]
lea r8, [rsi + 0x1f0]
movups xmm1, xmmword [rbx + 0x10]
lea rdx, [rsi + 0x1c0]
movups xmmword [rsi + 0x88], xmm0
lea rcx, [rsp + 0x30]
movsd xmm0, qword [rbx + 0x20]
movups xmmword [rsi + 0x98], xmm1
movsd qword [rsi + 0xa8], xmm0
mov dword [rsi + 0xb0], eax
movzx eax, word [rbx + 0x2c]
mov word [rsi + 0xb4], ax
call fcn.1401ae380
test al, al
jne 0x1401aedf9
call fcn.140147f00
mov ebx, dword [rax]
call fcn.140147f00
mov edx, ebx
mov rcx, rsi
mov rdi, rax
call fcn.1401d4100
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x1401aece0
mov rcx, rsi
call fcn.1401ae840
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1401304f0
mov rbx, qword [rsp + 0x170]
add rsp, 0x140
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401af260
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 [0x1403f80a0]
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.1401aea00
mov ebx, eax
test eax, eax
jne 0x1401af4b9
lea r8, [rsp + 0x24]
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x50]
call fcn.1401ae380
mov r14, qword [rsp + 0x28]
test al, al
jne 0x1401af301
call fcn.140147f00
mov ebx, dword [rax]
call fcn.140147f00
mov edx, ebx
mov rcx, r15
mov rdi, rax
call fcn.1401d4100
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, r13
call fcn.1401ad6b0
jmp 0x1401af399
cmp dword [rsp + 0x40], 2
je 0x1401af30f
cmp dword [rsp + 0x40], 0x17
jne 0x1401af32f
cmp dword [rsp + 0x44], 1
jne 0x1401af32f
mov dil, 1
cmp byte [r13 + 0xc16], sil
je 0x1401af332
mov rdx, r14
mov rcx, r15
call fcn.1401aeaf0
jmp 0x1401af332
mov dil, sil
mov rcx, r14
call fcn.1401ae930
test dil, dil
je 0x1401af353
cmp byte [r13 + 0xe6c], sil
je 0x1401af353
mov rdx, r14
mov rcx, r13
call fcn.1401af4f0
cmp qword [r13 + 0x760], rsi
je 0x1401af3ab
mov dl, 1
mov rcx, r13
call fcn.14019ee50
mov rcx, qword [r13 + 0x768]
xor r8d, r8d
mov rdx, r14
call qword [r13 + 0x760]
xor edx, edx
mov rcx, r13
mov edi, eax
call fcn.14019ee50
cmp edi, 2
jne 0x1401af390
mov dil, 1
jmp 0x1401af3ae
test edi, edi
je 0x1401af3ab
mov esi, Ordinal_46
mov rdx, r14
mov rcx, r15
call fcn.1401ae0a0
mov eax, esi
jmp 0x1401af4bb
mov dil, sil
cmp dword [rsp + 0x40], 2
je 0x1401af3bc
cmp dword [rsp + 0x40], 0x17
jne 0x1401af3fc
lea rcx, [rsp + 0x50]
call fcn.1401d42b0
mov r8d, dword [rsp + 0x40]
mov r9d, eax
mov rdx, r14
mov rcx, r15
call fcn.1401aee30
mov ebx, eax
test eax, eax
je 0x1401af3fc
mov rdx, r14
mov rcx, r15
call fcn.1401ae0a0
cmp ebx, 1
mov eax, 7
cmove ebx, eax
mov eax, ebx
jmp 0x1401af4bb
mov edx, 1
mov rcx, r14
call fcn.1401d4340
lea rcx, [rsp + 0x28]
call fcn.1401b01d0
cmp dword [r15 + 0x3f8], 1
movups xmm0, xmmword [rax]
movdqu xmmword [r15 + 0x3e8], xmm0
jle 0x1401af43e
mov rdx, qword [r15 + 0x400]
mov r8d, 3
mov rcx, r13
call fcn.14019e650
test dil, dil
jne 0x1401af4b5
cmp dword [r15 + 0xbc], 1
jne 0x1401af4b5
cmp byte [r15 + 0x3de], sil
jne 0x1401af474
mov r8d, dword [rsp + 0x4c]
lea rdx, [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1401af474
test ebx, ebx
jne 0x1401af3f5
jmp 0x1401af4ac
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
sub edx, 0xb
je 0x1401af4aa
sub edx, 0x2728
je 0x1401af4aa
cmp edx, 1
je 0x1401af4aa
mov rdx, r14
mov dword [r13 + 0x11ac], eax
mov rcx, r15
call fcn.1401ae0a0
mov ebx, 7
jmp 0x1401af3f5
mov ebx, esi
mov qword [r12], r14
jmp 0x1401af3f5
mov qword [r12], r14
xor eax, eax
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1401304f0
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 0x1401af4f0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1403f80a0]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor eax, eax
mov dword [rsp + 0x20], 4
cmp byte [rcx + 0xe6c], 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
js 0x1401af5ba
mov ecx, dword [rbx + 0xe70]
mov dword [rsp + 0x58], 1
call fcn.1401af780
mov ecx, dword [rbx + 0xe74]
imul edx, eax, 0x3e8
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x5c], edx
call fcn.1401af780
and qword [rsp + 0x40], 0
lea r8, [rsp + 0x58]
and qword [rsp + 0x38], 0
mov r9d, recv
imul edx, eax, 0x3e8
mov rcx, rdi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x60], edx
mov edx, 0x98000004
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401304f0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret
Function at 0x1401bb540
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x1403f80a0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov r12, r9
xor ebp, ebp
and qword [r9], rbp
xor r15d, r15d
lea r9, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebx, eax
test eax, eax
jne 0x1401bb6c2
mov rsi, qword [rsp + 0x20]
test rsi, rsi
je 0x1401bb6af
cmp dword [rsi + 4], 2
jne 0x1401bb59a
mov r14d, reloc.WS2_32.dll_recv
jmp 0x1401bb5aa
cmp dword [rsi + 4], 0x17
jne 0x1401bb656
mov r14d, Ordinal_32
cmp qword [rsi + 0x20], 0
je 0x1401bb656
cmp qword [rsi + 0x10], 0
jbe 0x1401bb656
cmp qword [rsi + 0x10], r14
jb 0x1401bb656
mov ecx, Ordinal_50
call qword [fcn.14013ec80]
mov rdi, rax
test rax, rax
je 0x1401bb685
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 rcx, r14
mov dword [rax + 0x10], r14d
call qword [fcn.14013ec80]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x1401bb67e
mov rdx, qword [rsi + 0x20]
mov r8, r14
mov rcx, rax
call fcn.1401329d0
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1401bb643
call qword [0x1403f8e68]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x1401bb664
test rbp, rbp
cmove rbp, rdi
test r15, r15
je 0x1401bb653
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
je 0x1401bb68a
jmp 0x1401bb58c
mov rcx, qword [rdi + 0x20]
mov ebx, 8
call qword [fcn.14013ec60]
mov rcx, rdi
call qword [fcn.14013ec60]
jmp 0x1401bb68a
mov ebx, 8
jmp 0x1401bb673
mov ebx, 8
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1401bb69a
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x1401bb6aa
mov rcx, rbp
call fcn.1401bb4f0
xor ebp, ebp
jmp 0x1401bb6bc
test rbp, rbp
jne 0x1401bb6bc
mov ebx, 0x2af9
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov qword [r12], rbp
mov eax, ebx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401304f0
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401bd7d0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0xf8]
sub rsp, 0x1e0
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x1403f80a0]
xor rax, rsp
mov qword [rbp + 0xc0], rax
xor r15d, r15d
mov rbx, rcx
cmp byte [0x140408d38], r15b
jne 0x1401bd826
call fcn.1401f4320
test eax, eax
je 0x1401bd859
mov byte [0x140408d38], 1
xor eax, eax
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.1401304f0
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, qword [rbx + 0xd58]
test rcx, rcx
je 0x1401bd878
mov edx, 0x400
call fcn.1401f5340
call fcn.1401f4320
test eax, eax
jne 0x1401bd826
mov rsi, r15
lea r14, [rbp - 0x80]
lea rcx, [rsp + 0x30]
call fcn.1401b01d0
mov ecx, 1
movups xmm6, xmmword [rax]
movups xmmword [rsp + 0x20], xmm6
call fcn.1401ad590
lea rcx, [rsp + 0x40]
lea rdi, [rsi + 3]
call fcn.1401b01d0
lea rcx, [rsp + 0x50]
movsxd rbx, dword [rax + 8]
call fcn.1401b01d0
mov rdx, rbx
lea rcx, [rdi - 2]
add rdx, qword [rax]
movq rax, xmm6
imul rdx, rdi
imul rcx, rax
shl rdx, 8
xor rdx, rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rdx
call fcn.1401b01d0
lea rcx, [rsp + 0x70]
mov rbx, rax
call fcn.1401b01d0
mov ecx, dword [rax]
lea eax, [rsi + 4]
add ecx, dword [rbx + 8]
imul ecx, eax
lea eax, [rsi + 2]
imul eax, dword [rsp + 0x28]
inc rsi
shl ecx, 0x10
xor ecx, eax
mov dword [rsp + 0x28], ecx
movups xmm0, xmmword [rsp + 0x20]
movdqu xmmword [r14], xmm0
lea r14, [r14 + 0x10]
cmp rsi, 4
jb 0x1401bd87f
movsd xmm2, qword [0x14033cd90]
lea rcx, [rbp - 0x80]
mov edx, 0x40
call fcn.1401f4050
call fcn.1401f4320
test eax, eax
je 0x1401bd878
mov edx, 0x100
mov byte [rbp - 0x40], r15b
lea rcx, [rbp - 0x40]
call fcn.1401f50d0
cmp byte [rbp - 0x40], r15b
je 0x1401bd97e
mov edx, 0x400
lea rcx, [rbp - 0x40]
call fcn.1401f5340
call fcn.1401f4320
test eax, eax
jne 0x1401bd826
call fcn.1401f4320
test eax, eax
mov ecx, reloc.WLDAP32.dll_Ordinal_35
cmovne ecx, r15d
mov eax, ecx
jmp 0x1401bd828

Function at 0x1401c14e0
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x1403f80a0]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.1401618e0
xor ebx, ebx
mov byte [rsp + 0x20], bl
test rax, rax
je 0x1401c1533
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], bl
je 0x1401c1533
lea rcx, [rsp + 0x20]
call qword [0x1403f8e68]
mov rbx, rax
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1401304f0
add rsp, 0x140
pop rbx
ret

Function at 0x1401d4340
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1403f80a0]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor eax, eax
lea r8, [rsp + 0x20]
test edx, edx
mov edx, 0x8004667e
setne al
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401304f0
add rsp, 0x38
ret
Function at 0x140201a90
Capabilities:
Set thread local storage value

Disassembly:
mov eax, Ordinal_41
call fcn.140130e70
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x14022c3e0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, Ordinal_41
call fcn.140130e70
sub rsp, rax
lea rcx, [0x14040be80]
add rsp, 0x28
jmp fcn.1402018f0

Function at 0x14024d7d0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
mov eax, Ordinal_50
call fcn.140130e70
sub rsp, rax
xor esi, esi
lea edx, [rax - 0x2f]
mov ebx, esi
mov rdi, rcx
call fcn.1401f4c90
mov rdx, rax
mov rcx, rdi
mov rbp, rax
call fcn.1401f4b00
mov r14, rax
test rax, rax
je 0x14024d87a
lea r9d, [rsi + 1]
mov dword [rsp + 0x20], 0xf0000040
xor r8d, r8d
lea rcx, [rsp + 0x58]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14024d853
mov rcx, qword [rsp + 0x58]
mov r8, r14
mov edx, ebp
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x58]
test eax, eax
cmovne rbx, rbp
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r8, [rbx*8]
mov rdx, rbx
mov rcx, rdi
call fcn.1401f4b90
mov rcx, rdi
call fcn.1401f4d90
mov rbx, rax
test rax, rax
jne 0x14024d916
mov edx, 1
mov rcx, rdi
call fcn.1401f4c90
mov rdx, rax
mov rcx, rdi
mov rbp, rax
call fcn.1401f4b00
mov r14, rax
test rax, rax
je 0x14024d904
mov r9d, reloc.WS2_32.dll_shutdown
mov dword [rsp + 0x20], 0xf0000040
lea r8, str.Intel_Hardware_Cryptographic_Service_Provider
xor edx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14024d8e6
mov rcx, qword [rsp + 0x58]
mov r8, r14
mov edx, ebp
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x58]
test eax, eax
cmovne rsi, rbp
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r8, [rsi*8]
mov rdx, rsi
mov rcx, rdi
call fcn.1401f4b90
mov rcx, rdi
call fcn.1401f4d90
mov rbx, rax
test rbx, rbx
je 0x14024d90e
mov rax, rbx
jmp 0x14024d916
mov rcx, rdi
call fcn.1401f4d90
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140257c30
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword [0x1403f80a0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ecx, dword [rcx + 0x20]
mov r14, rdx
add rcx, 0x18
mov ebp, r8d
lea edx, [rax + rax]
add rcx, rdx
call qword [fcn.14013ec80]
xor esi, esi
mov rdi, rax
test rax, rax
je 0x140257d40
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140257cb9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + htons]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
test rbp, rbp
je 0x140257d35
mov rsi, rbp
mov al, byte [r14]
lea rdx, [rsp + 0x20]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x20], al
mov rcx, qword [rdi + 8]
call qword [rbx + htons]
mov al, byte [r14]
lea rdx, [rsp + 0x20]
xor al, 0x5c
mov r8d, 1
mov byte [rsp + 0x20], al
inc r14
mov rcx, qword [rdi + 0x10]
call qword [rbx + htons]
sub rbp, 1
jne 0x140257cc9
jmp 0x140257d35
mov rcx, qword [rdi + 8]
lea rdx, [0x14036be90]
mov r8d, 1
call qword [rbx + htons]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14036be91]
mov r8d, 1
call qword [rbx + htons]
inc rsi
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jb 0x140257d0a
mov rax, rdi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401304f0
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret