joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18002d380
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rdi, rcx
test r8, r8
jg 0x18002d3a2
xor eax, eax
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
je 0x18002d42d
lfence
mov rbx, r14
nop dword [rax]
mov rcx, rdi
call fcn.18002f400
test rax, rax
jle 0x18002d3fe
mov rdx, qword [rdi + 0x38]
cmp rbx, rax
mov rbp, rbx
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.180064250
mov rax, qword [rdi + 0x50]
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x18002d41d
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x38]
call qword [case.0x18001f0fa.0]
cmp eax, 0xffffffff
je 0x18002d425
mov byte [rsi], al
dec rbx
mov ebp, 1
add rsi, rbp
test rbx, rbx
jg 0x18002d3c0
sub r14, rbx
jmp 0x18002d531
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov qword [rsp + 0x50], r14
mov rdx, qword [rax]
test rdx, rdx
je 0x18002d449
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18002d44b
xor ecx, ecx
movsxd rax, ecx
mov rbx, r14
test ecx, ecx
je 0x18002d485
cmp rax, r14
mov rcx, rsi
cmovb rbx, rax
mov r8, rbx
call fcn.180064250
mov rax, qword [rdi + 0x50]
sub rbp, rbx
add rsi, rbx
mov qword [rsp + 0x50], rbp
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
mov rbx, rbp
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x18002d529
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x18002d4c0
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
cmp rbx, 0xfff
jbe 0x18002d505
nop dword [rax]
mov r9, qword [rdi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.18008cbfc
sub rbp, rax
add rsi, rax
mov qword [rsp + 0x50], rbp
mov rbx, rbp
cmp rax, 0xfff
jne 0x18002d529
cmp rbp, rax
ja 0x18002d4d0
test rbx, rbx
je 0x18002d529
mov r9, qword [rdi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.18008cbfc
sub rbx, rax
mov qword [rsp + 0x50], rbx
lfence
sub r14, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
mov rax, r14
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x18002dac0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x180145010]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18002daf0
xor eax, eax
jmp 0x18002dc19
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x18002db2a
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x18002db2a
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x18002dc19
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xb0], rsi
je 0x18002dc0c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18002db6d
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x18002db7c
movsx ecx, dil
jmp 0x18002dbb0
mov byte [rsp + 0x50], dil
lea rdx, vtable.std::codecvt_char__char__struct__Mbstatet_.0
mov rax, qword [rcx]
cmp rax, rdx
jne 0x18002dc3a
lea rax, [rsp + 0x50]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x58], rax
lfence
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.18008b11c
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x18002dc11
mov rsi, qword [rsp + 0x58]
lea rax, [rsp + 0x68]
sub rsi, rax
je 0x18002dbfa
lfence
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x68]
mov r8, rsi
mov edx, 1
call fcn.18008c480
cmp rsi, rax
jne 0x18002dc0c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x60], rax
mov eax, edi
jne 0x18002dc11
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.180034ab0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
mov rax, qword [rax + 0x38]
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], r8
lea rdx, [rbx + 0x74]
lea r8, [rsp + 0x88]
mov qword [rsp + 0x30], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x68]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x60]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [case.0x18001f0fa.0]
test eax, eax
js 0x18002dc0c
cmp eax, 1
jle 0x18002dbca
cmp eax, 3
jne 0x18002dc0c
jmp 0x18002dba8
Function at 0x18002eba0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180145010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x18002ec7b
cmp byte [rcx + 0x71], 0
je 0x18002ec7b
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
mov rax, qword [rax + 0x18]
call qword [case.0x18001f0fa.0]
cmp eax, 0xffffffff
je 0x18002ec77
mov rcx, qword [rbx + 0x68]
lea rdx, vtable.std::codecvt_char__char__struct__Mbstatet_.0
mov rax, qword [rcx]
cmp rax, rdx
jne 0x18002ec90
lea rdi, [rsp + 0x38]
mov eax, 3
mov qword [rsp + 0x30], rdi
test eax, eax
je 0x18002ec3f
sub eax, 1
je 0x18002ec43
cmp eax, 2
jne 0x18002ec77
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180034ab0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x18002ec6e
lfence
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call fcn.18008c480
cmp rdi, rax
jne 0x18002ec77
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18002ec27
xor al, al
jmp 0x18002ec27
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180034ab0
add rsp, 0x60
pop rbx
ret
mov rax, qword [rax + 0x40]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r8, [rsp + 0x38]
lea r9, [rsp + 0x58]
call qword [case.0x18001f0fa.0]
mov rdi, qword [rsp + 0x30]
jmp 0x18002ec13

Function at 0x1800c3d28
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1800c3d3b
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.1800c4e6c
lea rdx, [0x180142b90]
lea rcx, [rsp + 0x20]
call fcn.180063ce4
int3

Function at 0x1800d28ec
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x18014b630]
xor edx, edx
jmp fcn.1800c3d28

Function at 0x1800d4370
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x18014b630]
jmp fcn.1800c3d28

Function at 0x1800e6104
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x1800e61f0]
mov r9, qword [r9 + 8]
jmp fcn.1800cf4f0

Function at 0x1800e61bc
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x1800e6200]
mov r9, qword [r9 + 8]
jmp fcn.1800cf4f0
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400097d0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400097e0]
mov dword [rax], 1
mov rax, qword [0x1400097f0]
mov dword [rax], 1
mov rax, qword [0x140009730]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400097c0]
mov dword [0x14000c00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400098a0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140009880]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140009710]
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 [sym._matherr]
call sym.__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 0x14000162b
Capabilities:
Copy file

Disassembly:
push rbp
sub rsp, 0x240
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1d0], rcx
lea rax, [rbp + 0xb0]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
mov rdx, qword [rbp + 0x1d0]
lea rax, [rbp - 0x60]
lea r9, str.Program.exe
mov r8, rdx
lea rdx, str._s_s
mov rcx, rax
call sym.sprintf
lea rdx, [rbp - 0x60]
lea rax, [rbp + 0xb0]
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CopyFileA]
call rax
nop
add rsp, 0x240
pop rbp
ret

Function at 0x1400016ab
Capabilities:
Get disk information

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
lea rax, [0x140009035]
mov rdx, rax
lea rax, str.a.txt
mov rcx, rax
call sym.fopen
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x1400016e8
lea rax, str.Error_opening_file__n
mov rcx, rax
call sym.printf
jmp 0x140001751
mov rax, qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
call rax
mov dword [rbp - 0x14], eax
mov byte [rbp - 1], 0x41
mov dword [rbp - 8], 0
jmp 0x14000173e
mov eax, dword [rbp - 8]
mov edx, 1
mov ecx, eax
shl edx, cl
mov eax, edx
and eax, dword [rbp - 0x14]
test eax, eax
je 0x140001730
movsx edx, byte [rbp - 1]
mov rax, qword [rbp - 0x10]
mov r8d, edx
lea rdx, str._c:_n
mov rcx, rax
call sym.fprintf
movzx eax, byte [rbp - 1]
add eax, 1
mov byte [rbp - 1], al
add dword [rbp - 8], 1
cmp dword [rbp - 8], 0x19
jle 0x140001701
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.fclose
nop
add rsp, 0x40
pop rbp
ret
Function at 0x140001757
Capabilities:
Get disk information

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
call sym.__main
mov rax, qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
call rax
mov dword [rbp - 4], eax
call sym.saveDrivesToFile
mov rax, qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
call rax
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
cmp eax, dword [rbp - 4]
je 0x140001816
mov eax, dword [rbp - 0xc]
xor eax, dword [rbp - 4]
mov dword [rbp - 0x10], eax
mov dword [rbp - 8], 0
jmp 0x14000180a
mov eax, dword [rbp - 8]
mov edx, 1
mov ecx, eax
shl edx, cl
mov eax, edx
and eax, dword [rbp - 0x10]
test eax, eax
je 0x140001806
mov eax, dword [rbp - 8]
add eax, 0x41
mov byte [rbp - 0x14], al
mov byte [rbp - 0x13], 0x3a
mov byte [rbp - 0x12], 0x5c
mov byte [rbp - 0x11], 0
mov eax, dword [rbp - 8]
mov edx, 1
mov ecx, eax
shl edx, cl
mov eax, edx
and eax, dword [rbp - 0xc]
test eax, eax
je 0x140001806
lea rax, [rbp - 0x14]
mov rcx, rax
call sym.isDriveLogged
test eax, eax
jne 0x140001806
lea rax, [rbp - 0x14]
mov rcx, rax
call sym.copyExecutableToNewDrive
lea rax, [rbp - 0x14]
mov rcx, rax
call sym.saveDriveToFile
add dword [rbp - 8], 1
cmp dword [rbp - 8], 0x19
jle 0x14000179f
mov eax, dword [rbp - 0xc]
mov dword [rbp - 4], eax
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x140001775

Function at 0x140001af0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__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 sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001b60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000c094]
test esi, esi
mov rbx, rcx
jle 0x140001c90
mov rax, qword [0x14000c098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001bab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001c35
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001b90
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140001cb2
mov rax, qword [0x14000c098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000c098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001c97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001c2e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001c40
add dword [0x14000c094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x14000c098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001c2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001bb8
mov rax, qword [0x14000c098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002220
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000c100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000c0e0]
test rbx, rbx
je 0x14000227c
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 eax, eax
jne 0x140002273
test rsi, rsi
je 0x140002273
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002258
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 0x140002490
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop

Function at 0x1400024a0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
Function at 0x1400024b0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400024c8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400024d0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400024e0
Capabilities:
Enumerate pe sections

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

Function at 0x140002530
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400025c0
mov rdx, qword [0x140009730]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400025ae
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400025ae
cmp word [rax + 0x18], 0x20b
jne 0x1400025ae
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400025c0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002599
add rbx, 0x28
cmp rbx, rdi
je 0x1400025c0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002590
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 0x1400025d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140009730]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400025f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400025f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400025f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000264d
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]
cmp rcx, r8
mov rdx, r8
jb 0x140002644
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400025f0
add rax, 0x28
cmp rax, r9
jne 0x140002630
xor eax, eax
ret

Function at 0x140002650
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009730]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000266f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002678
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000266f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140002690
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140009730]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400026b0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400026b8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400026b0
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x140002700
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400026f7
test rcx, rcx
je 0x1400026b0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400026e8
xor eax, eax
ret

Function at 0x140002710
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140009730]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002770
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002778
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002770
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x140002770
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]
cmp rcx, r8
mov rax, r8
jb 0x1400027c4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400027d0
add rdx, 0x28
cmp r9, rdx
jne 0x1400027b0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140009730]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002802
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002810
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002802
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002802
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x140002802
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]
cmp rax, r9
mov r8, r9
jb 0x140002865
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002878
add rdx, 0x28
cmp rdx, r10
jne 0x140002850
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002887
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002897
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000286e
test ecx, ecx
jg 0x140002880
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140b1a0b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140b1a237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140b1a0e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b1a0c7
add dl, dl
jne 0x140b1a0ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b1a14e
xor eax, eax
add dl, dl
jne 0x140b1a0fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b1a205
add dl, dl
jne 0x140b1a10e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b1a11b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b1a128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b1a135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140b1a142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140b1a0d6
mov eax, 1
add dl, dl
jne 0x140b1a15e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b1a16b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b1a153
sub eax, ebx
mov ebx, 1
jne 0x140b1a1a4
mov ecx, 1
add dl, dl
jne 0x140b1a186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b1a193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b1a17b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b1a0d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140b1a1c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b1a1cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b1a1b5
cmp eax, 0x7d00
jae 0x140b1a1f3
cmp eax, 0x500
jb 0x140b1a1ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b1a0d6
cmp eax, 0x7f
ja 0x140b1a1f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b1a0d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140b1a22a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140b1a0d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00405710]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x00405720]
mov dword [rax], 1
mov rax, qword [0x00405730]
mov dword [rax], 1
mov rax, qword [0x00405700]
mov dword [rax], 1
mov rax, qword [0x004055f0]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x004056f0]
mov dword [0x0040800c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x004056b0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x004055a0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067

Function at 0x401e50
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]