joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400802e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, rdx
mov rbx, rcx
mov r8d, dword [0x140a3d900]
mov rax, qword gs:[0x58]
mov rdi, qword [rax + r8*8]
mov eax, 0x13a8
lea r13, [0x140a26950]
mov eax, dword [rax + rdi]
cmp dword [0x140a37e30], eax
jg 0x1400804eb
mov r14d, 0x1398
mov eax, dword [r14 + rdi]
mov r12d, reloc.WS2_32.dll_recv
test al, 1
jne 0x14008039d
or eax, 1
mov dword [r14 + rdi], eax
call fcn.14021fac4
mov r9d, r12d
add r9, rdi
mov dword [r9 + 0x1384], 0xffffffff
mov dword [r9 + 4], eax
mov edx, 1
lea r8, [r9 + 8]
nop
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [r8], eax
inc rdx
lea r8, [r8 + 4]
cmp rdx, 0x270
jb 0x140080370
mov dword [r9], 0x270
mov eax, dword [r14 + rdi]
mov r15d, 0x13a0
xor edx, edx
test al, 2
jne 0x1400803c1
or eax, 2
mov dword [r14 + rdi], eax
mov dword [r15 + rdi], edx
mov eax, dword [0x140a26960]
dec eax
mov dword [r15 + rdi + 4], eax
mov qword [rbx], rdx
mov qword [rbx + 0x10], rdx
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], dl
mov edx, reloc.WLDAP32.dll_Ordinal_32
test rsi, rsi
cmovne rdx, rsi
xor r8d, r8d
mov rcx, rbx
call fcn.1400717f0
cmp qword [rbx + 0x18], 0x10
jb 0x1400803fb
mov rcx, qword [rbx]
mov rdx, rcx
mov rsi, rcx
jmp 0x140080404
mov rsi, rbx
mov rdx, rbx
mov rcx, rbx
mov rbp, qword [rbx + 0x10]
add rbp, rdx
cmp rcx, rbp
je 0x1400804c8
mov r14d, r15d
add r14, rdi
mov r15d, r12d
add r15, rdi
mov r12d, 0x80000000
nop word [rax + rax]
mov edx, dword [r14 + 4]
mov ecx, dword [r14]
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
mov dword [rsp + 0x30], 0xffffffff
lea eax, [rcx - 0x80000000]
lea edi, [rcx + r12]
cmp ecx, r12d
cmovae edi, eax
lea eax, [rdx - 0x80000000]
lea ecx, [rdx + r12]
cmp edx, r12d
cmovae ecx, eax
sub ecx, edi
cmp ecx, 0xffffffff
jne 0x140080480
lea rcx, [rsp + 0x20]
call fcn.14006ccf0
jmp 0x14008048d
lea edx, [rcx + 1]
lea rcx, [rsp + 0x20]
call fcn.1400681b0
lea ecx, [rdi + rax]
lea eax, [rcx - 0x80000000]
lea edx, [rcx + r12]
cmp ecx, r12d
cmovae edx, eax
mov rcx, r13
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rcx, qword [0x140a26950]
movsxd rax, edx
movzx ecx, byte [rax + rcx]
mov byte [rsi], cl
inc rsi
cmp rsi, rbp
jne 0x140080430
mov rax, rbx
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rcx, [0x140a37e30]
call fcn.140220ce0
cmp dword [0x140a37e30], 0xffffffff
jne 0x140080331
mov r8d, Ordinal_35
lea rdx, str.0123456789abcdefghjklmnoprstuvqyzA
mov rcx, r13
call fcn.140071690
lea rcx, [0x140261ce0]
call fcn.1402208a4
nop
lea rcx, [0x140a37e30]
call fcn.140220c80
jmp 0x140080331
Function at 0x1400806c0
Capabilities:
Create process on windows
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140a2bf88]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ebx, ecx
mov dword [rsp + 0x28], 0
xor ecx, ecx
mov qword [rsp + 0x20], 0
lea r9, str._c_reg_add_HKLMSOFTWAREKNOXUI__f
lea r8, [0x1402665bc]
lea rdx, [0x140266064]
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], 0
mov r9d, 0x2001f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREKnoxUI
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp ebx, 1
jne 0x140080792
lea rcx, [0x140a2fae0]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140080750
inc eax
lea rdx, [0x1402665d0]
mov dword [rsp + 0x28], eax
mov r9d, 1
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140220610
add rsp, 0x50
pop rbx
ret
cmp ebx, 2
jne 0x1400807cd
lea rax, [rsp + 0x38]
mov dword [rsp + 0x38], Ordinal_32
lea rcx, [0x140a2fae0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rdx, [0x1402665d0]
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140220610
add rsp, 0x50
pop rbx
ret
Function at 0x140080ad0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140a2bf88]
xor rax, rsp
mov qword [rbp - 8], rax
mov rsi, rdx
mov rbx, rcx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x38], rdx
call fcn.1400a3970
mov r14, rax
xor edi, edi
test rax, rax
jne 0x140080b46
mov qword [rbx], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], dil
lea r8d, [rax + 4]
lea rdx, str.null
mov rcx, rbx
call fcn.140071690
nop
mov rcx, rsi
call fcn.140066b00
jmp 0x140080cc6
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x10], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x28], dil
movdqa xmm0, xmmword [0x140268450]
movdqu xmmword [rbp - 0x60], xmm0
mov dword [rbp - 0x50], 0xf3b5b3ae
mov dword [rbp - 0x4c], 0xcfb6aebc
mov dword [rbp - 0x48], 0xcbd3ccd0
mov word [rbp - 0x44], 0x100
mov rcx, rdi
nop word [rax + rax]
lea eax, [rcx - 0x37]
xor byte [rbp + rcx - 0x60], al
inc rcx
cmp rcx, 0x1c
jb 0x140080b90
mov byte [rbp - 0x43], 0
lea r8, [rbp - 0x60]
mov edx, 0x2712
mov rcx, r14
call fcn.1400a6710
xor r8d, r8d
lea edx, [r8 + 0x40]
mov rcx, r14
call fcn.1400a6710
xor r8d, r8d
lea edx, [r8 + 0x51]
mov rcx, r14
call fcn.1400a6710
mov r8, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140080be0
mov r8, qword [rsi]
mov edx, 0x271f
mov rcx, r14
call fcn.1400a6710
lea r8, [0x140084780]
mov edx, 0x4e2b
mov rcx, r14
call fcn.1400a6710
lea r8, [rbp - 0x28]
mov edx, 0x2711
mov rcx, r14
call fcn.1400a6710
mov rcx, r14
call fcn.1400a3a40
test eax, eax
je 0x140080c39
mov ecx, eax
call fcn.1400a3040
mov rdx, rax
mov r9d, reloc.WS2_32.dll_recv
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, r14
call fcn.1400a3920
mov dword [rbp - 0x30], edi
lea r8, [rbp - 0x30]
mov edx, 0x200002
mov rcx, r14
call fcn.1400a3940
cmp dword [rbp - 0x30], 0x1ad
je 0x140080ced
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rbx + 0x10], xmm1
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x10], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x28], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x140080cb7
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140080cb2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140080d06
mov rcx, r8
call fcn.140220548
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rsi], 0
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140220610
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
lea rdx, str.Youre_connecting_too_fast_to_loader__slow_down.
lea rcx, [rbp - 0x60]
call fcn.140063fd0
mov rcx, rax
call fcn.140078a30
nop
call fcn.140233360
int3
Function at 0x1400847b0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1400847d2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14008484c
mov rdi, r14
mov rcx, rbx
call fcn.140070580
test rax, rax
jle 0x140084824
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.1402219e0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14008483c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x140084844
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1400847e6
sub r14, rdi
jmp 0x140084939
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140084863
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140084865
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14008489a
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1402219e0
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140084936
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x1400848d5
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140084911
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140238e18
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x14008494f
cmp rbp, rax
ja 0x1400848e1
mov r8, rdi
test rdi, rdi
je 0x140084936
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140238e18
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x140084939
Function at 0x1400add10
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov rax, qword [0x140a2bf88]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r13, qword [rcx]
mov ebp, r8d
mov rsi, rcx
lea r8, [rsp + 0x20]
mov ebx, 2
xor r14d, r14d
mov ecx, ebx
mov r15, r9
mov r12, qword [r13 + 0x11b0]
mov rdi, rdx
mov dword [r9], r14d
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1400add7c
mov r9d, ebp
lea rdx, [rsp + 0x20]
mov r8, rdi
mov ecx, ebx
call fcn.1400cbf20
jmp 0x1400ade5a
mov ebx, reloc.WS2_32.dll_socket
lea r8, [rsp + 0x58]
mov ecx, ebx
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1400addac
mov r9d, ebp
lea rdx, [rsp + 0x58]
mov r8, rdi
mov ecx, ebx
call fcn.1400cbf20
jmp 0x1400ade5a
mov ecx, dword [rsi + 0x440]
sub ecx, 1
je 0x1400addd0
cmp ecx, 1
je 0x1400addbf
mov ebx, r14d
call fcn.1400ae840
test al, al
mov eax, 2
cmove ebx, eax
jmp 0x1400addd5
mov ebx, 2
cmp dword [rsi + 0xbc], 3
lea r8, [0x14026d114]
xorps xmm0, xmm0
lea rcx, [rsp + 0x68]
movups xmmword [rsp + 0x28], xmm0
setne r14b
mov dword [rsp + 0x2c], ebx
inc r14d
mov r9d, ebp
mov edx, recv
mov dword [rsp + 0x30], r14d
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
call fcn.1400a6910
lea rcx, [rsp + 0x58]
call fcn.1400adba0
lea r9, [rsp + 0x28]
mov r8d, ebp
mov rdx, rdi
mov rcx, rsi
movups xmm0, xmmword [rax]
movups xmmword [r12], xmm0
call fcn.1400ae4a0
test al, al
je 0x1400ade49
mov dword [r15], 1
jmp 0x1400ade58
lea rdx, str.getaddrinfo___thread_failed_to_start_n
mov rcx, r13
call fcn.1400ba6a0
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140220610
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
jmp 0x1400add10
Function at 0x1400ba5e0
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 + 0x718], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x1400ba63e
mov dl, 1
call fcn.1400a89f0
mov rax, qword [rdi + 0x670]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.1400a89f0
mov eax, ebx
jmp 0x1400ba680
cmp ebx, 2
ja 0x1400ba67e
mov r9, qword [rdi + 0x668]
lea rdx, [0x14026e3d0]
lea rcx, [rbx + rbx*2]
add rcx, rdx
mov edx, 2
lea r8d, [rdx - 1]
call fcn.140239380
mov r9, qword [rdi + 0x668]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call fcn.140239380
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 0x1400ba6a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x160
mov rax, qword [0x140a2bf88]
xor rax, rsp
mov qword [rsp + 0x140], rax
add dword [rax], eax
add byte [rax + 0xea6b9], al
add byte [rax], al
mov rdi, rcx
jne 0x1400ba6e3
cmp qword [rcx + 0x678], 0
je 0x1400ba7c0
mov r8, rdx
mov qword [rsp + 0x158], rbx
mov edx, 0x100
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.1400a6a20
lea rax, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400ba711
mov rcx, qword [rdi + 0x678]
test rcx, rcx
je 0x1400ba758
cmp byte [rdi + 0x1528], 0
jne 0x1400ba758
lea rdx, [rsp + 0x30]
nop dword [rax]
nop dword [rax + rax]
test byte [rax], al
add byte [rax], al
add byte [rax], al
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400ba740
mov byte [rdi + 0x1528], 1
cmp byte [rdi + 0xea6], 0
je 0x1400ba7b8
mov byte [rsp + rbx + 0x30], 0xa
inc rbx
cmp rbx, 0x102
jae 0x1400ba811
cmp qword [rdi + 0x718], 0
mov byte [rsp + rbx + 0x30], 0
je 0x1400ba7d9
mov dl, 1
mov rcx, rdi
call fcn.1400a89f0
mov rax, qword [rdi + 0x670]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
call fcn.1400a89f0
mov rbx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140220610
add rsp, 0x160
pop rdi
ret
mov r9, qword [rdi + 0x668]
lea rcx, [0x14026e3d0]
mov edx, 2
lea r8d, [rdx - 1]
call fcn.140239380
mov r9, qword [rdi + 0x668]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call fcn.140239380
jmp 0x1400ba7b8
call fcn.1402209c4
int3
Function at 0x1400ba820
Capabilities:
Write file on windows

Disassembly:
test rcx, rcx
je 0x1400ba984
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rdi
sub rsp, 0x860
mov rax, qword [0x140a2bf88]
xor rax, rsp
mov qword [rsp + 0x840], rax
cmp byte [rcx + 0xea6], 0
mov rdi, rcx
je 0x1400ba96c
mov r8, rdx
mov qword [r11 - 0x10], rbx
mov edx, 0x801
lea r9, [r11 + 0x18]
lea rcx, [rsp + 0x30]
call fcn.1400a6a20
movsxd rcx, eax
mov rbx, 0xffffffffffffffff
cmp rcx, 0x801
jb 0x1400ba8e1
mov rcx, qword [rsp + 0x878]
mov rax, rbx
nop word [rax + rax]
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x1400ba8a0
cmp byte [rax + rcx - 1], 0xa
jne 0x1400ba8c8
lea r8, str...._n
mov edx, 5
lea rcx, [rsp + 0x82c]
jmp 0x1400ba8dc
lea r8, [0x14026e454]
mov edx, 4
lea rcx, [rsp + 0x82d]
call fcn.1400a6910
lea rax, [rsp + 0x30]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400ba8e6
cmp qword [rdi + 0x718], 0
je 0x1400ba92e
mov dl, 1
mov rcx, rdi
call fcn.1400a89f0
mov rax, qword [rdi + 0x670]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
call fcn.1400a89f0
jmp 0x1400ba964
mov r9, qword [rdi + 0x668]
lea rcx, [0x14026e3d0]
mov edx, 2
lea r8d, [rdx - 1]
call fcn.140239380
mov r9, qword [rdi + 0x668]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call fcn.140239380
mov rbx, qword [rsp + 0x858]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.140220610
add rsp, 0x860
pop rdi
ret
Function at 0x1400bd0b0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.140249ff0
cdqe
add rsp, 0x28
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp byte [0x140a391b0], 0
mov esi, r8d
mov rdi, qword [rsp + 0x68]
je 0x1400be02f
test rdi, rdi
je 0x1400be02f
mov eax, dword [0x140a391b4]
test eax, eax
jne 0x1400be027
mov r8d, dword [rsp + 0x60]
lea rsi, str.recv
mov r9, rsi
lea rcx, str.LIMIT__s:_d__s_reached_memlimit_n
mov rdx, rdi
call fcn.1400bdcd0
mov ecx, 2
call fcn.14022f7d8
mov r9d, dword [rsp + 0x60]
lea rdx, str.LIMIT__s:_d__s_reached_memlimit_n
mov rcx, rax
mov qword [rsp + 0x20], rsi
mov r8, rdi
call fcn.1400a68e0
mov rcx, qword [0x140a391a8]
call fcn.140238874
call fcn.1402336bc
mov dword [rax], recv
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
dec eax
mov dword [0x140a391b4], eax
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test rdi, rdi
je 0x1400be057
mov r8d, dword [rsp + 0x60]
lea rcx, str.RECV__s:_d_recv__lu____ld_n
mov r9d, esi
mov dword [rsp + 0x20], eax
mov rdx, rdi
call fcn.1400bdcd0
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp byte [0x140a391b0], 0
mov esi, r8d
mov rdi, qword [rsp + 0x68]
je 0x1400be17f
test rdi, rdi
je 0x1400be17f
mov eax, dword [0x140a391b4]
test eax, eax
jne 0x1400be177
mov r8d, dword [rsp + 0x60]
lea rsi, str.send
mov r9, rsi
lea rcx, str.LIMIT__s:_d__s_reached_memlimit_n
mov rdx, rdi
call fcn.1400bdcd0
mov ecx, 2
call fcn.14022f7d8
mov r9d, dword [rsp + 0x60]
lea rdx, str.LIMIT__s:_d__s_reached_memlimit_n
mov rcx, rax
mov qword [rsp + 0x20], rsi
mov r8, rdi
call fcn.1400a68e0
mov rcx, qword [0x140a391a8]
call fcn.140238874
call fcn.1402336bc
mov dword [rax], recv
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
dec eax
mov dword [0x140a391b4], eax
call qword [sym.imp.WS2_32.dll_send]
mov ebx, eax
test rdi, rdi
je 0x1400be1a7
mov r8d, dword [rsp + 0x60]
lea rcx, str.SEND__s:_d_send__lu____ld_n
mov r9d, esi
mov dword [rsp + 0x20], eax
mov rdx, rdi
call fcn.1400bdcd0
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400cc2a0
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov rax, qword [0x140a2bf88]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r13, qword [rcx]
mov ebp, r8d
mov rsi, rcx
lea r8, [rsp + 0x20]
mov ebx, 2
xor r14d, r14d
mov ecx, ebx
mov r15, r9
mov r12, qword [r13 + 0x11b0]
mov rdi, rdx
mov dword [r9], r14d
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1400add7c
mov r9d, ebp
lea rdx, [rsp + 0x20]
mov r8, rdi
mov ecx, ebx
call fcn.1400cbf20
jmp 0x1400ade5a
mov ebx, reloc.WS2_32.dll_socket
lea r8, [rsp + 0x58]
mov ecx, ebx
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1400addac
mov r9d, ebp
lea rdx, [rsp + 0x58]
mov r8, rdi
mov ecx, ebx
call fcn.1400cbf20
jmp 0x1400ade5a
mov ecx, dword [rsi + 0x440]
sub ecx, 1
je 0x1400addd0
cmp ecx, 1
je 0x1400addbf
mov ebx, r14d
call fcn.1400ae840
test al, al
mov eax, 2
cmove ebx, eax
jmp 0x1400addd5
mov ebx, 2
cmp dword [rsi + 0xbc], 3
lea r8, [0x14026d114]
xorps xmm0, xmm0
lea rcx, [rsp + 0x68]
movups xmmword [rsp + 0x28], xmm0
setne r14b
mov dword [rsp + 0x2c], ebx
inc r14d
mov r9d, ebp
mov edx, recv
mov dword [rsp + 0x30], r14d
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
call fcn.1400a6910
lea rcx, [rsp + 0x58]
call fcn.1400adba0
lea r9, [rsp + 0x28]
mov r8d, ebp
mov rdx, rdi
mov rcx, rsi
movups xmm0, xmmword [rax]
movups xmmword [r12], xmm0
call fcn.1400ae4a0
test al, al
je 0x1400ade49
mov dword [r15], 1
jmp 0x1400ade58
lea rdx, str.getaddrinfo___thread_failed_to_start_n
mov rcx, r13
call fcn.1400ba6a0
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140220610
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
jmp 0x1400add10
Function at 0x1400d00e0
Capabilities:
Encode data using xor

Disassembly:
push r14
push r15
sub rsp, 0x1f8
mov rax, qword [0x140a2bf88]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
cmp byte [0x140a39470], 0
mov r14, rcx
jne 0x1400d0119
call fcn.140108fc0
test eax, eax
je 0x1400d0137
mov byte [0x140a39470], 1
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140220610
add rsp, 0x1f8
pop r15
pop r14
ret
mov rcx, qword [r14 + 0xcf8]
test rcx, rcx
je 0x1400d0156
mov edx, 0x400
call fcn.14010a060
call fcn.140108fc0
test eax, eax
jne 0x1400d0119
mov qword [rsp + 0x218], rbx
xor r15d, r15d
mov qword [rsp + 0x220], rbp
mov qword [rsp + 0x228], rsi
mov qword [rsp + 0x1f0], rdi
movaps xmmword [rsp + 0x1e0], xmm6
movaps xmmword [rsp + 0x1d0], xmm7
movsd xmm7, qword [0x140273de8]
nop dword [rax]
nop word [rax + rax]
mov rsi, r15
lea rbp, [rsp + 0x80]
nop dword [rax + rax]
lea rcx, [rsp + 0x30]
call fcn.1400adba0
mov ecx, 1
movups xmm6, xmmword [rax]
movups xmmword [rsp + 0x20], xmm6
call fcn.1400ba590
lea rcx, [rsp + 0x40]
lea rdi, [rsi + 3]
call fcn.1400adba0
lea rcx, [rsp + 0x50]
movsxd rbx, dword [rax + 8]
call fcn.1400adba0
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.1400adba0
lea rcx, [rsp + 0x70]
mov rbx, rax
call fcn.1400adba0
mov ecx, dword [rbx + 8]
lea rbp, [rbp + 0x10]
add ecx, dword [rax]
lea eax, [rsi + 4]
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]
movups xmmword [rbp - 0x10], xmm0
cmp rsi, 4
jb 0x1400d01b0
movaps xmm2, xmm7
lea rcx, [rsp + 0x80]
mov edx, 0x40
call fcn.140108cf0
call fcn.140108fc0
test eax, eax
je 0x1400d01a0
mov edx, 0x100
mov byte [rsp + 0xc0], r15b
lea rcx, [rsp + 0xc0]
call fcn.140109df0
movaps xmm7, xmmword [rsp + 0x1d0]
movaps xmm6, xmmword [rsp + 0x1e0]
mov rdi, qword [rsp + 0x1f0]
mov rsi, qword [rsp + 0x228]
mov rbp, qword [rsp + 0x220]
mov rbx, qword [rsp + 0x218]
cmp byte [rsp + 0xc0], r15b
je 0x1400d02ed
mov edx, 0x400
lea rcx, [rsp + 0xc0]
call fcn.14010a060
call fcn.140108fc0
test eax, eax
jne 0x1400d0119
lea rdx, str.libcurl_is_now_using_a_weak_random_seed__n
mov rcx, r14
call fcn.1400ba820
call fcn.140108fc0
test eax, eax
mov ecx, reloc.WLDAP32.dll_Ordinal_35
cmovne ecx, r15d
mov eax, ecx
jmp 0x1400d011b