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

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

Function at 0x49fc80
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x49fccc
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x49fcc3
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x49fcce
add rax, 0x28
cmp rax, r9
jne 0x49fcb0
xor eax, eax
ret

Function at 0x49fcd0
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x49fd60
mov rdx, qword [0x004b9330]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x49fd4e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x49fd4e
cmp word [rax + 0x18], 0x20b
jne 0x49fd4e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x49fd60
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x49fd39
add r12, 0x28
cmp r12, rsi
je 0x49fd60
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x49fd30
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

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

Disassembly:
mov rdx, qword [0x004b9330]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x49fd90
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x49fd98
ret
cmp word [r8 + 0x18], 0x20b
jne 0x49fd90
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x49fde5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x49fddc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x49fd90
add rax, 0x28
cmp rax, r9
jne 0x49fdc8
xor eax, eax
ret

Function at 0x49fdf0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x004b9330]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x49fe10
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x49fe18
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x49fe10
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x49fe30
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x004b9330]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x49fe50
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x49fe58
ret
cmp word [rdx + 0x18], 0x20b
jne 0x49fe50
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x49fe98
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x49fe8f
test rcx, rcx
je 0x49fe50
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x49fe80
xor eax, eax
ret
Function at 0x49fea0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x004b9330]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x49fec0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x49fec8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

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

Disassembly:
mov rax, qword [0x004b9330]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x49ff00
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x49ff08
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x49ff00
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x49ff00
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x49ff44
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x49ff58
add rax, 0x28
cmp r9, rax
jne 0x49ff30
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

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

Disassembly:
mov r11, qword [0x004b9330]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x49ff92
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x49ffa0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x49ff92
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x49ff92
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x49ff92
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x49ffed
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x4a0000
add rdx, 0x28
cmp r10, rdx
jne 0x49ffd8
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x4a000f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x4a001f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x49fff6
test ecx, ecx
jg 0x4a0008
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
push rsi
xor r9, r9
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
push r9
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
push rax
add r8, rdx
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
pop r8
add rax, rdx
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x14000dee8
Capabilities:
Parse pe header

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

Function at 0x14001e5d8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14001e3cf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001e3cf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001e3cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001e3cf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001e3cf
cmp dword [rcx + 0x84], 0xe
jbe 0x14001e3cf
cmp dword [rcx + 0xf8], 0
je 0x14001e3cf
mov ecx, ebx
call fcn.14001e4e0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14001e128
nop
cmp dword [rbp + 0x20], 0
je 0x14001e41d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001e428
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001e360
Function at 0x14004dbbc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14004dbd2
mov al, 1
jmp 0x14004dc32
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14004dbe3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14004dc30
mov ecx, dword [rcx + 0x18]
nop
call fcn.14005532c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004dc30
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14004dc30
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14004dc30
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14004dc32
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140054158
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140054188
xor eax, eax
jmp 0x14005424b
mov rbp, rbx
cmp word [rax], si
je 0x1400541ad
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140054194
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140054190
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140053fd8
movsxd r14, eax
test eax, eax
jne 0x1400541eb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140054181
mov rcx, r14
call fcn.140056fe4
mov rdi, rax
test rax, rax
jne 0x140054204
xor ecx, ecx
call fcn.14004e680
jmp 0x1400541e0
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140053fd8
test eax, eax
jne 0x140054235
mov rcx, rdi
call fcn.14004e680
jmp 0x14005423f
xor ecx, ecx
call fcn.14004e680
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14005f074
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140107080]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14005f0cb
cmp word [rdx], r13w
jne 0x14005f0cb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14005f0d0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14005f1f5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14005f216
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14005f109
mov rdx, r9
mov word [rbx], cx
jmp 0x14005f130
cmp r9, r8
jae 0x14005f140
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14005f0ea
jmp 0x14005f1f5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005f1ea
cmp dword [rsp + 0x80], esi
je 0x14005f1ea
lea r8, [0x140107080]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14005f1c2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14005f192
mov word [rbx], r13w
jmp 0x14005f1f2
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14005f19f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14005f1f2
cmp word [rsp + 0x70], r13w
jne 0x14005f1cf
cmp rbx, r14
je 0x14005f18c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14005e210
cmp word [rsp + 0x70], r13w
je 0x14005f1f5
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140107080]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14005f1ef
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14005f1f5
Function at 0x1400612d8
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140051f80
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140061362
cmp byte [rbp - 0x21], r15b
je 0x14006135d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140061398
call fcn.14004f860
test eax, eax
jne 0x140061384
cmp byte [rbp - 0x21], r15b
je 0x14006137c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140061398
cmp byte [rbp - 0x21], r15b
je 0x140061395
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140050d20
test eax, eax
jne 0x140061438
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140051f80
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400613d7
cmp byte [rbp - 0x21], r15b
je 0x14006140c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14006140c
call fcn.14004f860
test eax, eax
jne 0x1400613f8
cmp byte [rbp - 0x21], r15b
je 0x1400613f1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14006140c
cmp byte [rbp - 0x21], r15b
je 0x140061409
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140050d20
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140061438
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14006143b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140061449
mov rcx, rdi
call fcn.14004e680
cmp byte [rbp + 0x3f], r15b
je 0x140061458
mov rcx, qword [rbp + 0x27]
call fcn.14004e680
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14006619c
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14005e210
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14005e210
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400662ec
cmp rax, 0xffffffffffffffff
je 0x1400662ec
xor edi, edi
test rbp, rbp
jle 0x140066297
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140050c80
mov rbx, rax
test rax, rax
jne 0x140066224
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14006628d
mov edx, 0x8000
mov ecx, r14d
call fcn.140022134
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14004d528
cmp eax, 0xffffffff
je 0x14006626d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140066234
mov edx, r15d
mov ecx, r14d
call fcn.140022134
jmp 0x14006628d
cmp byte [rsi + 0x38], dil
je 0x140066284
cmp dword [rsi + 0x34], 5
jne 0x140066284
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14006628d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14004e680
jmp 0x140066300
jns 0x140066300
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14005e210
cmp rax, 0xffffffffffffffff
jne 0x1400662b8
cmp byte [rsi + 0x30], dil
je 0x140066300
mov edi, dword [rsi + 0x2c]
jmp 0x140066300
mov ecx, r14d
call fcn.14005532c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140066300
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140066300
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400662f9
mov eax, dword [rsi + 0x2c]
jmp 0x1400662fe
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14005e210
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004a8210]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x004a8220]
mov dword [rax], 1
mov rax, qword [0x004a8230]
mov dword [rax], 1
mov rax, qword [0x004a8200]
mov dword [rax], 1
mov rax, qword [0x004a80d0]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x004a81f0]
mov dword [0x004cb008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x004a81b0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x004a7760]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x40b550
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x004cb624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x40b6d8
mov rax, qword [0x004cb628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40b59c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x40b625
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x40b580
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x40b70d
mov rax, qword [0x004cb628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004cb628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40b6f0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40b61e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x40b680
add dword [0x004cb624], 1
cmp edi, 8
jae 0x40b653
test dil, 4
jne 0x40b6c4
test edi, edi
je 0x40b648
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40b6df
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x40b648
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x40b66c
jmp 0x40b648
add rsi, qword [0x004cb628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40b61e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x40b648
xor esi, esi
jmp 0x40b5a7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x40b648
mov rax, qword [0x004cb628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x40be60
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004cb900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004cb8e0]
test rbx, rbx
je 0x40beb4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40beab
test rsi, rsi
je 0x40beab
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40be90
lea rcx, [0x004cb900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]