joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140104d58
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.140104624
mov ebx, eax
test eax, eax
jne 0x140104d88
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140104deb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140104de2
test al, 0x10
je 0x140104de2
bt eax, 0xa
jae 0x140104ddb
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140104dfc
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140104dd7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140104dd7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x140104de2
and dword [rsp + 0x3c], 0
jmp 0x140104de7
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1401062e8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140106332
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140106332
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140106332
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140106332
cmp dword [rcx + 0x84], 0xe
jbe 0x140106332
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140106334
xor al, al
add rsp, 0x28
ret
Function at 0x1400020d0
Capabilities:
Create process on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov r8d, 0x104
lea rdx, [rsp + 0x140]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140002119
mov rdx, qword [rbx]
lea rcx, [rsp + 0x140]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14000220f
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14000214e
mov rdx, qword [rbx]
lea rcx, [rsp + 0x30]
call fcn.1400047f0
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0xa8]
mov dword [rsp + rcx + 0x2c], r8d
cmp qword [rsp + 0xb8], 0
je 0x140002205
mov r8, rsi
mov rdx, rdi
lea rcx, [rsp + 0x30]
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]
lea rcx, [rsp + 0x38]
call fcn.140004730
test rax, rax
jne 0x1400021cc
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x30]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
cmp qword [rbx + 0x18], 0xf
jbe 0x1400021d6
mov rbx, qword [rbx]
xor eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, rbx
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
lea rcx, [rsp + 0x30]
call fcn.140002230
mov al, 1
jmp 0x140002211
lea rcx, [rsp + 0x30]
call fcn.140002230
xor al, al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140005ad0
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400038e0
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 0x140003908
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 0x14000392e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140003930
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140003989
test ecx, ecx
jle 0x140003969
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 0x140003989
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003989
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 0x1400039b0
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 0x1400039d2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400039e8
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 0x140003a04
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003a06
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003a42
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 0x140003ade
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140003a7d
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 0x140003abe
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 0x140003ade
cmp rbx, rax
ja 0x140003a90
test rbx, rbx
je 0x140003ade
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 0x140003f40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140003f6d
xor eax, eax
jmp 0x1400040d9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003fa7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140003fa7
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 0x1400040d9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400040cc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140003fea
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 0x140004015
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 0x1400040d1
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 0x140004084
sub eax, 1
je 0x140004084
cmp eax, 2
jne 0x1400040cc
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 0x1400040d1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400040b2
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 0x1400040cc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400040d1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140005ad0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140004640
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004713
cmp byte [rcx + 0x71], 0
je 0x140004713
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000470f
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 0x1400046d4
sub eax, 1
je 0x1400046d8
cmp eax, 2
jne 0x14000470f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005ad0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140004706
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 0x14000470f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400046bc
xor al, al
jmp 0x1400046bc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005ad0
add rsp, 0x60
pop rbx
ret

Function at 0x140006528
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006572
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006572
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006572
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006572
cmp dword [rcx + 0x84], 0xe
jbe 0x140006572
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140006574
xor al, al
add rsp, 0x28
ret
Function at 0x180002150
Capabilities:
Get number of processors

Disassembly:
sub rsp, 0x28
mov rax, qword gs:[0x30]
mov rdx, qword [rax + 0x60]
mov r8, qword [rdx + 0x58]
mov eax, ecx
mov r9, qword [r8 + rax*8]
mov qword [rsp + 0x10], r9
test r9, r9
je 0x180002253
xor r11d, r11d
mov dword [rsp + 8], r11d
cmp r11d, 0x50
jae 0x180002253
mov ecx, r11d
cmp dword [r11 + r9], 0xc0000001
jne 0x180002245
cmp byte [r11 + r9 + 4], 0xeb
jne 0x180002245
cmp byte [r11 + r9 + 6], 0x48
jne 0x1800021c0
mov eax, dword [r11 + r9 + 9]
add rax, rcx
mov r10, qword [rax + r9 + 0x35]
jmp 0x1800021e2
movzx eax, byte [r11 + r9 + 6]
cmp al, 0x50
jb 0x1800021d9
cmp al, 0x58
ja 0x1800021d9
add r9, 1
mov qword [rsp + 0x10], r9
jmp 0x1800021c0
mov rax, qword [r11 + r9 + 8]
mov r10, qword [rax + 0x28]
test r10, r10
je 0x180002245
xor r8d, r8d
mov dword [rsp + 4], r8d
nop
cmp r8d, 0x30
jae 0x180002245
mov ecx, r8d
cmp byte [r8 + r10], 0xe8
jne 0x18000223a
cmp byte [r8 + r10 + 4], 0xff
jne 0x18000223a
movsxd rax, dword [r8 + r10 + 1]
add rax, rcx
lea rdx, [rax + r10 + 5]
xor eax, eax
mov dword [rsp], eax
nop
nop
cmp eax, 0x20
jae 0x18000223a
cmp byte [rax + rdx], 0xb8
jne 0x180002232
movzx eax, word [rax + rdx + 1]
jmp 0x180002257
add eax, 1
mov dword [rsp], eax
jmp 0x180002220
add r8d, 1
mov dword [rsp + 4], r8d
jmp 0x1800021f0
add r11d, 1
mov dword [rsp + 8], r11d
jmp 0x180002181
jmp 0x180002255
xor eax, eax
add rsp, 0x28
ret
Function at 0x180003bf4
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r14, rdx
xor r15d, r15d
xor edx, edx
mov rsi, r9
mov r13d, r8d
mov r12, rcx
mov rdi, r15
mov ebx, 8
call fcn.18000554c
cmp rax, r15
mov rbp, rax
je 0x180003ce0
cmp rsi, r15
je 0x180003c51
xor edx, edx
mov rcx, rsi
call fcn.18000554c
cmp rax, r15
mov rdi, rax
je 0x180003cce
mov rcx, r12
call fcn.180004f1c
cmp rax, r15
mov rsi, rax
je 0x180003c89
mov r9d, 1
mov r8d, r13d
mov rdx, r14
mov rcx, rax
call fcn.1800050ac
mov rcx, qword [0x18000f5b0]
mov r8, rsi
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp ebx, r15d
jne 0x180003cb7
lea rdx, [0x180011130]
mov r9, rdi
mov r8, rbp
xor ecx, ecx
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rbx, rax
cmp eax, 0x20
cmovg ebx, r15d
cmp rdi, r15
je 0x180003cce
mov rcx, qword [0x18000f5b0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x18000f5b0]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18000420c
Capabilities:
Clear file content
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov esi, r8d
mov eax, 0x1000
xor ebx, ebx
shr esi, 1
mov r12d, r8d
mov r13, rdx
cmp esi, eax
lea r8d, [rbx + 1]
mov edx, 0xc0000000
cmova esi, eax
and qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov r14, rcx
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x1800042d0
and qword [rsp + 0x20], rbx
mov ebp, esi
lea r9, [rsp + 0x80]
add rbp, r13
mov r8d, esi
mov rcx, rax
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800042b4
and qword [rsp + 0x20], rbx
sub r12d, esi
lea r9, [rsp + 0x80]
mov r8d, r12d
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1800042bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800042d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x18000434c
and qword [rsp + 0x30], 0
lea r8d, [rbx + 1]
xor r9d, r9d
mov edx, 0xc0000000
mov rcx, r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x180004344
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov r8d, esi
mov rdx, r13
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180004339
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
jmp 0x18000434c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x180004490
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0xa0
and dword [rax - 0x78], 0
mov rbp, rdx
xor edx, edx
mov rsi, rcx
lea rcx, [rax - 0x74]
lea r8d, [rdx + 0x6c]
call sub.ntdll.dll_memset
xor ebx, ebx
xor ecx, ecx
lea edx, [rbx + 2]
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov ecx, 0x750
call fcn.1800052c0
test rax, rax
mov rdi, rax
je 0x1800045cd
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test rbp, rbp
je 0x180004552
test rax, rax
je 0x180004506
lea rdx, [0x180011510]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rbp
lea ebx, [rax + rax]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, rsi
add ebx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [0x18000f5b0]
add eax, ebx
xor edx, edx
lea r8d, [rax + rax + 0x56]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x1800045bb
mov qword [rsp + 0x28], rbp
lea rdx, [0x180011650]
jmp 0x1800045a7
test rax, rax
je 0x180004567
lea rdx, [0x1800114c0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rsi
lea ebx, [rax + rax]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor edx, edx
lea ecx, [rbx + rax*2 + 0x24]
lea r8d, [rcx + rcx]
mov rcx, qword [0x18000f5b0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x1800045bb
mov qword [rsp + 0x28], rsi
lea rdx, [0x1800116b0]
mov r9, rdi
mov r8, rsi
mov rcx, rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, qword [0x18000f5b0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rax, [0x180011630]
test rbx, rbx
mov dword [rsp + 0x30], 0x70
mov qword [rsp + 0x40], rax
lea rax, [0x180011640]
mov qword [rsp + 0x50], rbx
cmovne rsi, rax
mov qword [rsp + 0x48], rsi
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1800045f9
test rbx, rbx
je 0x18000461f
mov rcx, qword [0x18000f5b0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.ole32.dll_CoUninitialize]
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180004b9c
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
mov dword [r11 + 0x18], r8d
push rdi
push r12
push r13
sub rsp, 0x50
xor r13d, r13d
lea rax, [r11 - 0x20]
mov r9d, 0x20019
xor r8d, r8d
xor edx, edx
mov rcx, 0xffffffff80000003
mov qword [r11 - 0x48], rax
mov dword [r11 + 0x18], r13d
mov dword [r11 - 0x24], r13d
mov dword [r11 - 0x28], r13d
mov r12, r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, r13d
mov ebx, eax
jne 0x180004d37
mov rcx, qword [0x18000f5b0]
xor edx, edx
mov r8d, 0x104
lea ebx, [r13 + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, r13
mov rdi, rax
je 0x180004d2c
mov rbp, qword [rsp + 0x90]
mov esi, 0x104
mov edx, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
lea r9, [rsp + 0x40]
mov r8, rdi
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x40], 0x104
mov dword [rsp + 0x44], esi
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0xea
mov ebx, eax
jne 0x180004cc2
cmp dword [rsp + 0x40], 0x104
jbe 0x180004c81
add dword [rsp + 0x80], 1
mov ebx, r13d
jmp 0x180004cf5
cmp dword [rsp + 0x44], esi
jbe 0x180004d1a
mov rcx, qword [0x18000f5b0]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [rsp + 0x44]
mov rcx, qword [0x18000f5b0]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, r13
mov r12, rax
jne 0x180004c7c
mov ebx, 8
jmp 0x180004d1a
cmp eax, r13d
jne 0x180004d10
mov r9d, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x80]
mov r8, r12
mov rdx, rdi
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call fcn.180004640
cmp eax, r13d
mov ebx, eax
jne 0x180004d10
mov rcx, qword [0x18000f5e8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x180004d1a
jmp 0x180004c27
cmp ebx, 0x103
cmove ebx, r13d
mov rcx, qword [0x18000f5b0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret

Function at 0x180004e9c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
test rcx, rcx
mov rdi, rcx
je 0x180004f08
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
mov esi, eax
je 0x180004f08
mov rcx, qword [0x18000f5b0]
lea r8d, [rax + rax]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180004f08
mov r8d, esi
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x180004f08
mov rcx, qword [0x18000f5b0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180004fb0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
xor edi, edi
mov rbp, r8
mov r12, rdx
and qword [rax - 0x28], rdi
mov dword [rax - 0x30], 0x80
lea r8d, [rdi + 1]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rax - 0x38], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x180005065
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov ebx, eax
jne 0x180005010
mov ebx, 0xe8
jmp 0x18000506d
mov rcx, qword [0x18000f5b0]
lea r8d, [rbx + 1]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x180005065
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180005065
cmp ebx, dword [rsp + 0x78]
je 0x180005056
mov ebx, 0x1e
jmp 0x18000506d
mov byte [rbx + rdi], 0
mov qword [r12], rdi
mov dword [rbp], ebx
xor ebx, ebx
jmp 0x18000506d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp rsi, 0xffffffffffffffff
je 0x18000507c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x180005097
test ebx, ebx
je 0x180005097
mov rcx, qword [0x18000f5b0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret

Function at 0x1800050ac
Capabilities:
Clear file content
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov dword [rax + 0x20], r9d
push rdi
sub rsp, 0x40
mov esi, r8d
mov rbp, rdx
xor ebx, ebx
mov qword [rax - 0x18], rbx
mov dword [rax - 0x20], 0x80
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rax - 0x28], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
jne 0x180005102
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x18000513b
lea r9, [rsp + 0x68]
mov r8d, esi
mov rdx, rbp
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
je 0x18000512a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x180005132
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret