joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ffb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1f000]
push edi
or ebp, 0xffffffff
jmp 0x42ffd2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42ffd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42ffc8
mov eax, 1
add ebx, ebx
jne 0x42ffeb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42ffe0
jne 0x42fffc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42ffe0
xor ecx, ecx
sub eax, 3
jb 0x430010
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x430082
mov ebp, eax
add ebx, ebx
jne 0x43001b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x430028
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43004c
inc ecx
add ebx, ebx
jne 0x430038
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43002d
jne 0x430049
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43002d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43006c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43005d
jmp 0x42ffce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43006c
add edi, ecx
jmp 0x42ffce
pop esi
mov edi, esi
mov ecx, 0xf78
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43008a
cmp byte [edi], 9
jne 0x43008a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x43008f
lea edi, [esi + 0x2d000]
mov eax, dword [edi]
or eax, eax
je 0x430107
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x30a24]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x30a9c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4300bc
mov ecx, edi
jns 0x4300eb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x30aa0]
or eax, eax
je 0x430101
mov dword [ebx], eax
add ebx, 4
jmp 0x4300d9
call dword [esi + 0x30aa4]
popal
jmp 0x416b35
Function at 0x1005e13
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
xor eax, eax
cmp byte [ecx], al
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
je 0x1005e49
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x1005e4d
xor eax, eax
jmp 0x1005e63
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 8]
push 0x400
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
leave
ret 4

Function at 0x1007083
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x10070be
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x100709b
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x10070da
dec esi
je 0x10070d3
dec esi
jne 0x10070df
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401ee0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x41bf34]
sub esp, 0x10
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x41bf34]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
call fcn.00401e00
mov al, byte [0x419050]
add esp, 4
test al, al
je 0x401f21
push 0
call dword [sym.imp.USER32.dll_ClipCursor]
call dword [sym.imp.USER32.dll_ReleaseCapture]
jmp 0x401f51
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov edx, dword [0x41bf34]
push edx
call dword [sym.imp.USER32.dll_SetCapture]
mov ecx, dword [0x41bf34]
lea eax, [esp]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp]
push edx
call dword [sym.imp.USER32.dll_ClipCursor]
call dword [0x41b61c]
call dword [0x41b62c]
push 0
call dword [0x41b640]
push 0
call dword [0x41b644]
mov byte [0x41bf2c], 0
add esp, 0x18
ret

Function at 0x402020
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x41b64c]
test eax, eax
je 0x40202b
call eax
push 1
call fcn.00401e00
mov eax, dword [0x41bf34]
add esp, 4
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call dword [sym.imp.USER32.dll_ClipCursor]
call dword [0x41b624]
jmp fcn.004011b0

Function at 0x4027f0
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x18
push esi
mov esi, dword [esp + 0x20]
cmp byte [esi], 0
je 0x4028f3
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push edi
lea ebx, [ebx]
cmp byte [esi], 0xa
jne 0x402818
mov byte [esi], 0xd
movsx eax, byte [esi]
push eax
call fcn.0040590d
mov bl, byte [esi]
mov ecx, 1
mov word [esp + 0x18], cx
mov dword [esp + 0x1c], ecx
mov word [esp + 0x20], cx
movsx cx, al
movsx edi, bl
push edi
mov word [esp + 0x26], cx
call fcn.0040590d
add esp, 8
cmp bl, 0xd
mov byte [esp + 0x2c], al
je 0x402886
push edi
call fcn.0040555c
add esp, 4
test eax, eax
je 0x40286b
movsx eax, byte [esp + 0x2c]
sub eax, 0x23
jmp 0x40288b
push edi
call fcn.0040560f
add esp, 4
test eax, eax
je 0x402882
movsx eax, byte [esp + 0x2c]
sub eax, 0x2e
jmp 0x40288b
mov eax, edi
jmp 0x40288b
mov eax, 0x1c
mov word [esp + 0x20], ax
mov al, byte [esi]
movsx dx, al
movsx eax, al
push eax
mov word [esp + 0x26], dx
call fcn.0040559b
add esp, 4
neg eax
sbb eax, eax
lea ecx, [esp + 0x10]
push ecx
and eax, 0x80
push 1
lea edx, [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [0x419f58]
push edx
push eax
call ebp
mov eax, dword [0x419f58]
lea ecx, [esp + 0x10]
push ecx
push 1
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x28], 0
call ebp
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x402810
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x18
ret

Function at 0x403320
Capabilities:
Create thread

Disassembly:
push 0
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push 0x41b07c
push 0
push 0
push 0x403050
push 0
push 0
mov dword [0x41af70], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x1000
push 0
push 0x419f70
mov dword [0x41b078], eax
call dword [sym.imp.Platform.dll_void____stdcall_memsetx_void___char__int_]
mov dword [0x41b084], 0
mov dword [0x41b088], 0
ret
Function at 0x403480
Capabilities:
Set console window title

Disassembly:
sub esp, 0x800
push esi
push edi
push 0x400
lea eax, [esp + 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [esp + 0x10]
push str._d__d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
add esp, 0x10
lea edx, [esp + 8]
push edx
call esi
push 0x28
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
lea ecx, [esp + 0x408]
push ecx
mov edi, eax
call esi
mov eax, edi
pop edi
pop esi
add esp, 0x800
ret

Function at 0x403500
Capabilities:
Hide graphical window

Disassembly:
call fcn.00403320
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
jne 0x403512
xor al, al
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
call esi
push 0xfffffffffffffff5
mov dword [0x41b494], eax
call esi
mov dword [0x41b490], eax
call fcn.00402a70
call fcn.00403480
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov al, 1
pop esi
ret

Function at 0x403560
Capabilities:
Terminate process
Write file on windows

Disassembly:
mov eax, 0x5010
call fcn.00405bc0
mov ecx, dword [0x41b494]
push ebp
push esi
push edi
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetNumberOfConsoleInputEvents]
test eax, eax
je 0x4036c5
mov ebp, dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, 1
jmp 0x4035a0
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x4036cc
mov ecx, dword [0x41b494]
lea edx, [esp + 0x18]
push edx
push edi
lea eax, [esp + 0x24]
push eax
push ecx
call ebp
test eax, eax
je 0x4036c5
cmp dword [esp + 0x18], edi
jne 0x4036c5
cmp word [esp + 0x1c], di
jne 0x4036ab
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4036ab
movsx eax, byte [esp + 0x2a]
cmp eax, 8
mov dword [esp + 0x10], eax
je 0x403686
cmp eax, 0xd
je 0x403646
cmp eax, 0x20
jl 0x4036ab
cmp dword [0x41b498], 0xfe
jae 0x4036ab
mov ecx, dword [0x41b490]
push 0
lea edx, [esp + 0x18]
push edx
push edi
lea eax, [esp + 0x1c]
push eax
push ecx
call esi
mov eax, dword [0x41b498]
mov dl, byte [esp + 0x10]
mov byte [eax + 0x41b4a0], dl
inc eax
mov dword [0x41b498], eax
jmp 0x4036ab
mov ecx, dword [0x41b490]
push 0
lea eax, [esp + 0x18]
push eax
push 2
push 0x4157d8
push ecx
call esi
mov eax, dword [0x41b498]
test eax, eax
je 0x4036ab
pop edi
pop esi
mov byte [eax + 0x41b4a0], 0
mov dword [0x41b498], 0
mov eax, 0x41b4a0
pop ebp
add esp, 0x5010
ret
mov eax, dword [0x41b498]
test eax, eax
je 0x4036ab
push 0
lea edx, [esp + 0x18]
push edx
dec eax
push 3
mov dword [0x41b498], eax
mov eax, dword [0x41b490]
push 0x4157d4
push eax
call esi
mov edx, dword [0x41b494]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetNumberOfConsoleInputEvents]
test eax, eax
jne 0x4035a0
push 0xffffffffffffffff
call fcn.0040551c
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x5010
ret
Function at 0x4036e0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x41b498]
sub esp, 0x104
test eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x403730
push eax
push 0x20
lea eax, [esp + 0x11]
push eax
mov byte [esp + 0x14], 0xd
call dword [sym.imp.Platform.dll_void____stdcall_memsetx_void___char__int_]
mov eax, dword [0x41b498]
push 0
mov byte [esp + eax + 0xd], 0xd
mov byte [esp + eax + 0xe], 0
lea ecx, [esp + 8]
push ecx
add eax, 2
push eax
mov eax, dword [0x41b490]
lea edx, [esp + 0x14]
push edx
push eax
call esi
push edi
mov edi, dword [esp + 0x110]
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
call dword [sym.imp.Platform.dll_int___stdcall_strlenx_char_const__]
mov edx, dword [0x41b490]
push eax
push edi
push edx
call esi
mov eax, dword [0x41b498]
test eax, eax
pop edi
je 0x403771
mov edx, dword [0x41b490]
push 0
lea ecx, [esp + 8]
push ecx
push eax
push 0x41b4a0
push edx
call esi
pop esi
add esp, 0x104
ret

Function at 0x403a50
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
push 1
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x403a7c
cmp dword [esi], 0
je 0x403a7c
mov eax, esi
pop esi
ret 4
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
call fcn.0040551c
int3
Function at 0x403fe0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareGearbox_SoftwareNightfire
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x404154
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov edi, dword [esp + 0x20]
lea edx, [esp + 0xc]
push edx
push edi
lea eax, [esp + 0x18]
push eax
push 0
push str.DisplayWidth
mov ebx, 4
push ecx
mov dword [esp + 0x24], ebx
call esi
test eax, eax
jne 0x40404b
cmp dword [esp + 0x10], ebx
je 0x404051
mov dword [edi], 0
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xc]
push edx
push edi
lea eax, [esp + 0x18]
push eax
push 0
push str.DisplayHeight
push ecx
mov dword [esp + 0x24], ebx
call esi
test eax, eax
jne 0x40407c
cmp dword [esp + 0x10], ebx
je 0x404082
mov dword [edi], 0
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xc]
push edx
push edi
lea eax, [esp + 0x18]
push eax
push 0
push str.DisplayDepth
push ecx
mov dword [esp + 0x24], ebx
call esi
test eax, eax
jne 0x4040ad
cmp dword [esp + 0x10], ebx
je 0x4040b3
mov dword [edi], 0
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xc]
push edx
push edi
lea eax, [esp + 0x18]
push eax
push 0
push str.DisplayRefreshRate
push ecx
mov dword [esp + 0x24], ebx
call esi
test eax, eax
jne 0x4040de
cmp dword [esp + 0x10], ebx
je 0x4040e4
mov dword [edi], 0
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xc]
push edx
push edi
lea eax, [esp + 0x18]
push eax
push 0
push str.DisplayMultisampleCount
push ecx
mov dword [esp + 0x24], ebx
call esi
test eax, eax
jne 0x40410f
cmp dword [esp + 0x10], ebx
je 0x404115
mov dword [edi], 0
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xc]
push edx
push edi
lea eax, [esp + 0x18]
push eax
push 0
push str.DisplayVSYNC
push ecx
mov dword [esp + 0x24], ebx
call esi
test eax, eax
jne 0x404140
cmp dword [esp + 0x10], ebx
je 0x404146
mov dword [edi], 1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x404160
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x800
push 0x800
push eax
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.Platform.dll_void___stdcall_safe_strncpy_char___char_const___int_]
mov eax, dword [esp + 0x808]
test eax, eax
je 0x4041e9
push edi
push 0x4159c4
push eax
call fcn.00405f56
mov edi, eax
add esp, 8
test edi, edi
je 0x4041e8
mov edx, dword [edi + 0x10]
push esi
push edx
call fcn.00405e26
mov esi, eax
add esp, 4
test esi, esi
je 0x4041de
cmp esi, 0x7ff
jbe 0x4041bb
mov esi, 0x7ff
push 0x800
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.Platform.dll_void____stdcall_memsetx_void___char__int_]
push edi
push 1
lea ecx, [esp + 0x10]
push esi
push ecx
call fcn.00405dda
add esp, 0x10
push edi
call fcn.00405ca0
add esp, 4
pop esi
pop edi
push 0x30
push str.ERROR
lea edx, [esp + 8]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call fcn.0040551c
int3
Function at 0x4044a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREGEARBOXNIGHTFIRE
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x404522
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 4]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push str.region
push edx
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404517
cmp dword [esp + 8], 1
jne 0x404517
mov eax, dword [esp + 0x24]
mov cl, byte [esp + 0x10]
mov dl, byte [esp + 0x11]
mov byte [eax], cl
mov byte [eax + 1], dl
mov byte [eax + 2], 0
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x20
ret

Function at 0x4045e0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [0x419f24]
sub esp, 0x20
test eax, eax
je 0x40472d
push esi
push eax
call dword [0x419f40]
mov ecx, dword [0x419f24]
mov esi, eax
mov eax, dword [ecx]
add esp, 4
push esi
call dword [eax + 0xc]
test al, al
je 0x404721
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov dword [esp + 8], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0xc], eax
call dword [edx + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x14], eax
call dword [edx + 0x58]
mov dword [esp + 0x18], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x30]
movzx ecx, al
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareGearbox_SoftwareNightfire
push 0x80000001
mov dword [esp + 0x40], ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x404721
mov edx, dword [esp + 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push eax
push str.DisplayWidth
push edx
call edi
mov ecx, dword [esp + 8]
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0
push str.DisplayHeight
push ecx
call edi
mov eax, dword [esp + 8]
push 4
lea edx, [esp + 0x18]
push edx
push 4
push 0
push str.DisplayDepth
push eax
call edi
mov edx, dword [esp + 8]
push 4
lea ecx, [esp + 0x1c]
push ecx
push 4
push 0
push str.DisplayRefreshRate
push edx
call edi
mov ecx, dword [esp + 8]
push 4
lea eax, [esp + 0x20]
push eax
push 4
push 0
push str.DisplayMultisampleCount
push ecx
call edi
mov eax, dword [esp + 8]
push 4
lea edx, [esp + 0x24]
push edx
push 4
push 0
push str.DisplayVSYNC
push eax
call edi
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
test esi, esi
je 0x40472c
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x68]
pop esi
add esp, 0x20
ret
Function at 0x405449
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.0040644d
xor esi, esi
inc esi
cmp dword [0x41c418], esi
pop ecx
jne 0x405471
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x41c414], esi
mov byte [0x41c410], al
jne 0x4054d7
mov ecx, dword [0x41dbd8]
test ecx, ecx
je 0x4054b8
mov eax, dword [0x41dbd4]
sub eax, 4
cmp eax, ecx
jmp 0x4054b1
mov eax, dword [eax]
test eax, eax
je 0x4054a3
call eax
mov eax, dword [0x41dbd4]
sub eax, 4
cmp eax, dword [0x41dbd8]
mov dword [0x41dbd4], eax
jae 0x40549b
mov eax, 0x419020
mov esi, 0x419028
cmp eax, esi
mov edi, eax
jae 0x4054d7
mov eax, dword [edi]
test eax, eax
je 0x4054d0
call eax
add edi, 4
cmp edi, esi
jb 0x4054c8
mov eax, 0x41902c
mov esi, 0x419030
cmp eax, esi
mov edi, eax
jae 0x4054f6
mov eax, dword [edi]
test eax, eax
je 0x4054ef
call eax
add edi, 4
cmp edi, esi
jb 0x4054e7
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x405507
push 8
call fcn.004063a1
jmp 0x405519
push dword [ebp + 8]
mov dword [0x41c418], 1
call fcn.0040536c
pop ecx
pop ebp
ret

Function at 0x405a04
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x405a21
call fcn.004079a0
mov dword [eax], 0x16
xor eax, eax
jmp 0x405a8b
push esi
push 0x88
push 1
call fcn.00407a25
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x405a76
push esi
call fcn.00407110
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x405a54
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x405960
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x405a8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.004078e2
test ebx, ebx
pop ecx
je 0x405a88
push ebx
call fcn.004079b2
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x406131
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x415c50
call fcn.00407954
mov edi, 0x94
mov eax, edi
call fcn.00405bc0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x41c3d8], ecx
mov eax, dword [esi + 4]
mov dword [0x41c3e4], eax
mov edx, dword [esi + 8]
mov dword [0x41c3e8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x41c3dc], esi
cmp ecx, 2
je 0x406191
or esi, 0x8000
mov dword [0x41c3dc], esi
shl eax, 8
add eax, edx
mov dword [0x41c3e0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4061cc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4061cc
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4061e4
cmp eax, 0x20b
je 0x4061d1
mov dword [ebp - 0x1c], esi
jmp 0x4061f8
cmp dword [ecx + 0x84], 0xe
jbe 0x4061cc
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4061f2
cmp dword [ecx + 0x74], 0xe
jbe 0x4061cc
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040afdf
pop ecx
test eax, eax
jne 0x40620c
push 0x1c
call fcn.004060b7
pop ecx
call fcn.0040730b
test eax, eax
jne 0x40621d
push 0x10
call fcn.004060b7
pop ecx
call fcn.00406570
mov dword [ebp - 4], esi
call fcn.004098b3
test eax, eax
jge 0x406236
push 0x1b
call fcn.00406092
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x41dbcc], eax
call fcn.0040aea3
mov dword [0x41c424], eax
call fcn.0040ae01
test eax, eax
jge 0x40625c
push 8
call fcn.00406092
pop ecx
call fcn.0040abce
test eax, eax
jge 0x40626d
push 9
call fcn.00406092
pop ecx
call fcn.004053e4
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x406280
push eax
call fcn.00406092
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040ab65
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x4062a1
movzx eax, word [ebp - 0x34]
jmp 0x4062a4
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00404740
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4062c2
push edi
call fcn.0040551c
call fcn.0040553e
jmp 0x4062f4
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040798f
ret