joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001f790
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140040150]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbp, rdx
mov rsi, rcx
mov qword [rsp + 0x40], rcx
xor ebx, ebx
mov edi, ebx
mov dword [rsp + 0x3c], ebx
call fcn.140001550
mov rcx, rax
test rax, rax
je 0x14001f984
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [0x140031948]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0x104
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140032490]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea r8, [rsp + 0x50]
lea rdx, [0x140033b04]
lea rcx, [rsp + 0x30]
call fcn.14000bb30
mov rcx, qword [rsp + 0x30]
cmp dword [rcx - 0x10], ebx
jl 0x14001f8d5
lea rdx, [0x1400324a8]
call sub.VCRUNTIME140.dll_wcsstr
mov rcx, qword [rsp + 0x30]
test rax, rax
je 0x14001f862
sub rax, rcx
sar rax, 1
cmp eax, 0xffffffff
jne 0x14001f886
cmp dword [rcx - 0x10], 0
jl 0x14001f8d5
lea rdx, str.Windows_10
call sub.VCRUNTIME140.dll_wcsstr
test rax, rax
je 0x14001f8d5
sub rax, qword [rsp + 0x30]
sar rax, 1
cmp eax, 0xffffffff
je 0x14001f8d5
lea rcx, [rsp + 0x40]
call fcn.14001f6c0
nop
mov edi, 1
mov dword [rsp + 0x3c], edi
mov rdx, qword [rax]
mov rax, rbx
lea r8, str.22000
nop word [rax + rax]
movzx ecx, word [rdx + rax*2]
inc rax
cmp cx, word [r8 + rax*2 - 2]
jne 0x14001f8c7
cmp rax, 6
jne 0x14001f8b0
jmp 0x14001f8cb
sbb ebx, ebx
or ebx, edi
test ebx, ebx
js 0x14001f8d5
movzx ebp, dil
jmp 0x14001f8d8
xor bpl, bpl
mov ebx, 0xffffffff
test dil, 1
je 0x14001f908
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001f908
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140031948]
test bpl, bpl
je 0x14001f925
lea r8, [0x1400324e4]
lea rdx, [0x140034c28]
lea rcx, [rsp + 0x30]
call fcn.1400200f0
lea rcx, [rsp + 0x30]
call fcn.140020400
mov rdx, rax
mov rcx, rsi
call fcn.14000a5c0
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14001f95e
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [0x140031948]
mov rax, rsi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14002b9e0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x270
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001300
int3
Function at 0x14001fa80
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x140040150]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x30], rcx
call fcn.140001550
mov rcx, rax
test rax, rax
je 0x14001fb7b
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [0x140031948]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0x104
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ProcessorNameString
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea r8, [rsp + 0x40]
lea rdx, [0x140033b04]
lea rcx, [rsp + 0x30]
call fcn.14000bb30
lea rcx, [rsp + 0x30]
call fcn.140020400
mov rdx, rax
mov rcx, rbx
call fcn.14000a5c0
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14001fb57
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [0x140031948]
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14002b9e0
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret
mov ecx, 0x80004005
call fcn.140001300
int3

Function at 0x14001fc60
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x2f0
mov rax, qword [0x140040150]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x30], rcx
call fcn.140001550
mov rcx, rax
test rax, rax
je 0x14001fd97
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [0x140031948]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0x104
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Identifier
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea r8, [rsp + 0xd0]
lea rdx, [0x140033b04]
lea rcx, [rsp + 0x30]
call fcn.14000bb30
lea rcx, [rsp + 0x30]
call fcn.140020400
mov rdx, qword [rax]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov r8d, 3
lea rcx, [rsp + 0x40]
call fcn.14000dbd0
nop
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.14000a4c0
nop
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
cmp rcx, rax
je 0x14001fd4b
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14001fd73
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [0x140031948]
mov rax, rbx
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.14002b9e0
mov rbx, qword [rsp + 0x310]
add rsp, 0x2f0
pop rdi
ret
mov ecx, 0x80004005
call fcn.140001300
int3
Function at 0x14001fdb0
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140040150]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x40], 0x10
call fcn.140001550
mov rcx, rax
test rax, rax
je 0x14001ff03
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [0x140031948]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rdx, [0x140032570]
lea rcx, [rsp + 0x30]
cmp rdx, 0x10000
jae 0x14001fe24
movzx edx, dx
call fcn.14000b280
jmp 0x14001fe2a
call fcn.14000ae20
nop
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.HARDWAREDESCRIPTIONSystemCentralProcessor0
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001feaf
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.MHz
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001fe9b
mov r8d, dword [rsp + 0x48]
lea rdx, str._u_MHz
lea rcx, [rsp + 0x30]
call fcn.14000bb30
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x30]
call fcn.140020400
mov rdx, rax
mov rcx, rbx
call fcn.14000a5c0
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14001feed
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [0x140031948]
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002b9e0
add rsp, 0x60
pop rbx
ret
mov ecx, 0x80004005
call fcn.140001300
int3

Function at 0x14001ffe0
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140020000
Capabilities:
Get memory capacity

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x140040150]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
call fcn.140001550
mov rcx, rax
test rax, rax
je 0x1400200d7
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [0x140031948]
add rax, 0x18
mov qword [rbx], rax
lea rdx, str.unknown
cmp rdx, 0x10000
jae 0x14002006a
movzx edx, dx
mov rcx, rbx
call fcn.14000b280
jmp 0x140020087
mov rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], 0
jne 0x140020071
mov r8d, eax
mov rcx, rbx
call fcn.14000b4a0
nop
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x30], 0x40
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x1400200be
mov r8, qword [rsp + 0x38]
shr r8, 0x14
lea rdx, [0x1400325a8]
mov rcx, rbx
call fcn.14000bb30
mov rax, rbx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14002b9e0
add rsp, 0x80
pop rbx
ret
mov ecx, 0x80004005
call fcn.140001300
int3
Function at 0x140028ff0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x140040150]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov r15, rdx
mov r14, rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], 0
mov ebx, 0xff
mov dword [rsp + 0x30], ebx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
call fcn.140001550
mov rcx, rax
test rax, rax
je 0x14002925b
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [0x140031948]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rdx, str.CRLogProductPreferences
mov rdi, 0xffffffffffffffff
cmp rdx, 0x10000
jae 0x14002908a
movzx edx, dx
lea rcx, [rsp + 0x40]
call fcn.14000b280
jmp 0x1400290a8
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140029090
mov r8d, eax
lea rcx, [rsp + 0x40]
call fcn.14000b4a0
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.140029570
test al, al
je 0x14002920c
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [r14]
mov rsi, qword [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002912d
mov eax, dword [rsp + 0x30]
cdq
xor eax, edx
sub eax, edx
mov dword [rsp + 0x30], eax
cmp eax, ebx
cmovl ebx, eax
movsxd rax, ebx
cmp rax, 0x100
jae 0x140029266
mov byte [rsp + rax + 0x60], 0
lea r8, [rsp + 0x60]
lea rdx, [0x140033b04]
mov rcx, r15
call fcn.14000bb30
jmp 0x140029202
cmp eax, 2
jne 0x140029202
call fcn.140001550
mov rcx, rax
test rax, rax
je 0x140029250
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [0x140031948]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rdx, str.0_1_100
cmp rdx, 0x10000
jae 0x14002917c
movzx edx, dx
lea rcx, [rsp + 0x38]
call fcn.14000b280
jmp 0x140029198
mov rax, rdi
nop
inc rax
cmp word [rdx + rax*2], 0
jne 0x140029180
mov r8d, eax
lea rcx, [rsp + 0x38]
call fcn.14000b4a0
nop
mov rbx, qword [rsp + 0x38]
mov edx, dword [rbx - 0x10]
lea r15d, [rdx*2 + 1]
cmp dword [rbx - 8], 1
jle 0x1400291bd
lea rcx, [rsp + 0x38]
call fcn.14000b6e0
mov rbx, qword [rsp + 0x38]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
mov rdx, qword [r14]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400291fd
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140031948]
mov rsi, qword [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14002922d
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140031948]
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.14002b9e0
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x170
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001300
int3
mov ecx, 0x80004005
call fcn.140001300
int3
call fcn.14002c4f4
int3
Function at 0x14002a2a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x140040150]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, qword [rsp + 0xc0]
lea rbp, [0x14002a560]
xor eax, eax
mov ebx, r9d
test edx, edx
mov qword [rsp + 0x28], rax
mov r14, rcx
cmovne rbp, rax
cmp edx, 1
jne 0x14002a2ef
lea rbp, [0x14002a440]
jmp 0x14002a2f8
test rbp, rbp
je 0x14002a411
test r14, r14
je 0x14002a411
test r8, r8
je 0x14002a411
test rdi, rdi
je 0x14002a411
movzx eax, byte [r8]
mov byte [rsp + 0x20], al
movzx eax, byte [r8 + 1]
mov byte [rsp + 0x21], al
movzx eax, byte [r8 + 2]
mov byte [rsp + 0x22], al
movzx eax, byte [r8 + 3]
mov byte [rsp + 0x23], al
movzx eax, byte [r8 + 4]
mov byte [rsp + 0x24], al
movzx eax, byte [r8 + 5]
mov byte [rsp + 0x25], al
movzx eax, byte [r8 + 6]
mov byte [rsp + 0x26], al
movzx eax, byte [r8 + 7]
mov byte [rsp + 0x27], al
test bl, 0x3f
je 0x14002a397
mov ecx, ebx
lea r8, [rsp + 0x30]
shr ecx, 6
lea rdx, [rsp + 0x20]
mov eax, ecx
mov byte [rsp + 0x28], cl
shr eax, 8
mov byte [rsp + 0x29], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [rsp + 0x2a], al
mov rax, rbp
mov byte [rsp + 0x2b], cl
mov rcx, r14
call qword [0x140031948]
mov eax, dword [rsp + 0xc8]
test eax, eax
je 0x14002a40d
mov qword [rsp + 0xa8], rsi
mov esi, eax
nop dword [rax]
test bl, 0x3f
jne 0x14002a3ed
mov ecx, ebx
lea r8, [rsp + 0x30]
shr ecx, 6
lea rdx, [rsp + 0x20]
mov eax, ecx
mov byte [rsp + 0x28], cl
shr eax, 8
mov byte [rsp + 0x29], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [rsp + 0x2a], al
mov rax, rbp
mov byte [rsp + 0x2b], cl
mov rcx, r14
call qword [0x140031948]
mov rax, rbx
inc ebx
and eax, 0x3f
movzx eax, byte [rsp + rax + 0x30]
xor byte [rdi], al
inc rdi
sub rsi, 1
jne 0x14002a3b0
mov rsi, qword [rsp + 0xa8]
xor eax, eax
jmp 0x14002a416
mov eax, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14002b9e0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r14
pop rdi
pop rbp
ret

Function at 0x14002b4a8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14002b52c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140033090]
cmp byte [rcx + rax], 0
je 0x14002b52c
dec r8
sub rdx, 1
jne 0x14002b512
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14002c9d4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002ca1e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002ca1e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002ca1e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002ca1e
cmp dword [rcx + 0x84], 0xe
jbe 0x14002ca1e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002ca20
xor al, al
add rsp, 0x28
ret
Function at 0x14002924c
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.14001c844
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c844
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002939c
cmp rax, 0xffffffffffffffff
je 0x14002939c
xor edi, edi
test rbp, rbp
jle 0x140029347
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f158
mov rbx, rax
test rax, rax
jne 0x1400292d4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002933d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a178
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.14001d520
cmp eax, 0xffffffff
je 0x14002931d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400292e4
mov edx, r15d
mov ecx, r14d
call fcn.14001a178
jmp 0x14002933d
cmp byte [rsi + 0x38], dil
je 0x140029334
cmp dword [rsi + 0x34], 5
jne 0x140029334
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002933d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001af0c
jmp 0x1400293b0
jns 0x1400293b0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c844
cmp rax, 0xffffffffffffffff
jne 0x140029368
cmp byte [rsi + 0x30], dil
je 0x1400293b0
mov edi, dword [rsi + 0x2c]
jmp 0x1400293b0
mov ecx, r14d
call fcn.140018630
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400293b0
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 0x1400293b0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400293a9
mov eax, dword [rsi + 0x2c]
jmp 0x1400293ae
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c844
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 0x1400028bc
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140162dc0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140162dd0]
mov dword [rax], 1
mov rax, qword [0x140162de0]
mov dword [rax], 1
mov rax, qword [0x140162d70]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140162db0]
mov dword [0x14016b00c], 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 [0x140162e90]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140162e70]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140162d20]
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 0x140015500
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x14001568b
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 [0x1401be5a8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x140015565
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x140015574
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x140015593
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x1400155a3
cmp rbx, 0x1000
jae 0x14001556b
jmp 0x14001560d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x1400155b5
xor edx, edx
jmp 0x140015604
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 [0x1401be5a8]
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 0x140015599
jmp 0x140015588
call dbg.runtime.getlasterror
xorps xmm15, xmm15
mov r14, qword [0x1401be5a8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call dbg.runtime.printlock
lea rax, [0x1400d0f55]
mov ebx, 0x18
nop dword [rax]
call dbg.runtime.printstring
mov rax, qword [rsp + 0x38]
call dbg.runtime.printuint
lea rax, [0x1400d136c]
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, [0x1400d338f]
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 0x1400156c0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x1400158e6
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.VirtualAlloc]
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 [0x1401be5a8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x140015733
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x140015742
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x140015765
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x140015775
cmp rbx, 0x1000
jae 0x140015739
nop
jmp 0x1400157f8
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 0x14001578d
xor esi, esi
jmp 0x1400157ea
mov rax, qword [sym.VirtualAlloc]
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 [0x1401be5a8]
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 0x14001576b
jmp 0x140015756
call dbg.runtime.getlasterror
xorps xmm15, xmm15
mov r14, qword [0x1401be5a8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x140015880
nop dword [rax + rax]
call dbg.runtime.printlock
lea rax, [0x1400d1385]
mov ebx, 0x19
call dbg.runtime.printstring
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call dbg.runtime.printuint
lea rax, [0x1400d136c]
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, [0x1400ce160]
mov ebx, 0xd
call dbg.runtime.throw
nop dword [rax + rax]
cmp eax, 0x5af
je 0x140015820
call dbg.runtime.printlock
lea rax, [0x1400d1385]
mov ebx, 0x19
call dbg.runtime.printstring
mov rax, qword [rsp + 0x38]
call dbg.runtime.printuint
lea rax, [0x1400d136c]
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, [0x1400d2c52]
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