joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140038660
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x28], 0xfffffffffffffffe
mov qword [rbp + 0x18], rcx
mov byte [rbp + 0x17], 0
cmp qword [rbp + 0x18], 0
jne 0x1400386a8
mov rdx, qword [rbp + 0x18]
lea rcx, str.Bad_process_handle:_
call fcn.140006800
mov al, byte [rbp + 0x17]
and al, 1
mov byte [rbp + 0x27], al
jmp 0x14003882e
lea rcx, [rbp - 0x10]
mov qword [rbp - 0x50], rcx
call fcn.140006860
mov rcx, qword [rbp - 0x50]
call fcn.1400068e0
lea rdx, [0x14005e57a]
lea rcx, [rbp - 0x38]
call fcn.140006b50
jmp 0x1400386d3
lea rcx, [rbp - 0x38]
lea rdx, [rbp - 0x10]
call fcn.140006970
jmp 0x1400386e5
lea rcx, [rbp - 0x38]
call fcn.140006bd0
lea rcx, [rbp - 0x10]
call fcn.140006c60
test al, 1
jne 0x140038704
jmp 0x140038729
lea rcx, str.Failed_to_read_cheat_binary
call fcn.140006c90
jmp 0x140038715
mov al, byte [rbp + 0x17]
and al, 1
mov byte [rbp + 0x27], al
mov dword [rbp - 0x3c], 1
jmp 0x140038820
lea rcx, [rbp - 0x10]
call fcn.140006cc0
mov r8, rax
mov rdx, qword [0x140086218]
mov rcx, qword [rbp + 0x18]
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp - 0x48], rax
cmp qword [rbp - 0x48], 0
jne 0x140038788
lea rcx, str.Failed_to_alloc_memory_for_cheat
call fcn.140006c90
jmp 0x140038774
mov al, byte [rbp + 0x17]
and al, 1
mov byte [rbp + 0x27], al
mov dword [rbp - 0x3c], 1
jmp 0x140038820
lea rcx, [rbp - 0x10]
call fcn.140006cc0
mov qword [rbp - 0x58], rax
lea rcx, [rbp - 0x10]
call fcn.140006cf0
mov r9, qword [rbp - 0x58]
mov r8, rax
mov rdx, qword [rbp - 0x48]
mov rcx, qword [rbp + 0x18]
xor eax, eax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp eax, 0
jne 0x1400387ec
lea rcx, str.Failed_to_write_cheat_binary
call fcn.140006c90
jmp 0x1400387d8
mov al, byte [rbp + 0x17]
and al, 1
mov byte [rbp + 0x27], al
mov dword [rbp - 0x3c], 1
jmp 0x140038820
lea rcx, [rbp - 0x10]
call fcn.140006cc0
mov r8, rax
mov rdx, qword [rbp - 0x48]
lea rcx, str.Successfully_written_cheat_binary_at__size:_
call fcn.140006d10
jmp 0x14003880d
mov byte [rbp + 0x17], 1
mov al, byte [rbp + 0x17]
and al, 1
mov byte [rbp + 0x27], al
mov dword [rbp - 0x3c], 1
lea rcx, [rbp - 0x10]
call fcn.140006d70
jmp 0x14003882e
mov al, byte [rbp + 0x27]
and al, 1
movzx eax, al
add rsp, 0xb0
pop rbp
ret
Function at 0x1400388a0
Capabilities:
Create process on windows
Execute command
Set console window title

Disassembly:
sub rsp, 0x88
mov rax, qword [0x140086880]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x54], 0
lea rcx, [0x140086978]
call fcn.140007a50
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x58]
lea rdx, [0x14005cd30]
call fcn.140006b50
mov rcx, qword [rsp + 0x40]
xor edx, edx
lea r8, [rsp + 0x58]
call fcn.140039a50
lea rcx, str.VZLOMKA_memordial_loader_steam_pepe
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov dword [rsp + 0x50], 0
xor eax, eax
mov r9d, eax
lea rdx, str.open
lea r8, str.steam:__rungameid_730
mov rcx, r9
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 5
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea rcx, str.Waiting_game...
call fcn.140038a70
cmp dword [rsp + 0x50], 0
jne 0x14003896d
lea rcx, str.cs2.exe
call fcn.140038aa0
mov dword [rsp + 0x50], eax
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140038942
mov r8d, dword [rsp + 0x50]
mov ecx, 0x1fffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.140038660
test al, 1
jne 0x1400389bc
lea rcx, str.Failed_to_load_binary_into_game_:_
call fcn.140006c90
lea rcx, str.pause
call qword [sym.imp.ucrtbased.dll_system]
mov dword [rsp + 0x54], 0
jmp 0x1400389d4
mov ecx, 0x190
mov edx, 0x258
call qword [sym.imp.KERNEL32.dll_Beep]
mov dword [rsp + 0x54], 0
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x3c], eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14003b990
mov eax, dword [rsp + 0x3c]
add rsp, 0x88
ret

Function at 0x140038aa0
Capabilities:
Enumerate processes

Disassembly:
sub rsp, 0x288
mov rax, qword [0x140086880]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x48], 0x238
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x48]
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 1
jne 0x140038b4b
jmp 0x140038af4
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x48]
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
jne 0x140038b46
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x48]
add rcx, 0x2c
call qword [sym.imp.ucrtbased.dll__wcsicmp]
cmp eax, 0
jne 0x140038b41
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x44], eax
jmp 0x140038b5e
jmp 0x140038af4
jmp 0x140038b4b
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x2c], eax
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14003b990
mov eax, dword [rsp + 0x2c]
add rsp, 0x288
ret
Function at 0x140056580
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.14003bc00
movzx eax, al
test eax, eax
jne 0x1400565a0
mov ecx, 7
call fcn.140055dc0
nop
mov byte [rsp + 0x20], 0
call fcn.14003bb60
mov byte [rsp + 0x21], al
cmp dword [0x140086a10], 1
jne 0x1400565c4
mov ecx, 7
call fcn.140055dc0
nop
jmp 0x14005661c
cmp dword [0x140086a10], 0
jne 0x140056617
mov dword [0x140086a10], 1
lea rdx, [0x14007bf28]
lea rcx, [0x14007bf10]
call sub.ucrtbased.dll__initterm_e
test eax, eax
je 0x1400565f8
mov eax, 0xff
jmp 0x140056721
lea rdx, [0x14007bf08]
lea rcx, [0x14007bec8]
call sub.ucrtbased.dll__initterm
mov dword [0x140086a10], 2
jmp 0x14005661c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14003bbd0
call fcn.140056a00
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140056679
mov rcx, qword [rsp + 0x30]
call fcn.14003bad0
movzx eax, al
test eax, eax
je 0x140056679
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14008e008]
nop
call fcn.140056a10
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400566ad
mov rcx, qword [rsp + 0x38]
call fcn.14003bad0
movzx eax, al
test eax, eax
je 0x1400566ad
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call sub.ucrtbased.dll__register_thread_local_exe_atexit_callback
nop
call fcn.140056540
mov dword [rsp + 0x28], eax
call fcn.140055cd0
movzx eax, al
test eax, eax
jne 0x1400566cc
mov ecx, dword [rsp + 0x28]
call sub.ucrtbased.dll_exit
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400566db
call sub.ucrtbased.dll__cexit
nop
xor edx, edx
mov cl, 1
call fcn.14003bc50
mov eax, dword [rsp + 0x28]
jmp 0x140056721
add rsp, 0x68
ret
Function at 0x14000102c
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea r14, [rsp + 0x78]
xor ebx, ebx
mov rbp, qword [r14]
mov rsi, rcx
mov qword [r14], rbx
test rcx, rcx
je 0x1400010d7
mov rdi, qword [rcx + 0x28]
test rdi, rdi
jne 0x140001076
call fcn.140001100
mov ecx, eax
mov rdi, qword [rcx + rsi]
mov rax, rdi
shr rax, 0x38
cmp al, 0x40
jne 0x1400010d4
cmp byte [0x140003068], bl
jne 0x1400010c5
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov rcx, rsi
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rax, cr3
lea rcx, [rsp + 0x20]
mov qword [0x140003060], rax
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov byte [0x140003068], 1
mov rax, qword [0x140003060]
mov rbx, rax
test rax, rax
jne 0x1400010d7
mov rbx, rdi
mov qword [r14], rbp
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400017f0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1400014f0
Capabilities:
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x20
lea r14, [rsp + 0x28]
xor ebx, ebx
mov rsi, qword [r14]
mov rdi, rcx
mov qword [r14], rbx
cmp dword [rcx], 0x53b2f65
jne 0x140001561
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x140001561
mov rcx, rax
mov qword [r11 + 8], rbx
lea rdx, [r11 + 8]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140001561
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
mov rcx, rax
test rax, rax
je 0x140001561
mov rax, qword [rdi + 8]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x140001566
mov ebx, 0xc0000001
mov rdi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
mov qword [r14], rsi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140001584
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
lea r15, [rsp + 0x48]
xor edi, edi
mov r14, qword [r15]
mov rsi, rcx
mov qword [r15], rdi
cmp dword [rcx], 0x53b2f65
jne 0x14000164f
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x14000164f
mov rcx, rax
mov qword [rsp + 0x50], rdi
lea rdx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000164f
call fcn.14000102c
lea rcx, [rsp + 0x48]
mov rbx, rax
mov rax, qword [rcx]
mov byte [0x140003068], dil
mov qword [rcx], rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [rsi + 8]
mov rcx, rbx
mov rbp, qword [rsi + 0x18]
call fcn.14000166c
mov r10, rax
test rax, rax
je 0x14000164f
mov rdx, qword [rsi + 0x10]
lea r9, [rsp + 0x58]
and eax, 0xfff
mov qword [rsp + 0x58], rdi
mov ecx, 0x1000
sub ecx, eax
cmp ecx, ebp
cmovl ebp, ecx
mov rcx, r10
movsxd r8, ebp
cmp byte [rsi + 0x20], dil
je 0x140001648
call fcn.140001418
jmp 0x140001654
call fcn.14000138c
jmp 0x140001654
mov edi, 0xc0000001
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov qword [r15], r14
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400045a0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400045b0]
mov dword [rax], 1
mov rax, qword [0x1400045c0]
mov dword [rax], 1
mov rax, qword [0x140004590]
mov dword [rax], 1
mov rax, qword [0x140004460]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x140004580]
mov dword [0x14000700c], 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 [0x140004540]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140004520]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140004400]
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

Function at 0x14000155c
Capabilities:
Query or enumerate registry value

Disassembly:
push r12
push rdi
sub rsp, 0x158
xor eax, eax
mov ecx, 0xef
xor r8d, r8d
mov r9d, 1
lea rdx, str.SYSTEMHardwareConfigCurrent_
lea rdi, [rsp + 0x61]
mov qword [rsp + 0x48], 0
rep stosb byte [rdi], al
lea rax, [rsp + 0x48]
mov qword [rsp + 0x51], 0
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x59], 0
mov dword [rsp + 0x44], 0xff
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1400015c6
xor eax, eax
jmp 0x140001615
lea rax, [rsp + 0x44]
lea r12, [rsp + 0x51]
xor edx, edx
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x48]
mov r9d, 2
lea r8, str.SystemManufacturer
mov qword [rsp + 0x28], r12
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x1400015c2
lea rdx, str.Microsoft_Corporation
mov rcx, r12
call sym.strcmp
test eax, eax
sete al
add rsp, 0x158
pop rdi
pop r12
ret
Function at 0x140001620
Capabilities:
Query or enumerate registry value

Disassembly:
push r12
push rdi
sub rsp, 0x158
xor eax, eax
mov ecx, 0xef
xor r8d, r8d
mov r9d, 1
lea rdx, str.SYSTEMHardwareConfigCurrent_
lea rdi, [rsp + 0x61]
mov qword [rsp + 0x48], 0
rep stosb byte [rdi], al
lea rax, [rsp + 0x48]
mov qword [rsp + 0x51], 0
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x59], 0
mov dword [rsp + 0x44], 0xff
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14000168a
xor eax, eax
jmp 0x1400016d9
lea rax, [rsp + 0x44]
lea r12, [rsp + 0x51]
xor edx, edx
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x48]
mov r9d, 2
lea r8, str.BIOSVendor
mov qword [rsp + 0x28], r12
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x140001686
lea rdx, str.Microsoft_Corporation
mov rcx, r12
call sym.strcmp
test eax, eax
sete al
add rsp, 0x158
pop rdi
pop r12
ret

Function at 0x1400016e4
Capabilities:
Query or enumerate registry value

Disassembly:
push r12
push rdi
sub rsp, 0x158
xor eax, eax
mov ecx, 0xef
xor r8d, r8d
mov r9d, 1
lea rdx, str.SYSTEMHardwareConfigCurrent_
lea rdi, [rsp + 0x61]
mov qword [rsp + 0x48], 0
rep stosb byte [rdi], al
lea rax, [rsp + 0x48]
mov qword [rsp + 0x51], 0
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x59], 0
mov dword [rsp + 0x44], 0xff
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14000174e
xor eax, eax
jmp 0x14000179d
lea rax, [rsp + 0x44]
lea r12, [rsp + 0x51]
xor edx, edx
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x48]
mov r9d, 2
lea r8, str.SystemFamily
mov qword [rsp + 0x28], r12
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x14000174a
lea rdx, str.Virtual_Machine
mov rcx, r12
call sym.strcmp
test eax, eax
sete al
add rsp, 0x158
pop rdi
pop r12
ret

Function at 0x1400017a8
Capabilities:
Query or enumerate registry value

Disassembly:
push r12
push rdi
sub rsp, 0x158
xor eax, eax
mov ecx, 0xef
xor r8d, r8d
mov r9d, 1
lea rdx, str.SYSTEMHardwareConfigCurrent_
lea rdi, [rsp + 0x61]
mov qword [rsp + 0x48], 0
rep stosb byte [rdi], al
lea rax, [rsp + 0x48]
mov qword [rsp + 0x51], 0
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x59], 0
mov dword [rsp + 0x44], 0xff
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140001812
xor eax, eax
jmp 0x140001861
lea rax, [rsp + 0x44]
lea r12, [rsp + 0x51]
xor edx, edx
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x48]
mov r9d, 2
lea r8, str.SystemProductName
mov qword [rsp + 0x28], r12
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x14000180e
lea rdx, str.Virtual_Machine
mov rcx, r12
call sym.strcmp
test eax, eax
sete al
add rsp, 0x158
pop rdi
pop r12
ret
Function at 0x1400018fa
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x28
call sym.DetectBySystemManufacturer__
test al, al
jne 0x140001922
call sym.DetectByBiosVendor__
test al, al
jne 0x140001922
call sym.DetectBySystemFamily__
test al, al
jne 0x140001922
add rsp, 0x28
jmp sym.DetectByProductName__
mov al, 1
add rsp, 0x28
ret

Function at 0x14000194f
Capabilities:
Create process on windows
Query environment variable
Self delete

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x240
xor ecx, ecx
mov r8d, 0x104
lea rbx, [rsp + 0x38]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1400019f8
mov r8d, 0x104
mov rdx, rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x1400019f8
lea rsi, [rsp + 0x13c]
lea rdx, str._c_del
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rdi, qword [sym.imp.KERNEL32.dll_lstrcatA]
mov rdx, rbx
mov rcx, rsi
call rdi
lea rdx, str.____NUL
mov rcx, rsi
call rdi
mov r8d, 0x104
mov rdx, rbx
lea rcx, str.ComSpec
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov r9, rsi
mov r8, rbx
xor edx, edx
mov dword [rsp + 0x28], 0
xor ecx, ecx
mov qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
add rsp, 0x240
pop rbx
pop rsi
pop rdi
ret

Function at 0x140001d00
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140001d70
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1400070b4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140001f20
mov rax, qword [0x1400070b8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140001dbc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001e47
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140001da0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x140001f7d
mov rax, qword [0x1400070b8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400070b8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001f62
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001e40
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001ed0
add dword [0x1400070b4], 1
cmp ebx, 8
jae 0x140001e78
test bl, 4
jne 0x140001f30
test ebx, ebx
je 0x140001e69
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140001f50
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140001e69
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x140001eaa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1400070b8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001e40
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x140001dc7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140001e69
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140001e69
mov rax, qword [0x1400070b8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x140002490
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140007120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140007100]
test rbx, rbx
je 0x1400024e4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1400024db
test r12, r12
je 0x1400024db
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400024c0
lea rcx, [0x140007120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002710
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x140002720
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x140002730
Capabilities:
Enumerate pe sections

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

Function at 0x140002820
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140004460]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140002899
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002899
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x140002896
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14000288d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140002899
add r8, 0x28
cmp r8, r9
jne 0x140002878
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x140002980
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140004460]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x1400029ef
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1400029ef
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x1400029ed
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 0x1400029e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400029f8
add rax, 0x28
cmp rax, r9
jne 0x1400029d0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret