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

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d2130
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d1a52
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f4108]
test eax, eax
je 0x2fc4d1aea
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f4110]
mov qword [rbp - 8], rax
jmp 0x2fc4d1ace
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d1ac2
cmp qword [rbp - 0x10], 0
je 0x2fc4d1ac2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d1a88
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d1aeb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d1bf0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d1c18
mov eax, 0
jmp 0x2fc4d1c66
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d1c41
mov eax, 0
jmp 0x2fc4d1c66
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d1c61
mov eax, 0
jmp 0x2fc4d1c66
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d1c6c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d1cea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d1ce1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d1ce1
mov rax, qword [rbp - 8]
jmp 0x2fc4d1cff
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d1cb4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400097b0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400097c0]
mov dword [rax], 1
mov rax, qword [0x1400097d0]
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 [0x1400097a0]
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 [0x140009880]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140009860]
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 0x1400017d0
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 0x140001840
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 0x140001970
mov rax, qword [0x14000c098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000188b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001915
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001870
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140001992
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 0x140001977
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000190e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001920
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 0x14000190e
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 0x140001898
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 0x140001f00
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 0x140001f5c
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 0x140001f53
test rsi, rsi
je 0x140001f53
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001f38
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 0x140002170
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002188
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002190
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400021a0
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 0x1400021ed
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 0x1400021e4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400021ef
add rax, 0x28
cmp rax, r9
jne 0x1400021d0
xor eax, eax
ret

Function at 0x1400021f0
Capabilities:
Parse pe header

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

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

Function at 0x140002310
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009730]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000232f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002338
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000232f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002350
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140009730]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002370
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002378
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002370
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x1400023c0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400023b7
test rcx, rcx
je 0x140002370
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400023a8
xor eax, eax
ret
Function at 0x1400023d0
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x140009730]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400024c2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400024d0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400024c2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400024c2
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x1400024c2
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 0x140002525
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002538
add rdx, 0x28
cmp rdx, r10
jne 0x140002510
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002547
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002557
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000252e
test ecx, ecx
jg 0x140002540
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x2fc554f20
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc556000
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc555922
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc578108]
test eax, eax
je 0x2fc5559ba
lea rax, [0x2fc5780e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc578110]
mov qword [rbp - 8], rax
jmp 0x2fc55599e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc555992
cmp qword [rbp - 0x10], 0
je 0x2fc555992
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc555958
lea rax, [0x2fc5780e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc5559bb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc555ac0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc555ae8
mov eax, 0
jmp 0x2fc555b36
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc555b11
mov eax, 0
jmp 0x2fc555b36
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc555b31
mov eax, 0
jmp 0x2fc555b36
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc555b3c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc555bba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc555bb1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc555bb1
mov rax, qword [rbp - 8]
jmp 0x2fc555bcf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc555b84
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x401d20
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov rbp, rdx
mov r12, r8
call fcn.00415f40
test rax, rax
mov rbx, rax
jne 0x401d61
mov dword [0x004e418c], 1
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rax + 2]
call fcn.0049cf50
lea rdx, [0x004a9849]
mov rcx, rsi
mov rdi, rax
call sub.msvcrt.dll_fopen
test rax, rax
mov r13, rax
je 0x401f61
mov r9, rax
mov r8, rbx
mov edx, 1
mov rcx, rdi
call sub.msvcrt.dll_fread
test rax, rax
je 0x401f52
mov rcx, r13
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x401f52
mov rcx, r13
mov r15, rdi
mov r14d, 1
call sub.msvcrt.dll_fclose
mov byte [rdi + rbx], 0xa
mov byte [rdi + rbx + 1], 0
mov r13d, 0x2401
movzx eax, byte [rdi]
test al, al
je 0x401e80
nop
mov rbx, r15
jmp 0x401dfb
cmp al, 0xd
je 0x401ea4
cmp al, 0x23
jne 0x401df4
mov byte [rbx], 0
add rbx, 1
movzx eax, byte [rbx]
cmp al, 0xa
je 0x401e90
jg 0x401de5
test al, al
jne 0x401df4
movzx eax, byte [r15]
cmp al, 9
je 0x401e15
cmp al, 0x20
jne 0x401e25
add r15, 1
movzx eax, byte [r15]
cmp al, 0x20
je 0x401e15
cmp al, 9
je 0x401e15
cmp al, 0xa
je 0x401f49
cmp al, 0xd
je 0x401f49
test al, al
je 0x401f49
mov rdx, r15
movzx eax, byte [rdx + 1]
lea r10, [rdx + 1]
cmp al, 0x20
je 0x401ec0
cmp al, 9
je 0x401ec0
cmp al, 0xa
je 0x401e5f
cmp al, 0xd
je 0x401e5f
test al, al
mov rdx, r10
jne 0x401e40
cmp r10, r15
mov byte [r10], 0
ja 0x401f30
movzx eax, byte [rbx + 1]
add r14d, 1
lea r15, [rbx + 1]
test al, al
jne 0x401de0
mov qword [r12], rdi
jmp 0x401d50
xor eax, eax
cmp byte [rbx + 1], 0xd
mov byte [rbx], 0
sete al
add rbx, rax
jmp 0x401e09
xor eax, eax
cmp byte [rbx + 1], 0xa
mov byte [rbx], 0
sete al
add rbx, rax
jmp 0x401e09
cmp al, 0xa
je 0x401e5f
cmp al, 0xd
je 0x401e5f
test al, al
je 0x401e5f
movzx eax, byte [r10 + 1]
add rdx, 2
cmp al, 0x20
jne 0x401eeb
nop dword [rax]
add rdx, 1
movzx eax, byte [rdx]
cmp al, 0x20
je 0x401ee0
cmp al, 9
je 0x401ee0
cmp al, 0xd
ja 0x401efd
bt r13, rax
jb 0x401e5f
lea rcx, str._s:_d:_Ignoring_rubbish_found_on_this_line
mov r8d, r14d
mov rdx, rsi
mov qword [rsp + 0x28], r10
call fcn.004157d0
mov r10, qword [rsp + 0x28]
cmp r10, r15
mov byte [r10], 0
jbe 0x401e6c
nop word cs:[rax + rax]
mov r8d, 1
mov rdx, r15
mov rcx, rbp
call fcn.0049b300
mov qword [rax], r15
jmp 0x401e6c
mov byte [r15], 0
jmp 0x401e6c
lea rcx, str._s:_fread_failed
mov rdx, rsi
call fcn.004157a0
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [rax]
call sub.msvcrt.dll_strerror
lea rcx, str.cannot_open__s:__s
mov r8, rax
mov rdx, rsi
call fcn.004157a0
nop
nop dword [rax + rax]
nop word cs:[rax + rax]
Function at 0x401f90
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdx, [0x004a98a3]
mov rbp, rcx
mov rcx, qword [rcx + 0x10]
call sub.msvcrt.dll_fopen
test rax, rax
mov rsi, rax
je 0x402056
mov ecx, 0x1000
mov edi, 0x1000
xor ebx, ebx
call fcn.0049cf50
mov qword [rbp + 0x20], rax
jmp 0x401ffc
mov rcx, qword [rbp + 0x20]
mov r8, rdi
add rcx, rbx
mov r9, rsi
sub r8, rbx
mov edx, 1
call sub.msvcrt.dll_fread
mov rcx, rsi
mov r12, rax
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x402046
add rbx, r12
mov rcx, rsi
call sub.msvcrt.dll_feof
test eax, eax
jne 0x402030
cmp rbx, rdi
jne 0x401fd0
mov rcx, qword [rbp + 0x20]
lea rdi, [rbx + rbx]
mov rdx, rdi
call fcn.0049cfd0
mov qword [rbp + 0x20], rax
mov rcx, rax
jmp 0x401fd4
mov rcx, rsi
mov qword [rbp + 0x18], rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sub.msvcrt.dll_fclose
mov rdx, qword [rbp + 0x10]
lea rcx, str._s:_fread_failed
call fcn.004157a0
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [rax]
call sub.msvcrt.dll_strerror
mov rdx, qword [rbp + 0x10]
lea rcx, str.cannot_open:__s:__s
mov r8, rax
call fcn.004157a0
nop
nop word [rax + rax]
Function at 0x406720
Capabilities:
Delete file
Move file

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rbx, rdx
mov rdi, rcx
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__stat64]
test eax, eax
je 0x406781
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_rename
test eax, eax
mov esi, eax
je 0x406777
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [rax]
call sub.msvcrt.dll_strerror
lea rcx, str.unable_to_rename__s__reason:__s
mov r8, rax
mov rdx, rbx
call fcn.004157d0
mov rcx, rdi
call sub.msvcrt.dll__unlink
mov eax, esi
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
mov rcx, rbx
call sub.msvcrt.dll_remove
jmp 0x40673f

Function at 0x406800
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [sym.imp.msvcrt.dll___iob_func]
lea rdi, [0x004e41e0]
lea r12, str.___6d
call rsi
lea rcx, str.Last_stabs_entries_before_error:_n
lea r9, [rax + 0x60]
mov r8d, 0x21
mov edx, 1
lea rbp, [0x004abedf]
lea r13, [0x004abee8]
call sub.msvcrt.dll_fwrite
call rsi
lea rcx, str.n_type_n_desc_n_value__string_n
lea r9, [rax + 0x60]
mov r8d, 0x1e
mov edx, 1
call sub.msvcrt.dll_fwrite
mov ebx, dword [0x004e41c0]
jmp 0x4068ed
call rsi
lea rdx, str.__6s
lea rcx, [rax + 0x60]
mov r8, r15
call sub.msvcrt.dll_fprintf
mov r15d, dword [r14 + 4]
call rsi
lea rcx, [rax + 0x60]
mov rdx, r12
mov r8d, r15d
call sub.msvcrt.dll_fprintf
mov r15, qword [r14 + 8]
call rsi
lea rcx, [rax + 0x60]
mov rdx, rbp
mov r8, r15
call sub.msvcrt.dll_fprintf
mov eax, dword [r14]
test eax, eax
jne 0x406940
call rsi
lea rdx, [rax + 0x60]
mov ecx, 0xa
call sub.msvcrt.dll_fputc
add ebx, 1
mov eax, ebx
sar eax, 0x1f
shr eax, 0x1c
add ebx, eax
and ebx, 0xf
sub ebx, eax
cmp ebx, dword [0x004e41c0]
je 0x406980
movsxd rax, ebx
lea rax, [rax + rax*2]
lea r14, [rdi + rax*8]
cmp qword [r14 + 0x10], 0
je 0x4068cf
mov ecx, dword [r14]
call fcn.00422a10
test rax, rax
mov r15, rax
jne 0x406875
mov r15d, dword [r14]
test r15d, r15d
jne 0x406960
call rsi
lea rcx, str.HdrSym
lea r9, [rax + 0x60]
mov r8d, 6
mov edx, 1
call sub.msvcrt.dll_fwrite
jmp 0x40688a
mov r14, qword [r14 + 0x10]
call rsi
lea rcx, [rax + 0x60]
mov rdx, r13
mov r8, r14
call sub.msvcrt.dll_fprintf
jmp 0x4068bf
call rsi
lea rdx, str.__6d
lea rcx, [rax + 0x60]
mov r8d, r15d
call sub.msvcrt.dll_fprintf
jmp 0x40688a
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret