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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x88
xor eax, eax
mov r14, r8
mov rbx, rdx
mov qword [rsp + 0x50], rax
mov rdi, rcx
mov qword [rsp + 0x58], rax
lea rdx, str.11.2.13
mov qword [rsp + 0x60], rax
lea r8d, [rax + 0x58]
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rsi, r9
mov ebp, eax
call fcn.0040b500
mov r15d, eax
test eax, eax
je 0x4010d3
lea rdx, [rbx + 0x12]
mov r8d, eax
lea rcx, str.FaFailed_to_extract__s:_inflateInit___failed_with_return_code__d__n
call fcn.00402ad0
lea eax, [rbp - 1]
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x2000
mov qword [rsp + 0x80], r13
call fcn.00414fa0
mov r13, rax
test rax, rax
jne 0x401109
lea r8, [rbx + 0x12]
lea rdx, [0x0042b690]
lea rcx, [0x0042b6d4]
call fcn.00402830
jmp 0x40126c
mov ecx, 0x2000
call fcn.00414fa0
mov rbp, rax
test rax, rax
jne 0x401137
lea r8, [rbx + 0x12]
lea rdx, [0x0042b6e0]
lea rcx, [0x0042b6d4]
call fcn.00402830
jmp 0x40126c
mov qword [rsp + 0xd0], r12
mov r12d, dword [rbx + 8]
nop dword [rax]
nop word [rax + rax]
mov eax, 0x2000
mov rbx, r12
cmp r12, rax
mov r9, rdi
mov edx, 1
mov rcx, r13
cmova rbx, rax
mov r8, rbx
call fcn.004104ec
cmp rax, rbx
jne 0x40125e
mov rcx, rdi
call fcn.00410260
test eax, eax
jne 0x40125e
sub r12, rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r13
nop word [rax + rax]
mov ebx, 0x2000
mov qword [rsp + 0x30], rbp
xor edx, edx
mov dword [rsp + 0x38], ebx
lea rcx, [rsp + 0x20]
call fcn.00409950
mov edi, eax
mov r15d, 0xffffffff
lea ecx, [rax + 4]
cmp ecx, 2
jbe 0x401241
cmp eax, 2
je 0x40123c
mov ecx, dword [rsp + 0x38]
sub rbx, rcx
test r14, r14
je 0x401203
mov r9, r14
lea edx, [r15 + 2]
mov r8, rbx
mov rcx, rbp
call fcn.00410c2c
cmp rax, rbx
jne 0x4011fe
mov rcx, r14
call fcn.00410260
test eax, eax
je 0x401219
mov edi, r15d
jmp 0x401241
test rsi, rsi
je 0x401219
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.0040ca50
add rsi, rbx
cmp dword [rsp + 0x38], 0
je 0x4011a0
cmp edi, 1
je 0x401237
test r12, r12
je 0x401241
mov rdi, qword [rsp + 0xc0]
jmp 0x401150
xor r15d, r15d
jmp 0x401264
mov edi, 0xfffffffd
mov rdx, qword [rsp + 0xc8]
lea rcx, [0x0042b730]
add rdx, 0x12
mov r8d, edi
call fcn.00402ad0
jmp 0x401264
mov r15d, 0xffffffff
mov r12, qword [rsp + 0xd0]
lea rcx, [rsp + 0x20]
call fcn.0040b1e0
mov rcx, r13
call fcn.00414f8c
mov rcx, rbp
call fcn.00414f8c
mov r13, qword [rsp + 0x80]
mov eax, r15d
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x4012b0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push r13
push r14
mov eax, 0x1050
call fcn.0040bc70
sub rsp, rax
mov rax, qword [0x0043e018]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov rsi, rdx
mov r13, rcx
add rcx, 0x70
lea rdx, str.fwfwrite
mov ebp, 0xffffffff
call fcn.00403f60
mov r14, rax
test rax, rax
jne 0x401311
lea rdx, [rsi + 0x12]
lea rcx, [0x0042b838]
call fcn.00402ad0
xor ebx, ebx
jmp 0x40143a
mov edx, dword [rsi + 4]
xor r8d, r8d
add rdx, qword [r13]
mov rcx, r14
call fcn.00410824
test eax, eax
jns 0x40134d
lea r8, [rsi + 0x12]
lea rdx, [0x0042b870]
lea rcx, [0x0042b8ac]
call fcn.00402830
mov rcx, r14
call fcn.0041019c
xor ebx, ebx
jmp 0x40143a
mov ecx, dword [rsi + 0xc]
mov qword [rsp + 0x1048], r12
call fcn.00414fa0
mov r12, rax
mov rbx, rax
test rax, rax
jne 0x401390
mov r9d, dword [rsi + 0xc]
lea r8, [rsi + 0x12]
lea rdx, [0x0042b8c0]
lea rcx, [0x0042b6d4]
call fcn.00402830
mov rcx, r14
call fcn.0041019c
jmp 0x401432
cmp byte [rsi + 0x10], 1
mov qword [rsp + 0x1090], rdi
mov qword [rsp + 0x1040], r15
jne 0x401463
mov r9, r12
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call fcn.00401050
test eax, eax
jne 0x4014d7
mov rcx, r14
add rsi, 0x12
call fcn.0041019c
mov rdx, rsi
lea rcx, [r13 + 0x3070]
call fcn.00407780
test eax, eax
js 0x401422
mov qword [rsp + 0x28], rsi
lea r9, [r13 + 0x3070]
lea r8, [0x0042b904]
mov dword [rsp + 0x20], 0x5c
mov edx, 0x1000
lea rcx, [rsp + 0x30]
call fcn.00401e90
cmp eax, 0x1000
jge 0x401422
lea rdx, [rsp + 0x30]
mov rcx, r12
call fcn.00404100
mov ebp, eax
mov rdi, qword [rsp + 0x1090]
mov r15, qword [rsp + 0x1040]
mov r12, qword [rsp + 0x1048]
mov rcx, rbx
call fcn.00414f8c
mov eax, ebp
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.0040bcd0
add rsp, 0x1050
pop r14
pop r13
pop rsi
pop rbp
pop rbx
ret
mov edi, dword [rsi + 0xc]
mov r15, r12
test rdi, rdi
je 0x4013c3
mov eax, 0x2000
nop word [rax + rax]
cmp rdi, rax
mov rbp, rdi
mov r9, r14
mov r8d, 1
cmova rbp, rax
mov rcx, r15
mov rdx, rbp
call fcn.004104ec
cmp rax, 1
jb 0x4014bb
add r15, rbp
mov eax, 0x2000
sub rdi, rbp
jne 0x401480
mov ebp, 0xffffffff
jmp 0x4013c3
lea r8, [rsi + 0x12]
lea rdx, [0x0042b7b8]
lea rcx, [0x0042b7ec]
call fcn.00402830
mov ebp, 0xffffffff
mov rcx, r12
call fcn.00414f8c
mov rcx, r14
call fcn.0041019c
xor ebx, ebx
jmp 0x401422
Function at 0x4015a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push r14
push r15
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
add rcx, 0x70
lea rdx, str.fwfwrite
xor r14d, r14d
call fcn.00403f60
mov r15, rax
test rax, rax
jne 0x4015f0
lea rdx, [rsi + 0x12]
lea rcx, [0x0042b838]
call fcn.00402ad0
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rsi
ret
mov edx, dword [rsi + 4]
xor r8d, r8d
add rdx, qword [rbx]
mov rcx, r15
call fcn.00410824
test eax, eax
jns 0x401621
lea r8, [rsi + 0x12]
lea rdx, [0x0042b870]
lea rcx, [0x0042b8ac]
call fcn.00402830
jmp 0x4016ef
mov ecx, dword [rsi + 0xc]
call fcn.00414fa0
mov r14, rax
test rax, rax
jne 0x401651
mov r9d, dword [rsi + 0xc]
lea r8, [rsi + 0x12]
lea rdx, [0x0042b8c0]
lea rcx, [0x0042b6d4]
call fcn.00402830
jmp 0x4016ef
cmp byte [rsi + 0x10], 1
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r12
jne 0x40167d
mov r9, r14
xor r8d, r8d
mov rdx, rsi
mov rcx, r15
call fcn.00401050
test eax, eax
je 0x4016e0
jmp 0x4016d5
mov ebx, dword [rsi + 0xc]
mov rbp, r14
test rbx, rbx
je 0x4016e0
mov r12d, 0x2000
nop
cmp rbx, r12
mov rdi, rbx
mov r9, r15
mov r8d, 1
cmova rdi, r12
mov rcx, rbp
mov rdx, rdi
call fcn.004104ec
cmp rax, 1
jb 0x4016be
add rbp, rdi
sub rbx, rdi
jne 0x401690
jmp 0x4016e0
lea r8, [rsi + 0x12]
lea rdx, [0x0042b7b8]
lea rcx, [0x0042b7ec]
call fcn.00402830
mov rcx, r14
call fcn.00414f8c
xor r14d, r14d
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r12, qword [rsp + 0x50]
mov rcx, r15
call fcn.0041019c
mov rbx, qword [rsp + 0x58]
mov rax, r14
add rsp, 0x20
pop r15
pop r14
pop rsi
ret
Function at 0x401710
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
sub rsp, 0x38
cmp dword [rcx + 0x5074], 1
mov rdi, rdx
mov rbx, rcx
je 0x40173e
lea rcx, [0x0042b910]
call fcn.00402ad0
mov eax, 0xffffffff
add rsp, 0x38
pop rdi
pop rbx
ret
cmp byte [rdx + 0x11], 0x6e
jne 0x401768
call fcn.004012b0
mov ebx, eax
test eax, eax
jns 0x40175f
lea rdx, [rdi + 0x12]
lea rcx, [0x0042b960]
call fcn.00402ad0
mov eax, ebx
add rsp, 0x38
pop rdi
pop rbx
ret
mov qword [rsp + 0x50], rbp
add rcx, 0x3070
lea rbp, [rdx + 0x12]
mov qword [rsp + 0x60], r12
mov rdx, rbp
call fcn.00407bd0
mov r12, rax
test rax, rax
jne 0x4017b9
mov r8, rbp
lea rdx, [0x0042b988]
lea rcx, [0x0042b9bc]
call fcn.00402830
mov rbp, qword [rsp + 0x50]
lea eax, [r12 - 1]
mov r12, qword [rsp + 0x60]
add rsp, 0x38
pop rdi
pop rbx
ret
lea rcx, [rbx + 0x70]
mov qword [rsp + 0x20], r15
lea rdx, str.fwfwrite
call fcn.00403f60
mov r15, rax
test rax, rax
jne 0x4017ee
mov rdx, rbp
lea rcx, [0x0042b838]
call fcn.00402ad0
lea ebx, [r15 - 1]
jmp 0x40192f
mov edx, dword [rdi + 4]
xor r8d, r8d
add rdx, qword [rbx]
mov rcx, r15
call fcn.00410824
test eax, eax
jns 0x401823
mov r8, rbp
lea rdx, [0x0042b870]
lea rcx, [0x0042b8ac]
call fcn.00402830
mov ebx, 0xffffffff
jmp 0x401927
cmp byte [rdi + 0x10], 1
jne 0x401841
xor r9d, r9d
mov r8, r12
mov rdx, rdi
mov rcx, r15
call fcn.00401050
mov ebx, eax
jmp 0x401927
mov qword [rsp + 0x30], r13
xor ebx, ebx
mov r13d, 0x2000
mov qword [rsp + 0x28], r14
mov ecx, r13d
call fcn.00414fa0
mov r14, rax
test rax, rax
jne 0x401882
mov r8, rbp
lea rdx, [0x0042b778]
lea rcx, [0x0042b6d4]
call fcn.00402830
lea ebx, [r14 - 1]
jmp 0x40191d
mov edi, dword [rdi + 0xc]
test rdi, rdi
je 0x401915
mov qword [rsp + 0x58], rsi
nop dword [rax]
nop word [rax + rax]
cmp rdi, r13
mov rsi, rdi
mov r9, r15
mov r8d, 1
cmova rsi, r13
mov rcx, r14
mov rdx, rsi
call fcn.004104ec
cmp rax, 1
jb 0x4018f5
mov r9, r12
mov r8d, 1
mov rdx, rsi
mov rcx, r14
call fcn.00410c2c
cmp rax, 1
jb 0x4018e5
sub rdi, rsi
jne 0x4018a0
jmp 0x401910
lea rdx, [0x0042b7f8]
lea rcx, [0x0042b82c]
jmp 0x401903
lea rdx, [0x0042b7b8]
lea rcx, [0x0042b7ec]
mov r8, rbp
call fcn.00402830
mov ebx, 0xffffffff
mov rsi, qword [rsp + 0x58]
mov rcx, r14
call fcn.00414f8c
mov r13, qword [rsp + 0x30]
mov r14, qword [rsp + 0x28]
mov rcx, r15
call fcn.0041019c
mov rcx, r12
call fcn.0041019c
mov r15, qword [rsp + 0x20]
mov eax, ebx
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x60]
add rsp, 0x38
pop rdi
pop rbx
ret
Function at 0x401a40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x0043e018]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
lea rdx, str.fwfwrite
add rcx, 0x70
mov esi, 0xffffffff
call fcn.00403f60
mov rdi, rax
test rax, rax
je 0x401c29
mov rax, qword [0x0042da90]
lea r8d, [rsi + 9]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
shr rax, 0x18
mov rcx, rdi
add al, 0xc
mov qword [rsp + 0x48], rbp
mov byte [rsp + 0x23], al
call fcn.00408270
mov rbp, rax
test rax, rax
je 0x401c1c
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
call fcn.00410824
test eax, eax
jns 0x401ae4
lea rdx, [0x0042b9c8]
lea rcx, [0x0042b8ac]
call fcn.00402830
jmp 0x401c1c
mov edx, 0x58
lea rcx, [rbx + 0x18]
mov r9, rdi
lea r8d, [rdx - 0x57]
call fcn.004104ec
cmp rax, 1
jae 0x401b17
lea rdx, [0x0042b9f0]
lea rcx, [0x0042b7ec]
call fcn.00402830
jmp 0x401c1c
mov ecx, dword [rbx + 0x20]
xor r8d, r8d
mov eax, dword [rbx + 0x24]
bswap eax
mov dword [rbx + 0x24], eax
mov eax, dword [rbx + 0x28]
bswap eax
mov dword [rbx + 0x28], eax
mov eax, dword [rbx + 0x2c]
bswap ecx
mov ecx, ecx
sub rbp, rcx
mov dword [rbx + 0x20], ecx
bswap eax
mov dword [rbx + 0x2c], eax
add rbp, 0x58
mov qword [rbx], rbp
mov rcx, rdi
mov dword [rbx + 0x5078], 0
mov dword [0x0043ec94], eax
mov edx, dword [rbx + 0x24]
add rdx, qword [rbx]
call fcn.00410824
movsxd rcx, dword [rbx + 0x28]
call fcn.00414fa0
mov qword [rbx + 8], rax
test rax, rax
jne 0x401b8e
lea rdx, [0x0042ba08]
lea rcx, [0x0042b6d4]
call fcn.00402830
jmp 0x401c1c
movsxd rdx, dword [rbx + 0x28]
mov r9, rdi
mov r8d, 1
mov rcx, rax
call fcn.004104ec
cmp rax, 1
jae 0x401bbe
lea rdx, [0x0042ba30]
lea rcx, [0x0042b7ec]
call fcn.00402830
jmp 0x401c1c
movsxd rax, dword [rbx + 0x28]
mov rcx, rdi
add rax, qword [rbx + 8]
mov qword [rbx + 0x10], rax
call fcn.00410260
test eax, eax
je 0x401be4
lea rcx, [0x0042ba50]
call fcn.00402ad0
jmp 0x401c1c
mov rax, qword [rbx + 8]
cmp rax, qword [rbx + 0x10]
jae 0x401c1a
nop
mov ecx, dword [rax + 4]
mov edx, dword [rax]
bswap ecx
mov dword [rax + 4], ecx
mov ecx, dword [rax + 8]
bswap ecx
mov dword [rax + 8], ecx
mov ecx, dword [rax + 0xc]
bswap ecx
mov dword [rax + 0xc], ecx
bswap edx
mov dword [rax], edx
movsxd rcx, edx
add rax, rcx
cmp rax, qword [rbx + 0x10]
jb 0x401bf0
xor esi, esi
mov rcx, rdi
call fcn.0041019c
mov rbp, qword [rsp + 0x48]
mov eax, esi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.0040bcd0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x407560
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x2040
call fcn.0040bc70
sub rsp, rax
mov rax, qword [0x0043e018]
xor rax, rsp
mov qword [rsp + 0x2030], rax
mov rbx, rdx
mov qword [rsp + 0x2078], rbp
lea rdx, str.fwfwrite
mov rbp, r8
call fcn.00403f60
mov r9, rbx
mov qword [rsp + 0x28], rbp
lea r8, [0x0042b904]
mov dword [rsp + 0x20], 0x5c
mov edx, 0x1000
lea rcx, [rsp + 0x30]
mov rdi, rax
call fcn.00401e90
cmp eax, 0x1000
jl 0x4075d6
xor esi, esi
mov ebx, esi
jmp 0x40768c
lea rcx, [rsp + 0x30]
call fcn.00403ef0
xor esi, esi
cmp eax, 1
jne 0x407664
mov eax, dword [0x0043e004]
cmp eax, 0xffffffff
jne 0x407633
lea rcx, [0x0042dbd0]
call fcn.00407b20
mov r8, rax
test rax, rax
je 0x40764d
movzx edx, byte [rax]
sub edx, 0x30
jne 0x407618
movzx edx, byte [rax + 1]
movzx ecx, sil
sub edx, ecx
mov eax, esi
test edx, edx
mov rcx, r8
setne al
mov dword [0x0043e004], eax
call fcn.00414f8c
mov eax, dword [0x0043e004]
test eax, eax
je 0x407653
lea rdx, [rsp + 0x30]
lea rcx, [0x0042dbf8]
call fcn.00402be0
mov rbx, rsi
jmp 0x40768c
mov dword [0x0043e004], esi
lea rdx, [rsp + 0x30]
lea rcx, [0x0042dc28]
call fcn.00402be0
mov rdx, rbp
mov rcx, rbx
call fcn.00407780
test eax, eax
jns 0x407678
mov rbx, rsi
jmp 0x40768c
lea rdx, [0x0042dc5c]
lea rcx, [rsp + 0x30]
call fcn.00403f60
mov rbx, rax
mov rbp, qword [rsp + 0x2078]
test rdi, rdi
je 0x407749
mov rcx, rdi
test rbx, rbx
je 0x407751
call fcn.00410234
test eax, eax
jne 0x407735
nop word [rax + rax]
mov r9, rdi
lea rcx, [rsp + 0x1030]
mov edx, 1
mov r8d, 0x1000
call fcn.004104ec
test rax, rax
jne 0x4076f1
mov rcx, rdi
call fcn.00410260
test eax, eax
je 0x40771a
mov rcx, rdi
jmp 0x40772b
mov r9, rbx
lea rcx, [rsp + 0x1030]
mov r8, rax
mov edx, 1
call fcn.00410c2c
test rax, rax
je 0x407728
mov rcx, rbx
call fcn.00410260
test eax, eax
jne 0x407728
mov rcx, rdi
call fcn.00410234
test eax, eax
je 0x4076c0
jmp 0x407735
mov rcx, rbx
call fcn.004189d0
mov esi, 0xffffffff
mov rcx, rdi
call fcn.0041019c
mov rcx, rbx
call fcn.0041019c
mov eax, esi
jmp 0x40775b
test rbx, rbx
je 0x407756
mov rcx, rbx
call fcn.0041019c
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x2030]
xor rcx, rsp
call fcn.0040bcd0
add rsp, 0x2040
pop rdi
pop rsi
pop rbx
ret
Function at 0x408270
Capabilities:
Read file on windows

Disassembly:
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, rcx
mov rsi, r8
mov ecx, 0x2000
mov r14, rdx
xor r13d, r13d
call fcn.00414fa0
mov r15, rax
test rax, rax
je 0x408383
xor edx, edx
lea r8d, [r13 + 2]
mov rcx, r12
call fcn.00410824
test eax, eax
js 0x408383
mov rcx, r12
mov qword [rsp + 0x50], rbx
call fcn.00418f80
mov rbx, rax
cmp rax, rsi
jb 0x40837e
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rdi
nop dword [rax]
cmp rbx, 0x2000
lea rbp, [rbx - 0x2000]
cmovb rbp, r13
sub rbx, rbp
cmp rbx, rsi
jb 0x408374
xor r8d, r8d
mov rdx, rbp
mov rcx, r12
call fcn.00410824
test eax, eax
js 0x408374
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, r15
call fcn.004104ec
cmp rax, rbx
jne 0x408374
sub rbx, rsi
add rbx, 1
je 0x40835b
lea rdi, [r15 - 1]
add rdi, rbx
nop dword [rax]
nop dword [rax + rax]
mov r8, rsi
mov rdx, r14
mov rcx, rdi
call fcn.0040d6d0
test eax, eax
je 0x40836d
dec rdi
sub rbx, 1
jne 0x408340
lea rbx, [rsi - 1]
add rbx, rbp
test rbp, rbp
jne 0x4082e0
jmp 0x408374
lea r13, [rbp - 1]
add r13, rbx
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
mov rcx, r15
call fcn.00414f8c
mov rax, r13
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x40c71c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x0042b090]
test rax, rax
je 0x40c766
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x40c766
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x40c766
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x40c766
cmp dword [rcx + 0x84], 0xe
jbe 0x40c766
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x40c768
xor al, al
add rsp, 0x28
ret

Function at 0x41a00c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x419e08
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140050700]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140050710]
mov dword [rax], 1
mov rax, qword [0x140050720]
mov dword [rax], 1
mov rax, qword [0x140050640]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400506f0]
mov dword [0x14005900c], 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 [0x1400507e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400507c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140050620]
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 0x140004c06
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.strlen
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], 0
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rbp - 8]
mov rax, qword [rbp + 0x18]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x14], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.fflush
mov dword [rbp - 0x14], eax
nop
add rsp, 0x40
pop rbp
ret

Function at 0x14000edb7
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140010fb4
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
lea rax, str.echoBinSafe
mov qword [rbp - 0x58], rax
lea rax, [0x1400496b8]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov word [rbp - 0x40], 0
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.nimFrame_6
call sym.nimErrorFlag_6
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x50], 0xb27
lea rax, [0x140059120]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x50], 0x12
lea rax, [0x140049db8]
mov qword [rbp - 0x48], rax
mov qword [rbp - 8], 0
mov qword [rbp - 0x50], 0x13
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x18]
jge 0x14001110c
mov qword [rbp - 0x50], 0xb28
lea rax, [0x1400496b8]
mov qword [rbp - 0x48], rax
cmp qword [rbp - 8], 0
js 0x140011078
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x18]
jl 0x140011091
mov rax, qword [rbp + 0x18]
lea rdx, [rax - 1]
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.raiseIndexError2
jmp 0x14001119d
mov rax, qword [rbp - 8]
shl rax, 4
mov rdx, rax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov ecx, 1
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rcx, rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rax + 8]
mov rax, qword [rax]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
lea rax, [rbp - 0x70]
mov r8d, 0
mov rdx, rax
call sym.writeWindows__system_u9038
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax]
movzx eax, al
test eax, eax
jne 0x14001119c
mov qword [rbp - 0x50], 0xd
lea rax, [0x140049db8]
mov qword [rbp - 0x48], rax
add qword [rbp - 8], 1
jmp 0x140011046
nop
mov qword [rbp - 0x50], 0xb43
lea rax, [0x1400496b8]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x20], 0
mov ecx, 1
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 1
mov edx, 1
lea rax, [0x1400496a9]
mov rcx, rax
call sym.fwrite
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x50], 0xb44
mov dword [rbp - 0x24], 0
mov ecx, 1
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rcx, rax
call sym.fflush
mov dword [rbp - 0x24], eax
mov qword [rbp - 0x50], 0xb48
lea rax, [0x140059120]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001119d
nop
call sym.popFrame_6
nop
add rsp, 0x90
pop rbp
ret

Function at 0x14003a130
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 0x14003a1a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140059554]
mov rbx, rcx
test esi, esi
jle 0x14003a2d0
mov rax, qword [0x140059558]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14003a1eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14003a275
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14003a1d0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14003a2f2
mov rax, qword [0x140059558]
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 [0x140059558]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14003a2d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14003a26e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14003a280
add dword [0x140059554], 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 [0x140059558]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14003a26e
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 0x14003a1f8
mov rax, qword [0x140059558]
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 0x14003a880
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400595c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400595a0]
test rbx, rbx
je 0x14003a8dc
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 rsi, rsi
je 0x14003a8d3
test eax, eax
jne 0x14003a8d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14003a8b8
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 0x14003aaf0
Capabilities:
Parse pe header

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