joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400011d0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword gs:[0x60]
xor r12d, r12d
mov r13, rdx
mov rcx, qword [rax + 0x18]
add rcx, 0x10
mov qword [rsp + 0x60], rcx
mov r15, qword [rcx]
cmp r15, rcx
je 0x1400013e0
mov edx, 0x20b
mov r8d, 0x5a4d
nop dword [rax]
cmp qword [r15 + 0x60], 0
je 0x140001398
mov rsi, qword [r15 + 0x30]
test rsi, rsi
je 0x140001398
movsxd rax, dword [rsi + 0x3c]
mov r14d, dword [rax + rsi + 0x88]
add r14, rsi
cmp word [rsi], r8w
jne 0x1400013bd
cmp word [rax + rsi + 0x18], dx
jne 0x140001266
cmp dword [rax + rsi + 0x8c], 0
jbe 0x140001398
mov ebp, dword [r14 + 0x18]
xor edi, edi
test ebp, ebp
je 0x140001393
mov ebx, dword [r14 + 0x20]
add rbx, rsi
nop dword [rax + rax]
mov r11d, dword [rbx]
xor r10d, r10d
add r11, rsi
mov eax, 0xebd8d5ec
movzx r9d, byte [r11]
test r9b, r9b
je 0x140001353
mov ebp, 0xebd8d5ec
movzx r8d, r9b
sub r9b, 0x41
cmp r9b, 0x19
lea ecx, [r8 + 0x20]
movzx edx, cl
cmova edx, r8d
movsx r8d, dl
cmp eax, r8d
jne 0x1400012c4
xor ecx, ecx
jmp 0x1400012e9
movd xmm0, r8d
movd xmm2, eax
movdqa xmm1, xmm0
pandn xmm1, xmmword [0x1400044d0]
pand xmm1, xmm2
pandn xmm2, xmm0
por xmm1, xmm2
movd ecx, xmm1
lea eax, [r10 - 0x14272a14]
imul eax, r8d
add eax, ecx
mov ecx, r10d
test r10d, r10d
cmove ecx, ebp
movd xmm0, eax
pshufd xmm0, xmm0, 0
movd eax, xmm0
cmp ecx, ebp
jne 0x140001314
xor ecx, ecx
jmp 0x140001338
movd xmm1, ecx
movd xmm2, ebp
movdqa xmm0, xmm1
pandn xmm0, xmmword [0x1400044d0]
pand xmm0, xmm2
pandn xmm2, xmm1
por xmm0, xmm2
movd ecx, xmm0
imul eax, ecx
inc r10d
movzx r9d, byte [r10 + r11]
add eax, r8d
test r9b, r9b
jne 0x1400012a0
mov ebp, dword [r14 + 0x18]
mov ecx, eax
cmp r13, rcx
je 0x14000136a
inc edi
add rbx, 4
cmp edi, ebp
jb 0x140001280
jmp 0x140001383
mov eax, dword [r14 + 0x24]
mov ecx, dword [r14 + 0x1c]
add rax, rsi
add rcx, rsi
movzx edx, word [rax + rdi*2]
mov r12d, dword [rcx + rdx*4]
add r12, rsi
mov rcx, qword [rsp + 0x60]
mov r8d, 0x5a4d
mov edx, 0x20b
test r12, r12
jne 0x1400013a5
mov r15, qword [r15]
cmp r15, rcx
je 0x1400013e0
jmp 0x140001220
mov rbx, qword [rsp + 0x68]
mov rax, r12
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.DOS_header_e_magic_mismatch
lea rcx, [rsp + 0x70]
call fcn.1400011c0
lea rdx, [0x140004f28]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.Cannot_find_desired_export.
lea rcx, [rsp + 0x70]
call fcn.1400011c0
lea rdx, [0x140004f28]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140002bc4
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140006580]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140006590]
mov dword [rax], 1
mov rax, qword [0x1400065a0]
mov dword [rax], 1
mov rax, qword [0x140006500]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140006570]
mov dword [0x14000900c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140006640]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140006620]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400064d0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001880
Capabilities:
Copy file
Get common file path
Get startup folder
Persist via run registry key
Set registry value
Write file to startup folder

Disassembly:
sub rsp, 0x318
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor ecx, ecx
lea rdx, [rsp + 0x1d0]
mov qword [rsp + 0x58], rdx
mov r8d, 0x104
call rax
mov rdx, qword [rsp + 0x58]
lea r8, [rsp + 0x1af]
mov qword [rsp + 0x2d8], r8
mov rax, qword [rsp + 0x2d8]
mov qword [rsp + 0x310], rax
lea rcx, [rsp + 0x1b0]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
jmp 0x1400018dc
lea rax, [rsp + 0x1af]
mov qword [rsp + 0x2e8], rax
mov rcx, qword [rsp + 0x2e8]
call method.std::__new_allocator_char_.__new_allocator__
mov rax, rsp
lea rcx, [rsp + 0x90]
mov qword [rax + 0x20], rcx
mov rax, qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
xor r9d, r9d
mov r8d, r9d
mov edx, 7
mov rcx, r8
call rax
jmp 0x140001924
lea r8, [rsp + 0x6f]
mov qword [rsp + 0x2e0], r8
mov rax, qword [rsp + 0x2e0]
mov qword [rsp + 0x308], rax
lea rcx, [rsp + 0x70]
lea rdx, [rsp + 0x90]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
jmp 0x140001958
lea rax, [rsp + 0x6f]
mov qword [rsp + 0x2f8], rax
mov rcx, qword [rsp + 0x2f8]
call method.std::__new_allocator_char_.__new_allocator__
lea rcx, [rsp + 0x1b0]
lea rdx, [rsp + 0x70]
call method.bool_std::operator__char__std::char_traits_char___std.allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
test al, 1
jne 0x140001991
jmp 0x140001a70
lea rcx, [rsp + 0x1b0]
call fcn.14000272c
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x70]
call fcn.14000272c
mov rcx, qword [rsp + 0x50]
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CopyFileA]
xor r8d, r8d
call rax
jmp 0x1400019c6
jmp 0x140001a70
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov rcx, 0xffffffff80000001
lea r8, [rsp + 0x60]
call rax
mov dword [rsp + 0x4c], eax
jmp 0x140001a95
mov eax, dword [rsp + 0x4c]
cmp eax, 0
jne 0x140001b1e
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x1b0]
mov qword [rsp + 0x30], rcx
call fcn.14000272c
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
call fcn.14000273c
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov r8d, eax
inc r8d
mov rax, rsp
mov dword [rax + 0x28], r8d
mov qword [rax + 0x20], rdx
lea rdx, str.CalculatorAutoLaunch_7KO45DE4T5F6OJG6NFJP4
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor r8d, r8d
mov r9d, 1
call rax
jmp 0x140001b06
mov rcx, qword [rsp + 0x60]
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
jmp 0x140001b19
jmp 0x140001b1e
lea rcx, [rsp + 0x70]
call fcn.1400026b4
lea rcx, [rsp + 0x1b0]
call fcn.1400026b4
xor eax, eax
add rsp, 0x318
ret
Function at 0x140001b60
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x40], rcx
xor eax, eax
mov ecx, eax
call qword [sym.imp.USER32.dll_OpenClipboard]
cmp eax, 0
je 0x140001c07
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rcx, qword [rsp + 0x40]
call sym.strlen
add rax, 1
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x38]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140001c01
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140001bfc
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
call sub.msvcrt.dll_strcpy
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, qword [rsp + 0x30]
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x140001c01
call qword [sym.imp.USER32.dll_CloseClipboard]
nop
add rsp, 0x48
ret

Function at 0x140001c10
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub rsp, 0x88
mov qword [rsp + 0x40], rcx
mov rax, rcx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x80], rcx
mov byte [rsp + 0x7f], 0
call fcn.1400026bc
mov rax, qword [sym.imp.USER32.dll_OpenClipboard]
xor ecx, ecx
call rax
mov dword [rsp + 0x54], eax
jmp 0x140001c4a
mov eax, dword [rsp + 0x54]
cmp eax, 0
je 0x140001d1c
mov rax, qword [sym.imp.USER32.dll_GetClipboardData]
mov ecx, 1
call rax
mov qword [rsp + 0x38], rax
jmp 0x140001c6f
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x140001d09
mov rcx, qword [rsp + 0x60]
mov rax, qword [sym.imp.KERNEL32.dll_GlobalLock]
call rax
mov qword [rsp + 0x30], rax
jmp 0x140001c9d
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140001d04
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x58]
call fcn.1400026ac
jmp 0x140001cc7
mov rcx, qword [rsp + 0x60]
mov rax, qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call rax
jmp 0x140001cda
jmp 0x140001d04
jmp 0x140001d09
mov rax, qword [sym.imp.USER32.dll_CloseClipboard]
call rax
jmp 0x140001d17
jmp 0x140001d1c
mov byte [rsp + 0x7f], 1
test byte [rsp + 0x7f], 1
jne 0x140001d36
mov rcx, qword [rsp + 0x40]
call fcn.1400026b4
mov rax, qword [rsp + 0x48]
add rsp, 0x88
ret

Function at 0x140002a20
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140002a90
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090d4]
mov rbx, rcx
test esi, esi
jle 0x140002bc0
mov rax, qword [0x1400090d8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002adb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002b65
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002ac0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140002be2
mov rax, qword [0x1400090d8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090d8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002bc7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140002b5e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140002b70
add dword [0x1400090d4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400090d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002b5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140002ae8
mov rax, qword [0x1400090d8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003170
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009140]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140009120]
test rbx, rbx
je 0x1400031cc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400031c3
test eax, eax
jne 0x1400031c3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400031a8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400033e0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400033f8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140003400
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140003410
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000345d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140003454
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000345f
add rax, 0x28
cmp rax, r9
jne 0x140003440
xor eax, eax
ret

Function at 0x140003460
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400034f0
mov rdx, qword [0x140006500]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400034de
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400034de
cmp word [rax + 0x18], 0x20b
jne 0x1400034de
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400034f0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400034c9
add rbx, 0x28
cmp rbx, rdi
je 0x1400034f0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400034c0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140003500
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006500]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003520
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003528
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003520
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000357d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003574
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003520
add rax, 0x28
cmp rax, r9
jne 0x140003560
xor eax, eax
ret

Function at 0x140003580
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006500]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000359f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400035a8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000359f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400035c0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140006500]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400035e0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400035e8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400035e0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140003630
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140003627
test rcx, rcx
je 0x1400035e0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140003618
xor eax, eax
ret
Function at 0x140003640
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006500]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000365f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003668
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140003680
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006500]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400036a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400036a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400036a0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400036a0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400036f4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140003700
add rdx, 0x28
cmp rdx, r9
jne 0x1400036e0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140003710
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140006500]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140003732
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140003740
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003732
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140003732
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140003732
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140003795
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400037a8
add rdx, 0x28
cmp r10, rdx
jne 0x140003780
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400037b7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400037c7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000379e
test ecx, ecx
jg 0x1400037b0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001050
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x88
xor eax, eax
mov r14, r8
mov rbx, rdx
mov qword [rsp + 0x50], rax
mov rdi, rcx
mov qword [rsp + 0x58], rax
lea rdx, [0x14002c650]
mov qword [rsp + 0x60], rax
lea r8d, [rax + 0x58]
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rsi, r9
mov ebp, eax
call fcn.14000b630
mov r15d, eax
test eax, eax
je 0x1400010d3
lea rdx, [rbx + 0x12]
mov r8d, eax
lea rcx, [0x14002c660]
call fcn.140002b10
lea eax, [rbp - 1]
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x2000
mov qword [rsp + 0x80], r13
call fcn.140015570
mov r13, rax
test rax, rax
jne 0x140001109
lea r8, [rbx + 0x12]
lea rdx, [0x14002c6b0]
lea rcx, [0x14002c6f4]
call fcn.140002870
jmp 0x140001264
mov ecx, 0x2000
call fcn.140015570
mov rbp, rax
test rax, rax
jne 0x140001137
lea r8, [rbx + 0x12]
lea rdx, [0x14002c700]
lea rcx, [0x14002c6f4]
call fcn.140002870
jmp 0x140001264
mov qword [rsp + 0xd0], r12
mov r15d, 0xffffffff
mov r12d, dword [rbx + 8]
nop dword [rax]
mov eax, 0x2000
mov rbx, r12
cmp r12, rax
mov r9, rdi
mov edx, 1
mov rcx, r13
cmova rbx, rax
mov r8, rbx
call fcn.140010abc
cmp rax, rbx
jne 0x14000125c
mov rcx, rdi
call fcn.140010830
test eax, eax
jne 0x14000125c
sub r12, rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r13
nop word [rax + rax]
mov ebx, 0x2000
mov qword [rsp + 0x30], rbp
xor edx, edx
mov dword [rsp + 0x38], ebx
lea rcx, [rsp + 0x20]
call fcn.140009a70
mov edi, eax
mov r15d, 0xffffffff
lea ecx, [rax + 4]
cmp ecx, 2
jbe 0x140001241
cmp eax, 2
je 0x14000123c
mov ecx, dword [rsp + 0x38]
sub rbx, rcx
test r14, r14
je 0x140001203
mov r9, r14
lea edx, [r15 + 2]
mov r8, rbx
mov rcx, rbp
call fcn.1400111fc
cmp rax, rbx
jne 0x1400011fe
mov rcx, r14
call fcn.140010830
test eax, eax
je 0x140001219
mov edi, r15d
jmp 0x140001241
test rsi, rsi
je 0x140001219
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.14002ace0
add rsi, rbx
cmp dword [rsp + 0x38], 0
je 0x1400011a0
cmp edi, 1
je 0x140001237
test r12, r12
je 0x140001241
mov rdi, qword [rsp + 0xc0]
jmp 0x140001150
xor r15d, r15d
jmp 0x14000125c
mov edi, 0xfffffffd
mov rdx, qword [rsp + 0xc8]
lea rcx, [0x14002c750]
add rdx, 0x12
mov r8d, edi
call fcn.140002b10
mov r12, qword [rsp + 0xd0]
lea rcx, [rsp + 0x20]
call fcn.14000b310
mov rcx, r13
call fcn.14001555c
mov rcx, rbp
call fcn.14001555c
mov r13, qword [rsp + 0x80]
mov eax, r15d
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400012a0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push r13
push r14
mov eax, 0x1050
call fcn.14000bda0
sub rsp, rax
mov rax, qword [0x14003f040]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov rsi, rdx
mov r13, rcx
add rcx, 0x70
lea rdx, [0x14002c854]
mov ebp, 0xffffffff
call fcn.140003fc0
mov r14, rax
test rax, rax
jne 0x140001301
lea rdx, [rsi + 0x12]
lea rcx, [0x14002c858]
call fcn.140002b10
xor ebx, ebx
jmp 0x14000142a
mov edx, dword [rsi + 4]
xor r8d, r8d
add rdx, qword [r13]
mov rcx, r14
call fcn.140010df4
test eax, eax
jns 0x14000133d
lea r8, [rsi + 0x12]
lea rdx, [0x14002c890]
lea rcx, [0x14002c8cc]
call fcn.140002870
mov rcx, r14
call fcn.14001076c
xor ebx, ebx
jmp 0x14000142a
mov ecx, dword [rsi + 0xc]
mov qword [rsp + 0x1048], r12
call fcn.140015570
mov r12, rax
mov rbx, rax
test rax, rax
jne 0x140001380
mov r9d, dword [rsi + 0xc]
lea r8, [rsi + 0x12]
lea rdx, [0x14002c8e0]
lea rcx, [0x14002c6f4]
call fcn.140002870
mov rcx, r14
call fcn.14001076c
jmp 0x140001422
cmp byte [rsi + 0x10], 1
mov qword [rsp + 0x1090], rdi
mov qword [rsp + 0x1040], r15
jne 0x140001453
mov r9, r12
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call fcn.140001050
test eax, eax
jne 0x1400014c7
mov rcx, r14
add rsi, 0x12
call fcn.14001076c
mov rdx, rsi
lea rcx, [r13 + 0x3070]
call fcn.1400077c0
test eax, eax
js 0x140001412
mov qword [rsp + 0x28], rsi
lea r9, [r13 + 0x3070]
lea r8, [0x14002c924]
mov dword [rsp + 0x20], 0x5c
mov edx, 0x1000
lea rcx, [rsp + 0x30]
call fcn.140001ee0
cmp eax, 0x1000
jge 0x140001412
lea rdx, [rsp + 0x30]
mov rcx, r12
call fcn.140004160
mov ebp, eax
mov rdi, qword [rsp + 0x1090]
mov r15, qword [rsp + 0x1040]
mov r12, qword [rsp + 0x1048]
mov rcx, rbx
call fcn.14001555c
mov eax, ebp
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.14000be00
add rsp, 0x1050
pop r14
pop r13
pop rsi
pop rbp
pop rbx
ret
mov edi, dword [rsi + 0xc]
mov r15, r12
test rdi, rdi
je 0x1400013b3
mov eax, 0x2000
nop word [rax + rax]
cmp rdi, rax
mov rbp, rdi
mov r9, r14
mov r8d, 1
cmova rbp, rax
mov rcx, r15
mov rdx, rbp
call fcn.140010abc
cmp rax, 1
jb 0x1400014ab
add r15, rbp
mov eax, 0x2000
sub rdi, rbp
jne 0x140001470
mov ebp, 0xffffffff
jmp 0x1400013b3
lea r8, [rsi + 0x12]
lea rdx, [0x14002c7d8]
lea rcx, [0x14002c80c]
call fcn.140002870
mov ebp, 0xffffffff
mov rcx, r12
call fcn.14001555c
mov rcx, r14
call fcn.14001076c
xor ebx, ebx
jmp 0x140001412