joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007040
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x14001f008]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rsi, r8
mov rdi, rdx
mov r8d, 0x104
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140007120
xor edx, edx
mov qword [rsp + 0x2a0], rbx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x140007118
xor eax, eax
mov r9d, 0xf01ff
mov qword [rsp + 0x60], rax
mov r8, rsi
mov qword [rsp + 0x58], rax
mov rdx, rdi
mov qword [rsp + 0x50], rax
mov rcx, rbx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
je 0x14000710f
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140013f80
mov rsi, qword [rsp + 0x2b8]
add rsp, 0x290
pop rdi
ret

Function at 0x140008ad0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140008af8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp 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]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140008b1e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140008b20
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140008b79
test ecx, ecx
jle 0x140008b59
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140008b79
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140008b79
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x140008ba0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140008bc2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140008bd8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp 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]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140008bf4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140008bf6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140008c32
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140008cce
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140008c6d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140008cae
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140008cce
cmp rbx, rax
ja 0x140008c80
test rbx, rbx
je 0x140008cce
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140009100
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14001f008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000912d
xor eax, eax
jmp 0x140009299
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140009167
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140009167
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140009299
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000928c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400091aa
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400091d5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140009291
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140009244
sub eax, 1
je 0x140009244
cmp eax, 2
jne 0x14000928c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140009291
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140009272
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000928c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140009291
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140013f80
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400094f0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14001f008]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400095c3
cmp byte [rcx + 0x71], 0
je 0x1400095c3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400095bf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140009584
sub eax, 1
je 0x140009588
cmp eax, 2
jne 0x1400095bf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140013f80
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400095b6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400095bf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000956c
xor al, al
jmp 0x14000956c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140013f80
add rsp, 0x60
pop rbx
ret
Function at 0x14000b520
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rdx, [rcx + 0x10]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14000b54c
mov rcx, rbx
call fcn.14000c9b0
xor al, al
add rsp, 0x20
pop rbx
ret
xor r8d, r8d
lea edx, [r8 + 1]
lea ecx, [rdx + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x1a8], rax
cmp rax, 0xffffffffffffffff
je 0x14000b59c
lea rdx, [rbx + 0x1b0]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14000b5aa
mov rcx, qword [rbx + 0x1a8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx + 0x1a8], 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
add rsp, 0x20
pop rbx
ret
mov al, 1
add rsp, 0x20
pop rbx
ret
Function at 0x14000c8a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x14001f008]
xor rax, rsp
mov qword [rsp + 0x440], rax
xor esi, esi
mov qword [rsp + 0x38], rdx
mov rbx, rdx
mov rdi, rcx
cmp byte [rcx + 8], sil
je 0x14000c95f
mov rcx, qword [rcx + 0x1a8]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov dword [rsp + 0x34], esi
mov r8d, 0x1007
mov dword [rsp + 0x38], 4
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14000c95f
cmp dword [rsp + 0x34], esi
jne 0x14000c95f
mov rcx, qword [rdi + 0x1a8]
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov r8d, 0x400
call qword [sym.imp.WS2_32.dll_recv]
xorps xmm0, xmm0
mov rcx, rbx
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
test eax, eax
jg 0x14000c955
lea r8d, [rsi + 0x14]
lea rdx, str.Error_receiving_data
jmp 0x14000c97d
movsxd r8, eax
lea rdx, [rsp + 0x40]
jmp 0x14000c97d
xorps xmm0, xmm0
lea rdx, str.Not_connected
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov r8d, recv
mov qword [rbx + 0x18], rsi
mov rcx, rbx
call fcn.140005de0
mov rax, rbx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140013f80
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400100d0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14001f008]
xor rax, rsp
mov qword [rsp + 0x240], rax
movups xmm0, xmmword [str._unknown_]
mov eax, dword [0x140017a88]
lea rcx, [rsp + 0x44]
mov edi, edx
mov dword [rsp + 0x40], eax
xor edx, edx
movaps xmmword [rsp + 0x30], xmm0
mov r8d, 0x1f4
call sub.VCRUNTIME140.dll_memset
mov r8d, edi
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140010167
lea r9, [rsp + 0x28]
mov r8d, 8
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x140010167
mov rdx, qword [rsp + 0x20]
lea r8, [rsp + 0x30]
mov r9d, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
test edi, edi
jne 0x14001018e
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Failed_to_get_process_name_and_ID.
call fcn.1400053b0
lea rdx, [0x140005580]
mov rcx, rax
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__::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]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140013f80
mov rbx, qword [rsp + 0x260]
add rsp, 0x250
pop rdi
ret

Function at 0x1400101c0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
mov eax, 0x2250
call fcn.140014dd0
sub rsp, rax
mov rax, qword [0x14001f008]
xor rax, rsp
mov qword [rsp + 0x2240], rax
lea rcx, str._nProcess_ID:__u_n
mov ebx, edx
call fcn.14000fea0
mov r8d, ebx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
jne 0x140010212
mov al, 1
jmp 0x1400102af
lea r9, [rsp + 0x20]
mov r8d, 0x2000
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x1400102a4
xor ebx, ebx
test dword [rsp + 0x20], 0xfffffff8
jbe 0x1400102a4
mov qword [rsp + 0x2260], rdi
nop dword [rax]
nop word [rax + rax]
lea rdi, [rsp + 0x30]
mov r9d, 0x104
mov rdx, qword [rdi + rbx*8]
lea rdi, [rdi + rbx*8]
lea r8, [rsp + 0x2030]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x14001028f
mov r8, qword [rdi]
lea rdx, [rsp + 0x2030]
lea rcx, str._t_s__0x_0p__n
call fcn.14000fe40
mov eax, dword [rsp + 0x20]
inc ebx
shr eax, 3
cmp ebx, eax
jb 0x140010250
mov rdi, qword [rsp + 0x2260]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x2240]
xor rcx, rsp
call fcn.140013f80
mov rbx, qword [rsp + 0x2270]
add rsp, 0x2250
pop rsi
ret
Function at 0x140010420
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14001f008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rcx
mov qword [rsp + 0x28], rdx
lea rcx, [rsp + 0x30]
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx ecx, word [rsp + 0x30]
add rdi, 0x20
test ecx, ecx
je 0x14001058d
sub ecx, 5
je 0x140010546
sub ecx, 1
je 0x140010505
sub ecx, 3
je 0x1400104bd
cmp qword [rdi + 0x18], 0x14
jb 0x1400104ac
mov rbx, qword [rdi]
lea rdx, str.Unknown_architecture
mov rcx, rbx
mov qword [rdi + 0x10], socket
mov r8d, socket
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x14], 0
jmp 0x1400105da
lea r9, str.Unknown_architecture
mov edx, socket
jmp 0x1400105d2
mov rax, qword [rdi + 0x18]
cmp rax, 6
jb 0x1400104f9
mov rbx, rdi
cmp rax, 0x10
jb 0x1400104d3
mov rbx, qword [rdi]
mov r8d, 6
mov qword [rdi + 0x10], 6
lea rdx, str.64_bit
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 6], 0
jmp 0x1400105da
lea r9, str.64_bit
jmp 0x1400105cd
cmp qword [rdi + 0x18], 0x13
jb 0x140010535
mov rbx, qword [rdi]
lea rdx, str.Intel_Itanium_based
mov rcx, rbx
mov qword [rdi + 0x10], reloc.WS2_32.dll_send
mov r8d, reloc.WS2_32.dll_send
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x13], 0
jmp 0x1400105da
lea r9, str.Intel_Itanium_based
mov edx, reloc.WS2_32.dll_send
jmp 0x1400105d2
mov rax, qword [rdi + 0x18]
cmp rax, 3
jb 0x14001057f
mov rbx, rdi
cmp rax, 0x10
jb 0x14001055c
mov rbx, qword [rdi]
mov r8d, 3
mov qword [rdi + 0x10], 3
lea rdx, [0x140017b54]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 3], 0
jmp 0x1400105da
lea r9, [0x140017b54]
mov edx, 3
jmp 0x1400105d2
mov rax, qword [rdi + 0x18]
cmp rax, 6
jb 0x1400105c6
mov rbx, rdi
cmp rax, 0x10
jb 0x1400105a3
mov rbx, qword [rdi]
mov r8d, 6
mov qword [rdi + 0x10], 6
lea rdx, str.32_bit
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 6], 0
jmp 0x1400105da
lea r9, str.32_bit
mov edx, 6
mov rcx, rdi
call fcn.1400066b0
mov rdx, rdi
mov rcx, rsi
call fcn.140004c40
mov rax, rsi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140013f80
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140010610
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14001f008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rcx
mov qword [rsp + 0x28], rdx
lea rcx, [rsp + 0x30]
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx edx, word [rsp + 0x30]
test edx, edx
je 0x140010728
sub edx, 5
je 0x14001077c
sub edx, 1
je 0x1400106f9
sub edx, 3
je 0x1400106ad
add rdi, 0x40
cmp qword [rdi + 0x18], 0x14
jb 0x14001069c
mov rbx, qword [rdi]
lea rdx, str.Unknown_architecture
mov rcx, rbx
mov qword [rdi + 0x10], socket
mov r8d, socket
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x14], 0
jmp 0x1400107d6
lea r9, str.Unknown_architecture
mov edx, socket
jmp 0x1400107ce
mov rax, qword [rdi + 0x58]
add rdi, 0x40
cmp rax, 3
jb 0x1400106ed
mov rbx, rdi
cmp rax, 0x10
jb 0x1400106c7
mov rbx, qword [rdi]
mov r8d, 3
mov qword [rdi + 0x10], 3
lea rdx, [0x140017b90]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 3], 0
jmp 0x1400107d6
lea r9, [0x140017b90]
jmp 0x1400107c9
cmp qword [rdi + 0x58], 0x13
lea rcx, [rdi + 0x40]
jb 0x140010769
mov rbx, qword [rcx]
lea rdx, str.Intel_Itanium_based
mov qword [rcx + 0x10], reloc.WS2_32.dll_send
mov r8d, reloc.WS2_32.dll_send
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x13], 0
mov rax, qword [rdi + 0x58]
add rdi, 0x40
cmp rax, 3
jb 0x1400107c2
mov rbx, rdi
cmp rax, 0x10
jb 0x140010746
mov rbx, qword [rdi]
mov r8d, 3
mov qword [rdi + 0x10], 3
lea rdx, [0x140017b94]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 3], 0
jmp 0x1400107d6
lea r9, str.Intel_Itanium_based
mov edx, reloc.WS2_32.dll_send
call fcn.1400066b0
jmp 0x140010728
mov rax, qword [rdi + 0x58]
add rdi, 0x40
cmp rax, 3
jb 0x1400107b9
mov rbx, rdi
cmp rax, 0x10
jb 0x140010796
mov rbx, qword [rdi]
mov r8d, 3
mov qword [rdi + 0x10], 3
lea rdx, [0x140017b54]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 3], 0
jmp 0x1400107d6
lea r9, [0x140017b54]
jmp 0x1400107c9
lea r9, [0x140017b94]
mov edx, 3
mov rcx, rdi
call fcn.1400066b0
mov rdx, rdi
mov rcx, rsi
call fcn.140004c40
mov rax, rsi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140013f80
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140013150
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1068
call fcn.140014dd0
sub rsp, rax
mov rax, qword [0x14001f008]
xor rax, rsp
mov qword [rsp + 0x1050], rax
xor eax, eax
lea rdx, str.Getting_process_modules...
xorps xmm0, xmm0
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x38], rax
movups xmmword [rsp + 0x20], xmm0
lea r8d, [rax + 0x1a]
call fcn.140005de0
lea rdx, [rsp + 0x20]
call fcn.140010940
lea r8, [rsp + 0x40]
mov edx, 0x1000
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x140013201
mov eax, dword [rsp + 0x40]
shr eax, 2
test eax, eax
je 0x140013201
mov qword [rsp + 0x1070], rbx
lea rbx, [rsp + 0x50]
mov qword [rsp + 0x1060], rdi
mov edi, eax
nop dword [rax]
mov edx, dword [rbx]
call fcn.1400101c0
lea rbx, [rbx + 4]
sub rdi, 1
jne 0x1400131e0
mov rdi, qword [rsp + 0x1060]
mov rbx, qword [rsp + 0x1070]
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.140013f80
add rsp, 0x1068
ret

Function at 0x140013250
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1068
call fcn.140014dd0
sub rsp, rax
mov rax, qword [0x14001f008]
xor rax, rsp
mov qword [rsp + 0x1050], rax
xor eax, eax
lea rdx, str.Getting_process_IDs...
xorps xmm0, xmm0
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x38], rax
movups xmmword [rsp + 0x20], xmm0
lea r8d, [rax + 0x16]
call fcn.140005de0
lea rdx, [rsp + 0x20]
call fcn.140010940
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r8, [rsp + 0x40]
mov edx, 0x1000
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x14001330d
mov eax, dword [rsp + 0x40]
shr eax, 2
test eax, eax
je 0x14001330d
mov qword [rsp + 0x1070], rbx
lea rbx, [rsp + 0x50]
mov qword [rsp + 0x1060], rdi
mov edi, eax
mov edx, dword [rbx]
test edx, edx
je 0x1400132f3
call fcn.1400100d0
add rbx, 4
sub rdi, 1
jne 0x1400132e8
mov rdi, qword [rsp + 0x1060]
mov rbx, qword [rsp + 0x1070]
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.140013f80
add rsp, 0x1068
ret
Function at 0x140013580
Capabilities:
Execute command

Disassembly:
sub rsp, 0x48
xor eax, eax
lea rdx, str.Launching_arp...
xorps xmm0, xmm0
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x38], rax
movups xmmword [rsp + 0x20], xmm0
lea r8d, [rax + 0x10]
call fcn.140005de0
lea rdx, [rsp + 0x20]
call fcn.140010940
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.c:windows_system32_arp.exe__a
add rsp, 0x48
jmp qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]

Function at 0x140013610
Capabilities:
Execute command

Disassembly:
sub rsp, 0x48
xor eax, eax
lea rdx, str.Launching_nslookup...
xorps xmm0, xmm0
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x38], rax
movups xmmword [rsp + 0x20], xmm0
lea r8d, [rax + 0x15]
call fcn.140005de0
lea rdx, [rsp + 0x20]
call fcn.140010940
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.c:windows_system32_nslookup.exe
add rsp, 0x48
jmp qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]

Function at 0x1400136a0
Capabilities:
Execute command

Disassembly:
sub rsp, 0x48
xor eax, eax
lea rdx, str.Launching_notepad...
xorps xmm0, xmm0
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x38], rax
movups xmmword [rsp + 0x20], xmm0
lea r8d, [rax + 0x14]
call fcn.140005de0
lea rdx, [rsp + 0x20]
call fcn.140010940
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.c:windows_system32_notepad.exe
add rsp, 0x48
jmp qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]

Function at 0x140013730
Capabilities:
Execute command

Disassembly:
sub rsp, 0x48
xor eax, eax
lea rdx, str.Restarting...
xorps xmm0, xmm0
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x38], rax
movups xmmword [rsp + 0x20], xmm0
lea r8d, [rax + 0xd]
call fcn.140005de0
lea rdx, [rsp + 0x20]
call fcn.140010940
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.shutdown__r__t_0
add rsp, 0x48
jmp qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]

Function at 0x1400137bc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140013840
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140016770]
cmp byte [rcx + rax], 0
je 0x140013840
dec r8
sub rdx, 1
jne 0x140013826
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140014984
Capabilities:
Parse pe header

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