joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437fe0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x34
push ebx
push ebp
push edi
mov edi, dword [esp + 0x44]
mov eax, dword [edi + 0x78]
xor ebp, ebp
cmp eax, ebp
mov bl, 1
mov dword [esp + 0xc], ebp
jle 0x43812d
push esi
mov edi, edi
mov eax, dword [edi + 0x74]
mov esi, dword [eax + ebp + 0x20]
mov ecx, dword [esi]
lea edx, [esp + 0x48]
push edx
push 0x10
push esi
call dword [ecx + 0x38]
mov edx, dword [esi]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [edx + 0x18]
push eax
mov eax, dword [esi]
push esi
call dword [eax + 0x14]
mov ecx, dword [esp + 0x54]
push eax
push ecx
call fcn.00494162
mov edx, dword [esi]
push esi
call dword [edx + 0x3c]
test bl, bl
je 0x43806f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x40], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
xor bl, bl
jmp 0x4380f1
fld dword [esp + 0x38]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 5
jnp 0x438086
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], eax
fld dword [esp + 0x3c]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 5
jnp 0x43809d
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x3c], ecx
fld dword [esp + 0x40]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 5
jnp 0x4380b4
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x40], edx
fld dword [esp + 0x2c]
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 0x41
je 0x4380cb
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
fld dword [esp + 0x30]
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 0x41
je 0x4380e2
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x30], ecx
fld dword [esp + 0x34]
fcomp dword [esp + 0x28]
fnstsw ax
test ah, 0x41
je 0x4380f9
mov edx, dword [esp + 0x28]
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x78]
inc eax
add ebp, 0x30
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x438000
pop esi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x50]
call fcn.00435730
pop edi
pop ebp
pop ebx
add esp, 0x34
ret 8
mov ecx, dword [esp + 0x48]
call fcn.00435670
pop edi
pop ebp
pop ebx
add esp, 0x34
ret 8
Function at 0x43a010
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4c7541
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
mov ecx, 0x20
mov eax, 0x10
mov dword [esp + 8], esi
mov dword [esi + 0x10], 0x4d3158
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], eax
mov dword [esp + 0x14], edi
mov dword [esi + 0x28], 0x4d3170
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x44], 0x11
mov dword [esi + 0x48], edi
mov dword [esi + 0x40], edi
lea ecx, [esi + 0x54]
mov byte [esp + 0x14], 2
call fcn.0042a870
mov ecx, dword [esp + 0xc]
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x43c230
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4c77a7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esi + 4]
mov dword [esp + 0x10], esi
mov dword [esi], 0x4d3188
call fcn.0042a870
xor edi, edi
mov ebp, 0x20
mov ebx, 0x10
mov dword [esp + 0x1c], edi
mov dword [esi + 0xc], 0x4d3160
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], 0x4d3164
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], ebp
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], 0x4d3168
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], 0x4d316c
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], ebp
mov dword [esi + 0x68], ebx
lea ecx, [esi + 0x6c]
mov byte [esp + 0x1c], 4
call fcn.0042a870
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], ebp
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x78], 0x4d3170
mov dword [esi + 0x74], edi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x43d120
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4c798c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
xor eax, eax
mov edx, 0x20
mov ecx, 0x10
mov dword [esp + 4], esi
mov dword [esi + 0x10], 0x4d3158
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], ecx
mov dword [esp + 0x10], eax
mov dword [esi + 0x28], 0x4d3170
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x44], 0x11
mov dword [esi + 0x48], eax
mov dword [esi + 0x40], eax
lea ecx, [esi + 0x54]
mov byte [esp + 0x10], 2
call fcn.0042a870
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esi + 8], edx
mov edx, dword [esp + 0x1c]
push ecx
mov dword [esi], eax
mov eax, dword [esp + 0x1c]
push edx
mov ecx, esi
mov byte [esp + 0x18], 3
mov dword [esi + 0xc], eax
call fcn.0043cbe0
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x18
Function at 0x43d1e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c79b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esi + 0x1c]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0xc]
mov ebx, dword [esp + 0x30]
lea ecx, [esi + 0xc]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x10], ecx
je 0x43d230
push ebx
call fcn.004045d0
cmp eax, ebp
je 0x43d230
mov esi, dword [eax]
jmp 0x43d34b
mov ecx, dword [esi + 4]
push edi
push ebx
push 0x500dac
call fcn.00441220
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x10], edi
jne 0x43d27a
push str.Mesh
lea ecx, [esp + 0x20]
call fcn.0042aa80
lea eax, [esp + 0x1c]
push ebx
push eax
mov dword [esp + 0x34], ebp
call fcn.0042ad90
add esp, 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0042a980
mov ebx, dword [esp + 0x38]
push 0x4cccf4
mov ecx, ebx
call fcn.004027d0
test al, al
je 0x43d292
mov ebp, edi
jmp 0x43d2ac
mov ecx, dword [ebx + 4]
cmp word [ecx - 4], 0
je 0x43d2ac
mov ecx, dword [esi + 4]
push ebx
push 0x500dac
call fcn.00441220
mov ebp, eax
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + 4]
xor ebx, ebx
cmp word [edx - 4], bx
je 0x43d2cb
mov ecx, dword [esi + 4]
push eax
push 0x500dac
call fcn.00441220
mov ebx, eax
push 0x5c
call fcn.00430530
add esp, 4
mov dword [esp + 0x38], eax
test eax, eax
mov dword [esp + 0x2c], 1
je 0x43d305
mov ecx, dword [esi + 8]
mov edx, dword [esi]
mov edi, dword [edx + 0xf0]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push ebp
push ecx
push edi
push edx
mov ecx, eax
call fcn.0043d120
mov esi, eax
jmp 0x43d307
xor esi, esi
mov eax, dword [esi + 0x18]
test eax, eax
mov dword [esp + 0x2c], 0xffffffff
je 0x43d338
mov edi, dword [esp + 0x34]
push edi
lea ecx, [esi + 0x54]
call fcn.0042a9d0
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x34]
push edx
push edi
mov dword [esp + 0x3c], esi
call fcn.00438310
jmp 0x43d34a
mov ecx, esi
call fcn.0043a0b0
push esi
call fcn.00430540
add esp, 4
xor esi, esi
pop edi
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
Function at 0x43fd40
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4c7b56
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
lea ecx, [esi + 0x18]
mov dword [esp + 8], esi
mov dword [esi], 0x4d3224
call fcn.0042a870
xor ebx, ebx
lea ecx, [esi + 0x38]
mov dword [esp + 0x14], ebx
call fcn.00440a00
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, 1
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x14], al
mov dword [esi + 0x70], eax
mov al, byte [esp + 0x28]
push ecx
mov ecx, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x60], edx
mov dword [esi + 0x10], ebx
mov byte [esi + 0x5c], al
mov byte [esi + 0x14], bl
mov byte [esi + 0x15], bl
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x54], 0x400c0
call fcn.0043f8e0
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10

Function at 0x43fe00
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4c7b56
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
lea ecx, [esi + 0x18]
mov dword [esp + 8], esi
mov dword [esi], 0x4d3224
call fcn.0042a870
xor ebx, ebx
lea ecx, [esi + 0x38]
mov dword [esp + 0x14], ebx
call fcn.00440a00
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x28]
mov eax, 1
mov dword [esi + 8], edx
mov edx, dword [esp + 0x1c]
mov dword [esi + 0xc], ecx
push edx
mov ecx, esi
mov byte [esp + 0x18], al
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x10], ebx
mov byte [esi + 0x5c], al
mov byte [esi + 0x14], al
mov byte [esi + 0x15], bl
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x54], 0x401c0
call fcn.0043f8e0
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10

Function at 0x440ad0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x4040]
test eax, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x440b00
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x4040]
push eax
call edi
mov dword [esi + 0x4040], 0
mov eax, dword [esi + 0x405c]
test eax, eax
je 0x440b24
push eax
call edi
mov dword [esi + 0x405c], 0
add esi, 0x4044
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
pop esi
ret
Function at 0x4414f0
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x4c7cf9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
mov dword [edi], 0x4d32a8
mov dword [esp + 0x1c], 1
call fcn.00440ad0
mov eax, dword [edi + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp eax, ebx
je 0x441543
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [edi + 0x14]
push eax
call esi
mov dword [edi + 0x14], ebx
mov eax, dword [edi + 0x30]
cmp eax, ebx
je 0x44155a
push eax
call esi
lea ecx, [edi + 0x18]
push ecx
mov dword [edi + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ebp, [edi + 8]
mov byte [edi + 0x34], bl
cmp dword [ebp], ebx
je 0x44157f
mov edx, dword [ebp + 4]
xor eax, eax
cmp edx, ebx
jle 0x44157f
mov esi, dword [ebp + 8]
mov ecx, esi
cmp dword [ecx], ebx
jne 0x44159f
inc eax
add ecx, 4
cmp eax, edx
jl 0x441573
xor eax, eax
cmp eax, ebx
mov esi, eax
je 0x4415d5
mov ecx, dword [esi + 8]
cmp ecx, ebx
je 0x441594
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x4415a4
mov esi, eax
jmp 0x4415d1
mov eax, dword [esi + eax*4]
jmp 0x441581
mov ecx, dword [ebp + 4]
mov eax, dword [esi + 0xc]
xor edx, edx
div ecx
inc edx
cmp edx, ecx
jge 0x4415d5
mov esi, dword [ebp + 8]
lea eax, [esi + edx*4]
lea esp, [esp]
cmp dword [eax], ebx
jne 0x4415ce
inc edx
add eax, 4
cmp edx, ecx
jl 0x4415c0
jmp 0x4415d5
mov esi, dword [esi + edx*4]
cmp esi, ebx
jne 0x441587
lea ecx, [edi + 0x4060]
mov byte [esp + 0x1c], bl
call fcn.00401f10
mov ecx, ebp
mov dword [esp + 0x1c], 0xffffffff
call fcn.0045e6e0
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4417f0
Capabilities:
Create thread

Disassembly:
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esi], 0x4d32a8
mov dword [esi + 0x10], ebx
mov dword [esi + 8], ebx
mov eax, 0x11
mov dword [esi + 0xc], eax
mov dword [esi + 0x4064], eax
mov al, byte [esp + 0xc]
mov dword [esi + 0x4068], ebx
mov dword [esi + 0x4060], ebx
lea ecx, [esi + 0x4044]
push ecx
mov byte [esi + 4], al
mov dword [esi + 0x14], ebx
mov dword [esi + 0x30], ebx
mov byte [esi + 0x34], bl
mov dword [esi + 0x403c], ebx
mov dword [esi + 0x4040], ebx
mov dword [esi + 0x405c], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push esi
push 0x441680
push ebx
push ebx
mov dword [esi + 0x405c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x4040], eax
mov eax, esi
pop esi
pop ebx
ret 4
Function at 0x443520
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c7eb1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 4]
mov dword [esp + 8], esi
mov dword [esi], 0x4d33b0
call fcn.0042a870
xor edi, edi
lea ecx, [esi + 0xc]
mov dword [esp + 0x14], edi
call fcn.00430560
lea ecx, [esi + 0x30]
call fcn.0042f290
lea ecx, [esi + 0x68]
mov byte [esp + 0x14], 1
call fcn.0042f400
lea ecx, [esi + 0xac]
mov byte [esp + 0x14], 2
call fcn.0046a600
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x450410
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c8638
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 0xc]
call fcn.0042a870
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x30], 0
call fcn.0042bd60
mov bl, al
test bl, bl
je 0x4505a0
mov eax, dword [ebp + 0x198]
push esi
push edi
mov edi, dword [esp + 0x40]
cmp edi, eax
mov byte [esp + 0x13], 0
jge 0x450487
mov ecx, dword [ebp + 0x194]
mov ecx, dword [ecx + edi*4]
test ecx, ecx
je 0x450487
lea edx, [esp + 0x14]
push edx
call fcn.0045c780
mov esi, eax
test esi, esi
jne 0x4504a4
push edi
call fcn.00467ed0
mov esi, eax
add esp, 4
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 0xc]
call fcn.0042a9d0
mov byte [esp + 0x13], 1
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x45057e
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, esi
call fcn.004613d0
mov bl, al
test bl, bl
je 0x45058e
mov eax, dword [ebp + 0x30]
mov eax, dword [eax + 0x2e0]
lea edx, [esi + 0xc]
push edx
push 0x500d90
mov ecx, eax
call fcn.00441220
mov edi, eax
test edi, edi
je 0x450563
mov ecx, edi
call fcn.0042c100
test al, al
je 0x450563
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 4]
test al, al
je 0x450507
push edi
mov ecx, ebp
call fcn.0044f9e0
test al, al
jne 0x45055c
push 0x4ccb72
lea ecx, [esp + 0x28]
call fcn.0042aa80
push str.Unable_to_read_Object_Definition_from
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 1
call fcn.0042aa80
mov ecx, dword [ebp + 0x30]
lea edx, [esp + 0x24]
push edx
push edi
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x40], 2
call fcn.00451d00
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 1
call fcn.0042a980
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], 0
call fcn.0042a980
mov ecx, edi
call fcn.0042c170
mov edi, dword [esp + 0x40]
test bl, bl
je 0x45058e
mov al, byte [esp + 0x13]
test al, al
je 0x45059e
push esi
push edi
mov ecx, ebp
call fcn.004502c0
jmp 0x45059e
mov eax, dword [esp + 0x3c]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 4]
mov bl, al
jmp 0x450567
mov al, byte [esp + 0x13]
test al, al
je 0x45059e
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
pop edi
pop esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0042a980
mov ecx, dword [esp + 0x24]
pop ebp
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x450bb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4c8696
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esi], 0x4d3c9c
push edi
xor edi, edi
mov dword [esp + 8], esi
mov dword [esi + 0x14], 0x4cc4ac
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 0x20
mov dword [esi + 0x28], 0x10
lea ecx, [esi + 0x34]
mov dword [esp + 0x14], edi
call fcn.004482e0
push 0x400
lea ecx, [esi + 0x180]
mov byte [esp + 0x18], 1
call fcn.0045c700
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x194], edi
mov dword [esi + 0x198], edi
mov dword [esi + 0x19c], edi
mov dword [esi + 0x190], 0x4d3b8c
mov dword [esi + 0x1a0], 0x20
mov dword [esi + 0x1a4], 0x10
mov dword [esi + 4], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x450bc6
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4c8696
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esi], 0x4d3c9c
push edi
xor edi, edi
mov dword [esp + 8], esi
mov dword [esi + 0x14], 0x4cc4ac
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 0x20
mov dword [esi + 0x28], 0x10
lea ecx, [esi + 0x34]
mov dword [esp + 0x14], edi
call fcn.004482e0
push 0x400
lea ecx, [esi + 0x180]
mov byte [esp + 0x18], 1
call fcn.0045c700
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x194], edi
mov dword [esi + 0x198], edi
mov dword [esi + 0x19c], edi
mov dword [esi + 0x190], 0x4d3b8c
mov dword [esi + 0x1a0], 0x20
mov dword [esi + 0x1a4], 0x10
mov dword [esi + 4], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x451400
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4c873c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
push esi
mov esi, ecx
lea ebp, [esi + 4]
push edi
mov ecx, ebp
mov dword [esp + 0x10], esi
mov dword [esi], 0x4d3d00
call fcn.0042a870
lea ebx, [esi + 0xc]
xor edi, edi
mov ecx, ebx
mov dword [esp + 0x9c], edi
call fcn.0042a870
mov eax, dword [esp + 0xa4]
push eax
mov ecx, ebp
mov byte [esp + 0xa0], 1
call fcn.0042a9d0
mov ecx, dword [esp + 0xa4]
push ecx
mov ecx, ebx
call fcn.0042a9d0
mov edx, dword [esp + 0xa8]
push str.Nov_10_2006
lea eax, [esp + 0x18]
push str.___build__s
push eax
mov dword [esi + 0x14], edx
call fcn.0048025b
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.0042abd0
mov ecx, dword [esp + 0x94]
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
pop edi
mov dword [0x500ec4], esi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x90
ret 8
Function at 0x4517d0
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
sub esp, 0x208
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push str.DefsGame.def
call esi
cmp eax, 0xffffffff
je 0x4517f5
push str.DefsWorld.def
call esi
cmp eax, 0xffffffff
jne 0x451833
mov eax, dword [0x500ec4]
mov eax, dword [eax + 0x18]
push 0x104
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x451833
lea edx, [esp + 4]
push 0x5c
push edx
call fcn.00481880
add esp, 8
test eax, eax
je 0x451828
mov byte [eax], 0
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop esi
add esp, 0x208
ret

Function at 0x451e50
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x364]
test eax, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x451eac
mov eax, dword [esi + 0x384]
push eax
mov byte [esi + 0x388], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x364]
push 0xbb8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0x364]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x364]
push eax
call edi
mov dword [esi + 0x364], 0
mov eax, dword [esi + 0x384]
test eax, eax
je 0x451ec3
push eax
call edi
mov dword [esi + 0x384], 0
pop edi
pop esi
ret
Function at 0x452260
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
push 0
push 0
mov esi, ecx
mov eax, dword [esi + 0x3c]
push 0x411
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x3c]
push ecx
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x3c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x18]
push ecx
push edx
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
mov ebp, eax
push 0
lea eax, [esp + 0x1c]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x452322
lea ecx, [ecx]
cmp edi, 0xffffffff
je 0x452322
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push ebp
push edx
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x4522f0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x45230f
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
call dword [eax + 0x28]
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
call ebx
mov edi, eax
test edi, edi
jne 0x4522c0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x452335
mov edx, dword [ecx]
call dword [edx + 8]
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x452343
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp edi, 0xffffffff
pop edi
mov dword [esi + 0x3c], 0
pop esi
pop ebp
pop ebx
jne 0x45235a
or eax, 0xffffffff
add esp, 0x1c
ret
mov eax, dword [esp + 8]
add esp, 0x1c
ret