joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180003630
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1800036f9
cmp byte [rcx + 0x71], 0
je 0x1800036f9
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1800036ec
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1800036a8
sub eax, 1
je 0x1800036ac
cmp eax, 2
jne 0x1800036ec
mov rdi, qword [rsp + 0x68]
mov al, 1
mov byte [rbx + 0x71], 0
add rsp, 0x50
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x1800036da
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1800036ec
cmp byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x68]
sete al
add rsp, 0x50
pop rbx
ret
mov rdi, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rbx
ret
mov al, 1
add rsp, 0x50
pop rbx
ret
Function at 0x140069d00
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140069d0d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140069d1d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140069d05
lea eax, [rcx + 1]
jmp 0x140069d2b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140069d3e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140069d24
sub eax, 3
jb 0x140069d5e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140069dad
sar eax, 1
movsxd rbp, eax
jb 0x140069d94
jmp 0x140069d6c
add ebx, ebx
jne 0x140069d6a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140069d94
inc ecx
add ebx, ebx
jne 0x140069d7a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140069d94
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140069d8d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140069d7c
add ecx, 2
jmp 0x140069d99
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140069cc2
jmp 0x140069d0d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x39000
mov dl, 0xe
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140069dfd
cmp rsi, rcx
jae 0x140069e05
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140069de4
cmp al, 0x8f
ja 0x140069de4
cmp byte [rsi - 2], 0xf
je 0x140069dea
sub al, 0xe8
cmp al, 1
ja 0x140069dce
cmp rsi, rcx
jae 0x140069e05
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140069dd4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140069e05
lodsb al, byte [rsi]
jmp 0x140069de4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x67000]
mov eax, dword [rdi]
or eax, eax
je 0x140069e62
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x7b2dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140069e12
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140069e5c
mov qword [rbx], rax
add rbx, 8
jmp 0x140069e32
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140069e9c
cmp al, 0xef
ja 0x140069e8e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140069e6e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140069e7d
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.140069f1b], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.140069f1b
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140069f0b
sub rsp, 0xffffffffffffff80
jmp 0x14002977c
Function at 0x140003ac0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140045040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rdx + 0x18], 7
mov r12, rdx
mov r13, rcx
mov qword [rsp + 0x30], rdx
jbe 0x140003afd
mov rax, qword [rdx]
mov qword [rsp + 0x30], rax
cmp qword [rcx + 0x18], 7
mov qword [rsp + 0x38], r13
jbe 0x140003b11
mov rax, qword [rcx]
mov qword [rsp + 0x38], rax
mov ecx, 0x72
xor edx, edx
call fcn.140001150
mov ecx, 0x75
mov edx, 1
movzx r15d, ax
call fcn.140001150
mov ecx, 0x6e
mov edx, 2
movzx r14d, ax
call fcn.140001150
mov ecx, 0x61
mov edx, 3
movzx ebp, ax
call fcn.140001150
mov ecx, 0x73
mov edx, 4
movzx esi, ax
call fcn.140001150
xor ecx, ecx
mov edx, 5
movzx edi, ax
call fcn.140001150
movzx ecx, word [0x14003f52c]
mov edx, 6
movzx ebx, ax
call fcn.140001150
movzx ecx, word [0x14003f52e]
mov edx, 7
movzx r9d, ax
call fcn.140001150
movzx ecx, word [0x14003f530]
mov edx, 8
movzx r8d, ax
call fcn.140001150
movzx ecx, word [0x14003f532]
mov edx, 9
movzx r11d, ax
call fcn.140001150
movzx ecx, word [0x14003f534]
mov edx, 0xa
movzx r10d, ax
call fcn.140001150
mov ecx, 0x133
xor r15w, cx
mov ecx, 0x134
xor r14w, cx
mov word [rsp + 0x40], r15w
mov ecx, 0x135
mov word [rsp + 0x42], r14w
xor bp, cx
mov ecx, 0x136
xor si, cx
mov word [rsp + 0x44], bp
mov ecx, 0x137
mov word [rsp + 0x46], si
xor di, cx
mov ecx, 0x138
xor bx, cx
mov word [rsp + 0x48], di
mov ecx, 0x139
mov word [rsp + 0x4a], bx
xor r9w, cx
mov ecx, 0x13a
xor r8w, cx
mov word [rsp + 0x4c], r9w
mov r9, qword [rsp + 0x30]
mov ecx, 0x13b
xor r11w, cx
mov word [rsp + 0x4e], r8w
mov ecx, 0x13c
mov word [rsp + 0x50], r11w
xor r10w, cx
mov ecx, 0x13d
xor ax, cx
mov word [rsp + 0x52], r10w
xor ebx, ebx
mov word [rsp + 0x54], ax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
mov word [rsp + 0x56], bx
mov r8, qword [rsp + 0x38]
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rdx, qword [r13 + 0x18]
cmp rdx, 7
jbe 0x140003ce0
mov rcx, qword [r13]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140003cdb
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003d66
mov rcx, r8
call fcn.140010114
mov qword [r13 + 0x10], rbx
mov qword [r13 + 0x18], 7
mov word [r13], bx
mov rdx, qword [r12 + 0x18]
cmp rdx, 7
jbe 0x140003d2e
mov rcx, qword [r12]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140003d29
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003d66
mov rcx, r8
call fcn.140010114
mov qword [r12 + 0x10], rbx
mov qword [r12 + 0x18], 7
mov word [r12], bx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000fdd0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14001976c
int3
Function at 0x140003d70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
xor ebp, ebp
mov rdi, rcx
cmp qword [rcx + 0x18], 7
mov dword [rsp + 0x40], ebp
jbe 0x140003d92
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x140003e26
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x140003e05
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140003e00
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003ecf
mov rcx, r8
call fcn.140010114
mov al, 1
mov rsi, qword [rsp + 0x78]
mov word [rdi], bp
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbp
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
cmp rsi, 0xffffffffffffffff
jne 0x140003e6b
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x140003e67
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140003e62
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003ecf
mov rcx, r8
call fcn.140010114
xor al, al
jmp 0x140003e07
lea r9, [rsp + 0x40]
mov qword [rsp + 0x68], rbx
mov r8d, 0x41200
mov qword [rsp + 0x20], rbp
lea rdx, [0x1400480a0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rdi + 0x18]
test bl, bl
mov rbx, qword [rsp + 0x68]
jne 0x140003eb8
cmp rax, 7
jbe 0x140003e67
lea rdx, [rax*2 + 2]
jmp 0x140003e3e
cmp rax, 7
jbe 0x140003e05
lea rdx, [rax*2 + 2]
jmp 0x140003dd8
call fcn.14001976c
int3
Function at 0x140003ee0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
xor ebp, ebp
mov rdi, rcx
cmp qword [rcx + 0x18], 7
mov dword [rsp + 0x40], ebp
jbe 0x140003f02
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x140003f96
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x140003f75
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140003f70
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000403f
mov rcx, r8
call fcn.140010114
mov al, 1
mov rsi, qword [rsp + 0x78]
mov word [rdi], bp
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbp
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
cmp rsi, 0xffffffffffffffff
jne 0x140003fdb
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x140003fd7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140003fd2
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000403f
mov rcx, r8
call fcn.140010114
xor al, al
jmp 0x140003f77
lea r9, [rsp + 0x40]
mov qword [rsp + 0x68], rbx
mov r8d, 0x2400
mov qword [rsp + 0x20], rbp
lea rdx, [0x140045ca0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rdi + 0x18]
test bl, bl
mov rbx, qword [rsp + 0x68]
jne 0x140004028
cmp rax, 7
jbe 0x140003fd7
lea rdx, [rax*2 + 2]
jmp 0x140003fae
cmp rax, 7
jbe 0x140003f75
lea rdx, [rax*2 + 2]
jmp 0x140003f48
call fcn.14001976c
int3
Function at 0x140005440
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
push r14
push r15
mov r15, rcx
mov r14, r8
mov rbp, rdx
sub r15, qword [r8 + 0x30]
je 0x1400055cf
test byte [r8 + 0x5e], 0x40
jne 0x140005468
xor eax, eax
pop r15
pop r14
pop rbp
ret
movzx edx, word [r14 + 0x14]
movzx eax, word [r14 + 6]
add rdx, 0x18
mov r8d, dword [r8 + 0xb0]
add rdx, r14
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
cmp rdx, r9
jae 0x1400055cf
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1400054a3
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1400054b7
add rdx, 0x28
cmp rdx, r9
jb 0x140005491
mov eax, 1
pop r15
pop r14
pop rbp
ret
mov qword [rsp + 0x30], rdi
mov edi, dword [rdx + 0x14]
sub rdi, rcx
mov qword [rsp + 0x38], r12
mov r12d, dword [r14 + 0xb4]
add rdi, r8
add rdi, rbp
add r12, rdi
test rdi, rdi
je 0x1400055c5
cmp rdi, r12
jae 0x1400055c5
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rsi
mov eax, dword [rdi + 4]
test eax, eax
je 0x1400055bb
add eax, 0xfffffff8
shr eax, 1
je 0x1400055ac
lea rbx, [rdi + 8]
mov esi, eax
nop
movzx r9d, word [rbx]
movzx eax, r9w
shr ax, 0xc
and r9d, 0x80000fff
jge 0x140005532
dec r9d
or r9d, 0xfffff000
inc r9d
cmp ax, 3
je 0x14000553e
cmp ax, 0xa
jne 0x14000559e
movzx r11d, word [r14 + 0x14]
movzx r8d, word [r14 + 6]
add r11, 0x18
mov r10d, dword [rdi]
add r11, r14
mov rax, r11
lea rcx, [r8 + r8*4]
lea rdx, [r11 + rcx*8]
cmp r11, rdx
jae 0x140005593
mov edx, dword [rax + 0xc]
cmp r10, rdx
jb 0x140005574
mov ecx, dword [rax + 8]
add ecx, edx
cmp r10, rcx
jb 0x140005585
lea rdx, [r8 + r8*4]
add rax, 0x28
lea rcx, [r11 + rdx*8]
cmp rax, rcx
jmp 0x140005560
mov ecx, dword [rax + 0x14]
sub rcx, rdx
add rcx, r10
add rcx, rbp
jne 0x140005596
mov rcx, rbp
movzx eax, r9w
add qword [rax + rcx], r15
add rbx, 2
sub rsi, 1
jne 0x140005510
mov eax, dword [rdi + 4]
add rdi, rax
cmp rdi, r12
jb 0x1400054f3
mov rsi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
mov eax, 1
pop r15
pop r14
pop rbp
ret
Function at 0x14000ed04
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 0x14000ed32
xor eax, eax
jmp 0x14000ee18
cmp qword [rcx + 0x68], 0
je 0x14000ed43
call fcn.14000ee34
jmp 0x14000ee18
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000ed5a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000ed5c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000ed8e
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140031db0
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 0x14000ee12
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14000edc5
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 0x14000edee
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14001a490
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000ee12
cmp rsi, rbx
ja 0x14000edcc
test rsi, rsi
je 0x14000ee12
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14001a490
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 0x140010c30
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140010c7a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140010c7a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140010c7a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140010c7a
cmp dword [rcx + 0x84], 0xe
jbe 0x140010c7a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140010c7c
xor al, al
add rsp, 0x28
ret
Function at 0x140015a64
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 0x140015ad3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140015ad3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140015ad3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140015ad3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140015ad3
cmp dword [rcx + 0x84], 0xe
jbe 0x140015ad3
cmp dword [rcx + 0xf8], 0
je 0x140015ad3
mov ecx, ebx
call fcn.140015b84
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.140015960
nop
cmp dword [rbp + 0x20], 0
je 0x140015b21
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140015b2c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140015a64

Function at 0x140015c68
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 0x140015ad3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140015ad3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140015ad3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140015ad3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140015ad3
cmp dword [rcx + 0x84], 0xe
jbe 0x140015ad3
cmp dword [rcx + 0xf8], 0
je 0x140015ad3
mov ecx, ebx
call fcn.140015b84
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.140015960
nop
cmp dword [rbp + 0x20], 0
je 0x140015b21
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140015b2c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140015a64
Function at 0x140025308
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.140010510
sub rsp, rax
mov rax, qword [0x140045040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400224c0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140025357
mov rax, rbp
jmp 0x14002545f
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 + 0x8ab80]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140026428
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x8ab80]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002545b
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 0x14002545b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140026428
test rax, rax
js 0x14002545b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002545b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002544d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002544d
cmp byte [rcx], 0xd
jne 0x140025433
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140025442
cmp byte [rcx + 1], 0xa
jne 0x140025442
inc rcx
jmp 0x140025442
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x45490]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140025415
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002545f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000fdd0
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 0x140025680
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140025696
mov al, 1
jmp 0x1400256f6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400256a7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400256f4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140029ff8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400256f4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400256f4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400256f4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400256f6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400257c8
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, [0x14008ab80]
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 0x14002581f
cmp word [rdx], r13w
jne 0x14002581f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140025824
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140025949
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14002596a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14002585d
mov rdx, r9
mov word [rbx], cx
jmp 0x140025884
cmp r9, r8
jae 0x140025894
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 0x14002583e
jmp 0x140025949
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 0x14002593e
cmp dword [rsp + 0x80], esi
je 0x14002593e
lea r8, [0x14008ab80]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140025916
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400258e6
mov word [rbx], r13w
jmp 0x140025946
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 0x1400258f3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140025946
cmp word [rsp + 0x70], r13w
jne 0x140025923
cmp rbx, r14
je 0x1400258e0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140026430
cmp word [rsp + 0x70], r13w
je 0x140025949
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, [0x14008ab80]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140025943
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140025949