joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4021a8
Capabilities:
Delete file

Disassembly:
jmp 0x422370
push 0xffffffffffffffff
push 0x58fba2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
mov dword [edi], 0x5a5210
mov dword [esp + 0x20], 9
call fcn.00469120
lea esi, [edi + 0xa4]
mov dword [esp + 0x14], esi
mov dword [esi], 0x5a51f8
mov ebp, dword [esi + 4]
xor ebx, ebx
cmp ebp, ebx
mov byte [esp + 0x20], 0xa
je 0x4223d5
lea eax, [ebp + 8]
push 1
push eax
call fcn.00401f96
mov ebp, dword [ebp]
cmp ebp, ebx
jne 0x4223c3
mov ecx, dword [esi + 0x14]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
call sub.MFC42.DLL_CPlex::FreeDataChain
lea ecx, [edi + 0xa0]
mov dword [esi + 0x14], ebx
mov dword [esi], 0x5a42c0
mov byte [esp + 0x20], 7
call sub.MFC42.DLL_CString::CString
mov esi, dword [edi + 0x98]
cmp esi, ebx
je 0x42245f
lea ecx, [esi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x422459
cmp esi, ebx
mov dword [esp + 0x14], esi
je 0x422459
mov ecx, esi
mov byte [esp + 0x20], 0xc
call fcn.004014e2
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esi + 4]
mov byte [esp + 0x20], 0xb
call sub.MFC42.DLL_CFile::CFile
mov ecx, esi
mov byte [esp + 0x20], 6
call sub.MFC42.DLL_CString::CString
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [edi + 0x98], ebx
lea esi, [edi + 0x8c]
mov dword [esp + 0x14], esi
lea ecx, [esi + 8]
mov byte [esp + 0x20], 0xd
call sub.MFC42.DLL_CString::CString
cmp esi, ebx
je 0x42247f
lea ebp, [esi + 4]
jmp 0x422481
xor ebp, ebp
mov esi, dword [ebp]
cmp esi, ebx
je 0x4224d8
lea edx, [esi + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4224d5
cmp esi, ebx
mov dword [esp + 0x14], esi
je 0x4224d5
mov ecx, esi
mov byte [esp + 0x20], 0xf
call fcn.004014e2
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esi + 4]
mov byte [esp + 0x20], 0xe
call sub.MFC42.DLL_CFile::CFile
mov ecx, esi
mov byte [esp + 0x20], 5
call sub.MFC42.DLL_CString::CString
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp], ebx
lea esi, [edi + 0x48]
mov dword [esp + 0x14], esi
mov dword [esi], 0x5a5170
mov ecx, esi
mov byte [esp + 0x20], 0x11
call fcn.00466b70
lea ecx, [esi + 0x28]
mov byte [esp + 0x20], 0x10
call fcn.00453e7c
mov ecx, esi
mov byte [esp + 0x20], 4
call fcn.00453f1e
lea ecx, [edi + 0x44]
mov byte [esp + 0x20], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [edi + 0x10]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [edi + 0xc]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [edi + 8]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [edi + 4]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x406d96
Capabilities:
Create process on windows

Disassembly:
jmp 0x406d80
push 0xffffffffffffffff
push 0x58dc78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_3
mov esi, dword [esi + 0x18c]
mov dword [esp + 0x10], 0
test esi, esi
je 0x406de9
push edi
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea eax, [esi + 8]
lea ecx, [esp + 8]
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 8]
mov esi, dword [esi]
push 5
push 0x639dc4
push 0x639dc4
push ecx
push str.open
push 0
call edi
test esi, esi
jne 0x406dbb
pop edi
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x42dd68
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x42dd50
push 0xffffffffffffffff
push 0x590e80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x14], 1
test eax, eax
jl 0x42dda5
push eax
lea eax, [esp + 8]
push str.__._df
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 4]
push ecx
push edx
lea ecx, [esp + 0x10]
push eax
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
add esp, 0x10
push edx
push eax
push ecx
mov ecx, esi
call fcn.00401fa0
lea ecx, [esp + 4]
mov esi, eax
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 0x14

Function at 0x45365d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4536b5
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x639dc4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4536a8
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4536b7
xor eax, eax
pop esi
leave
ret 4
Function at 0x459f10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x59185f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [esp + 0x38]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call fcn.00459d00
lea ecx, [esp + 8]
mov dword [esp + 0x30], 1
call fcn.00459de0
mov esi, dword [esp + 0x38]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 4], 1
lea ecx, [esp + 8]
mov byte [esp + 0x30], 0
call fcn.00459d80
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x45d200
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x592158
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov eax, dword [esp + 0x1c]
push 0x6279b4
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x45d255
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ebp, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call ebp
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 0x10
cmp eax, 0x1000
jg 0x45d297
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push edi
push 0
push 0x1000
push esi
call ebp
mov al, byte [esi + 0xc]
add esp, 0xc
xor edi, edi
test al, 0x10
jne 0x45d2c7
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fgetc]
push esi
call ebx
not eax
add edi, eax
mov al, byte [esi + 0xc]
add esp, 4
test al, 0x10
je 0x45d2b5
pop ebx
push 0
push 0x1c
push esi
call ebp
push esi
push 1
lea ecx, [esp + 0x20]
push 4
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x2c]
add esp, 0x20
xor edx, edx
cmp eax, edi
sete dl
lea ecx, [esp + 0x20]
mov esi, edx
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x45da10
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5921e8
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esi + 8]
mov eax, edi
xor edx, edx
shr eax, 4
div ebp
mov ecx, dword [esi + 4]
mov dword [esp + 0x18], 0
test ecx, ecx
mov ebx, edx
je 0x45da6a
mov eax, dword [ecx + ebx*4]
test eax, eax
je 0x45da66
cmp dword [eax + 8], edi
je 0x45da60
mov eax, dword [eax]
test eax, eax
jne 0x45da53
jmp 0x45da66
test eax, eax
mov edi, eax
jne 0x45dab7
test ecx, ecx
jne 0x45da96
lea edi, [ebp*4]
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [esi + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [esi + 8], ebp
mov ecx, esi
call fcn.0045e1d0
mov edi, eax
mov eax, dword [esp + 0x20]
mov dword [edi + 4], ebx
mov dword [edi + 8], eax
mov ecx, dword [esi + 4]
mov edx, dword [ecx + ebx*4]
mov dword [edi], edx
mov eax, dword [esi + 4]
mov dword [eax + ebx*4], edi
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x2c]
mov dword [edi + 0xc], ecx
mov edx, dword [esp + 0x28]
push eax
lea ecx, [edi + 0x14]
mov dword [edi + 0x10], edx
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x30]
push ecx
lea ecx, [edi + 0x18]
call sub.MFC42.DLL_CString::operator_1
lea edx, [esp + 0x34]
lea ecx, [edi + 0x1c]
push edx
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x18
Function at 0x461d80
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x592a7a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 8]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
test esi, esi
mov dword [esp + 0x18], 0xffffffff
je 0x461dc1
lea ebp, [esi + 4]
jmp 0x461dc3
xor ebp, ebp
mov esi, dword [ebp]
test esi, esi
je 0x461e6a
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x461e63
test esi, esi
mov dword [esp + 0xc], esi
je 0x461e63
push ebx
push edi
mov edx, dword [esi + 4]
lea edi, [esi + 4]
lea eax, [esp + 0x10]
mov ecx, edi
push eax
mov dword [esp + 0x24], 2
call dword [edx + 0x18]
mov ecx, dword [eax]
push 0x639dc4
push ecx
call fcn.00461e80
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x461e2b
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x54]
push 0
mov ecx, esi
call sub.MFC42.DLL_CString::GetBuffer
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, edi
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CFile::CFile
mov ecx, esi
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop ebx
mov dword [ebp], 0
mov ecx, dword [esp + 0x10]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4647c0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x592f81
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
mov ebx, ecx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
push esi
mov esi, dword [ebx]
test esi, esi
push edi
mov dword [esp + 0x10], ebx
je 0x46488a
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x464884
test esi, esi
mov dword [esp + 0x18], esi
je 0x464884
mov edx, dword [esi + 4]
lea edi, [esi + 4]
lea eax, [esp + 0x14]
mov ecx, edi
push eax
mov dword [esp + 0x28], 1
call dword [edx + 0x18]
mov eax, dword [eax]
push 0x639dc4
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x46484a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x54]
push 0
mov ecx, esi
call sub.MFC42.DLL_CString::GetBuffer
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, edi
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CFile::CFile
mov ecx, esi
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
push esi
call sub.MFC42.DLL_operatordelete
mov ebx, dword [esp + 0x14]
add esp, 4
mov dword [ebx], 0
push 0x18
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
test edi, edi
mov dword [esp + 0x24], 2
je 0x464911
mov eax, dword [esp + 0x2c]
mov ecx, edi
push eax
call sub.MFC42.DLL_CString::CString_1
lea esi, [edi + 4]
mov byte [esp + 0x24], 3
mov ecx, esi
call sub.MFC42.DLL_CFile::CFile_1
mov edx, dword [esi]
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
mov byte [esp + 0x28], 4
mov dword [edi + 0x14], 1
call dword [edx + 0x18]
mov eax, dword [eax]
push 0x639dc4
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x2c]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x464909
mov eax, dword [edi]
mov edx, dword [esi]
push 0
push 0x8010
push eax
mov ecx, esi
call dword [edx + 0x28]
mov ecx, dword [esp + 0x10]
mov dword [ecx], edi
jmp 0x464915
xor eax, eax
mov dword [ebx], eax
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x464a30
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.00454250
push ebx
push esi
mov edx, ecx
push edi
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [edx + 8]
mov dword [esp + 0xc], 0
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
call fcn.00402112
mov eax, dword [eax]
add esp, 4
lea ecx, [esp + 0x10]
push ecx
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push eax
call esi
test eax, eax
lea ecx, [esp + 0xc]
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x464ab8
lea edx, [esp + 0xc]
push edx
call fcn.00402112
mov edx, dword [eax]
add esp, 4
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x639dc4
push edx
call esi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x1014]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x1004
ret 4
Function at 0x464ae0
Capabilities:
Access peb ldr_data
Get ntdll base address
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x592fa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x14], esi
lea eax, [esp + 0x30]
lea ecx, [esi + 8]
push eax
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xc]
call fcn.00491320
mov ebx, dword [esp + 0x2c]
mov byte [esp + 0x24], 1
mov ecx, ebx
mov edx, dword [ebx]
call dword [edx + 0x14]
mov dword [esp + 0x18], eax
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.00464a30
mov ecx, dword [esp + 8]
push 0x62862c
push ecx
mov byte [esp + 0x2c], 2
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x464b9e
lea ecx, [esp + 8]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call fcn.00491330
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 8
push ebp
push edi
push 0x40000
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
mov ecx, 0x10000
xor eax, eax
mov edi, esi
push 0x3fffc
rep stosd dword es:[edi], eax
mov edx, dword [ebx]
push esi
mov ecx, ebx
call dword [edx + 0x3c]
test eax, eax
je 0x464c26
push str._r_n__t
push esi
call dword [sym.imp.MSVCRT.dll_strpbrk]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x464be4
mov byte [ebp], 0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x34]
mov dword [esp + 0x34], ecx
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00491500
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
push ecx
mov edi, eax
push edx
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x14
test ebp, ebp
je 0x464baf
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x10]
push 0
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0x1c]
push eax
add ecx, 4
call fcn.004647c0
mov eax, dword [esp + 0x20]
mov edx, dword [ebx]
push 0
push eax
mov ecx, ebx
call dword [edx + 0x30]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 0
call fcn.00491330
lea ecx, [esp + 0x38]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x464cb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x592fd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x18], esi
mov eax, dword [esi]
lea ecx, [ebp - 0x1c]
xor edi, edi
push ecx
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call dword [eax]
mov ebx, dword [eax]
mov byte [ebp - 4], 1
cmp ebx, edi
je 0x464d1f
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00454250
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push 0
mov edx, dword [eax]
push 0x10
push 0
push edi
push eax
call dword [edx + 0x10]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x464e20
lea edx, [ebp + 0xc]
lea ecx, [esi + 8]
push edx
call sub.MFC42.DLL_CString::operator_1
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.00464a30
mov ecx, dword [ebp - 0x14]
push 0x62862c
push ecx
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
je 0x464e14
push 0x40000
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x68]
push 1
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x30]
xor ebx, ebx
mov ecx, 0x10000
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
push ecx
push 0x40000
mov edx, dword [eax]
push esi
push eax
call dword [edx + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
push edx
push eax
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
mov ecx, dword [ebp - 0x60]
add esp, 0x10
inc ebx
shr ecx, 0x12
cmp ebx, ecx
jbe 0x464da2
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [ebp - 0x14]
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [eax + 4]
call fcn.004647c0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x74]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x468850
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x59351b
push eax
mov eax, 0x10014
mov dword fs:[0], esp
call fcn.00454250
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x3fff
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], bl
mov dword [esp + 0x14], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.uservar.ini
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x14]
mov dword [esp + 0x1002c], ebx
push eax
call fcn.004bd130
mov ecx, eax
call fcn.004bd950
push eax
lea ecx, [esp + 0x1c]
push 0x63aea8
push ecx
mov dword [esp + 0x10034], 2
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
mov ecx, dword [esi]
push eax
mov eax, dword [esp + 0x10038]
lea edx, [esp + 0x24]
push 0x10000
push edx
push str.blank_value
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x10028], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0xc]
push str.blank_value
push edx
mov dword [esp + 0x10030], 3
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x46894b
lea eax, [esi + 8]
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x10038]
mov edi, 1
cmp eax, ebx
jne 0x468995
cmp dword [esi + 0x14], edi
jne 0x468995
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
mov ecx, dword [esi + 0x34]
add esp, 4
cmp eax, ecx
jb 0x468985
push 0x639dc4
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
jmp 0x468995
mov edx, dword [esi + 0x30]
lea ecx, [esp + 0xc]
lea eax, [edx + eax*4]
push eax
call sub.MFC42.DLL_CString::operator_1
mov esi, dword [esp + 0x10030]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x14], edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x10028], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10020]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x10020
ret 0xc
Function at 0x468ae0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5935fd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ebx, [esi + 4]
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_3
xor edi, edi
lea ecx, [esi + 8]
mov dword [esp + 0x20], edi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0xc]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x10]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x44]
mov byte [esp + 0x20], 3
call sub.MFC42.DLL_CString::CString_3
lea ebp, [esi + 0x48]
push 0x400
mov ecx, ebp
mov byte [esp + 0x24], 4
mov dword [esp + 0x18], ebp
call sub.MFC42.DLL_CMemFile::CMemFile
push 0xa
lea ecx, [ebp + 0x28]
mov byte [esp + 0x24], 5
call sub.MFC42.DLL_CPtrList::CPtrList
mov dword [ebp], 0x5a5170
lea ebp, [esi + 0x8c]
mov dword [esp + 0x14], ebp
mov dword [ebp + 4], edi
lea ecx, [ebp + 8]
mov byte [esp + 0x20], 7
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp], 0x5a6990
mov dword [esi + 0x98], edi
lea ecx, [esi + 0xa0]
mov byte [esp + 0x20], 9
call sub.MFC42.DLL_CString::CString_3
mov dword [esi + 0xb0], edi
mov dword [esi + 0xb4], edi
mov dword [esi + 0xac], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xb8], edi
mov dword [esi + 0xbc], 0xa
mov dword [esi + 0xa4], 0x5a697c
push 0x639dc4
mov ecx, ebx
mov byte [esp + 0x24], 0xb
mov dword [esi], 0x5a5210
call sub.MFC42.DLL_CString::operator
push 0x639dc4
lea ecx, [esi + 8]
call sub.MFC42.DLL_CString::operator
push 0x639dc4
lea ecx, [esi + 0xc]
call sub.MFC42.DLL_CString::operator
push 0x639dc4
lea ecx, [esi + 0x10]
call sub.MFC42.DLL_CString::operator
mov ebp, 2
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], edi
mov dword [esi + 0x1c], edi
mov ebx, 1
push 0x639dc4
lea ecx, [esi + 0x44]
mov dword [esi + 0x2c], ebx
call sub.MFC42.DLL_CString::operator
mov dword [esi + 0x34], ebx
mov word [esi + 0x30], di
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], ebx
push 0x639dc4
lea ecx, [esi + 0xa0]
mov dword [esi + 0x9c], ebp
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret