joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001800
Capabilities:
Extract resource via kernel32 functions
Map section object

Disassembly:
mov rax, rsp
push rbx
push rdi
sub rsp, 0x78
mov qword [rax - 0x18], rsi
mov ebx, 0xc0000229
mov qword [rax - 0x28], r15
mov rsi, rcx
xor r15d, r15d
mov qword [rax + 0x20], r15
mov qword [rax + 0x18], r15
mov qword [rax + 0x10], r15
mov qword [rax - 0x30], r15
call qword [sym.imp.ProcessHacker.exe_PhIsExecutingInWow64]
mov rcx, qword [0x18001cdd8]
lea r8d, [r15 + 0xa]
neg al
sbb rdx, rdx
mov rcx, qword [rcx + 0x28]
add rdx, 0x6a
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x1800019ab
mov rcx, qword [0x18001cdd8]
mov rdx, rax
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1800019ab
mov rcx, rax
mov qword [rsp + 0x90], rbp
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x1800019a3
mov rcx, qword [0x18001cdd8]
mov rdx, rdi
mov qword [rsp + 0x68], r14
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r14d, eax
mov qword [rsp + 0x50], r14
test rsi, rsi
je 0x1800018c2
mov rdx, qword [rsi + 8]
jmp 0x1800018c5
mov rdx, r15
mov dword [rsp + 0x30], 0x60
lea rcx, [rsp + 0xa8]
mov dword [rsp + 0x28], 3
mov r9d, 0x80
mov r8d, 0x12019f
mov dword [rsp + 0x20], 3
call qword [sym.imp.ProcessHacker.exe_PhCreateFileWin32]
mov ebx, eax
test eax, eax
js 0x18000199e
mov rax, qword [rsp + 0xa8]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0xa0]
mov dword [rsp + 0x28], 0x8000000
xor r8d, r8d
mov edx, 0xf001f
mov dword [rsp + 0x20], 4
call qword [sym.imp.ntdll.dll_NtCreateSection]
mov ebx, eax
test eax, eax
js 0x18000199e
mov rcx, qword [rsp + 0xa0]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x48], 4
lea r8, [rsp + 0x98]
mov dword [rsp + 0x40], r15d
xor r9d, r9d
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
lea rdx, [r9 - 1]
mov qword [rsp + 0x20], r15
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ebx, eax
test eax, eax
js 0x18000199e
mov rcx, qword [rsp + 0x98]
mov r8, r14
mov rdx, rbp
call fcn.180005240
mov r14, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x98]
mov r15, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
test rdx, rdx
je 0x1800019cf
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x1800019e2
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x1800019f5
call qword [sym.imp.ntdll.dll_NtClose]
test rdi, rdi
je 0x180001a03
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
add rsp, 0x78
pop rdi
pop rbx
ret
Function at 0x140001104
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov eax, r8d
mov qword [0x140041e40], rax
test edx, edx
jle 0x140001158
mov r9d, edx
mov r10d, edx
xor r11d, r11d
imul rax, qword [0x140041e40], 0x343fd
add rax, 0x269ec3
mov bl, byte [rcx + r11]
xor bl, r8b
mov qword [0x140041e40], rax
shr eax, 0x10
and eax, 0x7fff
xor edx, edx
idiv r9d
inc dl
xor dl, bl
mov byte [rcx + r11], dl
inc r11
cmp r10, r11
jne 0x14000111c
pop rbx
ret

Function at 0x14000115a
Capabilities:
Read file on windows

Disassembly:
push rsi
sub rsp, 0x40
mov rsi, rcx
mov rax, qword [0x140040aa0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], 0
mov byte [rsp + 0x28], 0x74
mov byte [rsp + 0x29], 0x71
mov byte [rsp + 0x2a], 0x7d
mov byte [rsp + 0x2b], 0x6d
mov byte [rsp + 0x2c], 0x7b
mov byte [rsp + 0x2d], 0x36
mov al, 0x7c
mov byte [rsp + 0x2e], al
mov byte [rsp + 0x2f], 0x80
mov byte [rsp + 0x30], al
mov byte [rsp + 0x31], 0
xor eax, eax
add byte [rsp + rax + 0x28], 0xf8
inc rax
cmp rax, 9
jne 0x1400011ae
lea r8, [0x14002b4ac]
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x28]
call fcn.140015544
test eax, eax
jne 0x140001211
mov r9, qword [rsp + 0x20]
test r9, r9
je 0x140001211
mov edx, 1
mov r8d, 0x39f
mov rcx, rsi
call fcn.1400157fc
mov rcx, qword [rsp + 0x20]
call fcn.140015a50
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140010ee0
nop
add rsp, 0x40
pop rsi
ret
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140010ee0
mov ecx, 0xffffffff
call fcn.140015df0
int3
Function at 0x140005a85
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov rax, qword [0x140040aa0]
xor rax, rsp
mov qword [rsp + 0xb8], rax
lea rdi, [rsp + 0x88]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rsi, qword [rdi + 8]
mov rbx, qword [rdi + 0x10]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [0x140044404], 0
cmp rsi, rbx
jae 0x140005bc4
mov r15, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r12, [rsp + 0x50]
mov rdi, qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
lea r13, [0x140043140]
lea r14, [rsp + 0x20]
call r15
mov r9d, 0x30
mov rcx, rax
mov rdx, rsi
mov r8, r12
call rdi
cmp dword [rsp + 0x78], 0x20000
jne 0x140005bb6
cmp dword [rsp + 0x70], 0x1000
jne 0x140005bb6
mov eax, dword [rsp + 0x74]
cmp eax, 0x40
je 0x140005b7e
cmp eax, 0x20
je 0x140005b7e
cmp eax, 4
jne 0x140005bb6
cmp qword [rsp + 0x68], 0x19000
jb 0x140005bb6
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
movaps xmm2, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x40], xmm2
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov rcx, r14
call fcn.140005d79
test eax, eax
je 0x140005bb6
movsxd rax, dword [0x140044404]
lea ecx, [rax + 1]
mov dword [0x140044404], ecx
lea rax, [rax + rax*2]
shl rax, 4
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
movaps xmm2, xmmword [rsp + 0x70]
movups xmmword [rax + r13 + 0x20], xmm2
movups xmmword [rax + r13 + 0x10], xmm1
movups xmmword [rax + r13], xmm0
add rsi, qword [rsp + 0x68]
cmp rsi, rbx
jb 0x140005b06
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140010ee0
nop
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140015df0
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 0x140015c5b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140015c5b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140015c5b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140015c5b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140015c5b
cmp dword [rcx + 0x84], 0xe
jbe 0x140015c5b
cmp dword [rcx + 0xf8], 0
je 0x140015c5b
mov ecx, ebx
call fcn.140015d0c
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.140015ae8
nop
cmp dword [rbp + 0x20], 0
je 0x140015ca9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140015cb4
int3
xor r8d, r8d
xor edx, edx
jmp 0x140015bec
Function at 0x14001bd24
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, [0x140046640]
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 0x14001bd7b
cmp word [rdx], r13w
jne 0x14001bd7b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001bd80
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001bea5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001bec6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001bdb9
mov rdx, r9
mov word [rbx], cx
jmp 0x14001bde0
cmp r9, r8
jae 0x14001bdf0
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 0x14001bd9a
jmp 0x14001bea5
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 0x14001be9a
cmp dword [rsp + 0x80], esi
je 0x14001be9a
lea r8, [0x140046640]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001be72
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001be42
mov word [rbx], r13w
jmp 0x14001bea2
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 0x14001be4f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001bea2
cmp word [rsp + 0x70], r13w
jne 0x14001be7f
cmp rbx, r14
je 0x14001be3c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400239b8
cmp word [rsp + 0x70], r13w
je 0x14001bea5
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, [0x140046640]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001be9f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001bea5
Function at 0x140021158
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 0x140021188
xor eax, eax
jmp 0x14002124b
mov rbp, rbx
cmp word [rax], si
je 0x1400211ad
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140021194
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140021190
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.140021078
movsxd r14, eax
test eax, eax
jne 0x1400211eb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140021181
mov rcx, r14
call fcn.14001e00c
mov rdi, rax
test rax, rax
jne 0x140021204
xor ecx, ecx
call fcn.14001c884
jmp 0x1400211e0
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.140021078
test eax, eax
jne 0x140021235
mov rcx, rdi
call fcn.14001c884
jmp 0x14002123f
xor ecx, ecx
call fcn.14001c884
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 0x14002668c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400266a2
mov al, 1
jmp 0x140026702
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400266b3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140026700
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002200c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140026700
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140026700
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140026700
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140026702
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400275c8
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.140020148
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140027652
cmp byte [rbp - 0x21], r15b
je 0x14002764d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140027688
call fcn.14001d970
test eax, eax
jne 0x140027674
cmp byte [rbp - 0x21], r15b
je 0x14002766c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140027688
cmp byte [rbp - 0x21], r15b
je 0x140027685
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.14001f728
test eax, eax
jne 0x140027728
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140020148
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400276c7
cmp byte [rbp - 0x21], r15b
je 0x1400276fc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400276fc
call fcn.14001d970
test eax, eax
jne 0x1400276e8
cmp byte [rbp - 0x21], r15b
je 0x1400276e1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400276fc
cmp byte [rbp - 0x21], r15b
je 0x1400276f9
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.14001f728
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140027728
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14002772b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140027739
mov rcx, rdi
call fcn.14001c884
cmp byte [rbp + 0x3f], r15b
je 0x140027748
mov rcx, qword [rbp + 0x27]
call fcn.14001c884
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 0x140027cc8
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.1400239b8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400239b8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027e18
cmp rax, 0xffffffffffffffff
je 0x140027e18
xor edi, edi
test rbp, rbp
jle 0x140027dc3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001d6e4
mov rbx, rax
test rax, rax
jne 0x140027d50
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027db9
mov edx, 0x8000
mov ecx, r14d
call fcn.14001aff4
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.1400245a8
cmp eax, 0xffffffff
je 0x140027d99
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027d60
mov edx, r15d
mov ecx, r14d
call fcn.14001aff4
jmp 0x140027db9
cmp byte [rsi + 0x38], dil
je 0x140027db0
cmp dword [rsi + 0x34], 5
jne 0x140027db0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027db9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001c884
jmp 0x140027e2c
jns 0x140027e2c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400239b8
cmp rax, 0xffffffffffffffff
jne 0x140027de4
cmp byte [rsi + 0x30], dil
je 0x140027e2c
mov edi, dword [rsi + 0x2c]
jmp 0x140027e2c
mov ecx, r14d
call fcn.14002200c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027e2c
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 0x140027e2c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027e25
mov eax, dword [rsi + 0x2c]
jmp 0x140027e2a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400239b8
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 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1401911e0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1401911f0]
mov dword [rax], 1
mov rax, qword [0x140191200]
mov dword [rax], 1
mov rax, qword [0x140191190]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1401911d0]
mov dword [0x14019900c], 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 [0x1401912b0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140191290]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140191140]
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 0x140015be0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x140015d6b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call dbg.runtime.stdcall3
xorps xmm15, xmm15
mov r14, qword [0x1401ece10]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x140015c45
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x140015c54
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x140015c73
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x140015c83
cmp rbx, 0x1000
jae 0x140015c4b
jmp 0x140015ced
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x140015c95
xor edx, edx
jmp 0x140015ce4
mov rcx, qword [sym.VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call dbg.runtime.stdcall3
xorps xmm15, xmm15
mov r14, qword [0x1401ece10]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x140015c79
jmp 0x140015c68
call dbg.runtime.getlasterror
xorps xmm15, xmm15
mov r14, qword [0x1401ece10]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call dbg.runtime.printlock
lea rax, [0x1400ee05c]
mov ebx, 0x18
nop dword [rax]
call dbg.runtime.printstring
mov rax, qword [rsp + 0x38]
call dbg.runtime.printuint
lea rax, [0x1400ee4a3]
mov ebx, 0x19
nop dword [rax + rax]
call dbg.runtime.printstring
mov rax, qword [rsp + 0x30]
call dbg.runtime.printuint
call dbg.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x1400f04e6]
mov ebx, 0x21
call dbg.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call dbg.runtime.morestack_noctxt
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp dbg.runtime.sysUnusedOS
Function at 0x140015da0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x140015fc6
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [str._bg_v_]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call dbg.runtime.stdcall4
xorps xmm15, xmm15
mov r14, qword [0x1401ece10]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x140015e13
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x140015e22
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x140015e45
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x140015e55
cmp rbx, 0x1000
jae 0x140015e19
nop
jmp 0x140015ed8
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
cmp rbx, 0x1000
jae 0x140015e6d
xor esi, esi
jmp 0x140015eca
mov rax, qword [str._bg_v_]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call dbg.runtime.stdcall4
xorps xmm15, xmm15
mov r14, qword [0x1401ece10]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x140015e4b
jmp 0x140015e36
call dbg.runtime.getlasterror
xorps xmm15, xmm15
mov r14, qword [0x1401ece10]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x140015f60
nop dword [rax + rax]
call dbg.runtime.printlock
lea rax, [0x1400ee4bc]
mov ebx, 0x19
call dbg.runtime.printstring
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call dbg.runtime.printuint
lea rax, [0x1400ee4a3]
mov ebx, 0x19
call dbg.runtime.printstring
mov eax, dword [rsp + 0x34]
call dbg.runtime.printuint
nop
call dbg.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x1400eb1c1]
mov ebx, 0xd
call dbg.runtime.throw
nop dword [rax + rax]
cmp eax, 0x5af
je 0x140015f00
call dbg.runtime.printlock
lea rax, [0x1400ee4bc]
mov ebx, 0x19
call dbg.runtime.printstring
mov rax, qword [rsp + 0x38]
call dbg.runtime.printuint
lea rax, [0x1400ee4a3]
mov ebx, 0x19
call dbg.runtime.printstring
mov eax, dword [rsp + 0x34]
nop dword [rax]
call dbg.runtime.printuint
call dbg.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x1400efdae]
mov ebx, 0x1f
nop dword [rax + rax]
call dbg.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call dbg.runtime.morestack_noctxt
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp dbg.runtime.sysUsedOS