joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443b50
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4985d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00491037
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004434b0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00490f65
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0048d82b
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0048d82b
push 1
push 0
push 0
mov ecx, esi
call fcn.0048d7d3
push 1
push 0
push 1
mov ecx, esi
call fcn.0048d7d3
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004910a9
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x443cd0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4985f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00491037
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004434b0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00490f65
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x443d94
cmp dword [esp + 0x40], 1
jne 0x443d92
cmp ecx, eax
jge 0x443d94
mov eax, ecx
cmp eax, 0xc8
jge 0x443da0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00443b50
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004910a9
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x444590
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4986a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0048bc46
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004912df
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004927fb
test eax, eax
je 0x4446ac
mov ecx, dword [esp + 0x3c]
call fcn.0049130c
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x444670
push edi
mov ecx, esi
call fcn.0048e972
mov ecx, esi
call fcn.00444850
cmp dword [esp + 0x38], 1
jne 0x4446a5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0048eaad
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x446890
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4468c3
push esi
call fcn.00454c30
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4468bc
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 0x446949
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x446932
mov eax, dword [esi + 8]
test eax, eax
je 0x4468e7
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 0x44692e
cmp eax, 2
je 0x446932
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4468da
cmp eax, 3
je 0x44690d
cmp eax, 1
jne 0x4468da
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 0x4468da
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4468da
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00446970
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x446958
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00446970
add esp, 4
pop esi
ret

Function at 0x4471e0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x447201
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x447201
mov eax, dword [eax + 0x44]
test eax, eax
je 0x447201
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4653c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4e1500]
xor edx, edx
cmp eax, edx
jne 0x4653e6
xor eax, eax
mov byte [eax + 0x4e1400], al
inc eax
cmp eax, 0x100
jl 0x4653ce
mov dword [0x4e1500], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4e1400
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x465477
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x46544a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x465418
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x465480
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4654d3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4654ba
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46be70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x498b8e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0046c790
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4a2e94
call fcn.0048a3d9
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x46bf03
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0048a3d9
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x46befc
push 0
mov ecx, eax
call fcn.00462ff0
mov dword [esi + 0xc], eax
jmp 0x46bf05
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x46bf05
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x48ca3c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48ca74
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.0048aaf3
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048aacb
jmp 0x48ca80
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48e12f
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 0x48e171
call fcn.00493be1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48e171
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48e168
xor eax, eax
jmp 0x48e179
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048e17f
pop edi
pop esi
pop ebx
ret 4
Function at 0x494111
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 0x49413f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49415d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00494077
jmp 0x49415d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49415d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00494077
test edi, edi
mov eax, edi
jne 0x494147
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x409e8c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x409e9b
pop dword [ebp - 0x3c]
mov eax, 0x409e9b
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x947cf829
sub dword [ebp - 0x4c], 0x462ab2de
mov dword [ebp - 0x48], 0x4935981b
sub dword [ebp - 0x48], 0x17024bd6
mov dword [ebp - 0x44], 0xc05b6574
add dword [ebp - 0x44], 0x8bf0deba
mov dword [ebp - 0x40], 0xbf799aad
sub dword [ebp - 0x40], 0xbf799aad
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0xe153cbb2
sub dword [ebp - 0x4c], 0x6ce1625c
mov dword [ebp - 0x48], 0x32d710a1
sub dword [ebp - 0x48], 0xf16aaf2c
mov dword [ebp - 0x44], 0x2280426b
sub dword [ebp - 0x44], 0xbf10d5ff
mov dword [ebp - 0x40], 0x6a19669
add dword [ebp - 0x40], 0xf95e6997
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0x35444d08
sub eax, 0x35037cbc
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x360be
push 0
call eax
mov ecx, 0xd54e203d
sub ecx, 0xd54de699
mov ebx, eax
mov esi, 0xd3bee9f1
add esi, 0x2c82c60f
add esi, dword [ebp - 0x3c]
mov edi, 0xcf29e03a
add edi, 0x8b453907
sub dword [ebp - 0x18], edx
mov edx, dword [esi]
mov dword [ebp - 0x14], 0xe1be9366
sub edx, edi
xor dword [ebp - 0x18], 0x9febe7f1
mov dword [ebx], edx
mov dword [ebp - 4], 0x41ff5130
add ebx, 4
add esi, 0x570df07c
sub esi, 0x570df078
loop 0x409fb3
add eax, 0xd963
mov ebx, eax
add eax, 0xb10fe41c
add eax, 0x4ef01be9
mov ecx, 0x68de5fed
add ecx, 0x9761a013
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x40509d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x408010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403f1d
and dword [ebp - 0x14], 0
cmp dword [0x4096f8], 0
mov dword [ebp - 0x18], eax
jne 0x405150
push 0x401dec
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4051f8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401de0
push ebx
call edi
test eax, eax
je 0x4051f8
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x401dd0
push ebx
mov dword [0x4096f8], eax
call edi
push eax
call esi
push 0x401dbc
push ebx
mov dword [0x4096fc], eax
call edi
push eax
call esi
push 0x401da0
push ebx
mov dword [0x409700], eax
call edi
push eax
call esi
mov dword [0x409708], eax
test eax, eax
je 0x405150
push 0x401d88
push ebx
call edi
push eax
call esi
mov dword [0x409704], eax
mov eax, dword [0x409704]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4051a9
cmp dword [0x409708], ecx
je 0x4051a9
push eax
call esi
push dword [0x409708]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4051a9
test ebx, ebx
je 0x4051a9
call edi
test eax, eax
je 0x4051a0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4051a0
test byte [ebp - 8], 1
jne 0x4051a9
or dword [ebp + 0x10], 0x200000
jmp 0x4051dc
mov eax, dword [0x4096fc]
cmp eax, dword [ebp - 0x18]
je 0x4051dc
push eax
call esi
test eax, eax
je 0x4051dc
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4051dc
mov eax, dword [0x409700]
cmp eax, dword [ebp - 0x18]
je 0x4051dc
push eax
call esi
test eax, eax
je 0x4051dc
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4096f8]
call esi
test eax, eax
je 0x4051f8
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4051fa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402f0f
leave
ret

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 0x40111a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x437004]
jne 0x401124
repz ret
jmp fcn.0040170f

Function at 0x40513b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x437004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403f66
and dword [ebp - 0x14], 0
cmp dword [0x439c78], 0
mov dword [ebp - 0x18], eax
jne 0x4051ee
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405296
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405296
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x439c78], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x439c7c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x439c80], eax
call edi
push eax
call esi
mov dword [0x439c88], eax
test eax, eax
je 0x4051ee
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x439c84], eax
mov eax, dword [0x439c84]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405247
cmp dword [0x439c88], ecx
je 0x405247
push eax
call esi
push dword [0x439c88]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405247
test ebx, ebx
je 0x405247
call edi
test eax, eax
je 0x40523e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40523e
test byte [ebp - 8], 1
jne 0x405247
or dword [ebp + 0x10], 0x200000
jmp 0x40527a
mov eax, dword [0x439c7c]
cmp eax, dword [ebp - 0x18]
je 0x40527a
push eax
call esi
test eax, eax
je 0x40527a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40527a
mov eax, dword [0x439c80]
cmp eax, dword [ebp - 0x18]
je 0x40527a
push eax
call esi
test eax, eax
je 0x40527a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x439c78]
call esi
test eax, eax
je 0x405296
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405298
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040111a
leave
ret
Function at 0x42b5c0
Capabilities:
Create pipe

Disassembly:
sub esp, 0x41c
mov eax, dword [0x437004]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [esp + 0x420]
mov eax, dword [eax]
push ebx
mov ebx, dword [0x43ba2c]
push edi
mov edi, dword [0x43deac]
call fcn.0042b500
cmp dword [0x43deac], 0x2f
jne 0x42b654
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.0042b530
mov ecx, dword [esp + 0x420]
pop edi
pop ebx
xor ecx, esp
call fcn.0040111a
add esp, 0x41c
ret
Function at 0x42bad0
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1010
call fcn.0040c400
mov eax, dword [0x437004]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [0x43deac]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTimes]
push edi
mov ebx, 0x1519af
mov edi, 0x8e46a6f0
mov dword [0x43db14], edi
cmp eax, 0x3dc
jne 0x42bb1a
push 0
push 0
push 0
call esi
mov eax, dword [0x43deac]
dec ebx
jne 0x42bb00
mov edi, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
xor esi, esi
jmp 0x42bb30
cmp eax, 0xa5f
jne 0x42bb67
push 0
call edi
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
lea ecx, [esp + 0x830]
push ecx
push 0x435514
call ebx
mov eax, dword [0x43deac]
cmp esi, 0x846143
jne 0x42bb7e
mov eax, dword [0x438bf0]
add eax, 0xa231
mov dword [0x43deac], eax
cmp eax, 0x141
jne 0x42bb99
mov dword [0x43a1b8], 0xec58acac
mov dword [0x43a1bc], 0xffffffff
inc esi
cmp esi, 0x12d12ba
jl 0x42bb30
call fcn.0042b670
mov ecx, dword [esp + 0x1018]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040111a
add esp, 0x1010
ret 0x10
Function at 0x4114b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f60ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], fcn.0043e2f0
lea edi, [esi + 0x30]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], edi
mov dword [edi], 0x4ff5c0
lea ecx, [edi + 0x84]
invalid
inc esp
invalid

Function at 0x413c90
Capabilities:
Get disk information

Disassembly:
sub esp, 0x200
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fopen]
push ebp
push esi
push edi
mov ebp, 1
lea eax, [ebp + 0x40]
lea ecx, [esp + 0x10]
push eax
push 0x514f9c
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x413d42
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
mov esi, str.data_cnDatadisc.cfg
repne scasb al, byte es:[edi]
dec edi
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x10]
push 0x514f80
push eax
movsw word es:[edi], word [esi]
call ebx
mov esi, eax
add esp, 8
test esi, esi
je 0x413d42
push esi
lea ecx, [esp + 0x114]
push 0x100
push ecx
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
push esi
jne 0x413d22
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
jmp 0x413d42
call dword [0x4fe2a3]
add esp, 4
mov edi, str.EpieGame_Disc_ID:HoChiMinhTrail
lea esi, [esp + 0x110]
mov ecx, 0x20
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x413d59
inc ebp
cmp ebp, 0x1a
jl 0x413ca5
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x200
ret
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x200
ret

Function at 0x418490
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [ecx], 0x4ffd98
jmp fcn.0043ed40