joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14016bd70
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140003f35
movzx eax, al
test eax, eax
jne 0x14016bd90
mov ecx, 7
call fcn.1400035df
nop
mov byte [rsp + 0x20], 0
call fcn.1400036a2
mov byte [rsp + 0x21], al
cmp dword [0x1402049f8], 1
jne 0x14016bdb4
mov ecx, 7
call fcn.1400035df
nop
jmp 0x14016be0c
cmp dword [0x1402049f8], 0
jne 0x14016be07
mov dword [0x1402049f8], 1
lea rdx, [0x140179850]
lea rcx, [0x140179520]
call sub.ucrtbased.dll__initterm_e
test eax, eax
je 0x14016bde8
mov eax, 0xff
jmp 0x14016bf11
lea rdx, [0x140179410]
lea rcx, [section..rdata]
call sub.ucrtbased.dll__initterm
mov dword [0x1402049f8], 2
jmp 0x14016be0c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140003562
call fcn.1400030a3
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x14016be69
mov rcx, qword [rsp + 0x30]
call fcn.140002103
movzx eax, al
test eax, eax
je 0x14016be69
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140216020]
nop
call fcn.140003292
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14016be9d
mov rcx, qword [rsp + 0x38]
call fcn.140002103
movzx eax, al
test eax, eax
je 0x14016be9d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call sub.ucrtbased.dll__register_thread_local_exe_atexit_callback
nop
call fcn.14016bf80
mov dword [rsp + 0x28], eax
call fcn.140002f68
movzx eax, al
test eax, eax
jne 0x14016bebc
mov ecx, dword [rsp + 0x28]
call sub.ucrtbased.dll_exit
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14016becb
call sub.ucrtbased.dll__cexit
nop
xor edx, edx
mov cl, 1
call fcn.140002004
mov eax, dword [rsp + 0x28]
jmp 0x14016bf11
add rsp, 0x68
ret
Function at 0x1400112ad
Capabilities:
Terminate process

Disassembly:
jmp 0x140015520
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 0x140011370
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x140013e70
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x2a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x158], rax
lea rcx, [0x1400260fb]
call fcn.1400114d3
lea rdx, str.AntiDLLInjection
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001109b
lea rdx, [0x140011041]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.LdrLoadDll
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 8], rax
mov byte [rbp + 0x24], 0xc3
mov byte [rbp + 0x25], 0x90
mov byte [rbp + 0x26], 0x90
mov byte [rbp + 0x27], 0x90
mov byte [rbp + 0x28], 0x90
lea r9, [rbp + 0x44]
mov r8d, 0x40
mov edx, 0x100
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, 5
lea rdx, [rbp + 0x24]
mov rcx, qword [rbp + 8]
call fcn.140011523
xor eax, eax
cmp eax, 1
je 0x140013f64
mov dword [rbp + 0x144], 1
lea rdx, [rbp + 0x144]
lea rcx, [rbp + 0x128]
call fcn.140011131
mov rcx, rax
call fcn.1400110f5
call fcn.140011384
jmp 0x140013f31
lea rcx, [rbp - 0x20]
lea rdx, [0x14001cf20]
call fcn.140011447
mov rcx, qword [rbp + 0x158]
xor rcx, rbp
call fcn.140011262
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret
Function at 0x14001137a
Capabilities:
Parse pe header

Disassembly:
jmp 0x140016870
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140016890
xor al, al
jmp 0x140016911
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400168a3
xor al, al
jmp 0x140016911
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 0x1400168cd
xor al, al
jmp 0x140016911
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400168e1
xor al, al
jmp 0x140016911
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400168f3
xor al, al
jmp 0x140016911
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001690f
xor al, al
jmp 0x140016911
mov al, 1
add rsp, 0x38
ret
Function at 0x14000af40
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x14000af78
xor eax, eax
jmp 0x14000b03f
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x14000af9a
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x30], rax
jmp 0x14000afc4
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x20], eax
mov r8d, 2
mov edx, 4
lea rcx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_gethostbyaddr]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14000afdb
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14000b03f
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rax + rcx]
mov eax, dword [rax]
mov dword [rsp + 0x3c], eax
mov eax, 2
mov word [rsp + 0x38], ax
movzx ecx, word [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x3a], ax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x14000b03a
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14000b03f
mov rax, qword [rsp + 0x28]
add rsp, 0x58
ret

Function at 0x14000bd80
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x20], 1
lea rdx, [0x14038a5cb]
mov rcx, qword [rsp + 0x60]
call fcn.1400064f0
nop
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0x400
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
lea rdx, [0x1404c6840]
mov cx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14000be0f
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x14000be05
and dword [rsp + 0x20], 0xfffffffe
mov rcx, qword [rsp + 0x60]
call fcn.1400067e0
mov rax, qword [rsp + 0x60]
jmp 0x14000be9d
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x24]
mov rcx, qword [rsp + 0x68]
call fcn.14000beb0
mov qword [rsp + 0x30], rax
cmp dword [rsp + 0x24], 0
je 0x14000be70
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
call fcn.14000a200
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov edx, 1
mov rcx, qword [rsp + 0x40]
call fcn.1403227d4
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x48], rax
mov edx, 1
mov rcx, qword [rsp + 0x48]
call fcn.1403227d4
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x14000be98
and dword [rsp + 0x20], 0xfffffffe
mov rcx, qword [rsp + 0x60]
call fcn.1400067e0
mov rax, qword [rsp + 0x60]
add rsp, 0x58
ret
Function at 0x1400123f0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x30]
call fcn.140014210
nop
lea rax, [0x140011410]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x60]
add rax, 8
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x30]
call fcn.140008560
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax], 0
je 0x14001247f
lea rcx, [rsp + 0x30]
call fcn.1400369b0
jmp 0x140012496
mov rax, qword [rsp + 0x60]
mov dword [rax + 8], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
lea rcx, [rsp + 0x30]
call fcn.140017e70
add rsp, 0x58
ret

Function at 0x14001a740
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
mov ecx, recv
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call fcn.140009980
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rax, qword [rsp + 0x50]
add rsp, 0x48
ret

Function at 0x14001a7c0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rcx, qword [rsp + 0x60]
call fcn.1400074e0
lea rax, [rax + rax + 2]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x60]
call fcn.14001eb50
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax]
mov word [rsp + 0x20], ax
mov rax, qword [rsp + 0x28]
movzx ecx, word [rsp + 0x20]
mov word [rax], cx
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
add rax, 2
mov qword [rsp + 0x28], rax
cmp word [rsp + 0x20], 0
jne 0x14001a81b
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, qword [rsp + 0x38]
mov ecx, recv
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
add rsp, 0x58
ret
Function at 0x1400211c0
Capabilities:
Enumerate threads

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x70]
call fcn.1400161c0
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
xor edx, edx
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
je 0x14002127e
lea rax, [rsp + 0x38]
mov rdi, rax
xor eax, eax
mov ecx, 0x1c
rep stosb byte [rdi], al
mov dword [rsp + 0x38], 0x1c
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x140021273
mov eax, dword [rsp + 0x38]
cmp rax, 0x10
jb 0x140021258
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x44], eax
jne 0x140021258
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
call fcn.140035f20
mov dword [rsp + 0x38], 0x1c
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x140021235
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x140021da0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xe8
mov rax, qword [rsp + 0x108]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x108]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
add rax, 4
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x30]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x28], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
cmp dword [rcx + rax + 0x74], 0
je 0x140021f55
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 0x70]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.140014490
lea rcx, [rsp + 0x88]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x28
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x20], 0
jmp 0x140021e87
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0xa0]
cmp dword [rsp + 0x20], eax
jae 0x140021f55
mov eax, dword [rsp + 0xa8]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x20]
lea rax, [rax + rcx*4]
mov rcx, rax
call fcn.140014440
mov eax, eax
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0xa4]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x20]
lea rax, [rax + rcx*4]
mov rcx, rax
call fcn.140014440
mov eax, eax
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.1402d25f0
nop
mov rdx, qword [rsp + 0x110]
lea rcx, [rsp + 0x68]
call fcn.14000e020
movzx eax, al
test eax, eax
je 0x140021f46
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x68]
call fcn.1400067e0
mov rax, qword [rsp + 0x50]
jmp 0x140021f57
lea rcx, [rsp + 0x68]
call fcn.1400067e0
jmp 0x140021e7d
xor eax, eax
add rsp, 0xe8
pop rdi
pop rsi
ret
Function at 0x140022200
Capabilities:
Download url
Receive data

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x1d8
mov dword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x1e8]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 8
jge 0x140022259
lea rdx, [0x14038ab53]
mov rcx, qword [rsp + 0x1e0]
call fcn.1400064f0
nop
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x1e0]
jmp 0x140022406
mov r8d, 7
lea rdx, str.http:__
mov rcx, qword [rsp + 0x1e8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x1400222c4
mov r8d, 8
lea rdx, str.https:__
mov rcx, qword [rsp + 0x1e8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x1400222c4
lea rdx, [0x14038ab7f]
mov rcx, qword [rsp + 0x1e0]
call fcn.1400064f0
nop
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x1e0]
jmp 0x140022406
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x1e8]
xor ecx, ecx
call sub.urlmon.dll_URLOpenBlockingStreamA
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x140022325
lea rdx, [0x14038abc1]
mov rcx, qword [rsp + 0x1e0]
call fcn.1400064f0
nop
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x1e0]
jmp 0x140022406
mov dword [rsp + 0x34], 0
mov edx, 1
lea rcx, [rsp + 0xd0]
call fcn.140009a50
nop
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x34]
mov r8d, 0x64
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
call qword [rsp + 0x48]
cmp dword [rsp + 0x34], 0
jbe 0x1400223c1
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x34]
mov r8d, eax
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x58], rax
lea r9, [rsp + 0x34]
mov r8d, 0x64
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
call qword [rsp + 0x58]
jmp 0x14002236a
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x38]
call qword [rax + reloc.WS2_32.dll_recv]
mov rdx, qword [rsp + 0x1e0]
lea rcx, [rsp + 0xd0]
call fcn.14000c940
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0xd0]
call fcn.14000a230
mov rax, qword [rsp + 0x1e0]
add rsp, 0x1d8
ret
Function at 0x140037890
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rcx, qword [rsp + 0x60]
call fcn.140032670
movzx eax, al
test eax, eax
je 0x1400378d6
mov rcx, qword [rsp + 0x60]
call fcn.1400226c0
movzx eax, al
test eax, eax
jne 0x1400378c9
lea rcx, [0x14038b894]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
nop
jmp 0x1400378cb
mov byte [0x1404c69e2], 0
mov al, 1
jmp 0x1400378df
mov byte [0x1404c69e2], 0
xor al, al
add rsp, 0x58
ret
Function at 0x140038760
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [rsp + 0x80], 0
jg 0x140038785
xor eax, eax
jmp 0x14003894b
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x1400387ae
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
jmp 0x14003894b
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jbe 0x14003884d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.140006460
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.1400071b0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x80], 0
je 0x14003893b
mov rcx, qword [rsp + 0x70]
call fcn.14001d750
mov qword [rsp + 0x58], 0xfff
cmp qword [rsp + 0x20], 0xfff
jbe 0x1400388ee
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x30], 0xfff
je 0x1400388ec
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
jmp 0x14003894b
jmp 0x140038873
cmp qword [rsp + 0x20], 0
jbe 0x14003893b
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x20]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
add rsp, 0x68
ret
Function at 0x140038980
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x1400389b9
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.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 0x140038aa7
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x50], 0
jle 0x140038a4f
cmp qword [rsp + 0x20], 0
jle 0x140038a4f
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jge 0x1400389f9
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.1400071b0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rsp + 0x50], 0
jle 0x140038a97
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x140038a97
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
add rsp, 0x38
ret
Function at 0x1400552a0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x2278
call fcn.140322b40
sub rsp, rax
mov dword [rsp + 0x24], 0
lea r9, [rsp + 0x28]
mov r8d, 0x2000
lea rdx, [rsp + 0x270]
mov rcx, qword [rsp + 0x2288]
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x1400553ba
mov dword [rsp + 0x20], 0
jmp 0x140055300
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x28]
xor edx, edx
mov eax, ecx
mov ecx, 8
div rcx
mov rcx, qword [rsp + 0x30]
cmp rcx, rax
jae 0x1400553ba
mov eax, dword [rsp + 0x20]
mov r9d, 0x104
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + rax*8 + 0x270]
mov rcx, qword [rsp + 0x2288]
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x1400553b5
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.140009980
nop
xor r8d, r8d
mov rdx, qword [rsp + 0x2290]
lea rcx, [rsp + 0x38]
call fcn.1400217a0
cmp rax, 0xffffffffffffffff
je 0x1400553ab
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x2280]
call fcn.1400159e0
mov eax, dword [rsp + 0x24]
or eax, 1
mov dword [rsp + 0x24], eax
lea rcx, [rsp + 0x38]
call fcn.140009ce0
mov rax, qword [rsp + 0x2280]
jmp 0x1400553da
lea rcx, [rsp + 0x38]
call fcn.140009ce0
jmp 0x1400552f6
mov rcx, qword [rsp + 0x2280]
call fcn.140015bb0
mov eax, dword [rsp + 0x24]
or eax, 1
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x2280]
add rsp, 0x2278
ret