joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003bb80
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x88
mov rax, qword [0x14007ac40]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x30], 0
cmp dword [rsp + 0x90], 0
jl 0x14003bbda
cmp dword [rsp + 0x90], 0x7c
jge 0x14003bbda
lea r8, [rsp + 0x30]
mov edx, dword [rsp + 0x90]
lea rcx, [0x1400798a0]
call fcn.14003be88
nop
lea rcx, [rsp + 0x50]
call fcn.1400343cc
nop
cmp qword [rsp + 0x30], 0
jne 0x14003bc01
lea rdx, [0x140052f28]
lea rcx, [rsp + 0x50]
call fcn.140034d68
nop
jmp 0x14003bc11
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140034d68
nop
cmp dword [rsp + 0xa0], 1
jne 0x14003bc2d
lea rdx, [0x140052f38]
lea rcx, [rsp + 0x50]
call fcn.140034d68
nop
movss xmm2, dword [0x140050fdc]
movss xmm1, dword [0x140072564]
lea rcx, [rsp + 0x48]
call fcn.1400347dc
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x50]
call fcn.14003f37c
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call fcn.140025a4c
movzx eax, al
test eax, eax
je 0x14003bca2
cmp dword [rsp + 0xa0], 0
jne 0x14003bca2
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
lea rcx, [rsp + 0x50]
call fcn.140034bbc
nop
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140049450
add rsp, 0x88
ret

Function at 0x14003bcc4
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x38
lea rcx, [0x140071688]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x140071678]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14003bd4d
lea rcx, [0x1400716a0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtUserSendInput
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14003bd4d
lea rcx, [0x1400716b4]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.SendInput
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14003bd4d
xor al, al
jmp 0x14003bdff
lea rcx, str.win32u
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x1400716c0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14003bdcf
lea rcx, [0x1400716f8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtUserGetAsyncKeyState
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14003bdcf
lea rcx, str.user32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x140071700]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14003bdcf
xor al, al
jmp 0x14003bdff
mov r8d, 0x1e
mov rdx, qword [rsp + 0x20]
lea rcx, [0x14007b5a8]
call fcn.14004a0a0
mov r8d, 0x1e
mov rdx, qword [rsp + 0x28]
lea rcx, [0x14007b5c8]
call fcn.14004a0a0
mov al, 1
add rsp, 0x38
ret
Function at 0x14003d240
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14003d272
xor eax, eax
jmp 0x14003d2c8
mov r8d, 0x1e
lea rdx, [0x14007b5c8]
mov rcx, qword [rsp + 0x28]
call fcn.14004a0a0
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
call qword [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov r8d, 0x1000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rsp + 0x20]
add rsp, 0x48
ret
Function at 0x14003e6b0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0x26f
mov qword [rsp + 0x30], 0xe3
mov qword [rsp], 0
jmp 0x14003e6e0
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
cmp qword [rsp], 0xe3
jae 0x14003e762
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x10]
and eax, 1
test eax, eax
je 0x14003e72e
mov dword [rsp + 0x14], 0x9908b0df
jmp 0x14003e736
mov dword [rsp + 0x14], 0
mov eax, dword [rsp + 0x10]
shr eax, 1
xor eax, dword [rsp + 0x14]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14003e6d5
mov qword [rsp + 8], 0xe3
jmp 0x14003e77a
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x26f
jae 0x14003e801
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x18]
and eax, 1
test eax, eax
je 0x14003e7cb
mov dword [rsp + 0x1c], 0x9908b0df
jmp 0x14003e7d3
mov dword [rsp + 0x1c], 0
mov eax, dword [rsp + 0x18]
shr eax, 1
xor eax, dword [rsp + 0x1c]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14003e76d
mov qword [rsp + 0x38], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x50]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x14003e855
mov dword [rsp + 0x24], 0x9908b0df
jmp 0x14003e85d
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x20]
shr eax, 1
xor eax, dword [rsp + 0x24]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rsp + 0x50]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rsp + 0x50]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rsp + 0x50]
mov dword [rax], 0
add rsp, 0x48
ret
Function at 0x14003e8a4
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp + 8], 0x270
jmp 0x14003e8c5
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x4e0
jae 0x14003e949
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 - 0x9bc]
and eax, 0x80000000
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 - 0x9b8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
and eax, 1
test eax, eax
je 0x14003e914
mov dword [rsp + 4], 0x9908b0df
jmp 0x14003e91c
mov dword [rsp + 4], 0
mov eax, dword [rsp]
shr eax, 1
xor eax, dword [rsp + 4]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14003e8b8
add rsp, 0x18
ret
Function at 0x140041164
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x178
mov rax, qword [0x14007ac40]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0x130
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1400411f3
mov rdx, qword [rsp + 0x180]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1400411e0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x38]
mov dword [0x14007b4e0], eax
mov eax, dword [rsp + 0x38]
jmp 0x140041200
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1400411ae
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140049450
add rsp, 0x178
ret
Function at 0x140047254
Capabilities:
Create thread
Hide graphical window

Disassembly:
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x14003d908]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x48
rep stosb byte [rdi], al
xor ecx, ecx
call qword [sym.imp.GDI32.dll_GetStockObject]
mov qword [rsp + 0xa0], rax
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x88], 0
lea rax, [0x14003ded8]
mov qword [rsp + 0x78], rax
lea rax, [0x1400510f8]
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x70], 3
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_RegisterClassA]
movzx eax, ax
test eax, eax
jne 0x14004730d
lea rdx, str._n_n_Notepad
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140030e7c
nop
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x60], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x80000000
xor r8d, r8d
lea rdx, str.Notepad
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [0x14007b618], rax
mov edx, 5
mov rcx, qword [0x14007b618]
call qword [sym.imp.USER32.dll_ShowWindow]
lea rdx, [0x1400510e8]
mov rcx, qword [0x14007b618]
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov r8d, 0x800a0
mov edx, 0xffffffec
mov rcx, qword [0x14007b618]
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rcx, qword [0x14007b618]
call qword [sym.imp.USER32.dll_UpdateWindow]
nop
add rsp, 0xc0
pop rdi
ret
Function at 0x140049c78
Capabilities:
Parse pe header

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

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x140002674
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x140002702
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400026d0
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x1400026d0
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.14002b2c0
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400026ed
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400026f5
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x140002691
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x1400027e0
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x140002719
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000271b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000274d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.14002b2c0
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400027dd
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002788
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
cmp rsi, 0xfff
jbe 0x1400027be
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.140012b58
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x1400027dd
cmp rsi, rax
ja 0x140002791
test rsi, rsi
je 0x1400027dd
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140012b58
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x140006ca0
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, 0x60
mov rax, qword [0x14003f080]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov edx, 5
mov rcx, qword [0x140041e98]
call qword [sym.imp.USER32.dll_ShowWindow]
lea r8, [0x1400385c8]
lea rdx, str.IDR_BIN0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140006d05
lea rdx, str.Could_not_find_resource:_patch.list
jmp 0x140006e93
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140006d21
lea rdx, str.Failed_to_load_resource:_patch.list
jmp 0x140006e93
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test r14, r14
je 0x140006e8c
test eax, eax
je 0x140006e8c
xorps xmm0, xmm0
mov edi, eax
movdqu xmmword [rsp + 0x38], xmm0
xor ebx, ebx
mov qword [rsp + 0x48], rbx
cmp rdi, 0x1000
jb 0x140006d8d
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x140006ed5
call fcn.14000bad8
test rax, rax
je 0x140006ecf
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140006d98
mov rcx, rdi
call fcn.14000bad8
mov rsi, rax
mov qword [rsp + 0x38], rsi
lea rbp, [rsi + rdi]
mov qword [rsp + 0x48], rbp
mov r8, rdi
mov rdx, r14
mov rcx, rsi
call fcn.14002b2c0
mov qword [rsp + 0x40], rbp
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x20], xmm1
mov qword [rsp + 0x30], rbx
test rdi, rdi
je 0x140006e09
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.1400055c0
mov rdx, rbp
sub rdx, rsi
lea rcx, [rbp - 1]
mov rdi, qword [rsp + 0x20]
nop dword [rax + rax]
movzx eax, byte [rcx]
mov byte [rdi + rbx], al
inc rbx
lea rcx, [rcx - 1]
cmp rbx, rdx
jb 0x140006df0
mov rbx, qword [rsp + 0x30]
jmp 0x140006e0e
mov rdi, qword [rsp + 0x20]
mov edx, dword [rsp + 0x28]
sub edx, edi
mov rcx, rdi
call fcn.140006230
nop
test rdi, rdi
je 0x140006e56
sub rbx, rdi
mov rax, rdi
cmp rbx, 0x1000
jb 0x140006e4a
add rbx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006edb
mov rdx, rbx
mov rcx, rdi
call fcn.14000bad0
nop
test rsi, rsi
je 0x140006ea7
sub rbp, rsi
mov rax, rsi
cmp rbp, 0x1000
jb 0x140006e7f
add rbp, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006ecf
mov rdx, rbp
mov rcx, rsi
call fcn.14000bad0
jmp 0x140006ea7
lea rdx, str.Failed_to_lock_resource:_patch.list
lea rcx, [0x140040790]
call fcn.140004710
mov rcx, rax
call fcn.1400049c0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14000bab0
lea r11, [rsp + 0x60]
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
call fcn.140013368
int3
call fcn.140001330
nop
call fcn.140013368
nop
int3
Function at 0x14000c95c
Capabilities:
Parse pe header

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

Function at 0x140017d48
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 0x140017db7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140017db7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140017db7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140017db7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140017db7
cmp dword [rcx + 0x84], 0xe
jbe 0x140017db7
cmp dword [rcx + 0xf8], 0
je 0x140017db7
mov ecx, ebx
call fcn.140017e68
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.140017c44
nop
cmp dword [rbp + 0x20], 0
je 0x140017e05
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140017e10
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140017d48

Function at 0x140017f4c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140017d48

Function at 0x14001aa0c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001aa22
mov al, 1
jmp 0x14001aa82
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001aa33
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001aa80
mov ecx, dword [rcx + 0x18]
nop
call fcn.140023a88
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001aa80
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001aa80
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001aa80
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001aa82
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001d76c
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.14000c100
sub rsp, rax
mov rax, qword [0x14003f080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001a8ec
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001d7bb
mov rax, rbp
jmp 0x14001d8c3
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 + 0x41710]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001e6b8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x41710]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001d8bf
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 0x14001d8bf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001e6b8
test rax, rax
js 0x14001d8bf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001d8bf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001d8b1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001d8b1
cmp byte [rcx], 0xd
jne 0x14001d897
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001d8a6
cmp byte [rcx + 1], 0xa
jne 0x14001d8a6
inc rcx
jmp 0x14001d8a6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3f4c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001d879
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001d8c3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000bab0
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 0x14001da58
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, [0x140041710]
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 0x14001daaf
cmp word [rdx], r13w
jne 0x14001daaf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001dab4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001dbd9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001dbfa
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001daed
mov rdx, r9
mov word [rbx], cx
jmp 0x14001db14
cmp r9, r8
jae 0x14001db24
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 0x14001dace
jmp 0x14001dbd9
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 0x14001dbce
cmp dword [rsp + 0x80], esi
je 0x14001dbce
lea r8, [0x140041710]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001dba6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001db76
mov word [rbx], r13w
jmp 0x14001dbd6
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 0x14001db83
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001dbd6
cmp word [rsp + 0x70], r13w
jne 0x14001dbb3
cmp rbx, r14
je 0x14001db70
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001e6c0
cmp word [rsp + 0x70], r13w
je 0x14001dbd9
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, [0x140041710]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001dbd3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001dbd9