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

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14009c778
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 0x14009c7e7
xor ecx, ecx
call qword [0x140bbe240]
test rax, rax
je 0x14009c7e7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14009c7e7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14009c7e7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14009c7e7
cmp dword [rcx + 0x84], 0xe
jbe 0x14009c7e7
cmp dword [rcx + 0xf8], 0
je 0x14009c7e7
mov ecx, ebx
call fcn.14009c62c
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.14009c994
nop
cmp dword [rbp + 0x20], 0
jne 0x14009c848
call fcn.1400c62ec
cmp eax, 1
jne 0x14009c838
xor dl, dl
jmp 0x14009c842
call fcn.1400c62b8
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14009c853
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14009c714
int3
Function at 0x4015a0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Encode data using xor
Get kernel32 base address
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov r11, qword [rax + 0x30]
movsxd rax, dword [r11 + 0x3c]
mov r10d, dword [r11 + rax + 0x88]
mov r14d, dword [r11 + r10 + 0x18]
lea r8, [r11 + 2]
lea r9, [0x004b5004]
mov eax, dword [0x004b5004]
test eax, eax
jne 0x40161f
jmp 0x40160f
mov eax, dword [r11 + r10 + 0x1c]
mov edx, dword [r11 + r10 + 0x24]
add rax, r11
add rdx, r11
movzx edx, word [rdx + r14*2]
mov eax, dword [rax + rdx*4]
mov eax, dword [r11 + rax + 4]
mov dword [rcx], eax
sub r14, 1
jb 0x401676
mov eax, dword [0x004b5004]
test eax, eax
je 0x40160f
mov ecx, dword [r11 + r10 + 0x20]
add rcx, r11
mov esi, dword [rcx + r14*4]
add rsi, r8
mov rcx, r9
nop word cs:[rax + rax]
nop dword [rax + rax]
mov ebp, 0x811c9dc5
mov rdi, rsi
nop dword [rax + rax]
mov ebx, ebp
movsx edx, byte [rdi]
add rdi, 1
xor ebp, edx
imul ebp, ebp, 0x1000193
test edx, edx
jne 0x401650
cmp ebx, eax
je 0x4015f0
mov eax, dword [rcx + 4]
add rcx, 4
test eax, eax
jne 0x401640
jmp 0x40160f
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x401880
Capabilities:
Check for outputdebugstring error
Print debug messages

Disassembly:
sub rsp, 0x38
mov ecx, 0x457
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, str._api_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x457
jne 0x401872
call fcn.004018e0
cmp byte [rax + 2], 0
jne 0x401872
test byte [rax + 0xbc], 0x70
jne 0x401872
call fcn.00401ef0
call fcn.004015a0
mov qword [rsp + 0x30], 0xffffffffffffffff
mov rax, qword [0x004bb338]
mov edx, dword [rax]
mov rax, qword [0x004bb390]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov rcx, qword [0x004bb330]
lea r8, [rsp + 0x30]
mov r9d, 1
call fcn.00401680
xor ecx, ecx
cmp qword [rsp + 0x30], 0xffffffffffffffff
cmove ecx, eax
test eax, eax
cmovns eax, ecx
add rsp, 0x38
ret
xor ecx, ecx
call sub.msvcrt.dll_exit
ud2
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
call fcn.0040c030
add rsp, 0x20
pop rbp
jmp 0x4017e0

Function at 0x4018f0
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
ret
Function at 0x402470
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r15, rdx
mov r12, rcx
movsxd r13, dword [rcx + 0x3c]
mov ebx, dword [rcx + r13 + 0x54]
mov r8, rbx
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x4024da
lea r9, [rsp + 0x20]
mov rcx, r15
mov rdx, rbx
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4024da
mov rcx, r15
mov rdx, r12
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx eax, word [r12 + r13 + 6]
test ax, ax
je 0x40258c
movsxd rcx, dword [r12 + 0x3c]
lea rbp, [rcx + r12]
add rbp, 0x110
xor r14d, r14d
cmp dword [rbp + 0x1c], 0
jns 0x40252c
jmp 0x402516
movzx eax, word [r12 + r13 + 6]
add r14, 1
movzx ecx, ax
add rbp, 0x28
cmp r14, rcx
jae 0x40258c
cmp dword [rbp + 0x1c], 0
js 0x402516
mov ebx, dword [rbp]
mov esi, dword [rbp + 4]
lea rdi, [r12 + rsi]
add rsi, r15
mov rcx, rdi
mov rdx, rsi
mov r8, rbx
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x402510
mov rcx, rsi
mov rdx, rbx
mov r8d, 0x40
lea r9, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x402510
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov r8d, dword [rsp + 0x24]
mov rcx, rsi
mov rdx, rbx
lea r9, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x402510
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x402620
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
test rcx, rcx
je 0x4027ee
mov rsi, rdx
mov rbx, rcx
movsxd rax, dword [rcx + 0x3c]
mov edi, dword [rax + rcx + 0x88]
mov r13d, dword [rdi + rcx + 0x1c]
add r13, rcx
cmp esi, 0xffff
ja 0x402671
movzx eax, si
mov ecx, dword [rbx + rdi + 0x10]
sub rax, rcx
mov r12d, dword [r13 + rax*4]
add r12, rbx
jmp 0x4027f1
mov ebp, dword [rbx + rdi + 0x18]
test ebp, ebp
je 0x4027ee
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r8
mov r14d, dword [rbx + rdi + 0x20]
mov r15d, dword [rbx + rdi + 0x24]
add r14, rbx
add r15, rbx
xor r12d, r12d
nop word [rax + rax]
mov ecx, dword [r14]
add rcx, rbx
mov rdx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x4026c6
add ebp, 0xffffffff
add r14, 4
add r15, 2
test ebp, ebp
jne 0x4026a0
jmp 0x4027f1
movzx eax, word [r15]
mov r12d, dword [r13 + rax*4]
cmp edi, r12d
ja 0x402669
mov rax, qword [rsp + 0x38]
add edi, dword [rbx + rax + 0x8c]
cmp r12d, edi
jae 0x402669
add r12, rbx
mov rcx, r12
mov edx, 0x2e
call sub.msvcrt.dll_strchr
mov r14, rax
add r14, 1
mov rsi, r14
sub rsi, r12
lea rcx, [rsi + 4]
mov edx, 2
call sub.msvcrt.dll_calloc
test rax, rax
je 0x4027ee
mov rbx, rax
lea r8, [rsi + 1]
mov qword [rsp + 0x20], rsi
xor ecx, ecx
mov rdx, rax
mov r9, r12
call qword [sym.imp.msvcrt.dll_mbstowcs_s]
mov eax, dword [0x004b6016]
mov dword [rbx + rsi*2], eax
movzx eax, word [0x004b601a]
mov word [rbx + rsi*2 + 4], ax
lea rdx, [0x004b6002]
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
je 0x40277c
lea rdx, str.ext_
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x4027ca
lea r8, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
call fcn.00401910
test rax, rax
je 0x4027ca
mov rsi, rax
mov rcx, rbx
call sub.msvcrt.dll_free
mov rdi, qword [rsp + 0x40]
lea rcx, [rdi + 1]
mov edx, 2
call sub.msvcrt.dll_calloc
test rax, rax
je 0x4027ee
mov rbx, rax
add rdi, rdi
mov rcx, rax
mov rdx, rsi
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov rdx, r14
mov r8, rbx
call fcn.00402620
mov r12, rax
mov rcx, rbx
call sub.msvcrt.dll_free
jmp 0x4027f1
xor r12d, r12d
mov rax, r12
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x40c4a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x004e0644]
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
test esi, esi
jle 0x40c654
mov rax, qword [0x004e0648]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40c4ec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x40c579
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x40c4d0
mov rcx, rbx
call fcn.0040d170
test rax, rax
mov r12, rax
je 0x40c689
mov rax, qword [0x004e0648]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.0040d2a0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004e0648]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40c66c
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40c572
sub eax, 0x40
and eax, 0xffffffbf
jne 0x40c5f4
add dword [0x004e0644], 1
cmp edi, 8
jae 0x40c5b0
test dil, 4
jne 0x40c640
test edi, edi
je 0x40c59c
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40c65b
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rbp]
mov qword [rbx], rax
mov eax, edi
mov rdx, qword [rbp + rax - 8]
mov qword [rbx + rax - 8], rdx
lea rax, [rbx + 8]
and rax, 0xfffffffffffffff8
sub rbx, rax
sub rbp, rbx
add ebx, edi
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x40c59c
and ebx, 0xfffffff8
xor edx, edx
mov ecx, edx
add edx, 8
mov r8, qword [rbp + rcx]
cmp edx, ebx
mov qword [rax + rcx], r8
jb 0x40c5e0
jmp 0x40c59c
add rsi, qword [0x004e0648]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
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 0x40c572
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004a14d0
nop dword [rax + rax]
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x40c59c
xor esi, esi
jmp 0x40c4f7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x40c59c
mov rax, qword [0x004e0648]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rsi + 0x18]
call fcn.004a14d0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.004a14d0
nop
nop dword [rax]
Function at 0x40cde0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004e0920]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004e0900]
test rbx, rbx
je 0x40ce34
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 0x40ce2b
test rsi, rsi
je 0x40ce2b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40ce10
lea rcx, [0x004e0920]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x40d170
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004bb200]
mov rdx, rcx
cmp word [r8], 0x5a4d
jne 0x40d1dd
mov rcx, r8
call fcn.0040d050
test eax, eax
je 0x40d1dd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40d1dd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x40d1d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40d1df
add rax, 0x28
cmp rax, r9
jne 0x40d1c0
xor eax, eax
add rsp, 0x28
ret

Function at 0x40d4f0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov eax, dword [0x004e0908]
xor esi, esi
mov ebp, ecx
mov rdi, rdx
test eax, eax
jne 0x40ce74
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
test rax, rax
mov rbx, rax
je 0x40cec8
mov dword [rax], ebp
mov qword [rax + 8], rdi
lea rcx, [0x004e0920]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x004e0900]
lea rcx, [0x004e0920]
mov qword [0x004e0900], rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov esi, 0xffffffff
jmp 0x40ce69
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40d520
mov rdx, rbx
mov ecx, eax
mov dword [rsi], eax
add rsp, 0x28
pop rbx
pop rsi
jmp 0x418570
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
je 0x418580
jmp 0x40ce50
xor eax, eax
ret

Function at 0x40d550
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x40d580
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40d595
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x46a050
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rbp, rcx
mov rdi, rdx
mov esi, r8d
jmp 0x46a078
call r12
cmp dword [rax], 4
jne 0x46a096
mov rcx, rbp
call fcn.00469e70
mov r8d, esi
mov rdx, rdi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
je 0x46a070
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x4a0b10
Capabilities:
Get thread local storage value

Disassembly:
cmp byte [0x004b2394], 0
jne 0x4a0b21
lea rax, [0x004b2380]
ret
mov ecx, dword [0x004b2390]
jmp fcn.0040d550

Function at 0x4a14d0
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp fcn.00401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00418380
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
mov r8d, 0x1b
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.00418380
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x140029be4
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.14001d184
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d184
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029d34
cmp rax, 0xffffffffffffffff
je 0x140029d34
xor edi, edi
test rbp, rbp
jle 0x140029cdf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001fe04
mov rbx, rax
test rax, rax
jne 0x140029c6c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029cd5
mov edx, 0x8000
mov ecx, r14d
call fcn.14001ab20
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.14001de60
cmp eax, 0xffffffff
je 0x140029cb5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029c7c
mov edx, r15d
mov ecx, r14d
call fcn.14001ab20
jmp 0x140029cd5
cmp byte [rsi + 0x38], dil
je 0x140029ccc
cmp dword [rsi + 0x34], 5
jne 0x140029ccc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029cd5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b464
jmp 0x140029d48
jns 0x140029d48
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d184
cmp rax, 0xffffffffffffffff
jne 0x140029d00
cmp byte [rsi + 0x30], dil
je 0x140029d48
mov edi, dword [rsi + 0x2c]
jmp 0x140029d48
mov ecx, r14d
call fcn.140019658
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029d48
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 0x140029d48
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029d41
mov eax, dword [rsi + 0x2c]
jmp 0x140029d46
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d184
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 0x14002ae40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002ae68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002ae68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x14000190c
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140cfe7ee
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140cfe817
pop rbp
sub rbp, 0x33
sub rbp, 0xcfe7e4
sub rsp, 0x20
jmp 0x140cfe836
mov rax, 0xcfe7e4
add rax, rbp
add rax, 0x84
mov rcx, 0x647
mov rdx, 0xffffffffeb083e92
invalid
xor byte [rax], dl
inc rax
inc eax
dec rcx
leave
jne 0x140cfe855
jmp 0x140cfe86c
cmp eax, 0x197b1bda
ficomp dword [rbx]
jnp 0x140cfe889
sbb ebp, dword [rsi - 0x256d6d6e]
adc edx, dword [rbx - 0x66]
xchg ebx, eax
xchg edx, eax
xchg edx, eax
ficom dword [rbx + 0x5255da7b]
wait
xchg edx, eax
xchg edx, eax
xchg edx, eax
ficom dword [rbp + 0x50]
mov edx, 0xda929292
jo 0x140cfe86b
xchg ebx, eax
push rbx
sbb dword [rbx], edx
sahf
xchg edx, eax
xchg edx, eax
xchg edx, eax
ficom dword [rbx - 0x253d3d86]
sub dh, byte [rsi - 0x6d6d7a7d]
xchg edx, eax
xchg edx, eax
xchg edx, eax
fisubr dword [rbx]
push rdx
sub r10b, byte [rdx - 0x6d6d6d6e]
ficom dword [rbx + 0x2328da7b]
mov ch, 0xb3
sbb eax, 0x92929292
jp 0x140cfe858
xchg edx, eax
xchg edx, eax
xchg edx, eax
jnp 0x140cfe84a
xchg edx, eax
xchg edx, eax
xchg edx, eax
push rbx
jp 0x140cfe85c
movabs dword [0x929292965313da83], eax
fisubr dword [rbp + 0x5a]
popfq
invalid
Function at 0x140029be4
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.14001d184
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d184
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029d34
cmp rax, 0xffffffffffffffff
je 0x140029d34
xor edi, edi
test rbp, rbp
jle 0x140029cdf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001fe04
mov rbx, rax
test rax, rax
jne 0x140029c6c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029cd5
mov edx, 0x8000
mov ecx, r14d
call fcn.14001ab20
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.14001de60
cmp eax, 0xffffffff
je 0x140029cb5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029c7c
mov edx, r15d
mov ecx, r14d
call fcn.14001ab20
jmp 0x140029cd5
cmp byte [rsi + 0x38], dil
je 0x140029ccc
cmp dword [rsi + 0x34], 5
jne 0x140029ccc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029cd5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b464
jmp 0x140029d48
jns 0x140029d48
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d184
cmp rax, 0xffffffffffffffff
jne 0x140029d00
cmp byte [rsi + 0x30], dil
je 0x140029d48
mov edi, dword [rsi + 0x2c]
jmp 0x140029d48
mov ecx, r14d
call fcn.140019658
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029d48
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 0x140029d48
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029d41
mov eax, dword [rsi + 0x2c]
jmp 0x140029d46
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d184
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 0x14002ae40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002ae68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002ae68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140017be8
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140009910]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140009920]
mov dword [rax], 1
mov rax, qword [0x140009930]
mov dword [rax], 1
mov rax, qword [0x140009900]
mov dword [rax], 1
mov rax, qword [0x1400097c0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x1400098f0]
mov dword [0x14000c00c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010c0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400098b0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140009890]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140009770]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067