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

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140017010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002af3
cmp byte [rcx + 0x71], 0
je 0x140002af3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140002aef
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 0x140002ab4
sub eax, 1
je 0x140002ab8
cmp eax, 2
jne 0x140002aef
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000e170
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002ae6
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 0x140002aef
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140002a9c
xor al, al
jmp 0x140002a9c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000e170
add rsp, 0x60
pop rbx
ret
Function at 0x140004e10
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov byte [rcx + 8], 0
mov rbx, rcx
mov qword [rcx + 0x1c0], 0
mov ebp, 2
mov word [rcx + 0x1b0], bp
mov rdi, r8
mov qword [rcx], rdx
mov ecx, 0x1f40
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbx + 0x1b2], ax
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140004e5f
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_inet_addr]
lea rdx, [rbx + 0x10]
mov ecx, 0x202
mov dword [rbx + 0x1b4], eax
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140004e8a
mov rcx, rbx
call fcn.140006290
xor al, al
jmp 0x140004eef
xor r8d, r8d
mov ecx, ebp
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x1a8], rax
cmp rax, 0xffffffffffffffff
jne 0x140004eb0
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
jmp 0x140004eef
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbx + 0x1b0]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140004eed
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
jmp 0x140004eef
mov al, 1
mov byte [rbx + 8], al
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140004f28
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140004f23
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004f4b
mov rcx, r8
call fcn.14000e1cc
mov rax, rbx
mov qword [rdi + 0x10], 0
mov rbx, qword [rsp + 0x48]
mov qword [rdi + 0x18], recv
mov byte [rdi], 0
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140006110
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x140017010]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rdx
xor esi, esi
cmp byte [rcx + 8], sil
je 0x140006238
mov dword [rsp + 0x34], esi
mov dword [rsp + 0x38], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1007
mov rcx, qword [rcx + 0x1a8]
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x140006238
cmp dword [rsp + 0x34], esi
sete al
test al, al
je 0x140006238
xor r9d, r9d
mov r8d, 0x400
lea rdx, [rsp + 0x60]
mov rcx, qword [rdi + 0x1a8]
call qword [sym.imp.WS2_32.dll_recv]
xorps xmm0, xmm0
test eax, eax
jg 0x1400061c7
lea r8d, [rsi + 0x14]
lea rdx, str.Error_receiving_data
jmp 0x140006248
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
movsxd r8, eax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.140008600
nop
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140006640
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x14000625b
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006231
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006231
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000e1cc
jmp 0x14000625b
xorps xmm0, xmm0
mov r8d, recv
lea rdx, str.Not_connected
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
mov rcx, rbx
call fcn.140008600
mov rax, rbx
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14000e170
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000a6d0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140017010]
xor rax, rsp
mov qword [rsp + 0x240], rax
movups xmm0, xmmword [str._unknown_]
mov eax, dword [0x140011288]
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 0x14000a767
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 0x14000a767
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 0x14000a78e
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.140002ec0
lea rdx, [0x140003090]
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.14000e170
mov rbx, qword [rsp + 0x260]
add rsp, 0x250
pop rdi
ret

Function at 0x14000a7c0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
mov eax, 0x2250
call fcn.14000efd0
sub rsp, rax
mov rax, qword [0x140017010]
xor rax, rsp
mov qword [rsp + 0x2240], rax
lea rcx, str._nProcess_ID:__u_n
mov ebx, edx
call fcn.14000a4a0
mov r8d, ebx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
jne 0x14000a812
mov al, 1
jmp 0x14000a8af
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 0x14000a8a4
xor ebx, ebx
test dword [rsp + 0x20], 0xfffffff8
jbe 0x14000a8a4
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 0x14000a88f
mov r8, qword [rdi]
lea rdx, [rsp + 0x2030]
lea rcx, str._t_s__0x_08X__n
call fcn.14000a440
mov eax, dword [rsp + 0x20]
inc ebx
shr eax, 3
cmp ebx, eax
jb 0x14000a850
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.14000e170
mov rbx, qword [rsp + 0x2270]
add rsp, 0x2250
pop rsi
ret
Function at 0x14000aa20
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 [0x140017010]
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 0x14000ab8d
sub ecx, 5
je 0x14000ab46
sub ecx, 1
je 0x14000ab05
sub ecx, 3
je 0x14000aabd
cmp qword [rdi + 0x18], 0x14
jb 0x14000aaac
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 0x14000abda
lea r9, str.Unknown_architecture
mov edx, socket
jmp 0x14000abd2
mov rax, qword [rdi + 0x18]
cmp rax, 6
jb 0x14000aaf9
mov rbx, rdi
cmp rax, 0x10
jb 0x14000aad3
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 0x14000abda
lea r9, str.64_bit
jmp 0x14000abcd
cmp qword [rdi + 0x18], 0x13
jb 0x14000ab35
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 0x14000abda
lea r9, str.Intel_Itanium_based
mov edx, reloc.WS2_32.dll_send
jmp 0x14000abd2
mov rax, qword [rdi + 0x18]
cmp rax, 3
jb 0x14000ab7f
mov rbx, rdi
cmp rax, 0x10
jb 0x14000ab5c
mov rbx, qword [rdi]
mov r8d, 3
mov qword [rdi + 0x10], 3
lea rdx, [0x140011354]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 3], 0
jmp 0x14000abda
lea r9, [0x140011354]
mov edx, 3
jmp 0x14000abd2
mov rax, qword [rdi + 0x18]
cmp rax, 6
jb 0x14000abc6
mov rbx, rdi
cmp rax, 0x10
jb 0x14000aba3
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 0x14000abda
lea r9, str.32_bit
mov edx, 6
mov rcx, rdi
call fcn.140008b10
mov rdx, rdi
mov rcx, rsi
call fcn.140006640
mov rax, rsi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000e170
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000ac10
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 [0x140017010]
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 0x14000ad28
sub edx, 5
je 0x14000ad7c
sub edx, 1
je 0x14000acf9
sub edx, 3
je 0x14000acad
add rdi, 0x40
cmp qword [rdi + 0x18], 0x14
jb 0x14000ac9c
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 0x14000add6
lea r9, str.Unknown_architecture
mov edx, socket
jmp 0x14000adce
mov rax, qword [rdi + 0x58]
add rdi, 0x40
cmp rax, 3
jb 0x14000aced
mov rbx, rdi
cmp rax, 0x10
jb 0x14000acc7
mov rbx, qword [rdi]
mov r8d, 3
mov qword [rdi + 0x10], 3
lea rdx, [0x140011390]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 3], 0
jmp 0x14000add6
lea r9, [0x140011390]
jmp 0x14000adc9
cmp qword [rdi + 0x58], 0x13
lea rcx, [rdi + 0x40]
jb 0x14000ad69
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 0x14000adc2
mov rbx, rdi
cmp rax, 0x10
jb 0x14000ad46
mov rbx, qword [rdi]
mov r8d, 3
mov qword [rdi + 0x10], 3
lea rdx, [0x140011394]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 3], 0
jmp 0x14000add6
lea r9, str.Intel_Itanium_based
mov edx, reloc.WS2_32.dll_send
call fcn.140008b10
jmp 0x14000ad28
mov rax, qword [rdi + 0x58]
add rdi, 0x40
cmp rax, 3
jb 0x14000adb9
mov rbx, rdi
cmp rax, 0x10
jb 0x14000ad96
mov rbx, qword [rdi]
mov r8d, 3
mov qword [rdi + 0x10], 3
lea rdx, [0x140011354]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 3], 0
jmp 0x14000add6
lea r9, [0x140011354]
jmp 0x14000adc9
lea r9, [0x140011394]
mov edx, 3
mov rcx, rdi
call fcn.140008b10
mov rdx, rdi
mov rcx, rsi
call fcn.140006640
mov rax, rsi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000e170
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000dab0
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1068
call fcn.14000efd0
sub rsp, rax
mov rax, qword [0x140017010]
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.140008600
lea rdx, [rsp + 0x20]
call fcn.14000af40
lea r8, [rsp + 0x40]
mov edx, 0x1000
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x14000db61
mov eax, dword [rsp + 0x40]
shr eax, 2
test eax, eax
je 0x14000db61
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.14000a7c0
lea rbx, [rbx + 4]
sub rdi, 1
jne 0x14000db40
mov rdi, qword [rsp + 0x1060]
mov rbx, qword [rsp + 0x1070]
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.14000e170
add rsp, 0x1068
ret

Function at 0x14000dbb0
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1068
call fcn.14000efd0
sub rsp, rax
mov rax, qword [0x140017010]
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.140008600
lea rdx, [rsp + 0x20]
call fcn.14000af40
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 0x14000dc6d
mov eax, dword [rsp + 0x40]
shr eax, 2
test eax, eax
je 0x14000dc6d
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 0x14000dc53
call fcn.14000a6d0
add rbx, 4
sub rdi, 1
jne 0x14000dc48
mov rdi, qword [rsp + 0x1060]
mov rbx, qword [rsp + 0x1070]
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.14000e170
add rsp, 0x1068
ret
Function at 0x14000dee0
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.140008600
lea rdx, [rsp + 0x20]
call fcn.14000af40
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 0x14000df70
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.140008600
lea rdx, [rsp + 0x20]
call fcn.14000af40
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 0x14000e000
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.140008600
lea rdx, [rsp + 0x20]
call fcn.14000af40
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 0x14000e090
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.140008600
lea rdx, [rsp + 0x20]
call fcn.14000af40
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 0x14000eaf8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000eb42
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000eb42
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000eb42
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000eb42
cmp dword [rcx + 0x84], 0xe
jbe 0x14000eb42
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000eb44
xor al, al
add rsp, 0x28
ret
Function at 0x140776058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1407761df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140776089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14077606f
add dl, dl
jne 0x140776096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407760f6
xor eax, eax
add dl, dl
jne 0x1407760a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407761ad
add dl, dl
jne 0x1407760b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407760c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407760d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407760dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407760ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14077607e
mov eax, 1
add dl, dl
jne 0x140776106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140776113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407760fb
sub eax, ebx
mov ebx, 1
jne 0x14077614c
mov ecx, 1
add dl, dl
jne 0x14077612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14077613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140776123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14077607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140776168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140776175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14077615d
cmp eax, 0x7d00
jae 0x14077619b
cmp eax, 0x500
jb 0x140776196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14077607e
cmp eax, 0x7f
ja 0x14077619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14077607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407761d2
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 0x14077607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140011262
Capabilities:
Terminate process

Disassembly:
jmp 0x140013c00
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 0x1400112fd
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014f50
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014f70
xor al, al
jmp 0x140014ff1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014f83
xor al, al
jmp 0x140014ff1
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 0x140014fad
xor al, al
jmp 0x140014ff1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014fc1
xor al, al
jmp 0x140014ff1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014fd3
xor al, al
jmp 0x140014ff1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014fef
xor al, al
jmp 0x140014ff1
mov al, 1
add rsp, 0x38
ret
Function at 0x180006ab4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x180067c98]
mov rbx, rcx
and dword [rax + 0x2f48], 0
test rcx, rcx
je 0x180006b1d
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.1800069c0
lea rdx, [0x180038674]
mov rcx, rbx
mov rdi, rax
call fcn.180016b54
mov rbx, rax
test rax, rax
je 0x180006b1d
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18000716c
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, qword [0x180067c98]
cmp byte [rbx + 0x2f80], 0
je 0x18000722d
cmp qword [rbx + 0x2f88], 0
lea rbp, [rax + 0x10]
lea rdi, [rbx + 0x2f90]
je 0x18000721f
mov r9d, dword [rdi + 4]
test r9d, r9d
jns 0x1800071d7
mov eax, r9d
mov rcx, rdi
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.180002530
mov rcx, qword [rsp + 0x40]
and dword [rdi], 0
mov rdx, rcx
mov rcx, rdi
mov r8, rbp
call fcn.180015e8c
mov eax, dword [rdi]
mov edx, 1
mov r9, qword [rbx + 0x2f88]
lea ecx, [rax - 1]
neg eax
sbb eax, eax
and eax, ecx
lea rcx, [0x180067c90]
movsxd r8, eax
mov rax, qword [rbx + 0x2f98]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x18000722d
mov rdx, rcx
mov r8, rbp
mov rcx, rdi
call fcn.180015e8c
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret