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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140027c50]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140027c60]
mov dword [rax], 1
mov rax, qword [0x140027c70]
mov dword [rax], 1
mov rax, qword [0x140027c00]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140027c40]
mov dword [0x14002d00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140027d20]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140027d00]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140027bb0]
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 [dbg._matherr]
call dbg.__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 0x140002a40
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [dbg.__acrt_iob_func]
xor ebx, ebx
mov r12, rcx
mov rdi, rdx
test rdx, rdx
jle 0x140002a82
nop
mov rsi, qword [r12 + rbx*8]
mov ecx, 1
add rbx, 1
call rbp
xor r8d, r8d
mov rcx, rax
mov rdx, rsi
call sym.writeWindows__systemZio_205
cmp rbx, rdi
jne 0x140002a60
mov ecx, 1
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x14002519c]
mov r9, rax
call sym.fwrite
mov ecx, 1
call rbp
mov rcx, rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sym.fflush

Function at 0x140002c00
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x140002c1f
mov rcx, rdx
call sym.strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sym.fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp sym.fflush

Function at 0x140002d00
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x4b
mov edx, 1
lea rcx, str._GC__cannot_register_thread_local_variable__too_many_thread_local_variables
mov rbx, rax
mov r9, rax
call sym.fwrite
mov rcx, rbx
call sym.fflush
mov ecx, 1
call sym.exit
nop

Function at 0x140007d10
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov rcx, rsi
mov r8, rdi
mov edx, 1
mov rbx, rax
mov r9, rax
call sym.fwrite
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp sym.fflush
Function at 0x14000c5d0
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
push rdi
push rsi
push rbx
sub rsp, 0x148
cmp qword [0x14003d858], 0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov byte [rbp - 0x131], 1
je 0x14000c6b3
mov rax, qword [0x14003d848]
lea rcx, [rbp - 0x120]
mov rdx, rbp
mov qword [rbp - 0x130], rax
lea rax, [rbp - 0x130]
mov qword [0x14003d848], rax
call sym._setjmp
cdqe
mov qword [rbp - 0x128], rax
test rax, rax
jne 0x14000c6d0
xor ebx, ebx
cmp qword [rbp + 0x10], 0
je 0x14000c684
mov rcx, qword [rbp + 0x10]
mov edi, 7
call sym.strlen
lea rcx, section..data
cmp rax, rdi
mov rsi, rax
cmovge rdi, rax
lea rdx, [rdi + 0x11]
call sym.rawNewObj__system_5699.constprop.0
mov rdx, qword [rbp + 0x10]
lea r8, [rsi + 1]
mov qword [rax + 8], rdi
lea rcx, [rax + 0x10]
mov rbx, rax
mov qword [rax], rsi
call sym.memcpy
mov rcx, rbx
call qword [0x14003d858]
mov rax, qword [0x14003d848]
cmp qword [rbp - 0x128], 0
mov byte [rbp - 0x131], 0
mov rax, qword [rax]
mov qword [0x14003d848], rax
jne 0x14000c747
movzx eax, byte [rbp - 0x131]
test al, al
jne 0x14000c760
add rsp, 0x148
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rax, qword [0x14003d848]
mov rax, qword [rax]
mov qword [rbp - 0x128], 0
mov qword [0x14003d848], rax
mov rax, qword [0x14003d840]
mov rbx, qword [rax + 0x28]
test rbx, rbx
je 0x14000c70d
add qword [rbx - 0x10], 8
mov rax, qword [0x14003d840]
test rax, rax
je 0x14000c732
mov rsi, qword [rax - 0x10]
lea rcx, [rax - 0x10]
lea rdx, [rsi - 8]
mov qword [rax - 0x10], rdx
cmp rdx, 7
ja 0x14000c732
mov rdx, rcx
lea rcx, [0x14003ac78]
call sym.addZCT__system_5316
cmp qword [rbp - 0x128], 0
mov qword [0x14003d840], rbx
je 0x14000c6b3
mov rcx, qword [0x14003d840]
test rcx, rcx
je 0x14000c790
call sym.raiseExceptionAux__system_2868
jmp 0x14000c6b3
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov rcx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x18]
mov edx, 1
mov rbx, rax
mov r9, rax
call sym.fwrite
mov rcx, rbx
call sym.fflush
jmp 0x14000c6c2
call sym.reraiseException.part.0
nop
nop word cs:[rax + rax]

Function at 0x14001d9b0
Capabilities:
Write file on windows

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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400409d4]
mov rbx, rcx
test esi, esi
jle 0x14001db50
mov rax, qword [0x1400409d8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001da6b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14001daf5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14001da50
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14001db72
mov rax, qword [0x1400409d8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400409d8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14001db57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001daee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14001db00
add dword [0x1400409d4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400409d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001daee
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 esi, esi
jmp 0x14001da78
mov rax, qword [0x1400409d8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14001e0e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140040a40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140040a20]
test rbx, rbx
je 0x14001e13c
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 0x14001e133
test rsi, rsi
je 0x14001e133
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14001e118
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 0x14001e350
Capabilities:
Parse pe header

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

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

Function at 0x14001e3d0
Capabilities:
Parse pe header

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

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

Function at 0x14001e4f0
Capabilities:
Parse pe header

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

Function at 0x14001e530
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140027c00]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14001e550
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14001e558
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14001e550
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14001e5a0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14001e597
test rcx, rcx
je 0x14001e550
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x14001e588
xor eax, eax
ret
Function at 0x14001e5b0
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x140027c00]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x14001e6a2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x14001e6b0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14001e6a2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x14001e6a2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x14001e6a2
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]
mov r8, r9
cmp rax, r9
jb 0x14001e705
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x14001e718
add rdx, 0x28
cmp rdx, r10
jne 0x14001e6f0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14001e727
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14001e737
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14001e70e
test ecx, ecx
jg 0x14001e720
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x401970
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rsi, [rsp + 0x38]
mov r14, rdx
mov rbx, rcx
mov rdx, rsi
call fcn.00407370
test eax, eax
jne 0x401bdd
mov rax, qword [0x00505fb0]
mov rcx, rsi
mov rax, qword [rax]
mov rax, qword [rax + 8]
call qword [rax + 0x38]
mov rdi, qword [0x005060c0]
mov edx, eax
mov dword [rsp + 0x38], eax
mov r8d, dword [rdi]
test r8d, r8d
je 0x401ae0
xor esi, esi
test edx, edx
je 0x401b73
mov rbp, qword [0x00506160]
mov r13, qword [0x005062d0]
mov r12, qword [fcn.004c1900]
jmp 0x401a40
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.004073c0
test eax, eax
jne 0x401ac4
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.004073c0
test eax, eax
jne 0x401ac4
mov edx, dword [rbp]
test edx, edx
jne 0x401b00
mov eax, dword [0x00513038]
test eax, eax
je 0x401bb0
add esi, 1
cmp dword [rsp + 0x38], esi
jbe 0x401b73
mov ecx, dword [rdi]
test ecx, ecx
jne 0x4019f0
lea rcx, [rsp + 0x48]
mov r9, rbx
mov r8d, 1
mov edx, 8
call sub.msvcrt.dll_fread
cmp rax, 1
jne 0x401ac4
lea rcx, [rsp + 0x40]
mov r9, rbx
mov r8d, 1
mov edx, 8
call sub.msvcrt.dll_fread
cmp rax, 1
jne 0x401ac4
mov rcx, rbx
call sub.msvcrt.dll_fgetc
add eax, 1
cmp eax, 1
ja 0x401a82
mov rcx, rbx
call sub.msvcrt.dll_fgetc
add eax, 1
cmp eax, 1
ja 0x401a92
lea rcx, [rsp + 0x3c]
mov r9, rbx
mov r8d, 1
mov edx, 4
call sub.msvcrt.dll_fread
cmp rax, 1
je 0x401a1a
mov rcx, r14
call sub.msvcrt.dll_perror
mov ecx, 1
call fcn.00408200
nop word cs:[rax + rax]
mov rcx, rbx
call sub.msvcrt.dll_fgetc
add eax, 1
cmp eax, 1
ja 0x401ae0
mov edx, dword [rsp + 0x38]
jmp 0x4019c8
mov rdx, qword [rsp + 0x40]
mov rcx, qword [0x005062c0]
call fcn.0040a200
test rax, rax
mov r15, rax
je 0x401a33
mov rax, qword [0x00506000]
mov rdx, qword [rsp + 0x40]
mov eax, dword [rax]
test ah, 8
jne 0x401b84
xor eax, eax
jmp 0x401b47
cmp rcx, rdx
je 0x401b54
add rax, 1
cmp rax, 0xa
je 0x401a33
mov rcx, qword [r15 + rax*8 + 0x30]
movsxd r8, eax
test rcx, rcx
jne 0x401b34
mov qword [r15 + r8*8 + 0x30], rdx
mov rax, qword [rsp + 0x48]
add esi, 1
add dword [r15 + r8*4 + 0x80], eax
cmp dword [rsp + 0x38], esi
ja 0x401a40
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsp + 0x48]
lea rcx, str._bb_read_rec__0x_lx__0x_lx___s:_d__cnt_lu_n
mov r9, qword [r15 + 0x10]
mov r8, qword [r15]
mov dword [rsp + 0x28], eax
mov eax, dword [r15 + 0x20]
mov dword [rsp + 0x20], eax
call sub.msvcrt.dll_printf
mov rdx, qword [rsp + 0x40]
jmp 0x401b30
mov r15, qword [r13]
mov ecx, 2
mov dword [0x00513038], 1
call r12
lea rdx, str._s:_warning:_ignoring_basic_block_exec_counts__use__l_or___line__n
mov rcx, rax
mov r8, r15
call sub.msvcrt.dll_fprintf
jmp 0x401a33
mov rax, qword [0x005062d0]
mov ecx, 2
mov rbx, qword [rax]
call qword [fcn.004c1900]
lea rdx, [0x004c9008]
mov r9, r14
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_fprintf
mov ecx, 1
call fcn.00408200
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x407230
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov r8d, 8
lea rbx, [rsp + 0x28]
mov r9, rcx
mov rsi, rdx
mov rcx, rbx
mov edx, 1
call sub.msvcrt.dll_fread
mov edx, 1
cmp rax, 8
jne 0x407278
mov rax, qword [0x00505fb0]
mov rcx, rbx
mov rax, qword [rax]
mov rax, qword [rax + 8]
call qword [rax + 0x20]
xor edx, edx
mov qword [rsi], rax
mov eax, edx
add rsp, 0x38
pop rbx
pop rsi
ret

Function at 0x407320
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [0x00505fb0]
mov rax, qword [rax]
lea rbx, [rsp + 0x28]
mov rsi, rcx
mov rcx, rdx
mov rdx, rbx
mov rax, qword [rax + 8]
call qword [rax + 0x30]
mov r9, rsi
mov r8d, 8
mov rcx, rbx
mov edx, 1
call sub.msvcrt.dll_fwrite
cmp rax, 8
setne al
movzx eax, al
add rsp, 0x38
pop rbx
pop rsi
ret

Function at 0x407370
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov r8d, 4
lea rbx, [rsp + 0x2c]
mov r9, rcx
mov rsi, rdx
mov rcx, rbx
mov edx, 1
call sub.msvcrt.dll_fread
mov edx, 1
cmp rax, 4
jne 0x4073b7
mov rax, qword [0x00505fb0]
mov rcx, rbx
mov rax, qword [rax]
mov rax, qword [rax + 8]
call qword [rax + 0x38]
xor edx, edx
mov dword [rsi], eax
mov eax, edx
add rsp, 0x38
pop rbx
pop rsi
ret

Function at 0x407470
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov r9, rcx
mov rcx, rdx
mov edx, 1
mov rbx, r8
call sub.msvcrt.dll_fread
cmp rax, rbx
setne al
movzx eax, al
add rsp, 0x20
pop rbx
ret

Function at 0x4074a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [0x00505fb0]
mov rax, qword [rax]
lea rbx, [rsp + 0x2c]
mov rsi, rcx
mov ecx, edx
mov rdx, rbx
mov rax, qword [rax + 8]
call qword [rax + 0x48]
mov r9, rsi
mov r8d, 4
mov rcx, rbx
mov edx, 1
call sub.msvcrt.dll_fwrite
cmp rax, 4
setne al
movzx eax, al
add rsp, 0x38
pop rbx
pop rsi
ret

Function at 0x407550
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov r8d, 1
mov r9, rcx
mov byte [rsp + 0x2f], dl
mov edx, 1
lea rcx, [rsp + 0x2f]
call sub.msvcrt.dll_fwrite
cmp rax, 1
setne al
movzx eax, al
add rsp, 0x38
ret

Function at 0x407580
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov r9, rcx
mov rcx, rdx
mov edx, 1
mov rbx, r8
call sub.msvcrt.dll_fwrite
cmp rax, rbx
setne al
movzx eax, al
add rsp, 0x20
pop rbx
ret
Function at 0x408280
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov qword [rsp + 0x88], rdx
mov edx, dword [0x00519468]
mov rdi, rcx
test edx, edx
je 0x4083ce
mov r13, qword [0x00506100]
lea rsi, [rsp + 0x2e]
xor r12d, r12d
mov rbp, qword [0x00505fb0]
lea r14, [0x00519478]
nop word cs:[rax + rax]
mov r10d, r12d
xor edx, edx
mov rcx, rdi
shl r10, 5
add r10, qword [r14]
mov r15, r10
call fcn.00407550
test eax, eax
jne 0x4083df
mov rdx, qword [r15]
mov rcx, rdi
call fcn.004074f0
test eax, eax
jne 0x4083df
mov rdx, qword [r15 + 8]
mov rcx, rdi
call fcn.004074f0
test eax, eax
jne 0x4083df
mov edx, dword [r15 + 0x10]
mov rcx, rdi
call fcn.004074a0
test eax, eax
jne 0x4083df
mov edx, dword [r13]
mov rcx, rdi
call fcn.004074a0
test eax, eax
jne 0x4083df
lea rdx, str.seconds
mov r8d, 0xf
mov rcx, rdi
call fcn.00407580
test eax, eax
jne 0x4083df
lea rdx, [0x004c3620]
mov r8d, 1
mov rcx, rdi
call fcn.00407580
test eax, eax
jne 0x4083df
mov eax, dword [r15 + 0x10]
xor ebx, ebx
test eax, eax
je 0x4083bd
nop
mov rdx, qword [r15 + 0x18]
mov eax, ebx
movsxd rcx, dword [rdx + rax*4]
mov rdx, rsi
mov rax, qword [rbp]
mov rax, qword [rax + 8]
call qword [rax + 0x60]
mov r9, rdi
mov r8d, 1
mov rcx, rsi
mov edx, 2
call sub.msvcrt.dll_fwrite
cmp rax, 1
jne 0x4083df
add ebx, 1
cmp dword [r15 + 0x10], ebx
ja 0x408380
add r12d, 1
cmp dword [0x00519468], r12d
ja 0x4082d0
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x88]
call sub.msvcrt.dll_perror
mov ecx, 1
call fcn.00408200
nop
nop word [rax + rax]
Function at 0x413b50
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov r10d, dword [rcx + 0x18]
mov eax, dword [r8 + 0x10]
mov r9, qword [rcx]
mov rbx, rdx
xor edx, edx
div r10d
mov edx, edx
lea rax, [r9 + rdx*8]
mov rdx, qword [rax]
test rdx, rdx
je 0x410a20
cmp rdx, r8
jne 0x410a18
jmp 0x410a43
cmp rax, r8
je 0x410a40
mov rdx, rax
mov rax, qword [rdx]
test rax, rax
jne 0x410a10
lea r8, str.bfd_hash_rename
mov edx, 0x243
lea rcx, str..._.._.._src_binutils_2.30_bfd_hash.c
call fcn.0040e340
nop dword [rax + rax]
mov rax, rdx
mov rdx, qword [r8]
mov qword [rax], rdx
lea rax, [rbx + 1]
xor edx, edx
mov qword [r8 + 8], rbx
movzx ecx, byte [rbx]
test ecx, ecx
je 0x410a7f
nop word [rax + rax]
mov r11d, ecx
add rax, 1
shl r11d, 0x11
add ecx, r11d
add edx, ecx
mov ecx, edx
shr ecx, 2
xor edx, ecx
movzx ecx, byte [rax - 1]
test ecx, ecx
jne 0x410a60
sub rax, rbx
sub eax, 1
add edx, eax
shl eax, 0x11
add eax, edx
mov edx, eax
shr edx, 2
xor eax, edx
xor edx, edx
mov dword [r8 + 0x10], eax
div r10d
mov eax, edx
lea rax, [r9 + rax*8]
mov rdx, qword [rax]
mov qword [r8], rdx
mov qword [rax], r8
add rsp, 0x20
pop rbx
ret
mov rax, r8
mov qword [rdx], r8
add rcx, 0x60
lea r8, [rdx - 0x18]
mov rdx, rax
jmp 0x4109e0

Function at 0x414010
Capabilities:
Query environment variable

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
mov rax, rcx
mov rbx, rdx
je 0x414060
lea rdi, str.default
mov ecx, 8
mov rsi, rax
repe cmpsb byte [rsi], byte [rdi]
je 0x414071
test rbx, rbx
je 0x4140a3
and byte [rbx + 0x43], 0xfb
mov rcx, rax
call fcn.00413e80
test rax, rax
je 0x41404f
mov qword [rbx + 8], rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
lea rcx, str.GNUTARGET
call sub.msvcrt.dll_getenv
test rax, rax
jne 0x414022
mov rax, qword [0x004c3b50]
test rax, rax
je 0x414092
test rbx, rbx
je 0x41404f
or byte [rbx + 0x43], 4
mov qword [rbx + 8], rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rax, qword [0x004c3b60]
test rbx, rbx
mov rax, qword [rax]
jne 0x414082
jmp 0x41404f
mov rcx, rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp fcn.00413e80