joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446220
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x446253
push esi
call fcn.00449310
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44624c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4462d9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4462c2
mov eax, dword [esi + 8]
test eax, eax
je 0x446277
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4462be
cmp eax, 2
je 0x4462c2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44626a
cmp eax, 3
je 0x44629d
cmp eax, 1
jne 0x44626a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44626a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44626a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00446300
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4462e8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00446300
add esp, 4
pop esi
ret

Function at 0x464aa9
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x464ae1
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00462b5d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00462b35
jmp 0x464aed
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x466197
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4661d9
call fcn.0046c357
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4661d9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4661d0
xor eax, eax
jmp 0x4661e1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004661e7
pop edi
pop esi
pop ebx
ret 4

Function at 0x46c887
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46c8b5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46c8d3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046c7ed
jmp 0x46c8d3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46c8d3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046c7ed
test edi, edi
mov eax, edi
jne 0x46c8bd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401ce0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x477338
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push edi
mov eax, dword [0x4921bc]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
xor edi, edi
push 0xffffffffffffffff
push edi
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], di
call fcn.00401790
mov eax, ebx
mov dword [esp + 0x34], edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401d40
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x18]
call fcn.00401dc0
push 0xffffffffffffffff
push edi
push eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov eax, esi
mov word [esi + 4], di
call fcn.00401790
cmp dword [esp + 0x28], 8
jb 0x401d87
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0046207a
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x2c
ret

Function at 0x401ff0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x479858
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4921bc]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
mov eax, dword [0x4921bc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
cmp byte [esi + 0xc], bl
mov dword [esp + 0xc], ebx
jne 0x402076
mov eax, dword [esi]
cmp eax, ebx
mov ebp, dword [esi + 8]
je 0x40203d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], ebx
push esi
push ebp
push ebx
push 0x47d1a4
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x402072
mov dword [esi + 4], eax
mov dword [esi], ebx
xor al, al
cmp al, bl
mov byte [esi + 0xc], al
jne 0x402076
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
mov word [edi + 4], bx
jmp 0x4020c3
mov al, 1
jmp 0x40205b
mov ebp, 7
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], bx
push esi
lea eax, [esp + 0x14]
mov dword [esp + 0x3c], ebx
call fcn.00408270
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x18]
push eax
mov dword [edi + 0x18], ebp
mov dword [edi + 0x14], ebx
mov eax, edi
mov word [edi + 4], bx
call fcn.00401790
cmp dword [esp + 0x28], 8
jb 0x4020c3
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0046207a
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00461f6b
add esp, 0x30
ret
Function at 0x402b40
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x460
mov eax, dword [0x4921bc]
xor eax, esp
mov dword [esp + 0x45c], eax
mov eax, dword [esp + 0x464]
push ebx
push esi
push ecx
mov ebx, 8
push ebx
mov dword [esp + 0x1c], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0xc], esi
je 0x402b96
lea edx, [esp + 0x38]
push edx
push esi
mov dword [esp + 0x40], 0x428
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
jne 0x402bb0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x45c]
xor ecx, esp
call fcn.00461f6b
add esp, 0x460
ret
lea eax, [esp + 0x58]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], 0
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402bd0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x5c]
push eax
lea esi, [esp + 0x24]
call fcn.00401890
mov eax, dword [esp + 0x30]
mov ecx, dword [edi + 0x14]
cmp ecx, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x18]
jb 0x402c09
lea edx, [esp + 0x10]
cmp dword [esp + 0x34], ebx
mov ecx, dword [esp + 0x20]
jae 0x402c17
lea ecx, [esp + 0x20]
cmp dword [edi + 0x18], ebx
jb 0x402c21
mov eax, dword [edi + 4]
jmp 0x402c24
lea eax, [edi + 4]
mov edx, dword [edx]
push edx
push ecx
call fcn.00406c70
add esp, 8
test eax, eax
sete bl
cmp dword [esp + 0x34], 8
jb 0x402c49
mov eax, dword [esp + 0x20]
push eax
call fcn.0046207a
add esp, 4
test bl, bl
jne 0x402c6a
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x38]
push ecx
push edx
call sub.KERNEL32.dll_Module32NextW
test eax, eax
je 0x402c95
mov ebx, 8
jmp 0x402bb0
lea eax, [esp + 0x258]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402c74
mov esi, dword [esp + 0x14]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x25c]
push eax
call fcn.00401890
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x464]
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00461f6b
add esp, 0x460
ret
Function at 0x405f30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x478418
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4921bc]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
push edi
mov eax, dword [0x4921bc]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
fld qword [ebp + 8]
lea edi, [ecx - 0x170]
fnstcw word [esp + 0x1a]
push 0x66
movzx eax, word [esp + 0x1e]
fst qword [ecx + 0x1c]
or eax, 0xc00
mov dword [esp + 0x20], eax
mov eax, edi
fldcw word [esp + 0x20]
fistp qword [esp + 0x20]
mov esi, dword [esp + 0x20]
fldcw word [esp + 0x1e]
call fcn.00432760
test eax, eax
je 0x405fce
mov edx, dword [eax + 0x448]
cmp esi, edx
mov ecx, esi
jge 0x405faf
mov ecx, edx
mov edx, dword [eax + 0x44c]
cmp ecx, edx
jle 0x405fbb
mov ecx, edx
cmp dword [eax + 0x444], ecx
je 0x405fce
mov dword [eax + 0x444], ecx
call fcn.00439a10
push 0x67
mov eax, edi
call fcn.00432760
mov esi, eax
test esi, esi
je 0x40603f
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], 0
fld qword [ebp + 8]
sub esp, 8
mov dword [esp + 0x88], 0
fstp qword [esp]
lea eax, [esp + 0x2c]
push str._.2f__
push eax
call fcn.00407100
mov edx, dword [esi]
mov edx, dword [edx + 0x158]
add esp, 0x10
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call edx
cmp dword [esp + 0x3c], 8
jb 0x40603f
mov eax, dword [esp + 0x28]
push eax
call fcn.0046207a
add esp, 4
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00461f6b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x408070
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x478379
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4921bc]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x2c]
mov esi, ecx
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov dword [esp + 0x18], esi
mov word [esi + 4], di
mov dword [esp + 0x24], edi
push ebx
mov dword [esp + 0x18], 1
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp eax, edi
jle 0x408124
lea ebp, [eax + eax]
xor ecx, ecx
lea eax, [ebp + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00461d22
add esp, 4
push ebp
mov edi, eax
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, ebp
jg 0x40811b
mov word [edi + eax*2], 0
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408105
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.00401890
push edi
call fcn.00462147
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x408190
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x476948
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4921bc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov edi, dword [eax]
xor esi, esi
mov dword [esp + 0x14], vtable.GameMgr::GMBuffer_unsigned_char_.0
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x38], esi
call fcn.00411500
test al, al
jne 0x4081f8
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x40824d
push eax
jmp 0x408245
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx]
push edx
push esi
push edi
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
je 0x408240
test esi, esi
mov dword [ebx + 4], eax
je 0x408229
push esi
call fcn.00462147
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test esi, esi
je 0x40824d
push esi
call fcn.00462147
add esp, 4
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408270
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
push 0x400
mov esi, eax
mov dword [esp + 0x14], 1
xor bl, bl
call fcn.00462e0c
push 0x400
mov edi, eax
push 0
push edi
call fcn.00464db0
mov edx, dword [ebp]
add esp, 0x10
lea eax, [esp + 0x18]
push eax
push edi
lea ecx, [esp + 0x18]
push ecx
push 0
push str.Path
push edx
mov dword [esp + 0x30], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4082e6
mov dword [ebp + 4], eax
mov eax, esi
call fcn.00403b20
push edi
call fcn.00462d2f
add esp, 4
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
mov eax, edi
mov bl, 1
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4082f0
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.00401890
push edi
call fcn.00462d2f
add esp, 4
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret 4

Function at 0x408320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x479e48
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4921bc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
xor esi, esi
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx]
push esi
lea ecx, [esp + 0x20]
push ecx
push esi
push edx
push eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
je 0x40837b
mov dword [ebx + 4], eax
jmp 0x4083cb
mov edi, dword [esp + 0x14]
lea esi, [esp + 0x1c]
call fcn.00408e00
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x38], 0
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push esi
lea eax, [esp + 0x20]
push eax
mov dword [edi], ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebx]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4083e2
mov dword [ebx + 4], eax
test esi, esi
je 0x4083cb
push esi
call fcn.00462147
add esp, 4
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x14]
push esi
push edi
call fcn.004108b0
test al, al
je 0x4083be
test esi, esi
je 0x4083fe
push esi
call fcn.00462147
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x409ba0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x420
mov eax, dword [0x4921bc]
xor eax, esp
mov dword [esp + 0x41c], eax
push edi
mov eax, esi
call fcn.00403b20
push 0x410
lea eax, [esp + 0xa]
push 0
push eax
mov word [esp + 0x10], 0
call fcn.00464db0
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add esp, 0xc
push 0
push 0
call edi
test eax, eax
jne 0x409bff
xor al, al
pop edi
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.00461f6b
add esp, 0x420
ret
cmp eax, 0x208
jae 0x409be7
lea ecx, [esp + 4]
push ecx
push 0x209
call edi
test eax, eax
je 0x409be7
cmp eax, 0x208
jae 0x409be7
push esi
lea edx, [esp + 8]
mov word [esp + 0x418], 0
call fcn.00403a60
mov ecx, dword [esp + 0x420]
pop edi
xor ecx, esp
mov al, 1
call fcn.00461f6b
add esp, 0x420
ret

Function at 0x409c50
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x478278
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4921bc]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push edi
mov eax, dword [0x4921bc]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
push 1
lea eax, [esp + 0x14]
mov edi, ecx
push eax
xor ebp, ebp
xor eax, eax
mov edx, edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], 0x25
call fcn.00407b10
cmp eax, 0xffffffff
push 0xffffffffffffffff
push ebp
push edi
jne 0x409cc4
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebp
mov eax, esi
mov word [esi + 4], bp
call fcn.00401790
jmp 0x409d98
mov ebx, 7
lea eax, [esp + 0x24]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebp
mov word [esp + 0x28], bp
call fcn.00401790
mov dword [esp + 0x40], ebp
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [esp + 0x10], eax
jb 0x409cf2
mov eax, dword [eax]
push ebp
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebp
mov dword [esp + 0x14], eax
jne 0x409d0c
push 0xffffffffffffffff
push ebp
mov dword [esi + 0x18], ebx
push edi
jmp 0x409d76
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00461d22
add esp, 4
cmp dword [edi + 0x18], 8
mov ebx, eax
mov eax, dword [esp + 0x10]
jb 0x409d36
mov eax, dword [eax]
mov edi, dword [esp + 0x14]
lea ecx, [edi + 1]
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebp
jbe 0x409d5e
cmp eax, edi
ja 0x409d5e
lea edx, [esp + 0x18]
push edx
mov edx, ebx
mov word [ebx + eax*2], bp
call fcn.00403a60
push ebx
call fcn.00462147
add esp, 4
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x20]
mov dword [esi + 0x18], 7
push eax
mov dword [esi + 0x14], ebp
mov eax, esi
mov word [esi + 4], bp
call fcn.00401790
cmp dword [esp + 0x30], 8
jb 0x409d98
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0046207a
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00461f6b
add esp, 0x34
ret
Function at 0x409dc0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
push 0x38
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.00464db0
add esp, 0xc
mov dword [esp + 4], 0x3c
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [esp + 0xc], eax
lea eax, [esp + 4]
push eax
mov dword [esp + 0x14], str.open
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0xc], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x409e31
mov ecx, 0x20
cmp ecx, dword [esp + 0x24]
pop esi
sbb eax, eax
neg eax
add esp, 0x3c
ret
cmp edi, esi
je 0x409e3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
xor al, al
pop esi
add esp, 0x3c
ret

Function at 0x409f00
Capabilities:
Create thread
Resume thread

Disassembly:
push edi
mov edi, eax
mov eax, dword [edi]
test eax, eax
jne 0x409f0d
xor al, al
pop edi
ret
cmp dword [eax + 4], 0
je 0x409f09
push esi
lea ecx, [eax + 0xc]
push ecx
push 4
push eax
push 0x409e50
push 0
push 0
call fcn.00462fc9
mov edx, dword [edi]
mov dword [edx + 0x10], eax
mov eax, dword [edi]
add esp, 0x18
cmp dword [eax + 0x10], 0
jne 0x409f62
or esi, 0xffffffff
mov dword [eax + 0x10], esi
mov edi, dword [edi]
mov eax, dword [edi + 0x10]
cmp eax, esi
je 0x409f52
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x10], esi
pop esi
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
xor al, al
pop edi
ret
mov byte [eax + 8], 1
mov eax, dword [edi]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x409f84
mov esi, dword [edi]
call fcn.00409ee0
mov edx, dword [edi]
mov byte [edx + 8], 0
pop esi
mov al, 1
pop edi
ret
Function at 0x40a4c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x479378
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4921bc]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov edi, ecx
push 1
push edi
lea ecx, [esp + 0x30]
call fcn.0040a230
cmp dword [esp + 0x40], 8
mov eax, dword [eax + 0x14]
lea eax, [eax + eax + 0xc]
mov dword [esp + 0x24], eax
jb 0x40a514
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0046207a
add esp, 4
xor ebp, ebp
xor esi, esi
mov dword [esp + 0x20], ebp
xor ebx, ebx
mov edi, edi
mov eax, dword [edi + 0x14]
cmp eax, ebp
je 0x40a585
mov ecx, dword [edi + 0x18]
sub ecx, eax
mov eax, 0x78787879
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x40a585
mov eax, dword [edi + 0x14]
cmp eax, ebp
je 0x40a562
mov ecx, dword [edi + 0x18]
sub ecx, eax
mov eax, 0x78787879
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x40a567
call fcn.004625df
mov ecx, dword [edi + 0x14]
add ecx, ebx
call fcn.0040a4c0
mov edx, dword [esp + 0x20]
lea eax, [edx + eax + 4]
add esi, 1
mov dword [esp + 0x20], eax
add ebx, 0x44
jmp 0x40a520
xor esi, esi
mov ecx, edi
mov dword [esp + 0x18], esi
call fcn.00404000
test eax, eax
jbe 0x40a66a
mov dword [esp + 0x28], vtable.GameMgr::GMBuffer_unsigned_char_.0
mov dword [esp + 0x1c], esi
mov eax, dword [edi + 4]
test eax, eax
je 0x40a5cb
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x18], eax
jb 0x40a5d0
call fcn.004625df
mov ebx, dword [edi + 4]
add ebx, dword [esp + 0x1c]
lea esi, [esp + 0x44]
mov eax, ebx
call fcn.004117f0
cmp dword [esp + 0x5c], 8
mov eax, dword [eax + 0x14]
lea esi, [ebp + eax*2 + 6]
jb 0x40a5fd
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0046207a
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea edx, [esp + 0x28]
push edx
push ebx
mov dword [esp + 0x70], eax
call fcn.00411500
mov eax, dword [esp + 0x34]
mov dword [esp + 0x68], 0xffffffff
lea ebp, [esi + eax + 4]
mov eax, dword [esp + 0x30]
test eax, eax
mov dword [esp + 0x28], vtable.GameMgr::GMBuffer_unsigned_char_.0
je 0x40a64b
push eax
call fcn.00462147
add esp, 4
mov dword [esp + 0x30], 0
mov esi, dword [esp + 0x18]
add dword [esp + 0x1c], 0x70
add esi, 1
mov ecx, edi
mov dword [esp + 0x18], esi
call fcn.00404000
cmp esi, eax
jb 0x40a5a6
mov ecx, dword [esp + 0x20]
lea eax, [ecx + ebp]
add eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret