joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000dd10
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 fcn.140013a90
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140013a90
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14000dd80
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14004db14]
mov rbx, rcx
test esi, esi
jle 0x14000deb0
mov rax, qword [0x14004db18]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000ddcb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000de55
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000ddb0
mov rcx, rbx
call fcn.14000e7d0
mov rdi, rax
test rax, rax
je 0x14000ded2
mov rax, qword [0x14004db18]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000e910
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14004db18]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000deb7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000de4e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000de60
add dword [0x14004db14], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14004db18]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000de4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000dd10
nop dword [rax]
xor esi, esi
jmp 0x14000ddd8
mov rax, qword [0x14004db18]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000dd10
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000dd10
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000e440
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14004db80]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14004db60]
test rbx, rbx
je 0x14000e49c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000e493
test rsi, rsi
je 0x14000e493
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000e478
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000e7d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400378f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000e7f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000e7f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000e7f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000e84d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000e844
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000e7f0
add rax, 0x28
cmp rax, r9
jne 0x14000e830
xor eax, eax
ret

Function at 0x14000e850
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400378f0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000e86f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000e878
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000e86f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000e910
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400378f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000e92f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000e938
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001194
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
push r12
push r15
sub rsp, 0x60
xor esi, esi
lea rax, [r11 + 0x10]
mov qword [r11 - 0x48], rax
lea r9, [0x14000dae8]
lea rax, [r11 + 0x20]
mov dword [r11 + 0x18], esi
mov qword [r11 - 0x50], rax
lea rdx, str.SYSTEMSetup
mov qword [r11 - 0x58], rsi
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], esi
mov edi, 1
mov qword [r11 + 0x20], rsi
mov dword [r11 + 0x10], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140001249
mov rcx, qword [rsp + 0xa8]
lea r9d, [rdi + 3]
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SetupType
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0xa8]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
lea r15, [0x14000bf78]
lea r12, str.base_ntsetup_setupplatformdeploymentexe_setupplatform.cpp
test ebx, ebx
je 0x1400012fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.WDSCORE.dll_CurrentIP]
nop dword [rax + rax]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea r9, str.SetupType
mov ecx, 0x2000000
lea r8, str.pDisableSetupTypeRun
mov dword [rsp + 0x20], eax
lea rdx, str._hs:_Failed_to_reset__s_in_setup_key._hr__0x_X
call fcn.1400010e0
mov dword [rsp + 0x50], esi
lea r8, [0x14000bf38]
mov qword [rsp + 0x48], rsi
mov rcx, rax
mov dword [rsp + 0x40], edi
xor r9d, r9d
mov qword [rsp + 0x38], rbx
xor edx, edx
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x30
call qword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
nop dword [rax + rax]
mov edi, esi
mov word [rsp + 0x90], si
lea rcx, [rsp + 0x90]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], si
jne 0x14000130e
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea r8, str.CmdLine
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
call fcn.1400074c4
test eax, eax
jne 0x1400013d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.WDSCORE.dll_CurrentIP]
nop dword [rax + rax]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea r9, str.CmdLine
mov ecx, 0x2000000
lea r8, str.pDisableSetupTypeRun
mov dword [rsp + 0x20], eax
lea rdx, str._hs:_Failed_to_reset__s_in_setup_key._hr__0x_X
call fcn.1400010e0
mov dword [rsp + 0x50], esi
lea r8, [0x14000bf38]
mov qword [rsp + 0x48], rsi
mov rcx, rax
mov dword [rsp + 0x40], edi
xor r9d, r9d
mov qword [rsp + 0x38], rbx
xor edx, edx
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x37
call qword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
nop dword [rax + rax]
mov edi, esi
mov eax, edi
add rsp, 0x60
pop r15
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000176c
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140013728]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
xor ebx, ebx
call sub.msvcrt.dll_memset
test rdi, rdi
je 0x140001856
mov rcx, rdi
call qword [sym.imp.unbcl.dll_public:_unsigned_short_int_const____ptr64___cdecl_UnBCL::String::get_CString_void_const___ptr64]
nop dword [rax + rax]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x20], 0x104
lea rdx, [0x14000c0f0]
lea rcx, str.Parameters
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
nop dword [rax + rax]
test eax, eax
je 0x140001856
cmp word [rsp + 0x30], bx
je 0x140001856
lea edi, [rbx + 1]
mov r8d, edi
lea rdx, str.TRUE
lea rcx, [rsp + 0x30]
call qword [sym.imp.unbcl.dll_public:_static_int___cdecl_UnBCL::String::Compare_unsigned_short_int_const____ptr64__unsigned_short_int_const____ptr64__int_]
nop dword [rax + rax]
test eax, eax
je 0x140001854
mov r8d, edi
lea rdx, [0x14000c0d0]
lea rcx, [rsp + 0x30]
call qword [sym.imp.unbcl.dll_public:_static_int___cdecl_UnBCL::String::Compare_unsigned_short_int_const____ptr64__unsigned_short_int_const____ptr64__int_]
nop dword [rax + rax]
test eax, eax
je 0x140001854
mov r8d, edi
lea rdx, [0x14000c0e4]
lea rcx, [rsp + 0x30]
call qword [sym.imp.unbcl.dll_public:_static_int___cdecl_UnBCL::String::Compare_unsigned_short_int_const____ptr64__unsigned_short_int_const____ptr64__int_]
nop dword [rax + rax]
test eax, eax
jne 0x140001856
mov ebx, edi
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140009280
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x1400074c4
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x50
mov rsi, qword [rsp + 0x90]
xor ebx, ebx
mov ebp, r9d
mov r14, r8
test rsi, rsi
je 0x14000759e
lea rax, [r11 + 0x10]
mov qword [r11 + 8], rbx
mov qword [r11 - 0x28], rax
lea r9, [0x14000dae8]
lea rax, [r11 + 8]
mov dword [rsp + 0x78], ebx
mov qword [r11 - 0x30], rax
lea rdx, str.SYSTEMSetup
mov qword [r11 - 0x38], rbx
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x140007587
mov eax, dword [rsp + 0x98]
mov r9d, ebp
mov rcx, qword [rsp + 0x70]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, r14
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x70]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
test edi, edi
sete bl
mov eax, ebx
jmp 0x1400075b1
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14000781c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rdi, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop dword [rax + rax]
test rax, rax
jne 0x140007850
lea ecx, [rax + 0x19]
int 0x29
test byte [rsp + 0x44], 0x44
je 0x1400078af
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
nop dword [rax + rax]
mov r9d, dword [rsp + 0x54]
xor edx, edx
mov r8d, r9d
neg r8
and r8, rbx
lea ecx, [r9 - 1]
mov eax, ecx
and ecx, ebx
and eax, edi
add eax, ecx
dec rax
add rax, r9
div r9
xor edx, edx
mov rcx, rax
mov rax, rdi
div r9
add rcx, rax
mov eax, ecx
test ecx, ecx
je 0x1400078af
lock or dword [r8], 0
add r8, r9
sub rax, 1
jne 0x1400078a1
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x1400078c8
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movsxd r8, dword [0x14000003c]
lea rdi, [0x140000000]
add r8, rdi
mov rsi, rdx
mov ebp, ecx
cmp dword [r8 + 0x84], 0xd
jbe 0x1400079b6
mov r9d, dword [r8 + 0xf0]
test r9d, r9d
je 0x1400079b6
movzx eax, word [r8 + 0x14]
lea rcx, [r8 + 0x18]
mov r10d, dword [r9 + rdi + 0xc]
add rcx, rax
movzx r11d, word [r8 + 6]
xor r9d, r9d
test r11d, r11d
je 0x14000794f
mov r8d, dword [rcx + 0xc]
cmp r10d, r8d
jb 0x140007943
mov edx, dword [rcx + 8]
lea eax, [rdx + r8]
cmp r10d, eax
jb 0x140007988
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14000792e
mov eax, dword [rsp + 0x40]
xor ebx, ebx
mov edx, dword [rsp + 0x40]
test rbx, rbx
je 0x1400079b6
cmp dword [0x140013d40], 0
jne 0x140007991
mov dword [0x140013d40], 1
test eax, eax
js 0x14000797c
mov ecx, 0x19
int 0x29
mov rcx, rbx
mov edi, edx
call fcn.14000781c
jmp 0x140007993
mov eax, dword [rcx + 0x24]
lea rbx, [rdi + r8]
jmp 0x140007959
mov edi, edx
mov r9, rsi
mov r8d, ebp
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop dword [rax + rax]
test eax, eax
jne 0x1400079bc
lea ecx, [rax + 0x19]
int 0x29
jmp 0x1400079bc
mov dword [rsi], 4
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140007f04
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rdi
mov qword [r11 + 0x18], r8
push r14
sub rsp, 0xe0
xor eax, eax
lea r8, [0x14000dae8]
mov qword [rsp + 0x60], rax
lea rdx, str._s_s_s
lea rax, str._windir__system32cmd.exe
xor ebp, ebp
xorps xmm0, xmm0
mov qword [rsp + 0x20], rax
mov r9, r8
mov qword [r11 + 0x18], rbp
lea rcx, [r11 + 0x18]
mov edi, ebp
movups xmmword [rsp + 0x50], xmm0
call fcn.140008520
mov ebx, eax
test eax, eax
js 0x14000805e
mov rcx, qword [rsp + 0x100]
call fcn.140008124
mov rdi, rax
mov r14d, 0x80070000
test rax, rax
je 0x140007f87
cmp bp, word [rax]
jne 0x140007fc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, r14d
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x140007fbb
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
jmp 0x140007fc0
mov ebx, 0x80004005
test ebx, ebx
js 0x14000805e
xor edx, edx
lea rcx, [rsp + 0x74]
lea r8d, [rdx + 0x64]
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x50]
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov rdx, rdi
mov qword [rsp + 0x38], rbp
xor ecx, ecx
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
nop dword [rax + rax]
test eax, eax
jne 0x14000805e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, r14d
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x140008059
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
jmp 0x14000805e
mov ebx, 0x80004005
mov rcx, qword [rsp + 0x58]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140008079
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x50]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140008094
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
cmp qword [rsp + 0x100], rbp
je 0x1400080c3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, qword [rsp + 0x100]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test rdi, rdi
je 0x1400080e8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
movzx ecx, bx
test ebx, ebx
cmovns ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
lea r11, [rsp + 0xe0]
not ebx
mov rbp, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x28]
shr ebx, 0x1f
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rsp, r11
pop r14
ret
Function at 0x140008124
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
xor ebp, ebp
xor r8d, r8d
xor edx, edx
mov ebx, ebp
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
je 0x1400081c8
mov ebx, edi
add rbx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
lea edx, [rbp + 8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1400081c8
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
je 0x1400081a2
cmp bp, word [rbx]
jne 0x1400081c8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test eax, eax
cmovne rbx, rbp
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140008280
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
test rcx, rcx
je 0x140008323
cmp bx, word [rcx]
je 0x140008323
call fcn.140008678
mov rsi, rax
test rax, rax
je 0x140008303
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x1400082d3
and eax, 0x10
sete bl
neg eax
sbb edi, edi
and edi, 2
jmp 0x1400082e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
jmp 0x140008311
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, ebx
jmp 0x140008336
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140008fe0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140013d28], rbx
je 0x140009047
cmp rax, rbx
jne 0x14000903a
mov ebx, 1
mov esi, ebx
jmp 0x14000904c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000901f
mov ebx, 1
mov eax, dword [0x140013d30]
cmp eax, ebx
jne 0x140009064
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x1400090d0
mov eax, dword [0x140013d30]
test eax, eax
jne 0x1400090c5
mov dword [0x140013d30], ebx
lea r15, [0x14000bd58]
lea rdi, [0x14000bd40]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x1400090b7
test eax, eax
jne 0x1400090bb
cmp qword [rdi], r14
je 0x1400090ac
mov rax, qword [rdi]
mov rcx, qword [0x14000bd20]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000908e
test eax, eax
je 0x1400090cb
mov eax, 0xff
jmp 0x140009226
mov dword [0x140013744], ebx
mov edi, 0x1f
mov eax, dword [0x140013d30]
cmp eax, ebx
jne 0x1400090f7
lea rdx, [0x14000bd38]
lea rcx, [0x14000bd28]
call sub.msvcrt.dll__initterm
mov dword [0x140013d30], 2
test esi, esi
jne 0x140009105
mov rax, r14
xchg qword [0x140013d28], rax
cmp qword [0x140013d38], r14
je 0x140009138
lea rcx, [0x140013d38]
call fcn.1400094d0
test eax, eax
je 0x140009138
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140013d38]
mov r9, qword [0x14000bd20]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140009151
mov eax, 0xff
jmp 0x140009226
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x1400091d7
test ax, ax
je 0x14000916c
test edx, edx
jne 0x1400091d7
sub ax, bx
cmp ax, di
ja 0x140009182
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000916c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001880
mov dword [0x140013740], eax
cmp dword [0x140013760], r14d
jne 0x1400091c0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140013744], r14d
jne 0x1400091d5
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140013740]
jmp 0x140009226
cmp ax, 0x22
jne 0x1400091eb
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000915a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140158000
add rsp, 0x28
jmp 0x140008fe0
Function at 0x1400093bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140009408
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140009400
cmp dword [rcx + 0x3c], edx
jl 0x140009400
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140009400
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140009408
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140003800
Capabilities:
Print debug messages

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x14], 0
jne 0x140003949
cmp dword [rsp + 0x48], 0x2711
je 0x140003830
cmp dword [rsp + 0x48], 0x2710
jne 0x14000383e
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x10], 0xe0f
jmp 0x140003872
cmp dword [rsp + 0x48], 0x2714
je 0x140003866
cmp dword [rsp + 0x48], 0x2715
je 0x140003866
cmp dword [rsp + 0x48], 0x2716
je 0x140003866
cmp dword [rsp + 0x48], 0x2717
jne 0x140003872
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x10], 0x707
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x10]
cdq
mov ecx, 0x3c
idiv ecx
cdq
mov ecx, 0x3c
idiv ecx
mov eax, edx
mov dword [0x140024e84], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x10]
cdq
mov ecx, 0x3c
idiv ecx
mov eax, edx
mov dword [0x140024e88], eax
mov eax, dword [0x140024e88]
mov dword [rsp + 0x20], eax
mov r9d, dword [0x140024e84]
lea r8, [0x140022cf8]
mov edx, 0x81
lea rcx, [0x140024e90]
call fcn.140004b70
lea r9, [0x140024e90]
xor r8d, r8d
mov edx, 0xc
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [rsp + 0x48]
xor r9d, r9d
mov r8d, 0x3e8
mov edx, eax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 8]
call qword [sym.imp.USER32.dll_SetTimer]
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x14], 1
mov r9d, dword [rsp + 0x48]
lea r8, str._ON___d_n
mov edx, 0x81
lea rcx, [0x140024e90]
call fcn.140004b70
lea rcx, [0x140024e90]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140003a11
lea r8, [0x140022e40]
mov edx, 0x81
lea rcx, [0x140024e90]
call fcn.140004b70
lea r9, [0x140024e90]
xor r8d, r8d
mov edx, 0xc
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 8]
call qword [sym.imp.USER32.dll_KillTimer]
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x14], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x18], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x1c], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x20], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x24], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x28], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x2c], 0
mov r9d, dword [rsp + 0x48]
lea r8, str._OFF___d_n
mov edx, 0x81
lea rcx, [0x140024e90]
call fcn.140004b70
lea rcx, [0x140024e90]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x38
ret
Function at 0x14000a110
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140009f3c