joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a990
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x461899
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x49001c]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
mov eax, dword [0x49001c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
mov edx, esi
mov dword [esp + 0x3c], 0
call fcn.0040a4b0
test al, al
lea ecx, [esp + 0x10]
jne 0x40a9fb
mov dword [esp + 0x38], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor al, al
jmp 0x40aa13
cmp dword [esp + 0xc], 0
mov dword [esp + 0x38], 0xffffffff
setne bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0045d098
add esp, 0x34
ret
Function at 0x40abd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x45fbb7
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x49001c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov ecx, esi
call dword [sym.imp.K8UIRender.dll_public:_void___thiscall_GameMgr::GMWindowImplBase::constructor_void_]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esi + method.GameMgr::IShowModalDlg.virtual_0], vtable.GameMgr::IProcessCommunicationCallback.0
mov dword [esi + method.GameMgr::IShowModalDlg.virtual_0], vtable.GameMgr::IShowModalDlg.0
mov dword [esi + 0x21c], ecx
push edx
lea ecx, [esi + 0x224]
mov dword [esi], vtable.GameMgr::GMBrowserWebWnd.0
mov dword [esi + 0x20], vtable.GameMgr::GMBrowserWebWnd.1.0
mov dword [esi + method.GameMgr::GMBrowserWebWnd.2.virtual_0], vtable.GameMgr::GMBrowserWebWnd.2.0
mov dword [esi + method.GameMgr::GMBrowserWebWnd.3.virtual_0], vtable.GameMgr::GMBrowserWebWnd.3.0
mov dword [esi + method.GameMgr::GMBrowserWebWnd.4.virtual_0], vtable.GameMgr::GMBrowserWebWnd.4.0
mov dword [esi + 0x220], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esi + 0x240]
mov byte [esp + 0x18], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov byte [esp + 0x14], 2
mov dword [esi + 0x25c], ecx
push edx
lea ecx, [esi + 0x260]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov al, byte [esp + 0x34]
mov cl, byte [esp + 0x38]
mov dl, byte [esp + 0x3c]
mov byte [esi + 0x281], al
mov dword [esi + 0x27c], ebx
mov byte [esi + 0x280], bl
mov byte [esi + 0x282], cl
mov byte [esi + 0x283], dl
mov byte [esi + 0x284], bl
mov dword [esi + 0x288], ebx
mov byte [esi + 0x28c], bl
mov byte [esi + 0x28d], bl
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 0x24
Function at 0x40e0c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45f90c
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x49001c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x1c]
mov eax, dword [edi]
mov dword [esi], eax
mov ecx, dword [edi + 4]
lea edx, [edi + 8]
mov dword [esi + 4], ecx
push edx
lea ecx, [esi + 8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov dword [esp + 0x14], 0
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov ecx, dword [edi + 0x2c]
mov dword [esi + 0x2c], ecx
movzx edx, byte [edi + 0x30]
mov byte [esi + 0x30], dl
movzx eax, byte [edi + 0x31]
mov byte [esi + 0x31], al
movzx ecx, byte [edi + 0x32]
mov byte [esi + 0x32], cl
movzx edx, byte [edi + 0x33]
mov byte [esi + 0x33], dl
movzx eax, byte [edi + 0x34]
mov byte [esi + 0x34], al
movzx ecx, byte [edi + 0x35]
mov byte [esi + 0x35], cl
movzx edx, byte [edi + 0x36]
mov byte [esi + 0x36], dl
movzx eax, byte [edi + 0x37]
mov byte [esi + 0x37], al
mov ecx, dword [edi + 0x38]
mov dword [esi + 0x38], ecx
mov edx, dword [edi + 0x3c]
add edi, 0x40
push edi
lea ecx, [esi + 0x40]
mov dword [esi + 0x3c], edx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x4146a0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x48
push ebx
push ebp
push edi
push 0x3c
lea eax, [esp + 0x18]
push 0
push eax
mov dword [esp + 0x1c], 0x40
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x414743
call fcn.00414ed0
mov edi, dword [esp + 0x24]
cdq
mov dword [esi + 0x21c], edx
mov edx, dword [esp + 0x20]
mov ecx, dword [esi + 0x21c]
mov ebx, eax
sub ebx, edx
mov ebp, ecx
sbb ebp, edi
mov dword [esi + 0x228], edx
mov edx, dword [esp + 0x18]
add ebx, edx
mov dword [esi + 0x22c], edi
mov edi, dword [esp + 0x1c]
adc ebp, edi
mov dword [esi + 0x220], ebx
mov ebx, edx
sub ebx, dword [esp + 0x20]
mov dword [esi + 0x218], eax
sbb edi, dword [esp + 0x24]
add eax, edx
push edi
mov edi, dword [esp + 0x20]
push ebx
push edi
push edx
mov ebx, ebp
push ebx
mov ebx, dword [esi + 0x220]
push ebx
adc ecx, edi
push ecx
push eax
mov ecx, esi
mov dword [esi + 0x224], ebp
call fcn.00414cb0
pop edi
pop ebp
pop ebx
add esp, 0x48
ret
Function at 0x415fe0
Capabilities:
Capture screenshot

Disassembly:
mov eax, dword [esi + 0x210]
sub esp, 0x34
push ebx
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowDC]
mov edi, eax
test edi, edi
je 0x416132
cmp dword [esi + 0x240], 0
jne 0x416012
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esi + 0x240], eax
cmp dword [esi + 0x244], 0
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
jne 0x416052
push 0xa
push edi
call ebx
add eax, eax
push eax
push 8
push edi
call ebx
add eax, eax
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 0x240]
push eax
push ecx
mov dword [esi + 0x244], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x248], eax
push 0xcc0020
push 0
push 0
push edi
push 0xa
push edi
call ebx
add eax, eax
push eax
push 8
push edi
call ebx
mov edx, dword [esi + 0x240]
add eax, eax
push eax
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
jne 0x416095
mov eax, dword [esi + 0x210]
push edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop ebx
add esp, 0x34
ret
mov edx, dword [esi + 4]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esi + 0x210]
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0x28]
lea ebx, [esp + 8]
mov ecx, esi
call fcn.00416140
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
push 4
push ebx
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 0xcc0020
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x10]
sub edx, ecx
push edx
mov edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x24]
push eax
mov eax, dword [esi + 0x240]
push ecx
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x30]
push eax
push ecx
push edx
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esi + 4]
push ebx
mov ebx, dword [sym.imp.USER32.dll_ReleaseDC]
push eax
call ebx
mov ecx, dword [esi + 0x210]
push edi
push ecx
call ebx
pop edi
pop ebx
add esp, 0x34
ret
Function at 0x4176e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [edi + 4]
sub esp, 0x10
push ebx
push esi
mov esi, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x17c]
call edx
add eax, 0xffffff9b
cmp eax, 0x68
ja case.0x41770d.103
movzx eax, byte [eax + 0x4177fc]
jmp dword [eax*4 + 0x4177dc]
mov bl, 1
call fcn.00417910
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 8]
call dword [sym.imp.K8UIRender.dll_public:_void___thiscall_GameMgr::GMRect::constructor_void_]
mov edx, dword [esi + 4]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 4
push 0
sub ecx, eax
push ecx
mov ecx, dword [esi + 0x22c]
push edx
push eax
push 0
call dword [sym.imp.K8UIRender.dll_public:_struct_HWND______thiscall_GameMgr::GMWindowWnd::GetHWND_void_const]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esi + 0x22c]
push 6
call dword [sym.imp.K8UIRender.dll_public:_struct_HWND______thiscall_GameMgr::GMWindowWnd::operator_struct_HWND____void_const]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004178d0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc0]
call edx
mov edx, eax
mov ecx, esi
call fcn.00417b80
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00417870
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc0]
call edx
mov ebx, eax
mov ecx, esi
call fcn.004179d0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor bl, bl
call fcn.00417910
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41c300
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x465454
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x49001c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
lea eax, [esi + 0x4c]
mov dword [esp + 0x14], 4
call fcn.0041d460
lea eax, [esi + 0x40]
mov byte [esp + 0x14], 3
call fcn.0041d250
lea ebx, [esi + 0x30]
mov byte [esp + 0x14], 2
call fcn.004044e0
lea ebx, [esi + 0x20]
mov byte [esp + 0x14], 1
call fcn.004044e0
lea ebx, [esi + 0x10]
mov byte [esp + 0x14], 0
call fcn.004044e0
mov eax, dword [esi + 4]
test eax, eax
je 0x41c37a
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x41e7d0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4628f8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push edi
mov eax, dword [0x49001c]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ecx, 0x4915c8
mov dword [esp + 0xc], 0x4915c8
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
xor ebx, ebx
mov ecx, 0x4915e4
mov dword [esp + 0x34], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov ecx, 0x491600
mov byte [esp + 0x34], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov ecx, 0x49161c
mov byte [esp + 0x34], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push 0x491650
mov byte [esp + 0x38], 3
call fcn.00421c30
mov dword [0x49166c], ebx
mov dword [0x491670], ebx
mov ecx, 0x491674
mov byte [esp + 0x34], 5
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMBaseEvent::constructor_void_]
mov byte [esp + 0x34], 6
mov edi, 0x491650
mov dword [0x491638], ebx
mov dword [0x49163c], ebx
call fcn.00421cf0
push ebx
push ebx
push ebx
push ebx
mov ecx, 0x491674
mov dword [0x491694], ebx
mov dword [0x491698], ebx
mov word [0x491664], bx
mov word [0x491666], bx
mov word [0x491668], bx
mov word [0x49166a], bx
mov dword [0x49164c], 0xfffffffe
call dword [sym.imp.K8Common.dll_public:_unsigned_long_int___thiscall_GameMgr::GMBaseEvent::Create_bool__bool__wchar_t_const___struct__SECURITY_ATTRIBUTES__]
lea edi, [esp + 0x10]
call fcn.00435e90
cmp dword [eax + 0x18], 8
jb 0x41e8d4
mov eax, dword [eax + 4]
jmp 0x41e8d7
add eax, 4
push eax
push ebx
push 0x46da70
push str.GUEST
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea ecx, [esp + 0x10]
mov dword [0x491640], eax
mov dword [0x491644], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [0x49169c], bl
mov eax, 0x4915c8
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x2c
ret
Function at 0x431340
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 8]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp]
push 0
push 0
push 0x10
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x14
ret

Function at 0x432c50
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
movzx edx, byte [ecx + 0x210]
movzx eax, byte [ecx + 0x211]
xor eax, edx
xor eax, dword [ecx + 4]
mov edx, 0xd
xor eax, dword [ecx]
add ecx, 8
push esi
mov edi, edi
mov esi, dword [ecx + 0x10]
xor esi, dword [ecx + 0xc]
add ecx, 0x14
xor esi, dword [ecx - 0xc]
xor esi, dword [ecx - 0x10]
xor esi, dword [ecx - 0x14]
xor eax, esi
sub edx, 1
jne 0x432c70
pop esi
ret
Function at 0x432eb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x463ccf
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49001c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
xor ebx, ebx
lea ebp, [edi + 0x14]
mov ecx, ebp
mov byte [edi], bl
mov dword [edi + 4], ebx
mov byte [edi + 8], bl
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov dword [esp + 0x38], ebx
mov byte [edi + 0x30], 1
call fcn.00434af0
mov dword [edi + 0x38], eax
mov byte [eax + 0x2d], 1
mov eax, dword [edi + 0x38]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x38]
mov dword [eax], eax
mov eax, dword [edi + 0x38]
mov dword [eax + 8], eax
mov dword [edi + 0x3c], ebx
mov byte [esp + 0x38], 1
mov esi, dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMMutex::constructor_void_]
lea ecx, [edi + 0x40]
call esi
mov dword [edi + 0x48], ebx
mov dword [edi + 0x4c], ebx
mov dword [edi + 0x50], ebx
lea ecx, [edi + 0x54]
mov byte [esp + 0x38], 3
call esi
lea ecx, [edi + 0x58]
mov byte [esp + 0x38], 4
call esi
mov bl, 5
mov byte [esp + 0x38], bl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.MSVCR80.dll_srand]
add esp, 4
lea esi, [esp + 0x14]
call fcn.00433950
push eax
mov ecx, ebp
mov byte [esp + 0x3c], 6
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov ecx, esi
mov byte [esp + 0x38], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
Function at 0x432fc0
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x464c56
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49001c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov dword [esp + 0x24], 5
mov ebp, dword [esp + 0x2c]
mov ebx, dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMMutex::UnLock_void_]
lea esi, [ebp + 0x44]
add ebp, 0x54
nop
mov ecx, ebp
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMMutex::Lock_void_]
mov eax, dword [esi + 4]
test eax, eax
je 0x433096
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 2
je 0x433096
mov edi, dword [esi + 8]
cmp eax, edi
jbe 0x43302a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea eax, [edi - 4]
cmp eax, dword [esi + 8]
mov dword [esp + 0x18], edi
ja 0x43303b
cmp eax, dword [esi + 4]
jae 0x433041
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add edi, 0xfffffffc
cmp edi, dword [esi + 8]
jb 0x43304f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 4]
test eax, eax
mov edi, dword [edi]
je 0x43306a
mov ecx, dword [esi + 8]
mov edx, ecx
sub edx, eax
sar edx, 2
je 0x43306a
add ecx, 0xfffffffc
mov dword [esi + 8], ecx
mov ecx, ebp
call ebx
push 0x3e8
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x43308a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x433000
mov ecx, ebp
call ebx
mov byte [esp + 0x24], 4
mov ecx, dword [esp + 0x2c]
mov edi, dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMMutex::destructor_void_]
add ecx, 0x58
call edi
mov ecx, ebp
mov byte [esp + 0x24], 3
call edi
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, ebx
je 0x4330c9
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov byte [esp + 0x24], 1
mov esi, dword [esp + 0x2c]
lea ecx, [esi + 0x40]
call edi
lea eax, [esi + 0x34]
mov byte [esp + 0x24], bl
call fcn.004346b0
lea ecx, [esi + 0x14]
mov dword [esp + 0x24], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4

Function at 0x433120
Capabilities:
Create pipe
Create thread

Disassembly:
cmp dword [esi + 0x10], 0xffffffff
je 0x433129
xor al, al
ret
cmp byte [esi], 0
je 0x433134
cmp dword [esi + 4], 0
jne 0x433126
cmp dword [esi + 0x2c], 8
jb 0x43313f
mov eax, dword [esi + 0x18]
jmp 0x433142
lea eax, [esi + 0x18]
push 0
push 0
push 0x1000
push 0x1000
push 0xff
push 5
push 3
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
mov dword [esi + 0x10], eax
je 0x433126
push 0
push 0
push esi
push 0x433390
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
mov byte [esi], 1
mov al, 1
ret
Function at 0x433a50
Capabilities:
Create thread

Disassembly:
push ecx
cmp byte [esi], 0
je 0x433a60
cmp dword [esi + 4], 0
je 0x433a60
xor al, al
pop ecx
ret
cmp dword [ebx + 0x18], 8
push edi
lea edi, [ebx + 4]
jb 0x433a6e
mov eax, dword [edi]
jmp 0x433a70
mov eax, edi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x433aa3
cmp dword [ebx + 0x18], 8
jb 0x433a85
mov edi, dword [edi]
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x10], eax
jne 0x433aa8
xor al, al
pop edi
pop ecx
ret
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push eax
mov dword [esp + 0x14], 1
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
cmp byte [esi + 0x30], 0
je 0x433ad0
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
push 0
push 0
push esi
push 0x433390
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
mov byte [esi], 0
mov al, 1
pop edi
pop ecx
ret
Function at 0x433f90
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 8
push esi
push 0
push 4
mov esi, eax
push esi
push 0x4331b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x22c], eax
lea esi, [edi + 0x54]
mov ecx, esi
mov dword [esp + 8], eax
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMMutex::Lock_void_]
lea eax, [esp + 8]
push eax
lea eax, [edi + 0x44]
call fcn.00434ca0
add esp, 4
mov ecx, esi
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMMutex::UnLock_void_]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
add esp, 8
ret
Function at 0x435b60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45e9b3
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x49001c]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov eax, dword [0x49001c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea esi, [esp + 0x10]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
call fcn.00435c10
mov esi, 1
mov dword [esp + 0x38], esi
cmp dword [esp + 0x24], 0
je 0x435bd2
push str.link.ini
lea ecx, [esp + 0x14]
call dword [0x469ee0]
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
jmp 0x435bdf
push 0x46a2ac
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [esp + 0x10]
mov dword [esp + 8], esi
mov byte [esp + 0x38], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0045d098
add esp, 0x34
ret