joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412550
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4a6f58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x14], esi
push eax
push edi
push str.ShowFirstMacro
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov eax, dword [esi + 0xc]
xor ebp, ebp
cmp eax, edi
jle 0x4127ea
mov ebx, 1
jmp 0x4125a6
mov esi, dword [esp + 0x14]
xor edi, edi
lea ecx, [esp + 0x18]
call fcn.004261f0
lea ecx, [esp + 0xdc]
mov dword [esp + 0x1b0], edi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0xe0]
mov byte [esp + 0x1b0], bl
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0xe4]
mov byte [esp + 0x1b0], 2
call fcn.00413330
mov dword [esp + 0xe4], 0x4b50f8
mov dword [esp + 0xf8], edi
lea ecx, [esp + 0xfc]
mov byte [esp + 0x1b0], 3
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 0x110]
mov byte [esp + 0x1b0], 4
call fcn.00412d30
mov dword [esp + 0x110], 0x4b50e4
lea ecx, [esp + 0x164]
mov byte [esp + 0x1b0], 5
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 0x178]
mov byte [esp + 0x1b0], 6
call sub.MFC42.DLL_CStringArray::CStringArray
push 0xa
lea ecx, [esp + 0x190]
mov byte [esp + 0x1b4], 7
call fcn.00412ff0
mov dword [esp + 0xd8], edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x124]
mov dword [esp + 0x18c], 0x4b50d0
mov dword [esp + 0x18], 0x4b5098
mov dword [esp + 0x2c], ebx
rep stosd dword es:[edi], eax
push ecx
lea ecx, [esi + 4]
mov eax, esp
mov dword [esp + 0x14], esp
push ebp
push eax
mov dword [esp + 0x1bc], 8
call fcn.0040c780
lea ecx, [esp + 0x1c]
call fcn.004279a0
push ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x14], esp
mov edi, esp
push 0x10
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
test esi, esi
je 0x41270d
mov dword [esi + 4], 0
mov dword [esi + 8], ebx
mov dword [esi], 0x4b4638
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1b4], 0xa
call dword [edx + 0x1c]
mov dword [esi + 0xc], eax
mov dword [esi + 4], 2
jmp 0x41270f
xor esi, esi
mov ecx, dword [esp + 0x1bc]
mov byte [esp + 0x1b4], 8
mov dword [edi], esi
call fcn.00429eb0
lea ecx, [esp + 0x18c]
mov dword [esp + 0x1b0], 0x12
call fcn.00413020
lea ecx, [esp + 0x178]
mov byte [esp + 0x1b0], 0x11
call fcn.00458b24
lea ecx, [esp + 0x164]
mov byte [esp + 0x1b0], 0x10
call fcn.00458b24
lea ecx, [esp + 0x110]
mov byte [esp + 0x1b0], 0xf
call fcn.00412d50
lea ecx, [esp + 0xfc]
mov byte [esp + 0x1b0], 0xe
call fcn.00458b24
lea ecx, [esp + 0xe4]
mov byte [esp + 0x1b0], 0xd
call fcn.00413350
lea ecx, [esp + 0xe0]
mov byte [esp + 0x1b0], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xdc]
mov byte [esp + 0x1b0], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x1b0], 0xffffffff
call fcn.00413800
mov eax, dword [esp + 0x14]
inc ebp
cmp ebp, dword [eax + 0xc]
jl 0x4125a0
mov ecx, dword [esp + 0x1a8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1a4
ret 4
Function at 0x41256d
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4a6f58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x14], esi
push eax
push edi
push str.ShowFirstMacro
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov eax, dword [esi + 0xc]
xor ebp, ebp
cmp eax, edi
jle 0x4127ea
mov ebx, 1
jmp 0x4125a6
mov esi, dword [esp + 0x14]
xor edi, edi
lea ecx, [esp + 0x18]
call fcn.004261f0
lea ecx, [esp + 0xdc]
mov dword [esp + 0x1b0], edi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0xe0]
mov byte [esp + 0x1b0], bl
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0xe4]
mov byte [esp + 0x1b0], 2
call fcn.00413330
mov dword [esp + 0xe4], 0x4b50f8
mov dword [esp + 0xf8], edi
lea ecx, [esp + 0xfc]
mov byte [esp + 0x1b0], 3
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 0x110]
mov byte [esp + 0x1b0], 4
call fcn.00412d30
mov dword [esp + 0x110], 0x4b50e4
lea ecx, [esp + 0x164]
mov byte [esp + 0x1b0], 5
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 0x178]
mov byte [esp + 0x1b0], 6
call sub.MFC42.DLL_CStringArray::CStringArray
push 0xa
lea ecx, [esp + 0x190]
mov byte [esp + 0x1b4], 7
call fcn.00412ff0
mov dword [esp + 0xd8], edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x124]
mov dword [esp + 0x18c], 0x4b50d0
mov dword [esp + 0x18], 0x4b5098
mov dword [esp + 0x2c], ebx
rep stosd dword es:[edi], eax
push ecx
lea ecx, [esi + 4]
mov eax, esp
mov dword [esp + 0x14], esp
push ebp
push eax
mov dword [esp + 0x1bc], 8
call fcn.0040c780
lea ecx, [esp + 0x1c]
call fcn.004279a0
push ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x14], esp
mov edi, esp
push 0x10
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
test esi, esi
je 0x41270d
mov dword [esi + 4], 0
mov dword [esi + 8], ebx
mov dword [esi], 0x4b4638
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1b4], 0xa
call dword [edx + 0x1c]
mov dword [esi + 0xc], eax
mov dword [esi + 4], 2
jmp 0x41270f
xor esi, esi
mov ecx, dword [esp + 0x1bc]
mov byte [esp + 0x1b4], 8
mov dword [edi], esi
call fcn.00429eb0
lea ecx, [esp + 0x18c]
mov dword [esp + 0x1b0], 0x12
call fcn.00413020
lea ecx, [esp + 0x178]
mov byte [esp + 0x1b0], 0x11
call fcn.00458b24
lea ecx, [esp + 0x164]
mov byte [esp + 0x1b0], 0x10
call fcn.00458b24
lea ecx, [esp + 0x110]
mov byte [esp + 0x1b0], 0xf
call fcn.00412d50
lea ecx, [esp + 0xfc]
mov byte [esp + 0x1b0], 0xe
call fcn.00458b24
lea ecx, [esp + 0xe4]
mov byte [esp + 0x1b0], 0xd
call fcn.00413350
lea ecx, [esp + 0xe0]
mov byte [esp + 0x1b0], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xdc]
mov byte [esp + 0x1b0], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x1b0], 0xffffffff
call fcn.00413800
mov eax, dword [esp + 0x14]
inc ebp
cmp ebp, dword [eax + 0xc]
jl 0x4125a0
mov ecx, dword [esp + 0x1a8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1a4
ret 4
Function at 0x412810
Capabilities:
Delete file
Encode data using xor
Read file on windows
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4a6f78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov eax, dword [esp + 0x1c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x20]
lea eax, [esp + 8]
push edx
push 4
xor esi, esi
push 1
push eax
mov dword [esp + 0x18], esi
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esp + 0x18]
add esp, 0x10
cmp eax, esi
jle 0x4128c0
mov ecx, dword [esp + 0x1c]
push 0x51e75c
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
cmp edi, esi
je 0x4128c0
cmp dword [esp + 8], esi
jle 0x4128b6
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fputc]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fgetc]
mov edx, dword [esp + 0x28]
push edi
push edx
call ebp
add esp, 4
xor eax, 0xcc
push eax
call ebx
mov eax, dword [esp + 0x18]
add esp, 8
inc esi
cmp esi, eax
jl 0x412895
pop ebp
pop ebx
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4128f0
Capabilities:
Delete file

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
xor esi, esi
mov eax, dword [edi + 0xc]
test eax, eax
jle 0x41292e
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ebx, [edi + 4]
lea eax, [esp + 0x10]
push esi
push eax
mov ecx, ebx
call fcn.0040c780
mov ecx, dword [eax]
push ecx
call ebp
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [edi + 0xc]
inc esi
cmp esi, eax
jl 0x412909
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret
Function at 0x412940
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4a6fe0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x28]
push ebp
push esi
push edi
lea eax, [esp + 0x34]
push ebx
mov esi, ecx
push eax
call fcn.00415260
mov ecx, esp
mov dword [esp + 0x18], esp
push str.plugin.zip
push eax
push ecx
mov dword [esp + 0x40], 0
call sub.MFC42.DLL_operator_4
mov ecx, esi
call fcn.00412810
or edi, 0xffffffff
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], edi
call sub.MFC42.DLL_CString::CString
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x529b90
call sub.MFC42.DLL_CString::CString_1
push ecx
mov dword [esp + 0x38], 1
mov edx, esp
mov dword [esp + 0x28], esp
push str.plugin
push 0x52ac78
push edx
call sub.MFC42.DLL_operator_4
lea eax, [esp + 0x40]
mov byte [esp + 0x38], 2
push eax
call fcn.00415260
mov ecx, esp
mov dword [esp + 0x30], esp
push str.plugin.zip
push eax
push ecx
mov byte [esp + 0x48], 3
call sub.MFC42.DLL_operator_4
mov byte [esp + 0x3c], 4
call fcn.004314f0
add esp, 0x10
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], edi
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x10]
push edx
call fcn.00415260
add esp, 4
push str.plugin.zip
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x34], 5
push eax
call sub.MFC42.DLL_operator_4
mov eax, dword [eax]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call ebp
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], edi
call sub.MFC42.DLL_CString::CString
push ebx
lea ecx, [esp + 0x38]
push ecx
call fcn.00415260
mov edx, esp
mov dword [esp + 0x28], esp
push str.mymacro.zip
push eax
push edx
mov dword [esp + 0x40], 6
call sub.MFC42.DLL_operator_4
mov ecx, esi
call fcn.00412810
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], edi
call sub.MFC42.DLL_CString::CString
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x529b90
call sub.MFC42.DLL_CString::CString_1
push ecx
mov dword [esp + 0x38], 7
mov eax, esp
mov dword [esp + 0x28], esp
push eax
call fcn.00415260
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], 8
push ecx
call fcn.00415260
add esp, 4
mov byte [esp + 0x3c], 9
mov edx, esp
mov dword [esp + 0x20], esp
push str.mymacro.zip
push eax
push edx
call sub.MFC42.DLL_operator_4
mov byte [esp + 0x3c], 0xa
call fcn.004314f0
add esp, 0x10
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], edi
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x18]
push eax
call fcn.00415260
add esp, 4
push str.mymacro.zip
lea ecx, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x38], 0xb
call sub.MFC42.DLL_operator_4
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], edi
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 4
Function at 0x413800
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4a7252
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], 0x4b51f4
mov dword [esp + 0x20], 9
call fcn.00426820
lea esi, [edi + 0xa4]
mov dword [esp + 0x14], esi
mov dword [esi], 0x4b51e0
mov ebp, dword [esi + 4]
xor ebx, ebx
cmp ebp, ebx
mov byte [esp + 0x20], 0xa
je 0x413865
lea eax, [ebp + 8]
push 1
push eax
call fcn.00413d00
mov ebp, dword [ebp]
cmp ebp, ebx
jne 0x413853
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], 0x4b3570
mov byte [esp + 0x20], 7
call sub.MFC42.DLL_CString::CString
mov esi, dword [edi + 0x98]
cmp esi, ebx
je 0x4138ef
lea ecx, [esi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4138e9
cmp esi, ebx
mov dword [esp + 0x14], esi
je 0x4138e9
mov ecx, esi
mov byte [esp + 0x20], 0xc
call fcn.00413ef0
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 0x41390f
lea ebp, [esi + 4]
jmp 0x413911
xor ebp, ebp
mov esi, dword [ebp]
cmp esi, ebx
je 0x413968
lea edx, [esi + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x413965
cmp esi, ebx
mov dword [esp + 0x14], esi
je 0x413965
mov ecx, esi
mov byte [esp + 0x20], 0xf
call fcn.00413ef0
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], 0x4b5170
mov ecx, esi
mov byte [esp + 0x20], 0x11
call fcn.0042d750
lea ecx, [esi + 0x28]
mov byte [esp + 0x20], 0x10
call fcn.00458c0e
mov ecx, esi
mov byte [esp + 0x20], 4
call fcn.00458cb0
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 0x413e40
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4a7323
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
mov eax, dword [edi + 4]
lea esi, [edi + 4]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 1
push ecx
mov ecx, esi
call dword [eax + 0x18]
mov eax, dword [eax]
push 0x529b90
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0xc]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x413ea3
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
push 0
mov ecx, edi
call sub.MFC42.DLL_CString::GetBuffer
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, esi
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CFile::CFile
mov ecx, edi
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x415260
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.00459300
mov cl, byte [0x52ace0]
mov al, 1
test al, cl
mov dword [esp], 0
jne 0x41529f
mov dl, cl
mov ecx, 0x52acdc
or dl, al
mov byte [0x52ace0], dl
call sub.MFC42.DLL_CString::CString_3
push 0x415300
call fcn.004592ec
add esp, 4
mov eax, dword [0x52acdc]
push 0x529b90
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x4152d6
lea ecx, [esp + 4]
push ecx
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 4]
mov ecx, 0x52acdc
push edx
call sub.MFC42.DLL_CString::operator_3
push esi
mov esi, dword [esp + 0x100c]
push 0x52acdc
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov eax, esi
pop esi
add esp, 0x1004
ret

Function at 0x415310
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.00459300
mov cl, byte [0x52acd8]
mov al, 1
test al, cl
mov dword [esp], 0
jne 0x41534f
mov dl, cl
mov ecx, 0x52acd4
or dl, al
mov byte [0x52acd8], dl
call sub.MFC42.DLL_CString::CString_3
push 0x4153e0
call fcn.004592ec
add esp, 4
mov eax, dword [0x52acd4]
push esi
push 0x529b90
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x4153b9
push ebx
push edi
lea ecx, [esp + 0x10]
push 0x1000
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x51e1a8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x52acd4
call sub.MFC42.DLL_CString::operator_3
pop edi
pop ebx
mov esi, dword [esp + 0x100c]
push 0x52acd4
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov eax, esi
pop esi
add esp, 0x1004
ret
Function at 0x4153f0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.00459300
mov cl, byte [0x52acd0]
mov al, 1
test al, cl
mov dword [esp], 0
jne 0x41542f
mov dl, cl
mov ecx, 0x52accc
or dl, al
mov byte [0x52acd0], dl
call sub.MFC42.DLL_CString::CString_3
push 0x4154c0
call fcn.004592ec
add esp, 4
mov eax, dword [0x52accc]
push esi
push 0x529b90
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x415499
push ebx
push edi
lea ecx, [esp + 0x10]
push 0x1000
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x51e1a8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x52accc
call sub.MFC42.DLL_CString::operator_3
pop edi
pop ebx
mov esi, dword [esp + 0x100c]
push 0x52accc
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov eax, esi
pop esi
add esp, 0x1004
ret

Function at 0x4154d0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.00459300
mov al, byte [0x52acc0]
push ebx
mov ebx, 1
push esi
test bl, al
mov dword [esp + 8], 0
jne 0x415513
mov dl, al
mov ecx, 0x52acbc
or dl, bl
mov byte [0x52acc0], dl
call sub.MFC42.DLL_CString::CString_3
push 0x4155a0
call fcn.004592ec
add esp, 4
mov eax, dword [0x52acbc]
push 0x529b90
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x415579
push edi
push ebx
lea ecx, [esp + 0x14]
push 0x1a
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, 0x51e1a8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x52acbc
call sub.MFC42.DLL_CString::operator_3
pop edi
mov esi, dword [esp + 0x1010]
push 0x52acbc
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov eax, esi
pop esi
pop ebx
add esp, 0x1004
ret
Function at 0x416850
Capabilities:
Set current directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a7c0b
push eax
mov eax, 0x1704
mov dword fs:[0], esp
call fcn.00459300
push esi
mov esi, ecx
lea eax, [esp + 0x208]
lea ecx, [esp + 0x108]
push eax
lea edx, [esp + 0x30c]
push ecx
mov ecx, dword [esi + 0x90]
lea eax, [esp + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__splitpath]
add esp, 0x14
lea edx, [esp + 0x108]
mov ecx, 0x52ac74
push edx
call sub.MFC42.DLL_CString::operator_3
lea eax, [esp + 8]
mov ecx, 0x52ac78
push eax
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 0x308]
push ecx
mov ecx, 0x52ac78
call fcn.004589b0
mov edx, dword [0x52ac78]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x52ac78
mov ecx, 0x52ac78
call sub.MFC42.DLL_CString::operator_2
lea eax, [esp + 0x708]
push 0x1000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov cl, byte [0x52ad34]
mov al, 1
test al, cl
jne 0x416936
or cl, al
mov byte [0x52ad34], cl
lea ecx, [esp + 0x708]
push ecx
mov ecx, 0x52ad30
call sub.MFC42.DLL_CString::CString_1
push 0x4169d0
call fcn.004592ec
add esp, 4
push 0x2e
mov ecx, 0x52ad30
call sub.MFC42.DLL_CString::ReverseFind
lea edx, [esp + 4]
push eax
push edx
mov ecx, 0x52ad30
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, 0x52ad30
mov dword [esp + 0x1714], 0
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 4]
mov dword [esp + 0x1710], 0xffffffff
call sub.MFC42.DLL_CString::CString
push str..ini
mov ecx, 0x52ad30
call fcn.004589b0
mov eax, dword [esi + 0x94]
push eax
call dword [sym.imp.MSVCRT.dll_free]
mov ecx, dword [0x52ad30]
push ecx
call dword [sym.imp.MSVCRT.dll__strdup]
add esp, 8
mov ecx, 0x52ae0c
mov dword [esi + 0x94], eax
push eax
call sub.MFC42.DLL_CString::operator_3
mov ecx, dword [esp + 0x1708]
pop esi
mov dword fs:[0], ecx
add esp, 0x1710
ret

Function at 0x417130
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [ecx + 0xcc]
push 4
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x417159
mov ecx, dword [esp + 4]
push eax
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
ret 4
Function at 0x41adc0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a8523
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00458944
lea ebp, [esi + 0x10]
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [ebp + 4], ecx
mov dword [ebp], 0x4b3a90
mov ebx, dword [esp + 0x2c]
mov dword [esi], 0x4b5d40
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
mov edi, dword [ebx + 0xc]
xor eax, eax
cmp edi, ecx
mov byte [esp + 0x24], 1
sete al
cmp eax, ecx
mov dword [esi + 0x30], eax
je 0x41ae91
mov eax, dword [ebx]
lea edi, [esi + 0x20]
push edi
mov ecx, ebx
call dword [eax + 0x58]
test ebx, ebx
jne 0x41ae33
xor eax, eax
jmp 0x41ae36
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 4]
mov edx, dword [edi]
sub eax, ecx
mov ecx, dword [edi + 8]
push eax
sub ecx, edx
push ecx
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call sub.MFC42.DLL_CGdiObject::Attach
test ebp, ebp
je 0x41ae6f
mov ebp, dword [ebp + 4]
mov edx, dword [esi + 4]
push ebp
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ecx, dword [edi]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x24]
lea edx, [esp + 0x14]
push eax
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::SetWindowOrg
jmp 0x41aea3
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [ebx + 4]
mov dword [esi + 4], ecx
mov edx, dword [ebx + 8]
mov dword [esi + 8], edx
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4