joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002fb0
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.1400048f0
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.1400048f0
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 0x140003020
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140003150
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000306b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400030f5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140003050
mov rcx, rbx
call fcn.140003a70
mov rdi, rax
test rax, rax
je 0x140003172
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003bb0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003157
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400030ee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140003100
add dword [0x14000a0a4], 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 [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400030ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002fb0
nop dword [rax]
xor esi, esi
jmp 0x140003078
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002fb0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002fb0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400036e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x14000373c
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 0x140003733
test rsi, rsi
je 0x140003733
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003718
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 0x140003a70
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006af0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003a90
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003a98
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003a90
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140003aed
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 0x140003ae4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003a90
add rax, 0x28
cmp rax, r9
jne 0x140003ad0
xor eax, eax
ret

Function at 0x140003af0
Capabilities:
Parse pe header

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

Function at 0x140003bb0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006af0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003bcf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003bd8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1000024e0
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x10009e100]
jne 0x100029fef
rol rcx, 0x10
test cx, 0xffff
jne 0x100029feb
ret 0
ror rcx, 0x10
jmp 0x100076ac0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x10009f4c0]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x10009f5b8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x100076b45
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x10009f4c0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.ntdll.dll_RtlVirtualUnwind
jmp 0x100076b67
mov rax, qword [rsp + 0x88]
mov qword [0x10009f5b8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x10009f558], rax
mov rax, qword [0x10009f5b8]
mov qword [0x10009f430], rax
mov rax, qword [rsp + 0x90]
mov qword [0x10009f540], rax
mov dword [0x10009f420], 0xc0000409
mov dword [0x10009f424], 1
mov rax, qword [0x10009e100]
mov qword [rsp + 0x68], rax
mov rax, qword [0x10009e108]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100083958]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1000025f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov r12, rcx
mov rbp, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r12
mov r14, rdx
repne scasw ax, word [rdi]
mov eax, 0x40000000
not rcx
dec rcx
cmp ecx, eax
mov rsi, rcx
cmova esi, eax
xor r13d, r13d
cmp esi, 1
jb 0x1000026dc
cmp word [r12], 0x7c
jne 0x1000026dc
lea rcx, [r12 + 2]
lea r8d, [r13 + 0xa]
xor edx, edx
call qword [sym.imp.msvcrt.dll_wcstoul]
mov ebx, eax
cmp eax, r13d
je 0x1000026dc
shr eax, 4
xor ecx, ecx
inc eax
movzx r13d, ax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r8, r13
mov rcx, rax
xor eax, eax
lea edx, [rax + 6]
movzx r9d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rdi, rax
xor eax, eax
cmp rdi, rax
je 0x100037ae1
xor r13d, r13d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
cmp rax, r13
je 0x1000026dc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rax
cmp rax, r13
je 0x1000026dc
and ebx, 0xf
jbe 0x1000026d5
mov edi, ebx
movzx ecx, word [rdx]
inc ecx
sub rdi, 1
lea rdx, [rdx + rcx*2]
jne 0x1000026c6
movzx esi, word [rdx]
lea r12, [rdx + 2]
lea ecx, [rsi + 1]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.100002580
mov rbx, rax
cmp rax, r13
je 0x100037b1a
lea rdi, [rsi + rsi]
mov rdx, r12
mov rcx, rax
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov word [rdi + rbx], r13w
or rsi, 0xffffffffffffffff
xor eax, eax
mov rcx, rsi
mov rdi, rbx
mov qword [rsp + 0x70], r13
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x100007246
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], r14
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov ecx, 0x500
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rcx, rbx
call sub.msvcrt.dll_free
mov rax, qword [rsp + 0x70]
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov rcx, rbx
call sub.msvcrt.dll_free
xor eax, eax
mov rcx, rsi
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
mov edi, ecx
lea rdx, [rcx + rcx]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
mov qword [rsp + 0x70], rax
call sub.msvcrt.dll_wcscpy_s
jmp 0x100002771
call qword [sym.imp.KERNEL32.dll_GetThreadLocale]
xor ecx, ecx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx r9d, di
mov r8, r13
mov edx, 6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
xor r13d, r13d
mov rdi, rax
cmp rax, r13
je 0x1000026dc
jmp 0x100002695
xor eax, eax
jmp 0x100002776
Function at 0x100002938
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
cmp qword [0x10009e328], 0
mov esi, dword [0x10009e0d0]
mov edi, ecx
mov dword [0x10009e0d0], ecx
je 0x10001d155
mov eax, dword [0x10009e088]
cmp eax, 0xffffffff
je 0x10001d1b8
test eax, eax
jne 0x10000298f
mov rax, qword [0x10009e328]
test rax, rax
je 0x10000297f
mov ecx, edi
call rax
mov rax, qword [0x10009fb78]
test rax, rax
jne 0x10003af27
mov eax, esi
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp qword [0x10009fb78], 0
jne 0x10000295c
lea rcx, [0x100082810]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x10001d19d
lea rcx, [0x100082810]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x10001d19d
lea rdx, str.DebugSetMute
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x10009e328], rax
lea rcx, str.d3d9d.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x10000295c
jmp 0x10003ae8b
and qword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
lea rdx, str.SoftwareMicrosoftDirect3D
mov r9d, 0x2000000
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], 4
call qword [sym.imp.KERNEL32.dll_RegOpenKeyExA]
test eax, eax
je 0x10003aebc
xor eax, eax
mov dword [0x10009e088], eax
test eax, eax
je 0x10000296f
jmp 0x10003af17
lea rcx, str.d3d9d.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x10000295c
lea rdx, str.DebugSetMute
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x10009fb78], rax
jmp 0x10000295c
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [0x10009e088]
lea rdx, str.D3DXDoNotMute
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_RegCloseKey]
test ebx, ebx
jne 0x10001d1f5
cmp dword [rsp + 0x58], 4
jne 0x10001d1f5
mov eax, dword [0x10009e088]
jmp 0x10001d1fd
mov eax, 1
mov dword [0x10009e088], eax
jmp 0x10000296b
mov ecx, edi
call rax
nop
jmp 0x10000298f
Function at 0x100008e10
Capabilities:
Get common file path
Set current directory
Write file on windows

Disassembly:
sub rsp, 0x28
call fcn.10000969c
lea rdx, str.HeartsAIPlayer::OnLeaveState__::iOldState___s
mov ecx, 0x80000
mov r8, rax
add rsp, 0x28
jmp fcn.100002470

Function at 0x100009030
Capabilities:
Get common file path
Set current directory
Write file on windows

Disassembly:
sub rsp, 0x28
call fcn.10000969c
lea rdx, str.HumanPlayer::OnLeaveState__::iOldState___s
mov ecx, 0x40000
mov r8, rax
add rsp, 0x28
jmp fcn.100002470

Function at 0x100009674
Capabilities:
Get common file path
Set current directory
Write file on windows

Disassembly:
sub rsp, 0x28
call fcn.10000969c
lea rdx, str.HeartsAIPlayer::OnEnterState__::iNewState___s
mov ecx, 0x80000
mov r8, rax
add rsp, 0x28
jmp fcn.100002470

Function at 0x10000a0c0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x48
test rcx, rcx
je 0x10003774d
add rsp, 0x48
ret
lea rax, str.Out_of_memory.
mov byte [rsp + 0x30], 1
lea r8d, [rcx + 1]
mov qword [rsp + 0x28], rax
lea rax, str.Fatal_Error
xor edx, edx
mov r9d, 0xfffe
mov qword [rsp + 0x20], rax
call fcn.100051f7c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x100012cac
Capabilities:
Get session user name

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdi, rcx
and dword [rax + 0x18], 0
lea rdx, [0x10007ced0]
lea rcx, [rax - 0x30]
call fcn.100002c10
nop
mov esi, 0x40
mov dword [rsp + 0x68], esi
lea eax, [rsi - 0x3e]
mul rsi
lea rcx, [rsi - 0x41]
cmovo rax, rcx
mov rcx, rax
call fcn.100002580
mov rbx, rax
test rax, rax
je 0x1000379a7
lea r8, [rsp + 0x68]
mov rdx, rax
mov ecx, 3
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x1000379ce
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.10000676c
jmp 0x100012d32
mov rcx, rbx
call sub.msvcrt.dll_free
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.10000a0d8
mov dword [rsp + 0x70], 1
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
mov rax, rdi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.10000a0d8
mov dword [rsp + 0x70], 1
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
mov rax, rdi
jmp 0x100012d5c
mov dword [rsp + 0x68], esi
lea rdx, [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x100012d32
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.10000676c
nop
jmp 0x100012d32

Function at 0x100012ed8
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x28
lea rdx, str.Reset_timers
mov ecx, 8
call fcn.100002470
cmp dword [0x10009e098], 0
jne 0x100012f0b
lea rcx, [0x10009e120]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x10002cc1c
cmp dword [0x10009e098], 1
je 0x10002cc46
add rsp, 0x28
jmp fcn.100001a54
lea rdx, str.SkippingQPC_failed___falling_back_to_timeGetTime__
lea ecx, [rax + 8]
call fcn.100002470
mov ecx, 0x21
mov dword [0x10009e098], 1
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
nop
jmp 0x100012f0b
call qword [sym.imp.WINMM.dll_timeGetTime]
mov dword [0x10009e120], eax
jmp 0x100012f18
Function at 0x1000131f4
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov dil, cl
cmp cl, byte [0x10009fb74]
jne 0x10002ee35
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [0x10009e170]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov cl, 1
call fcn.100012f28
mov rcx, qword [0x10009e168]
mov r9d, 0x107
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_RedrawWindow]
mov rbx, qword [0x10009e1e0]
mov byte [0x10009fb74], dil
test rbx, rbx
je 0x10002eec1
xor esi, esi
cmp dword [rbx + 0x18], esi
jbe 0x10002eea2
xor ebp, ebp
mov rax, qword [rbx + 0x10]
mov dl, dil
mov rcx, qword [rax + rbp]
mov rax, qword [rcx]
call qword [rax + 0x40]
inc esi
add rbp, 8
cmp esi, dword [rbx + 0x18]
jb 0x10002ee7f
mov rbx, qword [0x10009e1e0]
mov rcx, rbx
call fcn.10004b774
mov rcx, qword [0x10009e1e0]
call fcn.10001c0b8
test al, al
jne 0x10002eec1
xor al, al
jmp 0x100013219
mov rbx, qword [0x10009e1b8]
test rbx, rbx
je 0x10002ef46
cmp dword [rbx + 0xd4], 0
je 0x10002ef46
lea r9, str.FlushDefaultTextures__
lea r8, str.RenderManager.cpp
mov edx, 0x201
mov ecx, 2
call fcn.100002c98
mov rcx, rbx
call fcn.1000482b4
mov rcx, rbx
call fcn.10001e210
test al, al
je 0x10002eeba
cmp dword [0x10009e0bc], 0
jne 0x10002ef37
cmp byte [0x10009fb74], 0
mov r8d, dword [0x10009e06c]
mov edx, dword [0x10009e068]
mov rcx, qword [0x10009e1b8]
je 0x10002ef32
add r8d, r8d
add edx, edx
call fcn.100013600
mov rax, qword [0x10009e1b8]
mov byte [rax + 0x14], 1
mov byte [rax + 0x58], 1
call fcn.100013120
mov rcx, qword [0x10009e170]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x10009e168]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_InvalidateRect]
cmp qword [0x10009e1b8], 0
je 0x100013217
mov ecx, 0x25
call fcn.100006714
mov rcx, qword [0x10009e1b8]
mov rcx, qword [rcx + 0x78]
mov rdx, rax
mov rbx, rax
mov r8, qword [rcx]
call qword [r8 + 0x18]
test rbx, rbx
je 0x100013217
mov r8, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [r8]
nop
jmp 0x100013217
Function at 0x100017430
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x10009e0ec], 0
jne 0x1000174bf
lea rdx, [0x10007b2b0]
xor ecx, ecx
mov dword [0x10009e0ec], 1
xor esi, esi
call fcn.10000291c
lea rdx, [0x10007b2b0]
xor ecx, ecx
mov rdi, rax
call fcn.10000291c
mov rbx, rax
test rdi, rdi
je 0x10003af31
test rax, rax
je 0x10003af31
cmp rdi, rax
je 0x10003af31
test rdi, rdi
je 0x10001749e
mov rcx, rdi
call sub.msvcrt.dll_free
test rbx, rbx
je 0x1000174b0
cmp rbx, rdi
je 0x1000174b0
mov rcx, rbx
call sub.msvcrt.dll_free
xor ecx, ecx
call sub.msvcrt.dll_free
test esi, esi
jne 0x10003af3b
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov esi, 1
jmp 0x100017491
lea rcx, str.D3DX:__WARN__Overloaded_::new_and_::delete_operators_do_not_conform_to_C_standards:_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, str.D3DX:__WARN__An_allocation_of_zero_bytes_should_return_a_unique_non_null_pointer_to_at_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, str.D3DX:__WARN__least_zero_bytes._Deletion_of_a_null_pointer_should_quietly_do_nothing._r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, str.D3DX:__WARN__D3DX_relies_upon_this_behavior._r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
jmp 0x1000174bf
Function at 0x100019ec4
Capabilities:
Check os version

Disassembly:
sub rsp, 0x168
mov rax, qword [0x10009e100]
xor rax, rsp
mov qword [rsp + 0x150], rax
test rcx, rcx
je 0x100037bf5
cmp qword [0x10009e238], 0
mov qword [0x10009e210], rcx
mov qword [0x10009e208], rdx
mov byte [0x10009e0f4], r8b
jne 0x100019fce
lea rcx, str.comctl32
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x10009e238], rax
test rax, rax
je 0x100019f89
lea rdx, str.TaskDialog
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x10009e238]
lea rdx, str.TaskDialogIndirect
mov qword [0x10009e218], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x10009e218], 0
mov qword [0x10009e228], rax
je 0x100037bfc
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100019f89
cmp dword [rsp + 0x34], 6
jb 0x100019f89
cmp dword [rsp + 0x38], 0
je 0x100037c0a
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetProcessDefaultLayout]
mov r11b, byte [rsp + 0x20]
mov edx, 0xbb8
and r11b, 1
mov ecx, 0x40
mov dword [0x10009e0cc], edx
mov byte [0x10009e04c], r11b
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
and qword [0x10009e130], 0
mov qword [0x10009e248], rax
mov al, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1000024e0
add rsp, 0x168
ret
xor al, al
jmp 0x100019fd0
test rax, rax
jne 0x100019f60
jmp 0x100019f89
cmp dword [rsp + 0x40], 2
jne 0x100019f89
cmp dword [rsp + 0x3c], 0x147c
jae 0x100019f89
mov rax, qword [0x10009e218]
and qword [0x10009e218], 0
mov qword [0x10009e220], rax
mov rax, qword [0x10009e228]
and qword [0x10009e228], 0
mov qword [0x10009e230], rax
jmp 0x100019f89
Function at 0x10001adbc
Capabilities:
Terminate process

Disassembly:
xor eax, eax
test esi, esi
sete al
mov esi, eax
mov dword [rsp + 0x20], eax
jmp 0x10001a959
test eax, eax
jne 0x10003dd84
mov eax, dword [0x10009e0f0]
cmp eax, 1
jne 0x10001a921
lea rdx, [0x100082d50]
lea rcx, [0x100082c70]
call sub.msvcrt.dll__initterm
mov dword [0x10009e0f0], 2
test esi, esi
jne 0x10001a92e
xor eax, eax
xchg qword [0x10009e040], rax
cmp qword [0x1000a0698], 0
jne 0x10003dd9d
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rdi, qword [rax]
mov qword [rsp + 0x28], rdi
mov esi, dword [rsp + 0x20]
cmp byte [rdi], 0x20
jbe 0x10001a974
cmp byte [rdi], 0x22
je 0x10001a8e2
movzx ecx, byte [rdi]
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
jne 0x10003de0a
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x10001a94f
cmp byte [rdi], 0
je 0x10001a97d
test esi, esi
jne 0x10001a954
cmp byte [rdi], 0
jne 0x10003ddc6
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rdi
xor edx, edx
lea rcx, [0x100000000]
call fcn.10001a9bc
nop
jmp 0x10003dddc
sub rsp, 0x28
call fcn.10001a3dc
add rsp, 0x28
jmp 0x10001ade0
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
push r12
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x10009e040], rdi
jne 0x10003dd58
mov eax, dword [0x10009e0f0]
cmp eax, 1
je 0x10003dd77
mov eax, dword [0x10009e0f0]
test eax, eax
jne 0x10003dd8e
mov dword [0x10009e0f0], 1
lea r12, [0x100082d70]
lea rdi, [0x100082d58]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
cmp rdi, r12
jae 0x10001a8f1
test eax, eax
jne 0x10001a8f1
mov rcx, qword [rdi]
test rcx, rcx
je 0x10001ae81
call rcx
mov dword [rsp + 0x30], eax
add rdi, 8
mov qword [rsp + 0x38], rdi
jmp 0x10001ae62
cmp rax, rdi
jne 0x10003dd67
mov esi, 1
jmp 0x10001ae24
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10001ae13
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x10001a8f9
mov eax, 0xff
jmp 0x10003de44
mov dword [0x1000a1928], 1
jmp 0x10001a8f9
lea rcx, [0x1000a0698]
call fcn.100076a5c
test eax, eax
je 0x10001a93c
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x1000a0698]
nop
jmp 0x10001a93c
cmp byte [rdi], 0x20
ja 0x10001a986
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x10001a97d
mov dword [0x1000a1924], eax
cmp dword [0x10009e08c], 0
jne 0x10003ddf3
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1000a1928], 0
jne 0x10003de08
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1000a1924]
jmp 0x10003de44
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x10001a96a
lea r11, [rsp + 0xb0]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r12
ret
Function at 0x10001b498
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x10001b4df
cmp rcx, 0xffffffffffffffff
je 0x10001b4df
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10001b4dd
cmp dword [rcx + 0x3c], edx
jl 0x10001b4dd
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10001b4dd
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 0x10001b4df
mov rax, rdx
add rsp, 0x18
ret

Function at 0x10001b520
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x10009e100]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call sub.msvcrt.dll_memset
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x100000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x10003df60
cmp dword [rsp + 0x24], 5
jb 0x10001b5bb
jmp 0x10001b5b7
mov byte [rbx + 0x18], sil
lea rax, [0x100082d78]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.10001b620
movzx ecx, byte [0x10009e059]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x10009e059], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1000024e0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
cmp dword [rsp + 0x30], esi
jne 0x10001b5bb
cmp dword [rsp + 0x24], 4
ja 0x10001b5b7
jne 0x10001b5bb
cmp dword [rsp + 0x28], 0
ja 0x10001b5b7
jmp 0x10001b5bb