joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017131
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
jmp 0x14003ba60
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x218
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x4e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x238]
mov rax, qword [0x140069380]
xor rax, rbp
mov qword [rbp + 0x1e0], rax
lea rcx, [0x140074597]
call fcn.1400181a8
mov qword [rbp + 8], 0
mov dword [rbp + 0x24], 0
lea r9, [rbp + 0x24]
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 8]
mov ecx, 0xb
call fcn.140017d2f
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0xc0000004
jne 0x14003bb2b
cmp qword [rbp + 8], 0
je 0x14003baf3
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rbp + 0x24]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 8], rax
lea r9, [rbp + 0x24]
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 8]
mov ecx, 0xb
call fcn.140017d2f
mov dword [rbp + 0x44], eax
jmp 0x14003bad1
cmp dword [rbp + 0x44], 0
jge 0x14003bb51
cmp qword [rbp + 8], 0
je 0x14003bb4a
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14003bc80
mov rax, qword [rbp + 8]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x14003bb67
xor eax, eax
jmp 0x14003bc80
mov dword [rbp + 0x84], 0
jmp 0x14003bb81
mov eax, dword [rbp + 0x84]
inc eax
mov dword [rbp + 0x84], eax
mov rax, qword [rbp + 0x68]
mov eax, dword [rax]
cmp dword [rbp + 0x84], eax
jae 0x14003bc6c
mov eax, dword [rbp + 0x84]
imul rax, rax, 0x128
mov rcx, qword [rbp + 0x68]
lea rax, [rcx + rax + 8]
mov ecx, dword [rbp + 0x84]
imul rcx, rcx, 0x128
mov rdx, qword [rbp + 0x68]
movzx ecx, word [rdx + rcx + 0x2e]
lea rax, [rax + rcx + 0x28]
mov rdx, rax
lea rcx, [rbp + 0xa8]
call fcn.14001780c
mov rcx, qword [rbp + 0x210]
call fcn.1400171d1
mov qword [rbp + 0x1d8], rax
lea rcx, [rbp + 0xa8]
call fcn.1400171d1
mov rcx, qword [rbp + 0x1d8]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.ucrtbased.dll__stricmp]
test eax, eax
jne 0x14003bc5b
mov eax, dword [rbp + 0x84]
imul rax, rax, 0x128
mov rcx, qword [rbp + 0x68]
mov rax, qword [rcx + rax + 0x18]
mov qword [rbp + 0xe8], rax
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, qword [rbp + 0xe8]
mov qword [rbp + 0x1c8], rax
lea rcx, [rbp + 0xa8]
call fcn.140017389
mov rax, qword [rbp + 0x1c8]
jmp 0x14003bc80
lea rcx, [rbp + 0xa8]
call fcn.140017389
jmp 0x14003bb73
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14005bb80]
call fcn.140017eab
mov rax, rdi
mov rcx, qword [rbp + 0x1e0]
xor rcx, rbp
call fcn.1400178b6
lea rsp, [rbp + 0x1f8]
pop rdi
pop rbp
ret
Function at 0x1400171e5
Capabilities:
Write file on windows

Disassembly:
jmp 0x14002f0d0
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, [0x1400740f8]
call fcn.1400181a8
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14002f127
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 0x14002f233
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 0x14002f1cc
cmp qword [rbp + 0x28], 0
jle 0x14002f1cc
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14002f16c
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.14001807c
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 0x14002f222
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14002f222
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 0x140017519
Capabilities:
Get common file path

Disassembly:
jmp 0x14003b8b0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x438
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x458]
mov rax, qword [0x140069380]
xor rax, rbp
mov qword [rbp + 0x408], rax
mov dword [rbp + 0x3f4], 0
lea rcx, [0x140074597]
call fcn.1400181a8
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rdx, [rbp + 0x10]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [rbp + 0x234], eax
cmp dword [rbp + 0x234], 0
je 0x14003b93d
cmp dword [rbp + 0x234], 0x105
jbe 0x14003b968
lea rdx, [0x14005936c]
mov rcx, qword [rbp + 0x430]
call fcn.1400175f5
mov eax, dword [rbp + 0x3f4]
or eax, 1
mov dword [rbp + 0x3f4], eax
mov rax, qword [rbp + 0x430]
jmp 0x14003b9da
lea rcx, [rbp + 0x10]
call qword [sym.imp.ucrtbased.dll_wcslen]
movzx eax, word [rbp + rax*2 + 0xe]
cmp eax, 0x5c
jne 0x14003b9b4
lea rcx, [rbp + 0x10]
call qword [sym.imp.ucrtbased.dll_wcslen]
lea rax, [rax + rax - 2]
mov qword [rbp + 0x3d8], rax
cmp qword [rbp + 0x3d8], 0x20a
jae 0x14003b9a1
jmp 0x14003b9a6
call fcn.140017ce9
xor eax, eax
mov rcx, qword [rbp + 0x3d8]
mov word [rbp + rcx + 0x10], ax
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x430]
call fcn.1400175f5
mov eax, dword [rbp + 0x3f4]
or eax, 1
mov dword [rbp + 0x3f4], eax
mov rax, qword [rbp + 0x430]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14005b9a0]
call fcn.140017eab
mov rax, rdi
mov rcx, qword [rbp + 0x408]
xor rcx, rbp
call fcn.1400178b6
lea rsp, [rbp + 0x418]
pop rdi
pop rbp
ret
Function at 0x1400175fa
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x14003b730
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rcx, [0x140074597]
call fcn.1400181a8
mov rcx, qword [rbp + 0x180]
call fcn.1400177f8
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x188]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x188]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
movzx eax, word [rax + 0x14]
mov rcx, qword [rbp + 0x28]
lea rax, [rcx + rax + 0x18]
mov qword [rbp + 0x48], rax
mov dword [rbp + 0x64], 0
jmp 0x14003b7ab
mov eax, dword [rbp + 0x64]
inc eax
mov dword [rbp + 0x64], eax
mov rax, qword [rbp + 0x28]
movzx eax, word [rax + 6]
cmp dword [rbp + 0x64], eax
jae 0x14003b853
mov eax, dword [rbp + 0x64]
imul rax, rax, 0x28
mov rcx, qword [rbp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
mov r8, qword [rbp + 8]
mov rdx, qword [rbp + 0x180]
mov rcx, rax
call fcn.1400176b3
test eax, eax
jne 0x14003b84e
mov rax, qword [rbp + 0x88]
mov rcx, rax
call fcn.1400177f8
cmp qword [rbp + 8], rax
jne 0x14003b84e
mov rax, qword [rbp + 0x88]
cmp dword [rax + 0xc], 0
jne 0x14003b818
xor eax, eax
jmp 0x14003b855
cmp qword [rbp + 0x190], 0
je 0x14003b835
mov rax, qword [rbp + 0x190]
mov rcx, qword [rbp + 0x88]
mov ecx, dword [rcx + 8]
mov dword [rax], ecx
mov rax, qword [rbp + 0x88]
mov eax, dword [rax + 0xc]
mov rcx, qword [rbp + 0x188]
add rcx, rax
mov rax, rcx
jmp 0x14003b855
jmp 0x14003b7a3
xor eax, eax
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret

Function at 0x14001778a
Capabilities:
Enumerate processes

Disassembly:
jmp 0x140024a60
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x4d8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xce
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x4f8]
mov rax, qword [0x140069380]
xor rax, rbp
mov qword [rbp + 0x4a0], rax
lea rcx, [0x1400746d2]
call fcn.1400181a8
lea rcx, [rbp + 0x444]
call fcn.1400179a1
mov qword [rbp + 0x498], rax
mov rcx, qword [rbp + 0x4d0]
call fcn.1400177f8
mov rcx, qword [rbp + 0x4d0]
add rcx, rax
mov rax, rcx
mov rcx, qword [rbp + 0x498]
mov r9, rcx
mov r8, rax
mov rdx, qword [rbp + 0x4d0]
lea rcx, [rbp + 8]
call fcn.140017f8c
xor edx, edx
mov ecx, 2
call fcn.14001787a
mov qword [rbp + 0x48], rax
mov dword [rbp + 0x70], 0x238
lea rdx, [rbp + 0x70]
mov rcx, qword [rbp + 0x48]
call fcn.140017ae6
lea rcx, [rbp + 8]
call fcn.140017618
mov rdx, rax
lea rcx, [rbp + 0x9c]
call qword [sym.imp.ucrtbased.dll_wcscmp]
test eax, eax
jne 0x140024b4d
mov eax, dword [rbp + 0x78]
mov dword [rbp + 0x464], eax
lea rcx, [rbp + 8]
call fcn.140017f19
mov eax, dword [rbp + 0x464]
jmp 0x140024b77
lea rdx, [rbp + 0x70]
mov rcx, qword [rbp + 0x48]
call fcn.140017f23
test eax, eax
jne 0x140024b16
mov dword [rbp + 0x484], 0
lea rcx, [rbp + 8]
call fcn.140017f19
mov eax, dword [rbp + 0x484]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14005c460]
call fcn.140017eab
mov rax, rdi
mov rcx, qword [rbp + 0x4a0]
xor rcx, rbp
call fcn.1400178b6
lea rsp, [rbp + 0x4b8]
pop rdi
pop rbp
ret
Function at 0x140017a05
Capabilities:
Terminate process

Disassembly:
jmp 0x14003f790
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 0x140017b18
Capabilities:
Delete registry key

Disassembly:
jmp 0x1400398b0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x2d8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x7e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2f8]
mov rax, qword [0x140069380]
xor rax, rbp
mov qword [rbp + 0x2a8], rax
lea rcx, [0x140074468]
call fcn.1400181a8
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140039918
xor al, al
jmp 0x140039ae8
mov r8, qword [rbp + 0x2d0]
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp + 0x28]
call fcn.1400182d9
nop
lea rcx, [rbp + 0x28]
call fcn.140017618
mov rdx, rax
lea rcx, [rbp + 0x68]
call fcn.1400180e5
mov r8, qword [rbp + 0x2d0]
lea rdx, str.SYSTEMCurrentControlSetServices_
lea rcx, [rbp + 0xb8]
call fcn.1400182d9
nop
lea rcx, [rbp + 0xb8]
call fcn.140017618
lea r8, [rbp + 0x98]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [rbp + 0xf4], eax
cmp dword [rbp + 0xf4], 0
je 0x1400399ed
cmp dword [rbp + 0xf4], 2
jne 0x1400399c4
mov byte [rbp + 0x214], 1
lea rcx, [rbp + 0xb8]
call fcn.140017f19
nop
lea rcx, [rbp + 0x28]
call fcn.140017f19
movzx eax, byte [rbp + 0x214]
jmp 0x140039ae8
mov byte [rbp + 0x234], 0
lea rcx, [rbp + 0xb8]
call fcn.140017f19
nop
lea rcx, [rbp + 0x28]
call fcn.140017f19
movzx eax, byte [rbp + 0x234]
jmp 0x140039ae8
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.NtUnloadDriver
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x118], rax
lea rcx, [rbp + 0x68]
call qword [rbp + 0x118]
mov dword [rbp + 0x134], eax
cmp dword [rbp + 0x134], 0
je 0x140039a73
lea rcx, [rbp + 0xb8]
call fcn.140017618
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov dword [rbp + 0xf4], eax
mov byte [rbp + 0x254], 0
lea rcx, [rbp + 0xb8]
call fcn.140017f19
nop
lea rcx, [rbp + 0x28]
call fcn.140017f19
movzx eax, byte [rbp + 0x254]
jmp 0x140039ae8
lea rcx, [rbp + 0xb8]
call fcn.140017618
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov dword [rbp + 0xf4], eax
cmp dword [rbp + 0xf4], 0
je 0x140039ac4
mov byte [rbp + 0x274], 0
lea rcx, [rbp + 0xb8]
call fcn.140017f19
nop
lea rcx, [rbp + 0x28]
call fcn.140017f19
movzx eax, byte [rbp + 0x274]
jmp 0x140039ae8
mov byte [rbp + 0x294], 1
lea rcx, [rbp + 0xb8]
call fcn.140017f19
nop
lea rcx, [rbp + 0x28]
call fcn.140017f19
movzx eax, byte [rbp + 0x294]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14005b790]
call fcn.140017eab
mov rax, rdi
mov rcx, qword [rbp + 0x2a8]
xor rcx, rbp
call fcn.1400178b6
lea rsp, [rbp + 0x2b8]
pop rdi
pop rbp
ret
Function at 0x140017c53
Capabilities:
Parse pe header

Disassembly:
jmp 0x140041fb0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140041fd0
xor al, al
jmp 0x140042051
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140041fe3
xor al, al
jmp 0x140042051
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 0x14004200d
xor al, al
jmp 0x140042051
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140042021
xor al, al
jmp 0x140042051
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140042033
xor al, al
jmp 0x140042051
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14004204f
xor al, al
jmp 0x140042051
mov al, 1
add rsp, 0x38
ret
Function at 0x140017fb4
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400370b0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14007433e]
call fcn.1400181a8
mov rax, qword [rbp + 0x120]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400370ec
xor eax, eax
jmp 0x140037119
mov rax, qword [rbp + 8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x120]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0x4550
je 0x140037115
xor eax, eax
jmp 0x140037119
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x14001815d
Capabilities:
Write file on windows

Disassembly:
jmp 0x14002a200
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x140069380]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x1400740f8]
call fcn.1400181a8
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x14002a266
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14002a26d
mov al, 1
jmp 0x14002a3bd
call fcn.14001752d
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.14001752d
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.140017e01
movzx eax, al
test eax, eax
je 0x14002a2be
xor al, al
jmp 0x14002a3bd
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x14002a323
cmp dword [rbp + 0x154], 1
je 0x14002a32e
cmp dword [rbp + 0x154], 3
je 0x14002a3ac
jmp 0x14002a3bb
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14002a37e
mov rax, qword [rbp + 0x190]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14002a37e
xor al, al
jmp 0x14002a3bd
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14002a399
mov dword [rbp + 0x154], 1
jmp 0x14002a3a3
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14002a3bd
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14002a3bd
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140057d40]
call fcn.140017eab
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.1400178b6
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x180001010
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Get common file path
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x2f0
mov rbp, rcx
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
xorps xmm0, xmm0
lea rcx, str.x64_rc4.bin
xor eax, eax
xor r14d, r14d
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
movups xmmword [rsp + 0x70], xmm0
lea r8d, [rax + 3]
mov qword [rsp + 0xd0], rax
movups xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x60], rax
movups xmmword [rsp + 0x90], xmm0
mov dword [rsp + 0x20], 3
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x28], r14
lea r8d, [r14 + 4]
mov rcx, rax
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor edx, edx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
test rax, rax
je 0x1800011a7
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x104
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x40], rax
mov rcx, rbp
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1800011a7
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x50]
mov r8d, ebx
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ecx, 0x7d0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Sleep]
test rbx, rbx
je 0x1800011a7
xor r9d, r9d
mov qword [rsp + 0x20], r14
xor r8d, r8d
mov edx, 0xf001f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea eax, [r14 + 1]
jmp 0x1800011a9
xor eax, eax
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x1800011d0
Capabilities:
Get common file path
Print debug messages
Terminate process

Disassembly:
push rbx
sub rsp, 0x440
xor r9d, r9d
lea r8, [0x180017a50]
lea rdx, [0x180017a50]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.1800022d0
mov r8d, 0x104
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x20]
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x180001223
add eax, 0xfffffff5
lea rbx, [rsp + 0x20]
movsxd rcx, eax
lea rdx, str.svchost.exe
lea rbx, [rbx + rcx*2]
mov rcx, rbx
call fcn.1800051e4
test eax, eax
jne 0x180001266
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180001250
mov edx, 0x104
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, [0x180017a78]
lea rcx, [rsp + 0x230]
call fcn.180001380
lea rdx, str.svchost.exe
lea rcx, [rsp + 0x230]
call fcn.180001380
lea rcx, [rsp + 0x230]
call fcn.180001010
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x180008ef8
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180008f28
xor eax, eax
jmp 0x180008feb
mov rbp, rbx
cmp word [rax], si
je 0x180008f4d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180008f34
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180008f30
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180008e18
movsxd r14, eax
test eax, eax
jne 0x180008f8b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180008f21
mov rcx, r14
call fcn.18000a188
mov rdi, rax
test rax, rax
jne 0x180008fa4
xor ecx, ecx
call fcn.1800074ec
jmp 0x180008f80
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180008e18
test eax, eax
jne 0x180008fd5
mov rcx, rdi
call fcn.1800074ec
jmp 0x180008fdf
xor ecx, ecx
call fcn.1800074ec
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret