joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140045b80
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
lea rax, [rsp + 0x40]
mov dword [rax], 4
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x44]
xor r8d, r8d
mov r9, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rdi]
xor ecx, 4
or ecx, eax
sete al
jne 0x140045bc6
mov ecx, dword [rsp + 0x3c]
mov dword [rsi], ecx
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x140045ca0
Capabilities:
Get system information on windows

Disassembly:
push rbp
push rsi
sub rsp, 0x168
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xe0], 0xfffffffffffffffe
lea rsi, [rbp + 0xb0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rsi + 0x20]
cmp ecx, 0x100
jb 0x140045d1d
mov dword [rsp + 0x20], 1
lea rdx, str.virtual_uint8_t___cdecl_crashpad::internal::SystemSnapshotWin::CPUCount_void__const
lea r8, str..._.._.._third_party_crashpad_snapshot_win_system_snapshot_win.cc
lea rsi, [rbp - 0x50]
mov rcx, rsi
mov r9d, 0x10a
call fcn.14004b54e
lea rdx, str.dwNumberOfProcessors_exceeds_uint8_t_storage
mov rcx, rsi
call fcn.140002bc9
lea rcx, [rbp - 0x50]
call fcn.14004ba62
mov ecx, dword [rbp + 0xd0]
cmp ecx, 0x100
mov eax, 0xff
cmovb eax, ecx
add rsp, 0x168
pop rsi
pop rbp
ret
Function at 0x14004bd28
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x138
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xb0], 0xfffffffffffffffe
test rdx, rdx
je 0x14004bdd9
mov rsi, rdx
mov rdi, rcx
mov r12d, 0xffffffff
lea rbx, [rbp - 0x50]
lea r13, str.Check_failed:_success
lea r14, [0x14009fc16]
cmp rsi, r12
mov r15d, 0xffffffff
cmovb r15, rsi
mov rcx, rdi
mov edx, r15d
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x14004bdd1
mov dword [rsp + 0x20], 4
mov rcx, rbx
lea rdx, str.void___cdecl_base::RandBytes_void___size_t_
lea r8, str..._.._.._third_party_crashpad_third_party_mini_chromium_base_rand_util.cc
push 0x7d
pop r9
call fcn.14004b54e
mov rcx, rbx
mov rdx, r13
call fcn.140002bc9
mov rcx, rax
mov rdx, r14
call fcn.140002bc9
mov rcx, rbx
call fcn.14004ba62
add rdi, r15
sub rsi, r15
jne 0x14004bd75
add rsp, 0x138
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140004e30
Capabilities:
Parse pe header

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

Function at 0x140005120
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 0x14000515a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000515f
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 0x1400051a8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400064f0]
cmp byte [rcx + rax], 0
je 0x1400051a8
dec r8
sub rdx, 1
jne 0x14000518e
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 0x141dca108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141dca28f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141dca139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141dca11f
add dl, dl
jne 0x141dca146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141dca1a6
xor eax, eax
add dl, dl
jne 0x141dca155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141dca25d
add dl, dl
jne 0x141dca166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141dca173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141dca180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141dca18d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141dca19a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141dca12e
mov eax, 1
add dl, dl
jne 0x141dca1b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141dca1c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141dca1ab
sub eax, ebx
mov ebx, 1
jne 0x141dca1fc
mov ecx, 1
add dl, dl
jne 0x141dca1de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141dca1eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141dca1d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141dca12e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141dca218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141dca225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141dca20d
cmp eax, 0x7d00
jae 0x141dca24b
cmp eax, 0x500
jb 0x141dca246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141dca12e
cmp eax, 0x7f
ja 0x141dca24e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141dca12e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141dca282
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x141dca12e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400110f5
Capabilities:
Execute command

Disassembly:
jmp 0x140011bd0
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400220a7]
call fcn.1400113ac
lea rcx, [0x14001ac24]
call qword [sym.imp.ucrtbased.dll_system]
mov dword [rbp + 4], 0
jmp 0x140011c09
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0x14
jge 0x140011c6f
mov dword [rbp + 0x24], 0
jmp 0x140011c20
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0xa
jge 0x140011c61
movsxd rax, dword [rbp + 4]
imul rax, rax, 0x28
lea rcx, [0x14001d400]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rbp + 0x24]
cmp dword [rax + rcx*4], 0
je 0x140011c53
lea rcx, [0x14001ac28]
call fcn.1400111bd
jmp 0x140011c5f
lea rcx, [0x14001ac2c]
call fcn.1400111bd
jmp 0x140011c18
lea rcx, [0x14001ac30]
call fcn.1400111bd
jmp 0x140011c01
mov edx, dword [0x14001d768]
lea rcx, str.Score:__d_n
call fcn.1400111bd
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x140011221
Capabilities:
Terminate process

Disassembly:
jmp 0x1400135d0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400112ad
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014920
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014940
xor al, al
jmp 0x1400149c1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014953
xor al, al
jmp 0x1400149c1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001497d
xor al, al
jmp 0x1400149c1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014991
xor al, al
jmp 0x1400149c1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400149a3
xor al, al
jmp 0x1400149c1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400149bf
xor al, al
jmp 0x1400149c1
mov al, 1
add rsp, 0x38
ret
Function at 0x1401510a0
Capabilities:
Get hostname

Disassembly:
jmp 0x1403d66c0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax], 0
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_gethostname]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x48]
dec eax
cdqe
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax], 0
cmp dword [rsp + 0x20], 0
je 0x1403d6711
mov eax, dword [rsp + 0x20]
jmp 0x1403d6737
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, qword [rsp + 0x40]
call fcn.1401514bf
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1403d6735
mov rax, qword [rsp + 0x28]
mov byte [rax], 0
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x14015188e
Capabilities:
Write file on windows

Disassembly:
jmp 0x1402f81a0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1404ea810]
call fcn.140156884
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x1402f81f7
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x1402f8303
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x1402f829c
cmp qword [rbp + 0x28], 0
jle 0x1402f829c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x1402f823c
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.14015631b
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x1402f82f2
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x1402f82f2
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140152108
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1403cd250
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
lea rdi, [rsp + 0x20]
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x50]
cmp dword [rsp + 0x58], 0
je 0x1403cd285
mov dword [rsp + 0x34], 1
jmp 0x1403cd28d
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1401559a2
mov rax, rdi
add rsp, 0x40
pop rdi
ret
Function at 0x140152b76
Capabilities:
Move file

Disassembly:
jmp 0x1403692b0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xd8
lea rdi, [rsp + 0x20]
mov ecx, reloc.WLDAP32.dll_Ordinal_46
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xf0]
mov rax, qword [0x1404bf700]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0x20], 0x3e8
lea rcx, [rsp + 0x78]
call fcn.140156032
lea rcx, [rsp + 0x38]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.ucrtbased.dll__strdup]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.ucrtbased.dll__strdup]
mov qword [rsp + 0x60], rax
mov r8d, 1
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x14036939b
cmp qword [rsp + 0x58], 0
je 0x14036936e
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ucrtbased.dll_free]
mov qword [rsp + 0x58], 0
xor eax, eax
test eax, eax
jne 0x140369352
cmp qword [rsp + 0x60], 0
je 0x140369390
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ucrtbased.dll_free]
mov qword [rsp + 0x60], 0
xor eax, eax
test eax, eax
jne 0x140369374
jmp 0x140369460
lea rax, [rsp + 0xb0]
lea rcx, [rsp + 0x38]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x88]
call fcn.140156032
lea rcx, [rsp + 0xa0]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0xa0]
call fcn.140156e5b
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jl 0x140369405
movsxd rax, dword [rsp + 0x20]
cmp qword [rsp + 0x68], rax
jle 0x140369450
cmp qword [rsp + 0x58], 0
je 0x140369421
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ucrtbased.dll_free]
mov qword [rsp + 0x58], 0
xor eax, eax
test eax, eax
jne 0x140369405
cmp qword [rsp + 0x60], 0
je 0x140369443
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ucrtbased.dll_free]
mov qword [rsp + 0x60], 0
xor eax, eax
test eax, eax
jne 0x140369427
mov eax, 1
jmp 0x140369462
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140369338
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1401559a2
mov rax, rdi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140153acb
add rsp, 0xd8
pop rdi
pop rsi
ret
Function at 0x140153738
Capabilities:
Enumerate processes

Disassembly:
jmp 0x140193e60
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x5b8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0xfe
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x5d8]
mov rax, qword [0x1404bf700]
xor rax, rbp
mov qword [rbp + 0x568], rax
lea rcx, [0x1404e99f7]
call fcn.140156884
mov dword [rbp + 0x10], 0x238
xor edx, edx
mov ecx, reloc.WS2_32.dll_ntohs
call fcn.140153a08
mov qword [rbp + 0x268], rax
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x268]
call fcn.140154557
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x104
lea rax, [rbp + 0x290]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, [rbp + 0x3c]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, qword [rbp + 0x598]
call fcn.140151820
mov rdx, rax
lea rcx, [rbp + 0x290]
call fcn.14015713f
test eax, eax
jne 0x140193f5b
mov rcx, qword [rbp + 0x268]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x18]
mov dword [rbp + 0x534], eax
mov rcx, qword [rbp + 0x598]
call fcn.140152081
mov eax, dword [rbp + 0x534]
jmp 0x140193f9c
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x268]
call fcn.140155c13
test eax, eax
jne 0x140193ed8
mov rcx, qword [rbp + 0x268]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp + 0x554], 0
mov rcx, qword [rbp + 0x598]
call fcn.140152081
mov eax, dword [rbp + 0x554]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, reloc.WS2_32.dll_bind
call fcn.1401559a2
mov rax, rdi
mov rcx, qword [rbp + 0x568]
xor rcx, rbp
call fcn.140153acb
lea rsp, [rbp + 0x578]
pop rdi
pop rbp
ret
Function at 0x14015414c
Capabilities:
Terminate process

Disassembly:
jmp 0x1403e10d0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140154638
Capabilities:
Initialize winsock library

Disassembly:
jmp 0x14033e090
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x220
lea rdi, [rsp + 0x30]
mov ecx, 0x7c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x230]
mov rax, qword [0x1404bf700]
xor rax, rsp
mov qword [rsp + 0x210], rax
mov eax, dword [rsp + 0x230]
and eax, 2
test eax, eax
je 0x14033e167
mov eax, 0x202
mov word [rsp + 0x38], ax
lea rdx, [rsp + 0x50]
movzx ecx, word [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x1f4], eax
cmp dword [rsp + 0x1f4], 0
je 0x14033e10d
mov eax, 2
jmp 0x14033e2bb
movzx eax, word [rsp + 0x50]
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x38]
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
jne 0x14033e157
movzx eax, word [rsp + 0x50]
shr rax, 8
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x38]
shr rcx, 8
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
je 0x14033e167
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
jmp 0x14033e2bb
call fcn.140156a78
mov dword [rsp + 0x1f8], eax
cmp dword [rsp + 0x1f8], 0
je 0x14033e189
mov eax, dword [rsp + 0x1f8]
jmp 0x14033e2bb
lea rcx, str.iphlpapi.dll
call fcn.140155f65
mov qword [0x1404c9270], rax
cmp qword [0x1404c9270], 0
je 0x14033e1dc
lea rdx, str.if_nametoindex
mov rcx, qword [0x1404c9270]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x200], rax
cmp qword [rsp + 0x200], 0
je 0x14033e1dc
mov rax, qword [rsp + 0x200]
mov qword [0x1404c9250], rax
lea rcx, str.ws2_32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14033e241
lea rdx, str.FreeAddrInfoExW
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1404c9258], rax
lea rdx, str.GetAddrInfoExCancel
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1404c9260], rax
lea rdx, str.GetAddrInfoExW
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1404c9268], rax
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.140155a5b
movzx eax, al
test eax, eax
je 0x14033e26e
mov byte [0x1404c9ad4], 1
jmp 0x14033e275
mov byte [0x1404c9ad4], 0
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
mov edx, 2
mov ecx, 6
call fcn.140155a5b
movzx eax, al
test eax, eax
je 0x14033e2a5
mov byte [0x1404c9ac9], 1
jmp 0x14033e2ac
mov byte [0x1404c9ac9], 0
lea rcx, [0x1404c9ad8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1401559a2
mov rax, rdi
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.140153acb
add rsp, 0x220
pop rdi
ret
Function at 0x140154854
Capabilities:
Write file on windows

Disassembly:
jmp 0x1401c2c90
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, reloc.WS2_32.dll_accept
call fcn.140156884
mov r9, qword [rbp + 0xf8]
mov r8, qword [rbp + 0xf0]
mov rdx, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.ucrtbased.dll_fwrite]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x1401548bd
Capabilities:
Get geographical location

Disassembly:
jmp 0x1403f5ae0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1403f5b1d
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.14015684d
add rsp, 0x58
ret

Function at 0x140154b01
Capabilities:
Read file on windows

Disassembly:
jmp 0x1401c2c20
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, reloc.WS2_32.dll_accept
call fcn.140156884
mov r9, qword [rbp + 0xf8]
mov r8, qword [rbp + 0xf0]
mov rdx, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.ucrtbased.dll_fread]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret