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

Disassembly:
push 0xffffffffffffffff
push 0x4b2046
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x52df28
call sub.MFC42.DLL_CString::CString_1
push ecx
xor edi, edi
mov ecx, esp
mov dword [esp + 0x20], esp
push str.bro.xxxxxxx.mm
mov dword [esp + 0x38], edi
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x18]
push 0x52decc
push eax
mov byte [esp + 0x3c], 1
call fcn.0042ec20
mov esi, eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 2
push ecx
call fcn.0041a1b0
add esp, 8
mov byte [esp + 0x38], 3
mov edx, esp
mov dword [esp + 0x28], esp
push esi
push eax
push edx
call sub.MFC42.DLL_operator_1
push ecx
mov byte [esp + 0x3c], 4
mov ecx, esp
mov dword [esp + 0x30], esp
push str.http:__ad.vrbrothers.com_qmacro_v8_ad_mymacro.xml
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0x3c], 7
call fcn.00401580
mov ecx, eax
call fcn.00401740
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 6
call sub.MFC42.DLL_CString::CString
or esi, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], esi
call sub.MFC42.DLL_CString::CString
mov al, byte [0x550284]
test al, 1
jne 0x41b737
mov dl, al
mov al, byte [esp + 0xb]
or dl, 1
mov byte [0x550258], al
mov byte [0x550284], dl
mov dword [0x55025c], edi
mov dword [0x550260], edi
mov dword [0x550264], edi
mov dword [0x550250], 0x4bc448
mov ecx, 0x550268
mov dword [esp + 0x2c], 8
mov dword [esp + 0x20], ecx
call sub.MFC42.DLL_CString::CString_3
mov ecx, 0x55026c
mov byte [esp + 0x2c], 9
call sub.MFC42.DLL_CString::CString_3
mov ecx, 0x550278
mov byte [esp + 0x2c], 0xa
call sub.MFC42.DLL_CString::CString_3
mov ecx, 0x55027c
mov byte [esp + 0x2c], 0xb
call sub.MFC42.DLL_CString::CString_3
push 0x41b7a0
mov dword [0x550250], 0x4bc444
mov dword [0x550254], 4
mov dword [esp + 0x30], esi
call fcn.00423cfc
add esp, 4
push 0x550250
call fcn.00401580
mov ecx, eax
call fcn.00401a60
push 0x3e8
mov ecx, 0x550250
call fcn.00403050
mov ecx, dword [esp + 0x24]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x28
ret
Function at 0x41b840
Capabilities:
Check mutex on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2090
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x55020c]
push edi
test eax, eax
mov edi, ecx
je 0x41b8d1
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_3
push 0xf27d
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x41b8c2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x41b8e3
lea ecx, [ebp - 0x10]
push ecx
call fcn.0041b9d0
add esp, 4
mov edx, dword [ebp - 0x10]
push edx
push 0x400
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [edi + 0xcc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41b996
mov eax, dword [ebp - 0x10]
push esi
push eax
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push 4
push 0
push 0
push 0xf001f
push eax
mov dword [edi + 0xcc], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x41b965
mov ecx, dword [esi]
push 0x201
push 0
push 0x464
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [edi + 0xcc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
jmp 0x41b9a6
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x41bb40
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b21cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
push 0x66
mov dword [esp + 0x18], esi
call fcn.00423528
lea ecx, [esi + 0x64]
mov dword [esp + 0x1c], 0
call fcn.00415fb0
lea ebx, [esi + 0x130]
mov byte [esp + 0x1c], 1
mov ecx, ebx
call sub.MFC42.DLL_CString::CString_3
lea edi, [esi + 0x134]
mov byte [esp + 0x1c], 2
mov ecx, edi
call fcn.0042331e
mov dword [edi], 0x4ba550
push 1
lea ecx, [esi + 0x174]
mov byte [esp + 0x20], 3
call fcn.00417a20
push fcn.0040bb00
push fcn.0040b950
push 0x64
lea ecx, [esi + 0x1a0]
push 0x7a0
push ecx
mov byte [esp + 0x30], 4
call fcn.00423e62
lea ecx, [esi + 0x2fc20]
mov byte [esp + 0x1c], 5
call fcn.0040e0e0
lea ecx, [esi + 0x2fdc0]
mov byte [esp + 0x1c], 6
call fcn.0040b0e0
lea ecx, [esi + 0x30370]
mov byte [esp + 0x1c], 7
call fcn.0040e9d0
lea ecx, [esi + 0x305d0]
mov byte [esp + 0x1c], 8
call fcn.0040b4f0
lea edi, [esi + 0x306a8]
mov byte [esp + 0x1c], 9
mov ecx, edi
mov dword [esp + 0x24], edi
call sub.MFC42.DLL_CPropertySheet::CPropertySheet
lea ebp, [edi + 0x90]
mov byte [esp + 0x1c], 0xa
mov ecx, ebp
call fcn.0042331e
mov dword [ebp], 0x4bad24
mov dword [edi], 0x4bac58
lea ecx, [esi + 0x3077c]
mov byte [esp + 0x1c], 0xb
call fcn.00436a00
lea ecx, [esi + 0x307bc]
mov byte [esp + 0x1c], 0xc
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x307c4]
mov byte [esp + 0x1c], 0xd
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x307c8]
mov byte [esp + 0x1c], 0xe
call sub.MFC42.DLL_CString::CString_3
lea edi, [esi + 0x30828]
mov byte [esp + 0x1c], 0xf
mov ecx, edi
call sub.MFC42.DLL_CString::CString_3
push 0x550158
mov ecx, ebx
mov byte [esp + 0x20], 0x10
mov dword [esi], 0x4bc650
call fcn.004233b4
push 0x550158
mov ecx, edi
call fcn.004233b4
call sub.MFC42.DLL_AfxGetModuleState
push 0x80
push 0xe
push 0x80
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x19c], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x41cbb0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b2377
push eax
mov dword fs:[0], esp
sub esp, 0xec
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov eax, dword [esi + 0x307bc]
push eax
push 0xffffffffffffffff
push str.AutoRunTime
push 0x52df88
call edi
mov ebx, eax
test ebx, ebx
jl 0x41cd2f
mov eax, dword [esi + 0x307bc]
push eax
push 0
push str.PrimaryMacro
push 0x52df88
call edi
cmp eax, dword [esi + 0x30790]
jge 0x41cc25
test eax, eax
jl 0x41cc25
mov ecx, dword [esi + 0x30788]
je 0x41cc27
mov ecx, dword [ecx]
dec eax
jne 0x41cc1e
jmp 0x41cc27
xor ecx, ecx
mov ecx, dword [ecx + 8]
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0x20]
test ebx, ebx
mov edi, eax
jle 0x41cd19
push 0
push ecx
lea eax, [edi + 0xc]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ebx
lea ecx, [esp + 0x1c]
call fcn.00404780
lea ecx, [esp + 0x10]
mov dword [esp + 0x100], 0
call sub.MFC42.DLL_CDialog::DoModal
cmp eax, 2
jne 0x41ccc9
lea ecx, [esp + 0xf4]
mov dword [esp + 0x100], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xb0]
mov byte [esp + 0x100], 2
call sub.MFC42.DLL_CStatic::CStatic
lea ecx, [esp + 0x70]
mov byte [esp + 0x100], 1
call sub.MFC42.DLL_CStatic::CStatic
lea ecx, [esp + 0x10]
mov dword [esp + 0x100], 0xffffffff
call sub.MFC42.DLL_CDialog::CDialog
jmp 0x41cd2f
lea ecx, [esp + 0xf4]
mov dword [esp + 0x100], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xb0]
mov byte [esp + 0x100], 5
call sub.MFC42.DLL_CStatic::CStatic
lea ecx, [esp + 0x70]
mov byte [esp + 0x100], 4
call sub.MFC42.DLL_CStatic::CStatic
lea ecx, [esp + 0x10]
mov dword [esp + 0x100], 0xffffffff
call sub.MFC42.DLL_CDialog::CDialog
push 6
mov ecx, esi
call sub.MFC42.DLL_CWnd::ShowWindow
push 0
push 0
push edi
call fcn.00437210
add esp, 0xc
mov ecx, dword [esp + 0xf8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xf8
ret
Function at 0x41ece0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
mov ecx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x1c]
lea ebx, [esi + 0xa]
push eax
push 0x40
push ebx
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x41ed35
mov ecx, esi
mov esi, dword [esp + 0x18]
mov edx, ecx
push edi
mov edi, ebp
lea eax, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x41ed40
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x7d4
push esi
mov esi, ecx
push edi
xor edx, edx
mov ecx, 0x1f3
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x7e0]
mov dword [esp + 8], edx
push eax
push edx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push 0x7d0
push edx
push eax
call sub.PSAPI.DLL_EnumProcessModules
mov eax, dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041ea60
pop edi
pop esi
add esp, 0x7d4
ret 4

Function at 0x423199
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 SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4231f1
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x550158
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4231e4
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4231f3
xor eax, eax
pop esi
leave
ret 4
Function at 0x428ba0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b30fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x4bd588
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x428c30
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x428bf7
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x428c21
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x428c36
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x428c36
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x4ba94c
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x4ba440
mov dword [esp + 0x1c], 0xffffffff
call fcn.004236d2
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x42a730
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b3281
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov al, byte [esp + 0x30]
push ebx
push ebp
push esi
mov dword [esp + 0xc], ecx
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x550158
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x3c], ebx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x42a7af
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, 0x550158
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 [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], bl
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov esi, dword [esp + 0x40]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
mov dword [esp + 0x40], 1
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x42a805
mov edi, dword [esp + 0x18]
mov ecx, ebp
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 [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], bl
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov edi, dword [ecx + 0xbc]
lea esi, [ecx + 0xb8]
mov ecx, esi
mov edx, dword [edi + 4]
push edx
push edi
call fcn.0042c660
mov dword [edi + 4], eax
mov ecx, dword [eax + 4]
lea edx, [esp + 0x14]
mov dword [ecx], eax
add eax, 8
push edx
push eax
call fcn.0042c690
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
add esp, 8
inc edx
mov dword [esi + 8], edx
mov esi, dword [eax + 0xc0]
dec esi
cmp ecx, ebx
je 0x42a87c
mov al, byte [ecx - 1]
cmp al, bl
je 0x42a872
cmp al, 0xff
je 0x42a872
dec al
mov byte [ecx - 1], al
jmp 0x42a87c
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x42e880
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1060
call fcn.00423d10
mov eax, dword [esp + 0x1064]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fopen]
push edi
push 0x52d294
push eax
call esi
mov ebp, eax
xor edi, edi
add esp, 8
cmp ebp, edi
jne 0x42e8c6
push str.Error_opening_ciphertext_file_
call sym.mymacro.exe_antlr3dfaspecialTransition
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1060
ret
mov ecx, dword [esp + 0x1078]
push 0x52dac8
push ecx
call esi
mov ebx, eax
add esp, 8
cmp ebx, edi
jne 0x42e8f6
push str.Error_opening_plaintext_file_
call sym.mymacro.exe_antlr3dfaspecialTransition
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1060
ret
push 0x3e8
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
cmp esi, edi
jne 0x42e922
push str.Out_of_memory__n
call sym.mymacro.exe_antlr3dfaspecialTransition
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1060
ret
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
push edx
mov edx, dword [esp + 0x1080]
mov dword [esp + 0x18], edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.0045ee20
push ebp
push 0x3e8
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
mov edi, eax
mov al, byte [ebp + 0xc]
add esp, 0x10
test al, 0x20
jne 0x42e9b0
push 0
push 0x3e8
push esi
lea ecx, [esp + 0x24]
call fcn.0045f960
push ebx
push edi
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
mov al, byte [ebx + 0xc]
add esp, 0x10
test al, 0x20
jne 0x42e9c8
mov al, byte [ebp + 0xc]
push ebp
test al, 0x10
jne 0x42e9e0
push 0x3e8
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
mov edi, eax
mov al, byte [ebp + 0xc]
add esp, 0x10
test al, 0x20
je 0x42e968
push str.Error_reading_ciphertext_
call sym.mymacro.exe_antlr3dfaspecialTransition
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1060
ret
push str.Error_writing_plaintext_
call sym.mymacro.exe_antlr3dfaspecialTransition
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1060
ret
mov edi, dword [sym.imp.MSVCRT.dll_fclose]
call edi
push ebx
call edi
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1060
ret

Function at 0x42ec20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b355f
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.0042ea20
lea ecx, [esp + 8]
mov dword [esp + 0x30], 1
call fcn.0042eb00
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.0042eaa0
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x431880
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b3d18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov eax, dword [esp + 0x1c]
push 0x52d294
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4318d5
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 0x431917
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 0x431947
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 0x431935
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 0x432d10
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b3f6b
push eax
mov eax, 0x1014
mov dword fs:[0], esp
call fcn.00423d10
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x3ff
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 + 0x102c], ebx
push eax
call fcn.00450fe0
mov ecx, eax
call fcn.00451800
push eax
lea ecx, [esp + 0x1c]
push 0x5501e8
push ecx
mov dword [esp + 0x1034], 2
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
mov ecx, dword [esi]
push eax
mov eax, dword [esp + 0x1038]
lea edx, [esp + 0x24]
push 0x1000
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 + 0x1028], 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 + 0x1030], 3
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x432e0b
lea eax, [esi + 8]
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::operator_3
mov eax, dword [esp + 0x1038]
mov edi, 1
cmp eax, ebx
jne 0x432e55
cmp dword [esi + 0x14], edi
jne 0x432e55
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 0x432e45
push 0x550158
lea ecx, [esp + 0x10]
call fcn.004233b4
jmp 0x432e55
mov edx, dword [esi + 0x30]
lea ecx, [esp + 0xc]
lea eax, [edx + eax*4]
push eax
call sub.MFC42.DLL_CString::operator_3
mov esi, dword [esp + 0x1030]
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 + 0x1028], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1020]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1020
ret 0xc
Function at 0x432fa0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b4023
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ebp, [esi + 4]
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_3
lea ebx, [esi + 8]
xor edi, edi
mov ecx, ebx
mov dword [esp + 0x1c], edi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0xc]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x10]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x48]
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CString::CString_3
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
lea ecx, [esi + 0x54]
mov byte [esp + 0x1c], 6
call sub.MFC42.DLL_CString::CString_3
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], 0xa
mov dword [esi + 0x58], 0x4be004
push 0x550158
mov ecx, ebp
mov byte [esp + 0x20], 8
mov dword [esi], 0x4bc200
call fcn.004233b4
push 0x550158
mov ecx, ebx
call fcn.004233b4
push 0x550158
lea ecx, [esi + 0xc]
call fcn.004233b4
push 0x550158
lea ecx, [esi + 0x10]
call fcn.004233b4
mov ebx, 1
push 0x550158
lea ecx, [esi + 0x48]
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x30], ebx
call fcn.004233b4
push 0x550158
lea ecx, [esi + 0x54]
mov dword [esi + 0x38], ebx
mov word [esi + 0x34], di
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
call fcn.004233b4
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret