joyce8/EMBER2024-capa huggingface dataset:
Function at 0x64795c90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rcx, qword [0x647b10d8]
test rcx, rcx
je 0x64795cad
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.647962a0
lea rcx, [0x647b1290]
mov edx, 0x30
call fcn.6478ed60
lea rcx, [0x6479be80]
mov rbx, rax
mov rsi, qword [rbx + 0x18]
lea rax, [0x647b17d0]
mov qword [rbx], rax
lea rax, str.ReraiseDefect
mov qword [rbx + 0x10], rax
call fcn.6478e110
test rsi, rsi
mov qword [rbx + 0x18], rax
je 0x64795d11
mov rax, qword [rsi - 0x10]
lea rdx, [rsi - 0x10]
sub rax, 8
cmp rax, 7
mov qword [rsi - 0x10], rax
ja 0x64795d11
lea rcx, [0x647ad638]
call fcn.6478c6a0
mov qword [rsp + 0x20], 0x35
lea r9, str.fatal.nim
mov rcx, rbx
lea r8, str.sysFatal
lea rdx, str.ReraiseDefect
call fcn.64795090
nop
nop dword [rax + rax]

Function at 0x64795d40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x158
cmp qword [0x647b1568], 0
mov qword [rsp + 0x170], rcx
mov qword [rsp + 0x178], rdx
mov byte [rsp + 0x3f], 1
je 0x64795e3d
mov rax, qword [0x647a6590]
lea rcx, [rsp + 0x40]
xor edx, edx
mov qword [0x647a6590], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x40], rax
call sub.msvcrt.dll__setjmp
cdqe
test rax, rax
mov qword [rsp + 0x48], rax
jne 0x64795e60
xor ebx, ebx
cmp qword [rsp + 0x170], 0
je 0x64795e12
mov rcx, qword [rsp + 0x170]
call sub.msvcrt.dll_strlen
mov edx, 0x18
mov qword [rsp + 0x28], 7
cmp rax, 6
mov rsi, rax
jbe 0x64795dda
lea rdx, [rax + 0x11]
mov qword [rsp + 0x28], rax
lea r8, [0x647ad620]
lea rcx, [0x6479a040]
call fcn.6478e1a0
lea r8, [rsi + 1]
movq xmm0, rsi
mov rdx, qword [rsp + 0x170]
lea rcx, [rax + 0x10]
movhps xmm0, qword [rsp + 0x28]
mov rbx, rax
movups xmmword [rax], xmm0
call sub.msvcrt.dll_memcpy
mov rcx, rbx
call qword [0x647b1568]
cmp qword [rsp + 0x48], 0
mov byte [rsp + 0x3f], 0
mov rax, qword [0x647a6590]
mov rax, qword [rax]
mov qword [0x647a6590], rax
jne 0x64795ed0
movzx eax, byte [rsp + 0x3f]
test al, al
jne 0x64795ee0
add rsp, 0x158
pop rbx
pop rsi
ret
mov rax, qword [0x647a6590]
mov rax, qword [rax]
mov qword [rsp + 0x48], 0
mov qword [0x647a6590], rax
mov rax, qword [0x647b10d8]
mov rbx, qword [rax + 0x28]
test rbx, rbx
je 0x64795e9b
add qword [rbx - 0x10], 8
mov rax, qword [0x647b10d8]
test rax, rax
je 0x64795ebd
mov rsi, qword [rax - 0x10]
lea rdx, [rax - 0x10]
lea rcx, [rsi - 8]
cmp rcx, 7
mov qword [rax - 0x10], rcx
ja 0x64795ebd
lea rcx, [0x647ad638]
call fcn.6478c6a0
cmp qword [rsp + 0x48], 0
mov qword [0x647b10d8], rbx
je 0x64795e3d
call fcn.64795c90
jmp 0x64795e3d
mov ecx, 2
call qword [fcn.64799d50]
mov rcx, qword [rsp + 0x170]
mov edx, 1
mov r8, qword [rsp + 0x178]
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fflush
jmp 0x64795e4a
Function at 0x647965c0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
test rdx, rdx
jle 0x64796640
mov rdi, qword [fcn.64799d50]
lea rbp, [rcx + rdx*8]
mov rbx, rcx
nop dword [rax + rax]
mov rsi, qword [rbx]
mov ecx, 1
add rbx, 8
call rdi
xor r8d, r8d
mov rcx, rax
mov rdx, rsi
call fcn.64796490
cmp rbp, rbx
jne 0x647965e0
mov ecx, 1
call rdi
mov r8d, 1
mov edx, 1
lea rcx, [0x6479b22d]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rdi
mov rcx, rax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sub.msvcrt.dll_fflush
mov rdi, qword [fcn.64799d50]
jmp 0x64796601

Function at 0x64798b90
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x647a5f44]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x64798d18
mov rax, qword [0x647a5f48]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x64798bdc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x64798c65
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x64798bc0
mov rcx, rbx
call fcn.64799830
test rax, rax
mov r12, rax
je 0x64798d4d
mov rax, qword [0x647a5f48]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.64799960
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x647a5f48]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x64798d30
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x64798c5e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x64798cc0
add dword [0x647a5f44], 1
cmp edi, 8
jae 0x64798c93
test dil, 4
jne 0x64798d04
test edi, edi
je 0x64798c88
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x64798d1f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x64798c88
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x64798cac
jmp 0x64798c88
add rsi, qword [0x647a5f48]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x64798c5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.64799eb0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x64798c88
xor esi, esi
jmp 0x64798be7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x64798c88
mov rax, qword [0x647a5f48]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.64799eb0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.64799eb0
nop
nop dword [rax]
Function at 0x647994a0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x647a6220]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x647a6200]
test rbx, rbx
je 0x647994f4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x647994eb
test rsi, rsi
je 0x647994eb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x647994d0
lea rcx, [0x647a6220]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x64799830
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6479f1d0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6479989d
mov rcx, r8
call fcn.64799710
test eax, eax
je 0x6479989d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6479989d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x64799894
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6479989f
add rax, 0x28
cmp rax, r9
jne 0x64799880
xor eax, eax
add rsp, 0x28
ret

Function at 0x64799eb0
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x647813a0]
jmp 0x64781380
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.64799d50
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.64799d50
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x64781390
Function at 0x140005660
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400056aa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400056aa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400056aa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400056aa
cmp dword [rcx + 0x84], 0xe
jbe 0x1400056aa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400056ac
xor al, al
add rsp, 0x28
ret

Function at 0x140005950
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14000598a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000598f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400059d8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140007560]
cmp byte [rcx + rax], 0
je 0x1400059d8
dec r8
sub rdx, 1
jne 0x1400059be
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140001000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
lea rcx, str._JAVA_LAUNCHER_DEBUG
call qword [sym.imp.MSVCR100.dll_getenv]
test rax, rax
je 0x140001066
lea rcx, str.Windows_original_main_args:_n
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
xor ebx, ebx
cmp dword [rax], ebx
jle 0x140001066
xor edi, edi
mov rax, qword [sym.imp.MSVCR100.dll___argv]
lea rcx, str.wwwd_args__d____s_n
mov edx, ebx
mov r8, qword [rax]
mov r8, qword [r8 + rdi]
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
inc ebx
add rdi, 8
cmp ebx, dword [rax]
jl 0x140001038
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
movsxd rdi, eax
lea ecx, [rdi + 1]
movsxd rcx, ecx
shl rcx, 3
call sub.jli.dll_JLI_MemAlloc
mov rbx, rax
call sub.jli.dll_JLI_GetStdArgs
xor r9d, r9d
xor edx, edx
test edi, edi
jle 0x1400010b2
mov r9d, edi
mov rcx, qword [rax]
add rax, 0x10
mov qword [rbx + rdx*8], rcx
inc rdx
cmp rdx, rdi
jl 0x14000109f
mov rcx, qword [str.java]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rcx, rcx
jne 0x1400010c9
mov rcx, qword [rbx]
mov rax, qword [str.java]
test rax, rax
jne 0x1400010d8
mov rax, qword [rbx]
and dword [rsp + 0x68], 0
mov byte [rsp + 0x60], 0
mov byte [rsp + 0x58], 0
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
lea rax, [0x140002250]
mov r8d, 2
lea r9, str._J_ms8m
mov qword [rsp + 0x38], rax
lea rax, [0x140002240]
mov rdx, rbx
mov qword [rsp + 0x30], rax
lea rax, str._lib_tools.jar
mov ecx, edi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r8d
call sub.jli.dll_JLI_Launch
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x1400623f0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
cmp byte [rdx + 0x4a], 0
je 0x140062413
xor eax, eax
nop dword [rax]
lea ecx, [rax - 8]
xor byte [rdx + rax], cl
inc rax
cmp rax, 0x49
jb 0x140062400
mov byte [rdx + 0x4a], 0
lea rcx, [0x140328ab0]
call fcn.140069bc0
lea rax, [0x140328ab0]
add rsp, 0x28
ret

Function at 0x140062430
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
cmp byte [rdx + 0x15], 0
je 0x140062453
xor eax, eax
nop dword [rax]
lea ecx, [rax - 8]
xor byte [rdx + rax], cl
inc rax
cmp rax, 0x14
jb 0x140062440
mov byte [rdx + 0x15], 0
lea rcx, [0x140328ab0]
call fcn.140069bc0
lea rax, [0x140328ab0]
add rsp, 0x28
ret
Function at 0x140064ee0
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 [0x140320600]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rbp - 0x38], rcx
mov qword [rbp - 0x38], rdx
xor r14d, r14d
call fcn.140095300
mov rsi, rax
xorps xmm0, xmm0
test rax, rax
jne 0x140064fba
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.14006ab80
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140064f84
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140064f7f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400650d6
mov rcx, r8
call fcn.140213320
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 - 0x10]
xor rcx, rsp
call fcn.140213300
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 - 0x30], xmm0
movdqa xmm1, xmmword [0x1402f6ee0]
movdqu xmmword [rbp - 0x20], xmm1
mov byte [rbp - 0x30], 0
movdqa xmm0, xmmword [0x1402f6f90]
movdqu xmmword [rbp - 0x60], xmm0
mov dword [rbp - 0x50], 0x2464607f
mov dword [rbp - 0x4c], 0x20677d6d
mov dword [rbp - 0x48], 0x3c223f21
mov word [rbp - 0x44], 0x100
mov rcx, r14
nop word [rax + rax]
lea eax, [rcx - 8]
xor byte [rbp + rcx - 0x60], al
inc rcx
cmp rcx, 0x1c
jb 0x140065000
mov byte [rbp - 0x43], 0
lea r8, [rbp - 0x60]
mov edx, 0x2712
mov rcx, rsi
call fcn.140099390
xor r8d, r8d
lea edx, [r8 + 0x40]
mov rcx, rsi
call fcn.140099390
xor r8d, r8d
lea edx, [r8 + 0x51]
mov rcx, rsi
call fcn.140099390
mov r8, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140065050
mov r8, qword [rbx]
mov edx, 0x271f
mov rcx, rsi
call fcn.140099390
lea r8, [0x140064eb0]
mov edx, 0x4e2b
mov rcx, rsi
call fcn.140099390
lea r8, [rbp - 0x30]
mov edx, 0x2711
mov rcx, rsi
call fcn.140099390
mov rcx, rsi
call fcn.1400953d0
test eax, eax
je 0x1400650a9
mov ecx, eax
call fcn.140096430
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, rsi
call fcn.1400952e0
movups xmm0, xmmword [rbp - 0x30]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp - 0x20]
movups xmmword [rdi + 0x10], xmm1
movdqa xmm0, xmmword [0x1402f6ee0]
movdqu xmmword [rbp - 0x20], xmm0
mov byte [rbp - 0x30], 0
jmp 0x140064f4a
call fcn.1402282d0
int3
Function at 0x140065190
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x140320600]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov dword [rsp + 0x20], 0x238
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400651e3
lea rdx, str.Error_creating_process_snapshot_n
lea rcx, [0x140328d70]
call fcn.140069bc0
jmp 0x140065243
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14006523a
nop word [rax + rax]
lea rax, [rsp + 0x4c]
mov r8, rdi
sub r8, rax
nop dword [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140065224
add rax, 2
test ecx, ecx
jne 0x140065210
mov rcx, rbx
test edx, edx
je 0x140065266
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140065200
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140213300
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
jmp 0x140065245

Function at 0x140065280
Capabilities:
Create thread
Inject thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
mov r8d, ecx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x1400652b3
lea eax, [rbx - 1]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
xor edx, edx
mov qword [rsp + 0x50], rsi
mov r9d, 0x3000
mov dword [rsp + 0x20], 4
mov r8d, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
mov r9, 0xffffffffffffffff
inc r9
cmp byte [rdi + r9], 0
jne 0x1400652e1
inc r9
mov qword [rsp + 0x20], 0
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, rbx
test eax, eax
je 0x140065355
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor r8d, r8d
mov qword [rsp + 0x30], 0
xor edx, edx
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rdi, rax
mov rcx, rbx
test rax, rax
jne 0x140065370
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x50]
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x50]
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14009f2e0
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 [0x140320600]
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 0x14009f34c
mov r9d, ebp
lea rdx, [rsp + 0x20]
mov r8, rdi
mov ecx, ebx
call fcn.1400bdfc0
jmp 0x14009f42a
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 0x14009f37c
mov r9d, ebp
lea rdx, [rsp + 0x58]
mov r8, rdi
mov ecx, ebx
call fcn.1400bdfc0
jmp 0x14009f42a
mov ecx, dword [rsi + 0x440]
sub ecx, 1
je 0x14009f3a0
cmp ecx, 1
je 0x14009f38f
mov ebx, r14d
call fcn.14009fe10
test al, al
mov eax, 2
cmove ebx, eax
jmp 0x14009f3a5
mov ebx, 2
cmp dword [rsi + 0xbc], 3
lea r8, [0x14025d904]
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.1400af2d0
lea rcx, [rsp + 0x58]
call fcn.14009f170
lea r9, [rsp + 0x28]
mov r8d, ebp
mov rdx, rdi
mov rcx, rsi
movups xmm0, xmmword [rax]
movups xmmword [r12], xmm0
call fcn.14009fa70
test al, al
je 0x14009f419
mov dword [r15], 1
jmp 0x14009f428
lea rdx, str.getaddrinfo___thread_failed_to_start_n
mov rcx, r13
call fcn.1400ab390
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140213300
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
jmp 0x14009f2e0
Function at 0x1400aeba0
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 [0x1403252c0], 0
mov esi, r8d
mov rdi, qword [rsp + 0x68]
je 0x1400aec4f
test rdi, rdi
je 0x1400aec4f
mov eax, dword [0x1403252c4]
test eax, eax
jne 0x1400aec47
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.1400ae8f0
mov ecx, 2
call fcn.140230a84
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.1400af2a0
mov rcx, qword [0x1403252b8]
call fcn.1402365bc
call fcn.1402285c4
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 [0x1403252c4], eax
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test rdi, rdi
je 0x1400aec77
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.1400ae8f0
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400aecf0
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 [0x1403252c0], 0
mov esi, r8d
mov rdi, qword [rsp + 0x68]
je 0x1400aed9f
test rdi, rdi
je 0x1400aed9f
mov eax, dword [0x1403252c4]
test eax, eax
jne 0x1400aed97
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.1400ae8f0
mov ecx, 2
call fcn.140230a84
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.1400af2a0
mov rcx, qword [0x1403252b8]
call fcn.1402365bc
call fcn.1402285c4
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 [0x1403252c4], eax
call qword [sym.imp.WS2_32.dll_send]
mov ebx, eax
test rdi, rdi
je 0x1400aedc7
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.1400ae8f0
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400be340
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 [0x140320600]
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 0x14009f34c
mov r9d, ebp
lea rdx, [rsp + 0x20]
mov r8, rdi
mov ecx, ebx
call fcn.1400bdfc0
jmp 0x14009f42a
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 0x14009f37c
mov r9d, ebp
lea rdx, [rsp + 0x58]
mov r8, rdi
mov ecx, ebx
call fcn.1400bdfc0
jmp 0x14009f42a
mov ecx, dword [rsi + 0x440]
sub ecx, 1
je 0x14009f3a0
cmp ecx, 1
je 0x14009f38f
mov ebx, r14d
call fcn.14009fe10
test al, al
mov eax, 2
cmove ebx, eax
jmp 0x14009f3a5
mov ebx, 2
cmp dword [rsi + 0xbc], 3
lea r8, [0x14025d904]
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.1400af2d0
lea rcx, [rsp + 0x58]
call fcn.14009f170
lea r9, [rsp + 0x28]
mov r8d, ebp
mov rdx, rdi
mov rcx, rsi
movups xmm0, xmmword [rax]
movups xmmword [r12], xmm0
call fcn.14009fa70
test al, al
je 0x14009f419
mov dword [r15], 1
jmp 0x14009f428
lea rdx, str.getaddrinfo___thread_failed_to_start_n
mov rcx, r13
call fcn.1400ab390
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140213300
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
jmp 0x14009f2e0