joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4916b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
xor eax, eax
push ebp
push 0x491719
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x49172c
call fcn.004051e8
mov eax, dword [ebp - 4]
call fcn.0040a654
test al, al
je 0x4916fe
push 0
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, 0x491758
call fcn.00405478
mov eax, dword [ebp - 8]
call fcn.004055f0
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491720
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405174
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d7a
nop
sub eax, 0x403d20
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x403890
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x472bb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov esi, ecx
mov dword [esp + 0x28], 0
call sub.MFC42u.DLL_CGdiObject::DeleteObject
mov eax, dword [esp + 0x30]
push 0x2010
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.USER32.dll_LoadImageW]
mov edi, eax
test edi, edi
je 0x40393d
push edi
mov ecx, esi
call sub.MFC42u.DLL_CGdiObject::Attach
test eax, eax
je 0x403936
mov edx, dword [esi + 4]
lea ecx, [esp + 8]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x40392f
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov dword [esi + 0xc], ecx
lea ecx, [esp + 0x30]
mov dword [esi + 8], eax
mov dword [esp + 0x28], 0xffffffff
call fcn.00465724
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
mov ecx, esi
call sub.MFC42u.DLL_CGdiObject::Detach
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.00465724
mov ecx, dword [esp + 0x20]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 4

Function at 0x403be0
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x403c93
push str.BlueVipHelperU.dll
call fcn.0045ce30
add esp, 4
mov dword [esi + 0xc], eax
test eax, eax
je 0x403c65
push str.GetBlueVipHelper
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403c55
call eax
test eax, eax
mov dword [esi + 4], eax
je 0x403c45
mov edx, dword [eax]
push 0x53
mov ecx, eax
call dword [edx]
mov eax, dword [0x4942a0]
test eax, eax
je 0x403c70
mov ecx, dword [esi + 4]
mov eax, dword [eax + 0x20]
push 0x48c154
push eax
mov edx, dword [ecx]
call dword [edx + 0x30]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
pop esi
ret
push 0
push 0
push 0x48c12c
call sub.MFC42u.DLL_AfxMessageBox
jmp 0x403c70
push 0
push 0
push 0x48c100
call sub.MFC42u.DLL_AfxMessageBox
jmp 0x403c70
push 0x48c0c4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x403c85
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0xc], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x403c93
mov dword [esi + 4], 0
mov eax, dword [esi + 4]
pop esi
ret
Function at 0x405460
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x472e48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
mov ebx, 1
call sub.MFC42u.DLL_CString::CString_2
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0
call sub.MFC42u.DLL_CString::CString_2
mov eax, dword [0x4942ec]
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x28], bl
call fcn.00468ac0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 2
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], bl
call fcn.00465724
mov edx, dword [esp + 0x10]
push str.paramconfig.cfg
push edx
lea eax, [esp + 0x14]
push 0x48c308
push eax
call sub.MFC42u.DLL_CString::Format
mov ecx, dword [esp + 0x1c]
push 0x48c474
push ecx
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 0x18
test esi, esi
je 0x4055ce
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fwrite]
push esi
push ebx
lea edx, [edi + 0xf8]
push 4
push edx
call ebp
add esp, 0x10
test eax, eax
jne 0x405522
xor ebx, ebx
push esi
push 1
lea eax, [edi + 0x118]
push 4
push eax
call ebp
add esp, 0x10
test eax, eax
jne 0x405539
xor ebx, ebx
push esi
push 1
lea ecx, [edi + 0x114]
push 4
push ecx
call ebp
add esp, 0x10
test eax, eax
jne 0x405550
xor ebx, ebx
push esi
push 1
lea edx, [edi + 0x110]
push 4
push edx
call ebp
add esp, 0x10
test eax, eax
jne 0x405567
xor ebx, ebx
push esi
push 1
lea eax, [edi + 0x10c]
push 4
push eax
call ebp
add esp, 0x10
test eax, eax
jne 0x40557e
xor ebx, ebx
push esi
push 1
lea ecx, [edi + 0xfc]
push 4
push ecx
call ebp
add esp, 0x10
test eax, eax
jne 0x405595
xor ebx, ebx
push esi
push 1
lea edx, [edi + 0x11c]
push 4
push edx
call ebp
add esp, 0x10
test eax, eax
jne 0x4055ac
xor ebx, ebx
push esi
push 1
add edi, 0x120
push 4
push edi
call ebp
add esp, 0x10
test eax, eax
pop ebp
jne 0x4055c4
xor ebx, ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call fcn.00465724
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.00465724
mov ecx, dword [esp + 0x18]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x4060e0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x208
push ebp
push esi
push edi
xor esi, esi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
call fcn.00469057
mov ecx, dword [eax]
add esp, 4
lea edx, [esp + 0x14]
push ecx
push 0x48c6f8
push 0xff
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea ecx, [esp + 0xc]
call fcn.00465724
lea eax, [esp + 0x14]
push esi
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, esi
jbe 0x4061ec
push edi
call sub.MFC42u.DLL_operatornew
mov ebp, eax
add esp, 4
cmp ebp, esi
je 0x4061ec
push ebp
push edi
lea ecx, [esp + 0x1c]
push esi
push ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4061e3
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
push eax
push 0x48c6f4
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4061e3
mov ecx, dword [esp + 0xc]
push ebx
mov eax, dword [ecx + 8]
mov edi, dword [ecx + 0xc]
mov esi, eax
and eax, 0xffff
mov ecx, edi
mov ebx, eax
shr ecx, 0x10
mov eax, 0x51eb851f
mul ecx
shr edx, 5
shr esi, 0x10
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
shl eax, 2
sub ecx, eax
lea eax, [esi + esi*4]
and edi, 0xffff
lea eax, [eax + eax*4]
lea eax, [ebx + eax*4]
pop ebx
lea eax, [eax + eax*4]
lea eax, [edx + eax*2]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
lea eax, [ecx + edx*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea esi, [edi + eax*4]
push ebp
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x208
ret
Function at 0x406620
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x473028
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
push edi
mov edi, ecx
push 0x4941b0
lea ecx, [esp + 0x10]
call fcn.004658c8
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
call fcn.00469057
add esp, 4
push str...hcq.dll
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x30], 1
call sub.MFC42u.DLL_operator_3
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.00465724
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 0
call fcn.00465724
mov edx, dword [esp + 0xc]
push edx
call fcn.0045ce30
add esp, 4
mov dword [edi + 0xc8], eax
test eax, eax
je 0x406778
push str.DllGetClassObject
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4066d7
mov eax, dword [edi + 0xc8]
push eax
jmp 0x406772
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
push 0x47f46c
push 0x47bba0
call eax
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40676b
test eax, eax
jl 0x40676b
mov edx, dword [ecx]
lea esi, [edi + 0xd0]
push esi
push 0x47bb80
push 0
push ecx
call dword [edx + 0xc]
mov ebp, eax
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi]
test eax, eax
je 0x406756
test ebp, ebp
jl 0x406756
mov edx, dword [eax]
push 0x10
push eax
call dword [edx + 0xc]
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00465724
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov eax, dword [edi + 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi], 0
jmp 0x406778
mov ecx, dword [edi + 0xc8]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00465724
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4069d0
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.00406b00
mov eax, dword [esp + 0x14]
test eax, eax
je 0x406ae7
mov cl, byte [ebx + 0xd]
lea esi, [ebx + 0xd]
test cl, cl
jne 0x406a01
push 0x103
push eax
push esi
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov edi, dword [sym.imp.MSVCRT.dll_fopen]
push 0x48c748
push esi
call edi
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x406a39
mov al, byte [esp + 0x18]
test al, al
je 0x406ae7
push 0x48c744
push esi
call edi
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x406ae7
push 2
push 0
push ebp
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
test eax, eax
push ebp
jne 0x406ade
call dword [sym.imp.MSVCRT.dll_ftell]
mov edi, eax
lea esi, [edi + 1]
push esi
call sub.MFC42u.DLL_operatornew
push esi
mov dword [ebx], eax
call sub.MFC42u.DLL_operatornew
mov ecx, dword [ebx]
add esp, 0xc
test ecx, ecx
mov dword [ebx + 4], eax
je 0x406add
test eax, eax
je 0x406add
push 0
push 0
push ebp
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
test eax, eax
push ebp
jne 0x406ade
mov eax, dword [ebx]
push edi
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [ebx]
mov dword [ebx + 8], eax
mov byte [eax + ecx], 0
mov ecx, dword [ebx + 8]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
inc ecx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
inc eax
push eax
push ecx
call fcn.00407570
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x1c
mov byte [ebx + 0xc], 1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 8
Function at 0x407c30
Capabilities:
Check os version
Create process on windows

Disassembly:
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
sub esp, 0x568
push esi
push edi
push eax
mov eax, dword [esp + 0x58c]
push edx
mov edx, dword [esp + 0x58c]
push eax
mov eax, dword [esp + 0x58c]
push edx
mov edx, dword [esp + 0x58c]
push eax
mov eax, dword [esp + 0x58c]
push edx
mov edx, dword [esp + 0x58c]
push eax
push edx
push 0x47bd80
call sub.MFC42u.DLL_CWnd::CreateControl
test eax, eax
je 0x407c90
pop edi
mov eax, 1
pop esi
add esp, 0x568
ret 0x20
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x162]
mov word [esp + 0x160], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x160]
push 0x103
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.MSVCRT.dll_wcsrchr]
lea ecx, [esp + 0x160]
push 0x5c
push ecx
call esi
add esp, 8
test eax, eax
je 0x407e2e
lea edx, [esp + 0x160]
push 0x5c
push edx
mov word [eax], 0
call esi
add esp, 8
test eax, eax
je 0x407e2e
mov word [eax], 0
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x36a]
mov word [esp + 0x368], 0
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x160]
push str.ClientCommon1013RegDll.exe
push eax
push 0x48c308
lea ecx, [esp + 0x374]
push 0x103
push ecx
call esi
lea edx, [esp + 0x37c]
push 0
push edx
call dword [sym.imp.MSVCRT.dll__waccess]
add esp, 0x1c
test eax, eax
jne 0x407e2e
lea eax, [esp + 0x368]
lea ecx, [esp + 0x160]
push eax
push str.__s_
push 0x103
push ecx
call esi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x18]
add esp, 0x10
rep stosd dword es:[edi], eax
mov ecx, 0x47
lea edi, [esp + 0x44]
mov dword [esp + 0x10], eax
lea edx, [esp + 0x160]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x44]
mov dword [esp + 8], 0x3c
push eax
mov dword [esp + 0x10], 0x40
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], str.Regedit
mov dword [esp + 0x24], 0x4941b0
mov dword [esp + 0x28], 1
mov dword [esp + 0x48], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x407e2e
cmp dword [esp + 0x54], 2
jne 0x407dfa
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], str.runas
cmp eax, 6
jae 0x407e02
mov dword [esp + 0x14], str.open
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edx, dword [esp + 0x40]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0x48c818
push 0x48c7f4
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
xor eax, eax
pop esi
add esp, 0x568
ret 0x20

Function at 0x40e680
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
mov esi, ecx
push str.Mansion::OnReadFromStreamWhole
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0044ede0
mov ecx, dword [esi + 0x3ac]
mov bl, al
test ecx, ecx
je 0x40e6ac
mov edx, dword [ecx]
call dword [edx + 0x24]
mov al, bl
pop esi
pop ebx
ret 4
Function at 0x40e681
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
mov esi, ecx
push str.Mansion::OnReadFromStreamWhole
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0044ede0
mov ecx, dword [esi + 0x3ac]
mov bl, al
test ecx, ecx
je 0x40e6ac
mov edx, dword [ecx]
call dword [edx + 0x24]
mov al, bl
pop esi
pop ebx
ret 4
Function at 0x4179e0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
sub esp, 0x80
push esi
push edi
mov edi, dword [esp + 0x8c]
mov esi, ecx
mov ecx, edi
call sub.MFC42u.DLL_CString::Empty
mov eax, dword [esi + 4]
test eax, eax
je 0x417a8f
test byte [eax], 8
je 0x417a14
push str.Ctrl
mov ecx, edi
call fcn.00465b38
mov eax, dword [esi + 4]
test byte [eax], 4
je 0x417a28
push str.Shift
mov ecx, edi
call fcn.00465b38
mov ecx, dword [esi + 4]
test byte [ecx], 0x10
je 0x417a3c
push str.Alt
mov ecx, edi
call fcn.00465b38
mov eax, dword [esi + 4]
test byte [eax], 1
je 0x417a7b
xor edx, edx
push 0
mov dx, word [eax + 2]
push edx
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
lea ecx, [esp + 8]
push 0x40
shl eax, 0x10
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
lea edx, [esp + 8]
mov ecx, edi
push edx
call fcn.00465b38
pop edi
pop esi
add esp, 0x80
ret 4
cmp word [eax + 2], 0x1b
je 0x417a8f
movsx ax, byte [eax + 2]
push eax
mov ecx, edi
call sub.MFC42u.DLL_CString::operator
pop edi
pop esi
add esp, 0x80
ret 4

Function at 0x419860
Capabilities:
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x47423b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
lea eax, [esp + 0x14]
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 0x10]
push str.KyodaiGame
push ecx
lea esi, [ebx + 0x324]
push str._sTencentQQGame_sSettingUserSetting.ini
push 0x103
push esi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
mov ecx, ebx
push esi
call fcn.00419a30
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_2
mov edx, dword [esp + 0x228]
lea eax, [esp + 0xc]
push edx
push 0x48d31c
push eax
mov dword [esp + 0x22c], 0
call sub.MFC42u.DLL_CString::Format
mov ecx, dword [esp + 0x18]
add esp, 0xc
push esi
push 0x493e0
push str.nLastingTime
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x220], 0xffffffff
call fcn.00465724
mov ecx, dword [esp + 0x218]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x218
ret 4

Function at 0x419a30
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
push edi
push 0x103
push eax
push 0x4d887c
call dword [sym.imp.MSVCRT.dll_wcsncpy]
mov ebp, dword [sym.imp.MSVCRT.dll__waccess]
mov ebx, dword [sym.imp.MSVCRT.dll_wcschr]
add esp, 0xc
mov edi, 0x4d887c
push 0x5c
push edi
call ebx
mov esi, eax
add esp, 8
test esi, esi
jne 0x419a79
push 0x2f
push edi
call ebx
mov esi, eax
add esp, 8
test esi, esi
je 0x419ab7
push 0
push 0x4d887c
mov word [esi], 0
call ebp
add esp, 8
test eax, eax
je 0x419aa0
push 0x4d887c
call dword [sym.imp.MSVCRT.dll__wmkdir]
add esp, 4
test eax, eax
jne 0x419aae
test esi, esi
mov word [esi], 0x5c
lea edi, [esi + 2]
je 0x419ab7
jmp 0x419a5d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
Function at 0x423fe0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4752b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::CString_2
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x44]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x58]
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x34], 0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
call sub.MFC42u.DLL_CString::operator_1
mov dl, byte [esp + 0x50]
mov eax, dword [esi + 0x16f90]
mov byte [esp + 0x24], dl
lea ecx, [esi + 0x16f88]
lea edx, [esp + 4]
push edx
push 1
push eax
call fcn.004253a0
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0xffffffff
call fcn.00465724
mov ecx, dword [esp + 0x28]
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret 0x24
Function at 0x4337e8
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
lea ebp, [esi + 0xc44]
lea ebx, [esi + 0x5d8c]
mov ecx, dword [ebx + 0x136ac]
call fcn.004463b0
push 1
push 1
push edi
mov ecx, esi
mov dword [ebx], 0
call fcn.0042ac20
lea ecx, [esi + 0x5e90]
call fcn.00448620
mov ecx, esi
call fcn.004300f0
mov eax, dword [ebp]
push 0
mov ecx, ebp
call dword [eax + 0x5c]
inc edi
add ebx, 4
cmp edi, 6
jl 0x4337fa
mov eax, dword [esi + 0x17c00]
xor ebx, ebx
cmp eax, ebx
jne 0x433914
mov eax, dword [esi + 0x17bfc]
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp eax, ebx
jne 0x4338d6
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], bx
rep stosd dword es:[edi], eax
push ebx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea ecx, [esp + 0x10]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x10]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
cmp eax, ebx
je 0x4338a0
mov word [eax + 2], bx
lea eax, [esp + 0x10]
push str...LogicAvMgrGm.dll
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x17bfc], eax
jne 0x4338d6
push str.ERROR:_Load_advertisement_manager_for_game_DLL_fail._Path:
call ebp
lea edx, [esp + 0x10]
push edx
call ebp
mov eax, dword [esi + 0x17bfc]
cmp eax, ebx
je 0x433914
push str.CreateObject
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x43390d
push 0x1f001
call eax
add esp, 4
cmp eax, ebx
je 0x433906
mov dword [esi + 0x17c00], eax
jmp 0x433914
push str.ERROR:_Cannt_create_Advertisement_Manager_Object._n
jmp 0x433912
push str.ERROR:_Cannt_find_CreateObject___in_Advertisement_Manager_DLL._n
call ebp
mov eax, dword [esi + 0x17c00]
cmp eax, ebx
je 0x433947
cmp esi, ebx
je 0x43393c
lea ecx, [eax + 4]
add esi, 0x17c04
push ebx
push esi
mov eax, dword [ecx]
call dword [eax]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
lea ecx, [eax + 4]
xor esi, esi
push ebx
push esi
mov eax, dword [ecx]
call dword [eax]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x434060
Capabilities:
Read .ini file
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4763a1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x324
push ebx
push ebp
mov ebp, ecx
push esi
xor ebx, ebx
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
call sub.MFC42u.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov dword [esp + 0x33c], ebx
call sub.MFC42u.DLL_CString::CString_2
mov eax, dword [0x4942ec]
lea ecx, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x344], 1
call fcn.00468ac0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x340], 2
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0x28]
mov byte [esp + 0x33c], 1
call fcn.00465724
mov edx, dword [esp + 0x10]
push str.localkyodaimap.map
push edx
lea eax, [esp + 0x1c]
push 0x48c308
push eax
call sub.MFC42u.DLL_CString::Format
mov ecx, dword [esp + 0x24]
push 0x48c49c
push ecx
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 0x18
cmp esi, ebx
mov dword [esp + 0x1c], esi
je 0x434149
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x28]
push 4
push edx
call edi
mov eax, dword [esp + 0x30]
mov ecx, dword [ebp + 0x18ee8]
add esp, 0x10
cmp eax, ecx
push esi
je 0x434175
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x33c], 0
call fcn.00465724
lea ecx, [esp + 0x10]
mov dword [esp + 0x33c], 0xffffffff
call fcn.00465724
xor eax, eax
jmp 0x4342af
push 1
lea ecx, [esp + 0x34]
push 4
push ecx
call edi
push esi
push 1
lea edx, [esp + 0x30]
push 4
push edx
call edi
add esp, 0x20
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
push str.localmapinfonew.ini
push eax
push ecx
call sub.MFC42u.DLL_operator_3
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12e]
mov word [esp + 0x12c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp dword [esp + 0x18], ebx
jle 0x434271
mov ebp, 0x4dc410
mov ecx, 0x46
xor eax, eax
mov edi, ebp
push esi
rep stosd dword es:[edi], eax
mov ecx, 0x3f
lea edi, [esp + 0x34]
push 1
lea edx, [esp + 0x38]
push 0xfc
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, 0x37
lea esi, [esp + 0x40]
mov edi, ebp
add esp, 0x10
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x12c]
push ebx
rep stosd dword es:[edi], eax
push str.MapName_d
lea eax, [esp + 0x134]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, dword [esp + 0x34]
add esp, 0x10
lea edx, [ebp + 0xdc]
lea eax, [esp + 0x12c]
push ecx
push 0x103
push edx
push 0x48f390
push eax
push str.MapInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
inc ebx
add ebp, 0x118
cmp ebx, eax
jl 0x4341cc
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov esi, dword [esp + 0x1c]
add esp, 4
lea ecx, [esp + 0x24]
call fcn.00465724
lea ecx, [esp + 0x14]
mov byte [esp + 0x33c], 0
call fcn.00465724
lea ecx, [esp + 0x10]
mov dword [esp + 0x33c], 0xffffffff
call fcn.00465724
mov eax, esi
mov ecx, dword [esp + 0x334]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x330
ret