joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001222c
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140012000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140012000
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140012000
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140012000
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140012000
cmp dword [rcx + 0x84], 0xe
jbe 0x140012000
cmp dword [rcx + 0xf8], esi
je 0x140012000
mov ecx, r14d
call fcn.140012148
mov ecx, 2
call fcn.140018a80
nop
cmp byte [0x140040740], 0
jne 0x1400120ca
mov r15d, 1
mov eax, r15d
xchg dword [0x140040734], eax
test ebx, ebx
jne 0x140012073
mov rdi, qword [0x140032010]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140040738]
cmp rcx, rax
je 0x14001206a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140009530]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140040750]
jmp 0x14001207f
cmp ebx, r15d
jne 0x140012085
lea rcx, [0x140040768]
call fcn.1400126fc
nop
test ebx, ebx
jne 0x14001209c
lea rdx, [0x1400223c8]
lea rcx, [0x1400223a0]
call fcn.140011ec0
lea rdx, [0x1400223d8]
lea rcx, [0x1400223d0]
call fcn.140011ec0
movzx eax, byte [0x140040740]
test esi, esi
cmove eax, r15d
mov byte [0x140040740], al
jmp 0x1400120ca
mov ecx, 2
call fcn.140018ad4
test esi, esi
jne 0x1400120e1
mov ecx, r14d
call fcn.1400120fc
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140011f90
Function at 0x1400147c0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x140014660
call fcn.14000e548
mov dword [rax], 0x16
call fcn.140013760
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140014648
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140014648
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x140014692
lock or dword [rax + 0x14], 0x10
jmp 0x140014648
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1400146af
mov rcx, qword [rbp + 0x10]
call fcn.14001bab4
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14000fbf8
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.140014098
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x140014706
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x140014648
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x140014772
mov rcx, qword [rbp + 0x10]
call fcn.14000fbf8
cmp eax, 0xffffffff
je 0x140014759
mov rcx, qword [rbp + 0x10]
call fcn.14000fbf8
cmp eax, 0xfffffffe
je 0x140014759
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14000fbf8
movsxd rdi, eax
lea rsi, [0x140040790]
mov rcx, rbx
sar rdi, 6
call fcn.14000fbf8
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x140014760
lea rax, [0x140032270]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140014772
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1400147a8
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1400147a4
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1400147a4
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x14001464b
jmp 0x140014618
Function at 0x140f62294
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f6229e
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f622c7
pop rbp
sub rbp, 0x33
sub rbp, 0xf62294
sub rsp, 0x20
jmp 0x140f622e6
mov rax, 0xf62294
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffac9a811a
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f62305
jmp 0x140f6231c
push rdx
xchg ebx, eax
xchg ecx, eax
xchg ebx, eax
sbb bl, byte es:[rdx]
sbb dl, byte [rdx - 0x65]
fist dword [rdx]
sbb ebx, dword [rdx]
sbb dl, byte [rdx + 0x1b]
push rdx
fstp st(2)
adc bl, byte [rdx]
sbb bl, byte [rdx]
push rdx
fstp st(0)
xor bl, byte [rdx]
sbb bl, byte [rdx]
push rdx
in eax, dx
clc
push rdx
sbb ebx, ebx
xchg ecx, eax
wait
invalid
Function at 0x1400013d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400014cc
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400014cc
mov rcx, rbx
mov dword [rbx], 0x114
call rax
test eax, eax
jne 0x1400014cc
mov ebx, 0x5c
mov dword [rsp + 0x38], eax
mov edx, ebx
mov dword [rsp + 0x3c], 4
lea rcx, str.RegistryMachineSoftwareMicrosoftWindows_NTCurrentVersion
call fcn.14000c498
movzx edx, bx
lea rcx, [rax + 2]
call fcn.14000c498
movzx edx, bx
lea rcx, [rax + 2]
call fcn.14000c498
lea rcx, [rsp + 0x30]
mov r9d, 0x20019
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, 0xffffffff80000002
lea rdx, [rax + 2]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400014b5
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rdx, [0x140030f10]
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140008700
add rsp, 0x50
pop rbx
ret
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140008700
add rsp, 0x50
pop rbx
ret
Function at 0x1400014f0
Capabilities:
Enumerate process modules
Find taskbar
Get process image filename

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r14
mov eax, 0x2280
call fcn.140024e80
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2270], rax
mov r14, rcx
xor edx, edx
lea rcx, str.Shell_TrayWnd
call qword [sym.imp.USER32.dll_FindWindowW]
xor ebx, ebx
lea rdx, [rsp + 0x30]
mov rcx, rax
mov dword [rsp + 0x30], ebx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea r8, [rsp + 0x34]
mov dword [r14], ebx
mov edx, 0x2000
mov qword [r14 + 4], 0xffffffffffffffff
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
mov ebp, dword [rsp + 0x34]
shr rbp, 2
test rbp, rbp
je 0x140001610
mov qword [rsp + 0x2298], rdi
mov qword [rsp + 0x2290], rsi
mov edi, dword [rsp + rbx*4 + 0x60]
cmp edi, dword [rsp + 0x30]
jne 0x1400015f8
mov r8d, edi
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x1400015f8
mov r8d, 0x104
lea rdx, [rsp + 0x2060]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
lea rax, [rsp + 0x40]
mov rcx, rsi
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcessTimes]
mov rax, qword [rsp + 0x38]
cmp eax, dword [r14 + 4]
jae 0x1400015ef
mov dword [r14], edi
mov qword [r14 + 4], rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc rbx
cmp rbx, rbp
jl 0x140001582
mov rdi, qword [rsp + 0x2298]
mov rsi, qword [rsp + 0x2290]
mov rax, r14
mov rcx, qword [rsp + 0x2270]
xor rcx, rsp
call fcn.140008700
lea r11, [rsp + 0x2280]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x140001640
Capabilities:
Create restart manager session
Enumerate processes that use resource

Disassembly:
mov eax, 0x2a48
call fcn.140024e80
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2a30], rax
lea r8, [0x140037dd0]
xor edx, edx
lea rcx, [0x140036a74]
call qword [sym.imp.RstrtMgr.DLL_RmStartSession]
test eax, eax
jne 0x14000170c
lea rcx, [rsp + 0x40]
call fcn.1400014f0
mov ecx, dword [0x140036a74]
mov r9d, 1
xor r8d, r8d
xor edx, edx
movsd xmm0, qword [rax]
movsd qword [rsp + 0x60], xmm0
mov eax, dword [rax + 8]
mov dword [rsp + 0x68], eax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
mov ecx, dword [0x140036a74]
lea rax, [rsp + 0x54]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], 0x10
lea rdx, [rsp + 0x58]
call qword [sym.imp.RstrtMgr.DLL_RmGetList]
cmp dword [rsp + 0x54], 0
jne 0x14000170c
mov ecx, dword [0x140036a74]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.RstrtMgr.DLL_RmShutdown]
xor eax, eax
mov rcx, qword [rsp + 0x2a30]
xor rcx, rsp
call fcn.140008700
add rsp, 0x2a48
ret
Function at 0x140002020
Capabilities:
Extract resource via kernel32 functions

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, 0xc0
mov rsi, rcx
xor r14d, r14d
mov qword [rcx], r14
mov edx, 0x67
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x1400020c4
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400020c4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rbx
xor ecx, ecx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test rbp, rbp
je 0x1400020c4
test eax, eax
je 0x1400020c4
mov ecx, 0x18
call fcn.140015a2c
mov rbx, rax
test rax, rax
je 0x1400020c4
mov ecx, edi
call fcn.140015a2c
mov qword [rbx], rax
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], r14
test rax, rax
jne 0x1400020e4
mov rcx, rbx
call fcn.140015a18
xor eax, eax
lea r11, [rsp + 0xc0]
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
mov r8, rdi
mov qword [rsi], rbx
mov rdx, rbp
mov rcx, rax
call fcn.1400253e0
lea rax, [0x140001f60]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
lea rax, [0x140001f70]
mov qword [rsp + 0xa8], r14
mov qword [rsp + 0x28], rax
lea rax, [fcn.140001fd0]
movaps xmm0, xmmword [rsp + 0x20]
mov qword [rsp + 0x30], rax
lea rax, [0x140001fe0]
mov qword [rsp + 0x38], rax
lea rax, [0x140001ff0]
movaps xmm1, xmmword [rsp + 0x30]
mov qword [rsp + 0x40], rax
lea rax, [fcn.140001fd0]
mov qword [rsp + 0x48], rax
lea rax, [fcn.140001fd0]
mov qword [rsp + 0x50], rax
movaps xmmword [rsp + 0x60], xmm0
movaps xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x70], xmm1
movaps xmm1, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x90], xmm1
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0xb0], r14
call fcn.1400060f0
jmp 0x1400020c6
Function at 0x1400021a0
Capabilities:
Create directory
Get common file path
Move file

Disassembly:
push rbx
sub rsp, 0x280
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
lea rax, [rsp + 0x60]
xor ecx, ecx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1a
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea r8, str.ExplorerPatchercleanup
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.1400150ac
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r8, [0x1400308c0]
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.1400150ac
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9d, 0xa
lea rdx, [rsp + 0x30]
mov r8d, r9d
mov ecx, eax
call fcn.1400160f0
lea r8, [rsp + 0x30]
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.1400150ac
lea r8, [0x140031364]
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.1400150ac
mov ecx, dword [0x140036a70]
lea rdx, [rsp + 0x48]
mov r9d, 0xa
mov r8d, r9d
lea eax, [rcx + 1]
mov dword [0x140036a70], eax
call fcn.1400160f0
lea r8, [rsp + 0x48]
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.1400150ac
lea r8, [0x140031368]
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.1400150ac
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140008700
add rsp, 0x280
pop rbx
ret
Function at 0x140003050
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x6a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x690], rax
mov rsi, rcx
mov r8, rcx
lea rcx, [rsp + 0x480]
mov edx, 0x104
call fcn.140016110
lea r8, [0x140031414]
mov edx, 0x104
lea rcx, [rsp + 0x480]
call fcn.1400150ac
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400030d0
mov eax, 1
jmp 0x1400031bb
lea rdx, [0x14003141c]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140003176
lea rdx, [0x140031420]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140003176
mov r8, rsi
lea rcx, [rsp + 0x270]
mov edx, 0x104
call fcn.140016110
lea r8, [0x1400308c0]
mov edx, 0x104
lea rcx, [rsp + 0x270]
call fcn.1400150ac
lea r8, [rsp + 0x4c]
mov edx, 0x104
lea rcx, [rsp + 0x270]
call fcn.1400150ac
test byte [rsp + 0x20], 0x10
lea rcx, [rsp + 0x270]
je 0x14000315b
call fcn.140003050
jmp 0x140003172
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140003176
lea rcx, [rsp + 0x270]
call fcn.1400021a0
test eax, eax
je 0x1400031dc
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400030d0
mov qword [rsp + 0x6b8], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp ebx, 0x12
mov rbx, qword [rsp + 0x6b8]
jne 0x1400031e5
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.140008700
mov rsi, qword [rsp + 0x6c0]
add rsp, 0x6a0
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x1400031bb
Function at 0x140009114
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140015ba7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140015ba7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140015ba7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140015ba7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140015ba7
cmp dword [rcx + 0x84], 0xe
jbe 0x140015ba7
cmp dword [rcx + 0xf8], 0
je 0x140015ba7
mov ecx, ebx
call fcn.140015c58
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140015a34
nop
cmp dword [rbp + 0x20], 0
je 0x140015bf5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140015c00
int3
xor r8d, r8d
xor edx, edx
jmp 0x140015b38

Function at 0x140015d3c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140015ba7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140015ba7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140015ba7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140015ba7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140015ba7
cmp dword [rcx + 0x84], 0xe
jbe 0x140015ba7
cmp dword [rcx + 0xf8], 0
je 0x140015ba7
mov ecx, ebx
call fcn.140015c58
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140015a34
nop
cmp dword [rbp + 0x20], 0
je 0x140015bf5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140015c00
int3
xor r8d, r8d
xor edx, edx
jmp 0x140015b38
Function at 0x140016730
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140024e80
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001970c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001677f
mov rax, rbp
jmp 0x140016887
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x37530]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001c918
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x37530]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140016883
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140016883
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001c918
test rax, rax
js 0x140016883
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140016883
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140016875
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140016875
cmp byte [rcx], 0xd
jne 0x14001685b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001686a
cmp byte [rcx + 1], 0xa
jne 0x14001686a
inc rcx
jmp 0x14001686a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x36360]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001683d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140016887
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140008700
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001c28c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001c2a2
mov al, 1
jmp 0x14001c302
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001c2b3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001c300
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001ee48
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001c300
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001c300
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001c300
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001c302
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001c9c4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140037530]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001ca1b
cmp word [rdx], r13w
jne 0x14001ca1b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001ca20
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001cb45
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001cb66
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001ca59
mov rdx, r9
mov word [rbx], cx
jmp 0x14001ca80
cmp r9, r8
jae 0x14001ca90
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001ca3a
jmp 0x14001cb45
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001cb3a
cmp dword [rsp + 0x80], esi
je 0x14001cb3a
lea r8, [0x140037530]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001cb12
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001cae2
mov word [rbx], r13w
jmp 0x14001cb42
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001caef
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001cb42
cmp word [rsp + 0x70], r13w
jne 0x14001cb1f
cmp rbx, r14
je 0x14001cadc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001c920
cmp word [rsp + 0x70], r13w
je 0x14001cb45
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140037530]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001cb3f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001cb45