joyce8/EMBER2024-capa huggingface dataset:
Function at 0x493ac0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x493c41
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4db2d4], 0
jne 0x493c1e
push 0x4e0d28
call sub.kernel32.dll_EnterCriticalSection_1
xor eax, eax
push ebp
push 0x493c17
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4db2d4], 0
jne 0x493bff
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404c94
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.00404b08
push eax
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.004089fc
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea edx, [ebp - 0x14]
xor ecx, ecx
mov eax, 0x493c58
call fcn.00409c8c
mov eax, dword [ebp - 0xc]
call fcn.00404b08
push eax
push 0x80000000
call sub.advapi32.dll_RegQueryValueA
test eax, eax
jne 0x493b80
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404c94
jmp 0x493bb7
lea eax, [ebp - 8]
mov edx, 0x493c78
call fcn.004046f0
xor eax, eax
push ebp
push 0x493bad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004796fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x493bb7
mov eax, dword [ebp - 8]
call fcn.00404b08
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4db2d4], eax
cmp dword [0x4db2d4], 0
jne 0x493bea
mov ecx, dword [0x4defe8]
mov dl, 1
mov eax, dword [0x407da4]
call fcn.0040cd88
call fcn.004040b8
push 0x493c84
mov eax, dword [0x4db2d4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4e0d40], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
mov dword [eax], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x493c48
lea eax, [ebp - 0x18]
call fcn.00404658
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0040467c
ret
Function at 0x4a076c
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
cmp byte [ebx + 0x87], 0
je 0x4a07a7
cmp dword [ebx + 0x5c], 0
je 0x4a07a7
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb8]
mov edx, eax
mov eax, esi
call fcn.00498b50
xor eax, eax
mov dword [ebx + 0x5c], eax
mov byte [ebx + 0x87], 0
cmp dword [ebx + 0x5c], 0
jne 0x4a08f2
cmp dword [ebx + 0x7c], 0
jne 0x4a07cd
mov dl, 1
mov eax, dword [0x416214]
call fcn.004037f8
mov dword [ebx + 0x7c], eax
cmp dword [ebx + 0xc], 0
je 0x4a08cb
mov eax, dword [ebx + 0xc]
push eax
mov al, byte [0x4a08f8]
push eax
mov al, byte [0x4a08fc]
push eax
push 0
mov eax, dword [ebx + 0x7c]
push eax
mov eax, dword [0x4df008]
push eax
mov ecx, dword [ebx + 0x68]
mov dl, 1
mov eax, dword [0x48fb44]
call fcn.004919b0
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x4a08c4
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebx + 0x5c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
push eax
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.00498b50
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xc0]
mov edx, eax
mov eax, esi
call fcn.00498b50
mov eax, dword [ebx + 0x40]
push eax
lea eax, [ebx + 0x70]
mov ecx, 1
mov edx, dword [0x496594]
call fcn.00405d68
add esp, 4
mov eax, dword [ebx + 0x30]
cmp eax, 0x1a
jge 0x4a0897
mov edx, dword [0x4df204]
mov al, byte [edx + eax]
mov byte [ebx + 0x74], al
jmp 0x4a08a8
cmp eax, 0x1007
jne 0x4a08a4
mov byte [ebx + 0x74], 0x18
jmp 0x4a08a8
mov byte [ebx + 0x74], 0
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0x78], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a08f2
mov eax, dword [ebp - 4]
call fcn.00403828
ret
lea eax, [ebx + 0x5c]
push eax
push 0
push 0
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.00498b50
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4a0f1c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xffffffb8
mov dword [esp], eax
mov eax, dword [0x4df174]
cmp byte [eax], 0
je 0x4a0f76
mov eax, dword [0x4dee54]
call fcn.00402edc
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
call fcn.004094d8
push eax
lea eax, [esp + 0xc]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 8]
push eax
push 2
push 0x4a0fb8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4a0fac
push 0x40
lea eax, [esp + 0xc]
push eax
mov eax, dword [0x4dedf8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4e0718]
call fcn.00405f70
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 8]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x48
ret
Function at 0x4a34c8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0x200
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.kernel32.dll_GetLocaleInfoA_1
push 0x4dbab7
lea ecx, [ebp - 0x200]
push ecx
call fcn.004a10c4
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.004a1084
pop ecx
mov edx, 0x200
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.004a1084
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
push 0x4dbab9
lea ecx, [ebp - 0x200]
push ecx
call fcn.004a10c4
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.004a1084
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.004a4ef0
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x4a35d9
push esi
call fcn.004a1084
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.004a1084
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.004a0fbc
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x4a35b0
xor eax, eax
jmp 0x4a3660
push esi
call fcn.004a1084
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.004a1084
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.004a1050
add esp, 0xc
jmp 0x4a3619
mov edi, dword [ebx + 0x24]
push edi
call fcn.004a1084
pop ecx
push eax
push esi
call fcn.004a1084
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.004a1084
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.004a0ff8
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x4a3619
xor eax, eax
jmp 0x4a3660
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.004a10c4
add esp, 8
push 0x4dbabb
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004a10c4
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.004a10c4
add esp, 8
push 0x4dbabd
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004a10c4
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a6051
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 4]
push ecx
push 0
push 0x4001f
push 0
push 0
push 0
push eax
push 0x80000000
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x4a60a5
push esi
call fcn.004a1084
pop ecx
inc eax
push eax
push esi
push 1
push 0
push edi
push dword [ebp - 4]
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4d0870
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d0ad0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4d08d3
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004d0388
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d598
cmp al, 1
jne 0x4d08d3
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004d0650
test al, al
je 0x4d0a5f
cmp dword [ebp - 8], 0
jge 0x4d08f1
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004d0388
mov eax, dword [ebp - 0x210]
call fcn.00404910
cmp ebx, eax
jge 0x4d093b
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004d0388
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4df2dc]
and eax, 0xff
bt dword [edx], eax
jae 0x4d093b
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4d094f
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004d084c
cmp ebx, dword [ebp - 8]
je 0x4d0a51
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4d097b
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403a24
and eax, 0x7f
movzx eax, word [eax*2 + 0x4dec54]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4d0a3e
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403a24
and eax, 0x7f
movzx eax, word [eax*2 + 0x4dec54]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00446044
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403a24
and eax, 0x7f
movzx eax, word [eax*2 + 0x4dec54]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00446044
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0a45
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4d0ab2
cmp dword [ebp - 8], 0
jge 0x4d0a6a
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004d0388
mov eax, dword [ebp - 0x218]
call fcn.00404910
cmp eax, dword [ebp - 8]
jg 0x4d0aa4
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004d0388
mov eax, dword [ebp - 0x21c]
call fcn.00404910
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004d084c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0ad7
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.0040467c
ret
Function at 0x401028
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x463161
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
push 0
mov dword [esp + 8], esi
call fcn.004506b4
push str.Launcher
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
mov dword [esi], 0x46e9d8
mov dword [esi + 0xa4], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 1
push 1
push eax
mov byte [esp + 0x38], 1
call fcn.00445110
add esp, 0xc
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x401590
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4632a9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
mov ecx, esi
mov dword [esp + 8], edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetManager]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::StringLength]
add esp, 4
push eax
push edi
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Concatenate]
mov esi, dword [esp + 0x30]
add esp, 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x402300
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x463454
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call dword [0x46e148]
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0
call dword [0x46e148]
mov eax, dword [str.launcherpatch.exe.cab]
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push 0x2e
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
call sub.MFC71.DLL_AfxGetModuleState
mov edi, dword [eax + 4]
test edi, edi
je 0x40241d
mov edx, dword [esp + 8]
mov eax, dword [0x4b3a40]
push edx
push eax
lea ecx, [esp + 0x18]
push str.__s_s_
push ecx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
mov edx, dword [edi + 0x48]
mov eax, dword [esi + 0xa0]
mov ecx, dword [esi + 0x98]
push edx
push eax
push ecx
lea edx, [esp + 0x28]
push str.__d__d__s
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x24
push 5
push 0
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
mov eax, dword [esi + 0x20]
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test eax, eax
jne 0x40244e
push 0x30
push str.ERROR
push str.CreateProcess_Patch_Prime
mov ecx, esi
call sub.MFC71.DLL_CWnd::MessageBoxA
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x18]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x402b10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4634e9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
mov ecx, esi
mov dword [esp + 8], edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetManager]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x24]
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Concatenate]
mov esi, dword [esp + 0x30]
add esp, 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4036b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x463610
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
mov eax, dword [0x4a32a0]
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x22c], eax
call dword [0x46e148]
lea ecx, [esp + 0x10]
mov dword [esp + 0x23c], 0
call dword [0x46e148]
mov byte [esp + 0x18], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov byte [esp + 0x23c], 1
stosb byte es:[edi], al
call sub.MFC71.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push 0x104
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
call dword [0x46e374]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::IsEmpty]
test al, al
jne 0x40385c
push 0x5c
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x240], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::IsEmpty]
test al, al
jne 0x4037f6
push 0
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetAt]
cmp al, 0x22
jne 0x4037f6
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
dec eax
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Right]
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x240], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0x5c
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
mov ecx, 0x4b3a40
call dword [0x46e374]
mov byte [esp + 0x120], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x121]
rep stosd dword es:[edi], eax
push 0
push 5
lea edx, [esp + 0x128]
stosw word es:[edi], ax
push edx
push 0
stosb byte es:[edi], al
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [esp + 0x120]
push eax
mov ecx, 0x4b3a44
call dword [0x46e374]
jmp 0x40386f
push 0
push str.Error
push str.SetAppPath_Error
mov ecx, esi
call sub.MFC71.DLL_CWnd::MessageBoxA
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x22c]
call fcn.00450c39
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403bb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x463684
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
mov eax, dword [0x4a32a0]
push esi
mov esi, ecx
mov dword [esp + 0x120], eax
mov al, byte [esi + 0xa8]
test al, al
push edi
je 0x403c60
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x46f7fe
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov eax, dword [str.launcherpatch.exe.cab]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov dword [esp + 0x158], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0x46f7fc
mov byte [esp + 0x174], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [esi + 0xa4]
push ecx
mov ecx, esi
mov dword [esp + 0x174], 0xffffffff
call fcn.00403000
test eax, eax
jne 0x403c60
mov eax, 0xfffffffd
jmp 0x403d0a
mov byte [esp + 0x18], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
push 0
push 5
lea edx, [esp + 0x20]
stosw word es:[edi], ax
push edx
push 0
stosb byte es:[edi], al
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 8]
call dword [0x46e148]
mov eax, dword [str.launcherpatch.exe.cab]
mov ecx, dword [0x4b3a44]
push eax
push str.BossRan_
push ecx
lea edx, [esp + 0x14]
push str._s_s_s
push edx
mov dword [esp + 0x148], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x14
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
mov ecx, 0x4b3a40
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
call fcn.00448510
add esp, 8
test eax, eax
jne 0x403cf4
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, 0xfffffffc
jmp 0x403d0a
mov ecx, esi
call fcn.00402300
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, 1
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x124]
call fcn.00450c39
pop edi
pop esi
mov esp, ebp
pop ebp
ret