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

Disassembly:
jmp 0x140013f00
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]
nop
add rsp, 0x28
ret

Function at 0x1400112f3
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
jmp 0x1400127b0
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x138], rax
lea rcx, [0x1400250f5]
call fcn.140011424
nop
mov dword [rbp + 4], 0
lea rcx, [rbp + 0x24]
call fcn.14001141a
mov qword [rbp + 0x48], rax
movsxd rax, dword [rbp + 0x24]
mov r9d, 4
mov r8d, 0x3000
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0x68], rax
movsxd rax, dword [rbp + 0x24]
mov r8, rax
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x68]
call fcn.140011460
nop
movsxd rax, dword [rbp + 0x24]
lea r9, [rbp + 4]
mov r8d, 0x40
mov rdx, rax
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
mov r8d, 0x6f7f0
mov edx, dword [rbp + 0x24]
mov rcx, qword [rbp + 0x68]
call fcn.140011163
nop
call qword [rbp + 0x68]
nop
movsxd rax, dword [rbp + 0x24]
mov r8d, 0x8000
mov rdx, rax
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
lea rcx, str.Success_Load_
call fcn.1400111f9
nop
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001bd50]
call fcn.1400113a2
mov eax, edi
mov rcx, qword [rbp + 0x138]
xor rcx, rbp
call fcn.140011212
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret

Function at 0x1400112fd
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015250
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015270
xor al, al
jmp 0x1400152f1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015283
xor al, al
jmp 0x1400152f1
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 0x1400152ad
xor al, al
jmp 0x1400152f1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400152c1
xor al, al
jmp 0x1400152f1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400152d3
xor al, al
jmp 0x1400152f1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400152ef
xor al, al
jmp 0x1400152f1
mov al, 1
add rsp, 0x38
ret
Function at 0x14001141a
Capabilities:
Extract resource via kernel32 functions
Terminate process

Disassembly:
jmp 0x140012490
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rcx, [0x1400250f5]
call fcn.140011424
nop
call fcn.1400114b0
nop
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x1400124f4
lea rdx, [0x14001bd88]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001108c
lea rdx, [0x14001103c]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
xor eax, eax
jmp 0x1400125a9
lea r8, str.TXT_FILE
mov edx, 0x6a
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x14001252e
lea rcx, str.Error:_unable_to_find_resource_n
call fcn.1400111f9
nop
mov ecx, 0xffffffff
call qword [sym.imp.ucrtbased.dll_exit]
nop
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x140012560
lea rcx, str.Error:_unable_to_load_resource_n
call fcn.1400111f9
nop
mov ecx, 0xffffffff
call qword [sym.imp.ucrtbased.dll_exit]
nop
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x14001258e
lea rcx, str.Error:_unable_to_lock_resource_n
call fcn.1400111f9
nop
mov ecx, 0xffffffff
call qword [sym.imp.ucrtbased.dll_exit]
nop
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, qword [rbp + 0x160]
mov dword [rcx], eax
mov rax, qword [rbp + 0x68]
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x140013140
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.14001144c
movzx eax, al
test eax, eax
jne 0x140013160
mov ecx, 7
call fcn.1400113ac
nop
mov byte [rsp + 0x20], 0
call fcn.1400113c0
mov byte [rsp + 0x21], al
cmp dword [0x14001f868], 1
jne 0x140013184
mov ecx, 7
call fcn.1400113ac
nop
jmp 0x1400131dc
cmp dword [0x14001f868], 0
jne 0x1400131d7
mov dword [0x14001f868], 1
lea rdx, [0x14001b660]
lea rcx, [0x14001b330]
call fcn.1400111fe
test eax, eax
je 0x1400131b8
mov eax, 0xff
jmp 0x1400132e1
lea rdx, [0x14001b220]
lea rcx, [section..rdata]
call fcn.1400113b6
mov dword [0x14001f868], 2
jmp 0x1400131dc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011398
call fcn.140011325
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140013239
mov rcx, qword [rsp + 0x30]
call fcn.1400111a4
movzx eax, al
test eax, eax
je 0x140013239
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140026020]
nop
call fcn.14001135c
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001326d
mov rcx, qword [rsp + 0x38]
call fcn.1400111a4
movzx eax, al
test eax, eax
je 0x14001326d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011401
nop
call fcn.140013390
mov dword [rsp + 0x28], eax
call fcn.1400112fd
movzx eax, al
test eax, eax
jne 0x14001328c
mov ecx, dword [rsp + 0x28]
call fcn.140011069
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001329b
call fcn.14001140b
nop
xor edx, edx
mov cl, 1
call fcn.140011190
mov eax, dword [rsp + 0x28]
jmp 0x1400132e1
add rsp, 0x68
ret
Function at 0x1400029b0
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 0x1400029d8
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 0x1400029fe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002a00
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002a59
test ecx, ecx
jle 0x140002a39
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 0x140002a59
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002a59
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 0x140002a80
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 0x140002aa2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140002ab8
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 0x140002ad4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002ad6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002b12
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 0x140002bae
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140002b4d
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 0x140002b8e
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 0x140002bae
cmp rbx, rax
ja 0x140002b60
test rbx, rbx
je 0x140002bae
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 0x140003010
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000303d
xor eax, eax
jmp 0x1400031a9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003077
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140003077
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 0x1400031a9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000319c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400030ba
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 0x1400030e5
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 0x1400031a1
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 0x140003154
sub eax, 1
je 0x140003154
cmp eax, 2
jne 0x14000319c
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 0x1400031a1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003182
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 0x14000319c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400031a1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004730
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400036b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003783
cmp byte [rcx + 0x71], 0
je 0x140003783
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000377f
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 0x140003744
sub eax, 1
je 0x140003748
cmp eax, 2
jne 0x14000377f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004730
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003776
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 0x14000377f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000372c
xor al, al
jmp 0x14000372c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004730
add rsp, 0x60
pop rbx
ret

Function at 0x1400050b0
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x14008251d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14008252d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140082515
lea eax, [rcx + 1]
jmp 0x14008253b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14008254e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140082534
sub eax, 3
jb 0x14008256e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400825bd
sar eax, 1
movsxd rbp, eax
jb 0x1400825a4
jmp 0x14008257c
add ebx, ebx
jne 0x14008257a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400825a4
inc ecx
add ebx, ebx
jne 0x14008258a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400825a4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14008259d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14008258c
add ecx, 2
jmp 0x1400825a9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400824d2
jmp 0x14008251d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x46800
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14008260d
cmp rsi, rcx
jae 0x140082615
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400825f4
cmp al, 0x8f
ja 0x1400825f4
cmp byte [rsi - 2], 0xf
je 0x1400825fa
sub al, 0xe8
cmp al, 1
ja 0x1400825de
cmp rsi, rcx
jae 0x140082615
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400825e4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140082615
lodsb al, byte [rsi]
jmp 0x1400825f4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x7f000]
mov eax, dword [rdi]
or eax, eax
je 0x14008267e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x8c338]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140082622
jns 0x140082657
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140082661
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140082678
mov qword [rbx], rax
add rbx, 8
jmp 0x140082642
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400826b8
cmp al, 0xef
ja 0x1400826aa
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14008268a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140082699
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x247]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14008270c
sub rsp, 0xffffffffffffff80
jmp 0x140032ee0
Function at 0x14000f1b0
Capabilities:
Enumerate gui resources

Disassembly:
push rbp
mov ecx, 0x70
mov edx, 1
mov rbp, rsp
push r12
push rdi
push rsi
lea rsi, str.7eff141e576f58846c92843c10845dfff58c9d20ab149f9884ad98840f98949c13d47c98943c98845dff5e354a85ab149c13842f988485140000010086951404a66f98e5024c38845dfff58c9d20ab149f9884851440a69c13d42e988401ce38845dff652a5b0f865e57ecff94c0470c585dff16475a99ab149f98842e98c4851401a67c98845dff0efdf0aeab141c98840cff842c98840cff840c13d49c13d40505e514a0a65dff00b60892ab14950000101086ae98c45dff706277c4ab141f98c44e98944514d80bc26cd6300020cb945e98940000100ace18846e9894651400002333f5233777eb94d5ffffffb49e21b884a59514850eff251402ce3884a51495148514a595e5851485140d10848840b8140d1094c104b84484c0b814660d10944204b844858d571d93548042c430c41f570e831c1014cad09c1c140c13846d10848843b8149c13d49cff84653e0d10948184b80204b844050d108476470c58840000008808b80000002758f020b0818718660d1084c324b80225b884151425de2e1c1014d09c1c1402c220c716c3ca0c1384a4a47bf0840527b8849c13d40225b8848125b8840625b88456652d1384152505141514000000cc8e0f4e3884cf
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x3b0
lea rbx, [rsp + 0x20]
mov rdi, rbx
rep movsq qword [rdi], qword [rsi]
mov ecx, 0x1c1
movzx eax, word [rsi]
mov word [rdi], ax
movzx eax, byte [0x1400113aa]
mov byte [rdi + 2], al
call sub.msvcrt.dll_calloc
test rax, rax
je 0x14000f2c7
mov r12, rax
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__strrev]
movzx eax, byte [rsp + 0x20]
test al, al
je 0x14000f25d
mov rdi, rbx
mov rsi, r12
lea rbx, str._02X
jmp 0x14000f24d
mov rcx, rdi
mov r8, rsi
mov rdx, rbx
add rdi, 2
call fcn.14000f180
movzx eax, byte [rdi]
add rsi, 1
test al, al
je 0x14000f25d
cmp al, 0x20
jne 0x14000f230
movzx eax, byte [rdi + 1]
add rdi, 1
test al, al
jne 0x14000f24d
xor r8d, r8d
xor edx, edx
mov ecx, 0x40000
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov r8d, 8
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rax
test rax, rax
je 0x14000f2b0
mov rdx, r12
mov r8d, 0x1c1
call sub.msvcrt.dll_memmove
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_EnumWindows]
lea rsp, [rbp - 0x20]
pop rbx
pop rsi
pop rdi
pop r12
pop rbp
ret
lea rcx, str.HeapAlloc_error
call fcn.14000f130
lea rsp, [rbp - 0x20]
pop rbx
pop rsi
pop rdi
pop r12
pop rbp
ret
lea rcx, str.malloc_error
call fcn.14000f130
jmp 0x14000f29f
Function at 0x140005730
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x498
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x410], 0xfffffffffffffffe
mov qword [rbp + 0x3f0], rcx
mov qword [rbp + 0x3f8], 0
mov qword [rbp + 0x400], 2
mov qword [rbp + 0x408], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x1400057d0
jmp 0x1400057bf
jae 0x14000588f
cmp r8, 0x201
jae 0x1400057d0
mov r14d, 0x200
lea r15, [rbp - 0x60]
mov r12, r8
jmp 0x140005827
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x1400057ff
lea rcx, [rbp + 0x3f8]
mov rdx, rbx
call fcn.14001c810
mov rsi, qword [rbp + 0x3f8]
mov rax, qword [rbp + 0x400]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x408], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3e8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x140005850
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140005909
mov r8d, r13d
cmp r12, r8
jne 0x1400057b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000593d
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x1400057bf
jmp 0x1400057d0
cmp r14, r8
jb 0x140005957
lea rcx, [rbp + 0x3c8]
mov rdx, r15
call fcn.140007fe0
movups xmm0, xmmword [rbp + 0x3c8]
movups xmm1, xmmword [rbp + 0x3d8]
movaps xmmword [rbp + 0x3b0], xmm1
movaps xmmword [rbp + 0x3a0], xmm0
mov rsi, qword [rbp + 0x3f0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3f8]
test rdx, rdx
je 0x1400058f2
mov rcx, qword [rbp + 0x400]
add rdx, rdx
mov r8d, 2
call fcn.140003270
mov rax, rsi
add rsp, 0x498
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3f0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3f8]
test rdx, rdx
jne 0x1400058dd
jmp 0x1400058f2
lea rcx, str.internal_error:_entered_unreachable_code_rustc_9b00956e56009bab2aa15d7bff10916599e3d6d6library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14001d650
jmp 0x14000596c
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.14001da30
ud2