joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140039d00
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140085048]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r8
mov r9, rdx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x80]
call qword [0x1400882c8]
mov rbx, rax
test rax, rax
jne 0x140039e8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.140024d70
nop
lea r8, [0x1400886f0]
cmp qword [0x140088708], 8
cmovae r8, qword [0x1400886f0]
mov r9, qword [0x140088700]
mov rcx, rax
call fcn.140012b30
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
lea r8, [0x1400884d0]
cmp qword [0x1400884e8], 8
cmovae r8, qword [0x1400884d0]
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140039e35
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039e30
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039ed6
call fcn.14003cb60
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], di
mov rdx, qword [rsp + 0x80]
cmp rdx, 8
jb 0x140039e89
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039e84
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039ed0
call fcn.14003cb60
xor al, al
jmp 0x140039eaf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14003cb40
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
call fcn.14004378c
nop
call fcn.14004378c
nop
int3
Function at 0x140039ee0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140085048]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r8
mov r9, rdx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x80]
call qword [0x1400882c8]
mov rbx, rax
test rax, rax
jne 0x14003a06d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.140024d70
nop
lea r8, [0x1400886f0]
cmp qword [0x140088708], 8
cmovae r8, qword [0x1400886f0]
mov r9, qword [0x140088700]
mov rcx, rax
call fcn.140012b30
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
lea r8, [0x1400884d0]
cmp qword [0x1400884e8], 8
cmovae r8, qword [0x1400884d0]
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14003a015
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003a010
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003a0a8
call fcn.14003cb60
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], di
mov rdx, qword [rsp + 0x80]
cmp rdx, 8
jb 0x14003a069
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003a064
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003a0a2
call fcn.14003cb60
xor al, al
jmp 0x14003a081
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14003cb40
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
call fcn.14004378c
nop
call fcn.14004378c
nop
int3
Function at 0x14003d950
Capabilities:
Parse pe header

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

Function at 0x14004a340
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x140085048]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x140068468]
mov rbp, rcx
call fcn.140056904
xor edi, edi
test rax, rax
je 0x14004a426
mov ebx, edi
call fcn.1400487d4
mov r14d, dword [rax]
call fcn.1400487d4
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.140056850
mov rsi, rax
test rax, rax
je 0x14004a3b7
call fcn.1400487d4
mov dword [rax], r14d
jmp 0x14004a3e1
call fcn.1400487d4
cmp dword [rax], 0x22
jne 0x14004a41e
call fcn.1400487d4
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140056850
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14004a41e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14004a3e5
cmp rax, 3
je 0x14004a400
mov rcx, rsi
call fcn.14004a29c
test al, al
je 0x14004a411
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14004a411
mov dil, 1
mov rcx, rbx
call fcn.140047b9c
mov al, dil
jmp 0x14004a428
mov rcx, rbx
call fcn.140047b9c
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14003cb40
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14004a760
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 0x14004a5cb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004a5cb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004a5cb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004a5cb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004a5cb
cmp dword [rcx + 0x84], 0xe
jbe 0x14004a5cb
cmp dword [rcx + 0xf8], 0
je 0x14004a5cb
mov ecx, ebx
call fcn.14004a67c
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.14004a458
nop
cmp dword [rbp + 0x20], 0
je 0x14004a619
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14004a624
int3
xor r8d, r8d
xor edx, edx
jmp 0x14004a55c
Function at 0x14004abf8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14004ac2f
call fcn.1400487d4
mov dword [rax], SafeArrayUnaccessData
call fcn.14004376c
xor eax, eax
jmp 0x14004acbd
mov rdx, r9
mov rcx, r8
call fcn.14004ab94
mov rbx, rax
test rax, rax
je 0x14004acba
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14004aac0]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14004aca7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140048748
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14004ac8e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14004ac9d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140052dd0
jmp 0x14004acba
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14004acb7
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14005a128
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14005a1af
mov rsi, rbx
cmp word [rax], bp
je 0x14005a16e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14005a158
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14005a154
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140052e0c
mov rdi, rax
test rax, rax
je 0x14005a19c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14003f090
mov rbp, rdi
xor ecx, ecx
call fcn.140052dd0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14005cd40
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140052a70
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14005cde1
cmp ebx, dword [rsp + 0x30]
je 0x14005cdda
test esi, esi
je 0x14005cdda
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14005cdb5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14005cdc2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14005cd9f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14005cdc6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14005cde3
mov eax, 1
jmp 0x14005cde3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14005ec28
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140085048]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14005ec72
call fcn.1400487b4
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayDestroy
call fcn.1400487d4
mov dword [rax], SafeArrayDestroy
call fcn.14004376c
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14003cb40
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14005ec7d
lea eax, [rbx + 1]
jmp 0x14005ec5f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14005ec5d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14005ec5f

Function at 0x1400610a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400610c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400610c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001000
Capabilities:
Execute command
Set console window title

Disassembly:
sub rsp, 0x28
lea rcx, str.TrolAmac_____ReFo7149
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
lea rcx, [0x1400032e0]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rcx, qword [0x1400030b8]
lea rdx, str.hacklendin_kardesim_ggg_xqwewqkewqk
call fcn.140001110
mov rcx, qword [0x1400030b8]
lea rdx, str.Selam_Ratmi_Bu_EXE_Kontrol_edelim_Lutfen
call fcn.140001110
mov rcx, qword [0x1400030b8]
lea rdx, str.PC_RESTART_ATIKTAN_SONRA_FORMATA_YURU
call fcn.140001110
mov rcx, qword [0x1400030b8]
lea rdx, str.ratmi_ooo_ayollllxd
call fcn.140001110
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x1400030b8]
lea rdx, str.r_a_t_mi_ooooooo
call fcn.140001110
mov rcx, qword [0x1400030c8]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_istream_char__struct_std::char_traits_char__::get_void____ptr64]
xor eax, eax
add rsp, 0x28
ret

Function at 0x140001588
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x180001530
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, edx
mov ebx, ecx
movsxd rcx, r8d
mov edx, 3
call fcn.180001ab0
mov r10d, eax
mov r8d, 0x80000000
xor r9d, r9d
test r10d, r8d
je 0x180001568
xor r9d, ebx
lea ecx, [r8 - 1]
test r10d, ecx
je 0x180001580
mov ecx, ebx
shr r8d, 1
mov eax, ebx
shr ecx, 1
mov ebx, ecx
xor ebx, 0xedb88320
test al, 1
cmove ebx, ecx
jmp 0x180001557
mov rbx, qword [rsp + 0x30]
xor r9d, edi
mov eax, r9d
add rsp, 0x20
pop rdi
ret
Function at 0x180015e0c
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, [0x180035380]
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 0x180015e63
cmp word [rdx], r13w
jne 0x180015e63
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180015e68
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180015f8d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180015fae
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180015ea1
mov rdx, r9
mov word [rbx], cx
jmp 0x180015ec8
cmp r9, r8
jae 0x180015ed8
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 0x180015e82
jmp 0x180015f8d
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 0x180015f82
cmp dword [rsp + 0x80], esi
je 0x180015f82
lea r8, [0x180035380]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180015f5a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180015f2a
mov word [rbx], r13w
jmp 0x180015f8a
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 0x180015f37
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180015f8a
cmp word [rsp + 0x70], r13w
jne 0x180015f67
cmp rbx, r14
je 0x180015f24
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800149a8
cmp word [rsp + 0x70], r13w
je 0x180015f8d
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, [0x180035380]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180015f87
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180015f8d
Function at 0x18001aa40
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.1800149a8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800149a8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18001ab90
cmp rax, 0xffffffffffffffff
je 0x18001ab90
xor edi, edi
test rbp, rbp
jle 0x18001ab3b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18001abd4
mov rbx, rax
test rax, rax
jne 0x18001aac8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18001ab31
mov edx, 0x8000
mov ecx, r14d
call fcn.180019e74
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.1800171c4
cmp eax, 0xffffffff
je 0x18001ab11
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18001aad8
mov edx, r15d
mov ecx, r14d
call fcn.180019e74
jmp 0x18001ab31
cmp byte [rsi + 0x38], dil
je 0x18001ab28
cmp dword [rsi + 0x34], 5
jne 0x18001ab28
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18001ab31
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180017a40
jmp 0x18001aba4
jns 0x18001aba4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800149a8
cmp rax, 0xffffffffffffffff
jne 0x18001ab5c
cmp byte [rsi + 0x30], dil
je 0x18001aba4
mov edi, dword [rsi + 0x2c]
jmp 0x18001aba4
mov ecx, r14d
call fcn.18001a930
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18001aba4
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 0x18001aba4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18001ab9d
mov eax, dword [rsi + 0x2c]
jmp 0x18001aba2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800149a8
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 0x18001c54c
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 0x18001c57c
xor eax, eax
jmp 0x18001c63f
mov rbp, rbx
cmp word [rax], si
je 0x18001c5a1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18001c588
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18001c584
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.180019c10
movsxd r14, eax
test eax, eax
jne 0x18001c5df
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18001c575
mov rcx, r14
call fcn.180017a7c
mov rdi, rax
test rax, rax
jne 0x18001c5f8
xor ecx, ecx
call fcn.180017a40
jmp 0x18001c5d4
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.180019c10
test eax, eax
jne 0x18001c629
mov rcx, rdi
call fcn.180017a40
jmp 0x18001c633
xor ecx, ecx
call fcn.180017a40
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 0x140002a44
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140005600]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140005610]
mov dword [rax], 1
mov rax, qword [0x140005620]
mov dword [rax], 1
mov rax, qword [0x1400055b0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400055f0]
mov dword [0x14000800c], 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 [0x1400056c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400056a0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140005530]
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