joyce8/EMBER2024-capa huggingface dataset:
Function at 0x77b1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0077b140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0077b140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0077b140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0077b140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x77bbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x77bc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x78d87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x77bc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x77bc52
xor eax, eax
pop esi
leave
ret 4

Function at 0x4bbc8d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c23b8
cmp edx, dword [eax]
je 0x4bbcaf
add eax, 8
inc ecx
cmp eax, 0x4c2448
jl 0x4bbca0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c23b8]
jne 0x4bbddd
mov eax, dword [0x4c7dc0]
cmp eax, 1
je 0x4bbdb7
test eax, eax
jne 0x4bbce0
cmp dword [0x4c22e4], 1
je 0x4bbdb7
cmp edx, 0xfc
je 0x4bbddd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bbd17
lea eax, [ebp - 0x1a4]
push 0x4c0500
push eax
call fcn.004bc670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bcb00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bbd5a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bcb00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c04fc
push edi
call fcn.004be9d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c04e0
push eax
call fcn.004bc670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bc680
lea eax, [ebp - 0xa0]
push 0x4c04dc
push eax
call fcn.004bc680
push dword [esi + 0x4c23bc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bc680
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c04b4
push eax
call fcn.004be944
add esp, 0x2c
pop edi
jmp 0x4bbddd
lea eax, [ebp + 8]
lea esi, [esi + 0x4c23bc]
push 0
push eax
push dword [esi]
call fcn.004bcb00
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401060
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401079
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4010b4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4010b0
lea ebx, [ebx]
cmp esi, eax
jae 0x4010b4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4010a0
cmp esi, eax
jb 0x4010ba
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402440
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x46e9a6
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x48db98]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push esi
push edi
mov eax, dword [0x48db98]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov edi, dword [esp + 0x150]
xor ebx, ebx
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x14c], ebx
call fcn.00402310
add esp, 4
call fcn.00434873
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4024c1
push 0x80004005
call fcn.00401040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
push 0x73
mov byte [esp + 0x14c], 1
call fcn.00434822
cmp eax, ebx
je 0x4024f4
push 0x73
push eax
lea ecx, [esp + 0x18]
call fcn.00401980
mov esi, dword [esp + 0x10]
cmp dword [esp + 0x38], 0x10
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], pe_nt_image_headers32
mov dword [esp + 0x14], 4
jae 0x402513
lea eax, [esp + 0x24]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x40254e
mov byte [esp + 0x3c], bl
lea eax, [esp + 0x3c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x402555
sub eax, edx
push eax
lea eax, [esp + 0x40]
push eax
mov ecx, edi
call fcn.00401d30
lea eax, [esi - 0x10]
mov byte [esp + 0x148], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402590
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x38], 0x10
jb 0x4025a4
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0043402a
add esp, 4
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0044ffb2
add esp, 0x13c
ret
Function at 0x4025d0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x46e9a6
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x48db98]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push esi
push edi
mov eax, dword [0x48db98]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov edi, dword [esp + 0x150]
xor ebx, ebx
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x14c], ebx
call fcn.00402310
add esp, 4
call fcn.00434873
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x402651
push 0x80004005
call fcn.00401040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
push 0x74
mov byte [esp + 0x14c], 1
call fcn.00434822
cmp eax, ebx
je 0x402684
push 0x74
push eax
lea ecx, [esp + 0x18]
call fcn.00401980
mov esi, dword [esp + 0x10]
cmp dword [esp + 0x38], 0x10
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], pe_nt_image_headers32
mov dword [esp + 0x14], 4
jae 0x4026a3
lea eax, [esp + 0x24]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [esi - 4], 1
jle 0x4026d1
mov edx, dword [esi - 0xc]
push edx
lea ecx, [esp + 0x14]
call fcn.00401290
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x4026f5
mov byte [esp + 0x3c], bl
lea eax, [esp + 0x3c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x402700
sub eax, edx
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
call fcn.00401d30
lea eax, [esi - 0x10]
mov byte [esp + 0x148], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40273b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x38], 0x10
jb 0x40274f
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0043402a
add esp, 4
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0044ffb2
add esp, 0x13c
ret
Function at 0x404670
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
sub esp, 0x114
mov eax, dword [0x48db98]
xor eax, esp
mov dword [esp + 0x110], eax
lea eax, [esp + 0xc]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0xc]
add eax, 0xffffffff
jmp 0x4046a0
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x4046a0
mov ecx, dword [str.Resources_]
mov edx, dword [0x474844]
mov dword [eax], ecx
mov ecx, dword [0x474848]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov eax, 0x48f1c4
mov ecx, eax
jmp 0x4046d0
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4046d0
push ebp
push esi
push edi
lea edi, [esp + 0x18]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4046e7
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x18]
rep movsb byte es:[edi], byte [esi]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x404706
mov edx, dword [str.GameUpdate.]
mov ecx, dword [0x474834]
mov dword [eax], edx
mov edx, dword [0x474838]
mov dword [eax + 4], ecx
mov cl, byte [0x47483c]
mov dword [eax + 8], edx
mov byte [eax + 0xc], cl
mov eax, 0x48f1c4
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x404740
lea edi, [esp + 0x18]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x404754
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
xor ebp, ebp
push ebp
push 0x80
push 3
push ebp
push 1
mov ecx, eax
push SysReAllocString
lea edx, [esp + 0x30]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4047d4
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x4047d4
push eax
call fcn.00434025
mov edx, dword [esp + 0x14]
add esp, 4
push ebp
lea ecx, [esp + 0x18]
push ecx
push edx
mov edi, eax
push edi
push esi
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4047ee
push edi
call fcn.0043402a
add esp, 4
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0044ffb2
add esp, 0x114
ret
xor dl, dl
mov esi, 1
push ebx
jmp 0x404800
mov ecx, dword [esp + 0x14]
mov bl, byte [edi + esi - 1]
add ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, ecx
sete cl
cmp bl, 0xa
mov byte [esp + 0x13], cl
je 0x404825
cmp bl, 0xd
je 0x404825
test cl, cl
je 0x40484b
cmp dl, 0xa
je 0x404849
cmp dl, 0xd
je 0x404849
test dl, dl
je 0x404849
test cl, cl
jne 0x40483a
lea eax, [esi - 2]
push eax
push ebp
push edi
call fcn.004043a0
mov cl, byte [esp + 0x1f]
add esp, 0xc
mov ebp, esi
add esi, 1
test cl, cl
mov dl, bl
je 0x404800
push edi
call fcn.0043402a
mov ecx, dword [esp + 0x124]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
mov al, 1
call fcn.0044ffb2
add esp, 0x114
ret
Function at 0x405d10
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46edd0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x48db98]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48db98]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, 0xf
mov esi, ecx
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x64], ebx
call fcn.004025d0
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x68], 1
call fcn.00402440
add esp, 8
cmp byte [esi + 0xb0], bl
jne 0x405ec9
cmp dword [esp + 0x30], ebx
mov byte [esi + 0xb0], 1
je 0x405dd3
mov ecx, dword [esp + 0x3c]
mov eax, 0x10
cmp dword [esp + 0x50], eax
jae 0x405daf
lea ecx, [esp + 0x3c]
cmp dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
jae 0x405dbd
lea eax, [esp + 0x20]
push 1
push ecx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x405ec9
call fcn.00434873
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x405ded
push 0x80004005
call fcn.00401040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
push 0x72
mov byte [esp + 0x64], 2
call fcn.00434822
cmp eax, ebx
je 0x405e1d
push 0x72
push eax
lea ecx, [esp + 0x20]
call fcn.00401980
mov ebp, dword [esp + 0x18]
call fcn.00434873
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x405e37
push 0x80004005
call fcn.00401040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
push 0x69
mov byte [esp + 0x64], 3
call fcn.00434822
cmp eax, ebx
je 0x405e67
push 0x69
push eax
lea ecx, [esp + 0x1c]
call fcn.00401980
mov edi, dword [esp + 0x14]
push ebx
push edi
push ebp
mov ecx, esi
call fcn.00438ad8
lea ecx, [esi + 0x74]
call fcn.00407a70
mov ecx, dword [esi + 0x20]
push ebx
push ebx
push 0x12
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [edi - 0x10]
mov byte [esp + 0x60], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405ea8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x60], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405ec9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, 0x10
cmp dword [esp + 0x34], esi
jb 0x405ee1
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0043402a
add esp, 4
cmp dword [esp + 0x50], esi
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
jb 0x405f04
mov edx, dword [esp + 0x3c]
push edx
call fcn.0043402a
add esp, 4
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0044ffb2
add esp, 0x50
ret
Function at 0x412560
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47002b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x48db98]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], 1
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov edi, 0xf
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], ebx
mov dword [esp + 0x1c], ebx
mov byte [esi + 0x1c], bl
mov dword [esi + 0x4c], edi
mov dword [esi + 0x48], ebx
mov byte [esi + 0x38], bl
mov dword [esi + 0x68], edi
mov dword [esi + 0x64], ebx
mov byte [esi + 0x54], bl
mov dword [esi + 0x84], edi
mov dword [esi + 0x80], ebx
mov byte [esi + 0x70], bl
mov dword [esi + 0xa0], edi
mov dword [esi + 0x9c], ebx
mov byte [esi + 0x8c], bl
mov dword [esi + 0xc0], edi
mov dword [esi + 0xbc], ebx
mov byte [esi + 0xac], bl
mov dword [esi + 0xdc], edi
mov dword [esi + 0xd8], ebx
mov byte [esi + 0xc8], bl
mov dword [esi + 0xe8], ebx
mov dword [esi + 0xec], ebx
mov dword [esi + 0xf0], ebx
lea ecx, [esi + 0xf4]
mov byte [esp + 0x1c], 8
call fcn.0041d3d0
lea ecx, [esi + 0x10c]
mov byte [esp + 0x1c], 9
call fcn.0041eef0
mov dword [esi + 0x138], ebx
mov dword [esi + 0x13c], ebx
mov dword [esi + 0x140], ebx
mov dword [esi + 0x15c], edi
mov dword [esi + 0x158], ebx
mov byte [esi + 0x148], bl
mov dword [esi + 0x178], edi
mov dword [esi + 0x174], ebx
mov byte [esi + 0x164], bl
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x412f70
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
push 0xffffffffffffffff
mov esi, ecx
push 0
push edi
lea ecx, [esi + 0x6c]
mov dword [esi + 4], 1
mov dword [esi], eax
call fcn.00401b60
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push 0
push ecx
lea ecx, [esi + 0x88]
call fcn.00401b60
push edi
lea ecx, [esi + 0x134]
call fcn.00417150
lea edx, [esp + 0xc]
push edx
push 0
push esi
push 0x412ef0
push 0
push 0
mov dword [esp + 0x24], 0
call fcn.00451c2c
add esp, 0x18
pop edi
pop esi
ret 0xc
mov ecx, dword [ecx]
jmp 0x412f00

Function at 0x412fa0
Capabilities:
Create thread
Listen for remote procedure calls

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
push 0xa
push str.ncalrpc
call dword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpA]
test eax, eax
jne 0x412ffa
mov ecx, dword [esp + 0xc]
push eax
push eax
push ecx
call dword [sym.imp.RPCRT4.dll_RpcServerRegisterIf]
test eax, eax
jne 0x412ffa
cmp byte [esp + 8], al
jne 0x412fde
push eax
push 0x4d2
push 1
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
ret
lea edx, [esp + 4]
push edx
push 0
push 0
push 0x412f80
push 0
push 0
call fcn.00451c2c
add esp, 0x18
xor eax, eax
ret
Function at 0x413480
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
sub esp, 0x114
mov eax, dword [0x48db98]
xor eax, esp
mov dword [esp + 0x110], eax
lea eax, [esp + 0xc]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0xc]
add eax, 0xffffffff
jmp 0x4134b0
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x4134b0
mov ecx, dword [str.Resources_]
mov edx, dword [0x474844]
mov dword [eax], ecx
mov ecx, dword [0x474848]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov eax, 0x48f344
mov ecx, eax
jmp 0x4134e0
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4134e0
push ebp
push esi
push edi
lea edi, [esp + 0x18]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4134f7
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x18]
rep movsb byte es:[edi], byte [esi]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x413516
mov edx, dword [str.GameUpdate.]
mov ecx, dword [0x474834]
mov dword [eax], edx
mov edx, dword [0x474838]
mov dword [eax + 4], ecx
mov cl, byte [0x47483c]
mov dword [eax + 8], edx
mov byte [eax + 0xc], cl
mov eax, 0x48f344
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x413550
lea edi, [esp + 0x18]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x413564
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
xor ebp, ebp
push ebp
push 0x80
push 3
push ebp
push 1
mov ecx, eax
push SysReAllocString
lea edx, [esp + 0x30]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4135e4
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x4135e4
push eax
call fcn.00434025
mov edx, dword [esp + 0x14]
add esp, 4
push ebp
lea ecx, [esp + 0x18]
push ecx
push edx
mov edi, eax
push edi
push esi
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4135fe
push edi
call fcn.0043402a
add esp, 4
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0044ffb2
add esp, 0x114
ret
xor dl, dl
mov esi, 1
push ebx
jmp 0x413610
mov ecx, dword [esp + 0x14]
mov bl, byte [edi + esi - 1]
add ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, ecx
sete cl
cmp bl, 0xa
mov byte [esp + 0x13], cl
je 0x413635
cmp bl, 0xd
je 0x413635
test cl, cl
je 0x41365b
cmp dl, 0xa
je 0x413659
cmp dl, 0xd
je 0x413659
test dl, dl
je 0x413659
test cl, cl
jne 0x41364a
lea eax, [esi - 2]
push eax
push ebp
push edi
call fcn.004131b0
mov cl, byte [esp + 0x1f]
add esp, 0xc
mov ebp, esi
add esi, 1
test cl, cl
mov dl, bl
je 0x413610
push edi
call fcn.0043402a
mov ecx, dword [esp + 0x124]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
mov al, 1
call fcn.0044ffb2
add esp, 0x114
ret
mov eax, dword [esp + 4]
push 2
push eax
push 0x48f344
call fcn.00450080
add esp, 0xc
jmp 0x413480
Function at 0x413690
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
sub esp, 0x114
mov eax, dword [0x48db98]
xor eax, esp
mov dword [esp + 0x110], eax
lea eax, [esp + 0xc]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0xc]
add eax, 0xffffffff
jmp 0x4134b0
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x4134b0
mov ecx, dword [str.Resources_]
mov edx, dword [0x474844]
mov dword [eax], ecx
mov ecx, dword [0x474848]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov eax, 0x48f344
mov ecx, eax
jmp 0x4134e0
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4134e0
push ebp
push esi
push edi
lea edi, [esp + 0x18]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4134f7
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x18]
rep movsb byte es:[edi], byte [esi]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x413516
mov edx, dword [str.GameUpdate.]
mov ecx, dword [0x474834]
mov dword [eax], edx
mov edx, dword [0x474838]
mov dword [eax + 4], ecx
mov cl, byte [0x47483c]
mov dword [eax + 8], edx
mov byte [eax + 0xc], cl
mov eax, 0x48f344
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x413550
lea edi, [esp + 0x18]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x413564
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
xor ebp, ebp
push ebp
push 0x80
push 3
push ebp
push 1
mov ecx, eax
push SysReAllocString
lea edx, [esp + 0x30]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4135e4
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x4135e4
push eax
call fcn.00434025
mov edx, dword [esp + 0x14]
add esp, 4
push ebp
lea ecx, [esp + 0x18]
push ecx
push edx
mov edi, eax
push edi
push esi
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4135fe
push edi
call fcn.0043402a
add esp, 4
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0044ffb2
add esp, 0x114
ret
xor dl, dl
mov esi, 1
push ebx
jmp 0x413610
mov ecx, dword [esp + 0x14]
mov bl, byte [edi + esi - 1]
add ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, ecx
sete cl
cmp bl, 0xa
mov byte [esp + 0x13], cl
je 0x413635
cmp bl, 0xd
je 0x413635
test cl, cl
je 0x41365b
cmp dl, 0xa
je 0x413659
cmp dl, 0xd
je 0x413659
test dl, dl
je 0x413659
test cl, cl
jne 0x41364a
lea eax, [esi - 2]
push eax
push ebp
push edi
call fcn.004131b0
mov cl, byte [esp + 0x1f]
add esp, 0xc
mov ebp, esi
add esi, 1
test cl, cl
mov dl, bl
je 0x413610
push edi
call fcn.0043402a
mov ecx, dword [esp + 0x124]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
mov al, 1
call fcn.0044ffb2
add esp, 0x114
ret
mov eax, dword [esp + 4]
push 2
push eax
push 0x48f344
call fcn.00450080
add esp, 0xc
jmp 0x413480