joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4064a0
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push edi
push eax
push str.SoftwarePig3
push 0x80000001
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x406585
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push eax
push str.ProxyType
push edx
call esi
test eax, eax
jne 0x406585
mov edx, dword [esp + 0x14]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x18]
push str.ProxyIP
push eax
call esi
test eax, eax
jne 0x406585
mov edx, dword [esp + 8]
lea ecx, [esp + 0x18]
push 4
push ecx
push 4
push eax
push str.ProxyPort
push edx
call esi
test eax, eax
jne 0x406585
mov edx, dword [esp + 0x1c]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x18]
push str.ProxyUsername
push eax
call esi
test eax, eax
jne 0x406585
mov edx, dword [esp + 0x20]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 1
push eax
push str.ProxyPassword
push ecx
call esi
test eax, eax
jne 0x406585
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
pop ecx
ret 0x14
pop edi
xor eax, eax
pop esi
pop ecx
ret 0x14

Function at 0x406800
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push esi
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40682a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push esi
push edx
push 0
push str.setupver
push eax
mov dword [esp + 0x20], 0x514
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40686f
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esi], 0
mov eax, 1
pop esi
add esp, 0xc
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
add esp, 0xc
ret

Function at 0x406890
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4068b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
add esp, 0xc
ret
mov edx, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push str.UninstallString
push ecx
mov dword [esp + 0x1c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4068f6
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0xc
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0xc
ret
Function at 0x406ca0
Capabilities:
Delete file

Disassembly:
sub esp, 0x108
push edi
mov edi, ecx
mov dword [esp + 4], edi
mov eax, dword [edi + 0x64]
cmp eax, 2
je 0x406cba
cmp eax, 1
jne 0x406cd6
push 0x24
push 0x4125d4
push 0x412cf8
mov ecx, edi
call sub.MFC42.DLL_CWnd::MessageBoxA
cmp eax, 7
je 0x406d6c
mov eax, dword [edi + 0x7c]
push esi
lea esi, [edi + 0x7c]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x406d5d
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
push ebp
xor ebp, ebp
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi]
mov ecx, dword [eax - 8]
mov al, byte [ecx + eax - 1]
cmp al, 0x5c
je 0x406d20
cmp al, 0x2f
je 0x406d20
push 0x412260
mov ecx, esi
call sub.MFC42.DLL_CString::operator
mov edx, dword [esi]
push 0x412cec
push edx
lea eax, [esp + 0x1c]
push 0x4121e4
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc ebp
test eax, eax
jne 0x406d57
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp ebp, 3
jle 0x406cee
mov edi, dword [esp + 0x10]
pop ebp
pop ebx
mov ecx, edi
call fcn.0040b1f0
mov ecx, edi
call sub.MFC42.DLL_CDialog::OnCancel
pop esi
pop edi
add esp, 0x108
ret

Function at 0x406ed0
Capabilities:
Delete file
Set file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x104
lea edx, [esp]
push eax
push edx
call fcn.004091f0
test eax, eax
je 0x406f7c
push ebx
push esi
push edi
mov edi, 0x412260
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
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 edx, [esp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x118]
or ecx, 0xffffffff
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 al, byte [esp + 0x11c]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
test al, al
pop ebx
je 0x406f87
lea eax, [esp]
push eax
call fcn.00403750
add esp, 4
test eax, eax
je 0x406fb7
lea ecx, [esp]
push ecx
call fcn.00403900
add esp, 4
test eax, eax
jne 0x406fb7
xor eax, eax
add esp, 0x104
ret 0xc
lea edx, [esp]
push edx
call fcn.004038d0
add esp, 4
test al, al
je 0x406fb7
lea eax, [esp]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x406f7c
mov eax, 1
add esp, 0x104
ret 0xc
Function at 0x407070
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push 0x20019
push 0
push str.mailto_shellopencommand
mov dword [esp + 0x24], ecx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4070ac
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 0
push edx
push 0
push 0
push 0
push 0x413824
push eax
call esi
test eax, eax
je 0x4070e7
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov edx, dword [esp + 0xc]
inc edx
push edx
call sub.MFC42.DLL_operatornew
mov ebp, eax
mov eax, dword [esp + 0x10]
mov edi, ebp
add esp, 4
lea ecx, [eax + 1]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push ebp
push 0
push 0
push 0x413824
push ecx
call esi
test eax, eax
je 0x40713c
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
mov esi, ebp
test eax, eax
jbe 0x4071ff
mov edi, dword [sym.imp.MSVCRT.dll__strnicmp]
push 0xb
push str.outlook.exe
push esi
call edi
add esp, 0xc
test eax, eax
je 0x4071ff
push 9
push str.foxmail.exe
push esi
call edi
add esp, 0xc
test eax, eax
je 0x4071ae
push 9
push str.msimn.exe
push esi
call edi
add esp, 0xc
test eax, eax
je 0x4071ff
mov eax, dword [esp + 0xc]
inc esi
dec eax
mov dword [esp + 0xc], eax
jne 0x40715b
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov byte [esi - 1], 0
mov al, byte [ebp]
cmp al, 0x22
jne 0x4071c8
mov ecx, dword [esp + 0x14]
lea edi, [ebp + 1]
lea edx, [ecx + 0xd8]
jmp 0x4071d4
mov ecx, dword [esp + 0x14]
mov edi, ebp
lea edx, [ecx + 0xd8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x4d8], 1
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x408a20
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xc04
mov eax, dword [esp + 0xc10]
push ebx
push ebp
push esi
test eax, eax
push edi
mov ebx, ecx
mov dword [esp + 0x10], 0
jle 0x408b30
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esp + 0xc18]
lea ecx, [esp + 0x14]
push eax
push 0x400
push ecx
mov byte [esp + 0x20], 0
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
lea edx, [esp + 0x14]
mov ecx, ebx
push edx
call fcn.00408f50
mov ecx, dword [esp + 0xc1c]
lea eax, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x41c]
push 0x4121e4
push edx
call ebp
add esp, 0x10
lea eax, [esp + 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x408b42
push str.DllRegisterServer
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x408b56
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x414]
push ecx
push 2
lea ecx, [ebx + 0x4dc]
call fcn.0040c270
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x814]
lea edx, [esp + 0x414]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x818]
push str.regsvr32___s___s
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x814]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc20]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x408a49
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc04
ret 0xc
call fcn.00403c20
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc04
ret 0xc
call fcn.00403c20
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc04
ret 0xc
Function at 0x4090c0
Capabilities:
Create directory

Disassembly:
sub esp, 0x51c
push ebx
mov ebx, ecx
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x4091d4
lea eax, [esp + 4]
push eax
push 0x40f238
push 1
push 0
push 0x40f228
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4091d4
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push 0x40f248
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x4091d4
lea eax, [esp + 0xc]
push 2
push eax
mov ecx, ebx
mov byte [esp + 0x14], 0
call fcn.004091f0
test eax, eax
je 0x4091d4
push ebp
push esi
push edi
mov edi, 0x4132f4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push eax
and ecx, 3
lea eax, [esp + 0x1c]
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push 0x4132ec
push 2
push str.pig.exe
push ecx
push edx
mov ecx, ebx
call fcn.00409280
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0x4132ec
push 2
push 0x412e9c
push eax
push ecx
mov ecx, ebx
call fcn.00409280
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push 0x4132ec
push 2
push str.uninstall.exe
push edx
push eax
mov ecx, ebx
call fcn.00409280
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x51c
ret
call fcn.00403c20
xor eax, eax
pop ebx
add esp, 0x51c
ret

Function at 0x4091f0
Capabilities:
Get common file path

Disassembly:
sub esp, 8
lea eax, [esp]
mov dword [esp], 0
push eax
mov dword [esp + 8], 0
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov ecx, dword [esp]
test ecx, ecx
je 0x40926b
test eax, eax
jne 0x40926b
mov edx, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40926b
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x40926b
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x409256
mov eax, dword [esp]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [esp]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, 1
add esp, 8
ret 8
xor eax, eax
add esp, 8
ret 8
Function at 0x409570
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x528
push ebp
push esi
mov esi, dword [esp + 0x534]
mov dword [esp + 0x10], ecx
test esi, esi
je 0x40962a
lea eax, [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push 0
push 0
lea ecx, [esp + 0x14]
push 0
lea edx, [esp + 0x2c]
push ecx
push edx
push 0
push esi
mov dword [esp + 0x28], 0x514
call ebp
test eax, eax
jne 0x40962a
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push 0x2001f
push 0
push ecx
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x4095e7
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push edx
call fcn.00409570
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test edi, edi
jne 0x409602
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push 0
push 0
push 0
lea ecx, [esp + 0x34]
push eax
push ecx
push 0
push esi
mov dword [esp + 0x30], 0x514
call ebp
test eax, eax
je 0x4095bf
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x528
ret 4

Function at 0x409640
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push str.SoftwareBCGP_AppWizard_Generated_Applications_
mov edi, ecx
push 0x80000001
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40968d
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, edi
call fcn.00409570
mov edx, dword [esp + 0x10]
push edx
call ebp
push str.SoftwareBCGP_AppWizard_Generated_Applications_
push 0x80000001
call esi
push str.Softwarepig3_addbooksListCtrl
push 0x80000001
call esi
push str.Softwarepig3_addbooksSettings
push 0x80000001
call esi
push str.Softwarepig3_addbooks
push 0x80000001
call esi
push 0x41335c
push 0x80000001
call esi
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push ecx
push edx
call ebx
test eax, eax
je 0x4096e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x409707
mov edx, dword [esp + 0x10]
push edx
call ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc
mov eax, dword [esp + 0x10]
push eax
call ebp
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 0xc
Function at 0x409bf0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x400
push ebx
mov ebx, dword [esp + 0x408]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x409c17
pop esi
pop ebx
add esp, 0x400
ret 4
push str.DllUnregisterServer
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x409c3b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
xor eax, eax
pop ebx
add esp, 0x400
ret 4
push edi
call eax
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0xc]
push ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push str.regsvr32___s___u__s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0xc]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x400
ret 4
Function at 0x40a0f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40dc77
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x6c], ebx
call fcn.0040cbb2
lea ecx, [esp + 0xc]
mov byte [esp + 0x6c], 1
call fcn.0040cbb2
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 2
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 0x50]
mov byte [esp + 0x6c], 3
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], 4
call sub.MFC42.DLL_CStringArray::CStringArray
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x50]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
push ecx
lea eax, [esp + 0x84]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
mov byte [esp + 0x80], 5
call sub.MFC42.DLL_CString::CString_2
call fcn.0040a2f0
add esp, 0x10
lea ecx, [esp + 0x24]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
push ecx
lea eax, [esp + 0x8c]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call sub.MFC42.DLL_CString::CString_2
call fcn.0040a670
mov eax, dword [esp + 0x48]
add esp, 0x18
xor esi, esi
test eax, eax
jle 0x40a27f
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
push edx
mov eax, dword [ecx + esi*4]
push eax
call edi
add esp, 8
test eax, eax
jne 0x40a257
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40a1f6
lea eax, [esp + 0xc]
jmp 0x40a210
push 0x413824
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_1
or ebx, 1
mov dword [esp + 0x18], ebx
mov byte [esp + 0x6c], 6
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax]
push edx
mov edx, dword [esp + 0x18]
mov ecx, dword [ecx + esi*4]
push 0
push edx
push eax
push ecx
call fcn.0040ab20
add esp, 0x14
mov dword [esp + 0x6c], 5
test bl, 1
je 0x40a24c
and ebx, 0xfffffffe
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CString::CString
push esi
call fcn.0040ace0
add esp, 4
jmp 0x40a272
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0
mov eax, dword [eax + esi*4]
push 0x413824
push eax
call fcn.0040ab20
add esp, 0x14
mov eax, dword [esp + 0x30]
inc esi
cmp esi, eax
jl 0x40a1d2
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], 4
call fcn.0040ced6
lea ecx, [esp + 0x50]
mov byte [esp + 0x6c], 3
call fcn.0040ced6
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 2
call fcn.0040ced6
lea ecx, [esp + 0xc]
mov byte [esp + 0x6c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x6c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x74]
mov dword [esp + 0x6c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x64]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x64
ret
Function at 0x40a920
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40dda8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 2
call fcn.0040cbb2
lea eax, [esp + 0x34]
lea ecx, [esp + 0xc]
push eax
mov byte [esp + 0x30], 3
call fcn.0040cb9a
push str._sys.bin
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x38]
mov dword [esp + 8], 0
lea edx, [esp + 4]
mov eax, dword [ecx - 8]
lea ecx, [esp + 8]
inc eax
push edx
push ecx
push eax
push eax
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0x20]
call fcn.00402070
mov edx, dword [esp + 0xc]
push 0x1001
push edx
lea ecx, [esp + 0x1c]
call fcn.0040cd92
lea eax, [esp + 4]
push 4
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 4
call sub.MFC42.DLL_CFile::Write
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
push ecx
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 4]
lea edx, [esp + 8]
push ecx
mov eax, dword [eax - 8]
push edx
inc eax
lea ecx, [esp + 0x44]
push eax
push eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0x20]
call fcn.00402070
lea eax, [esp + 4]
push 4
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
push ecx
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
mov eax, dword [esp + 0x40]
push 1
neg eax
sbb al, al
lea ecx, [esp + 7]
and al, 0xe
add al, 0x46
mov byte [esp + 7], al
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
mov edx, dword [esp + 0x44]
lea eax, [esp + 3]
neg edx
sbb dl, dl
push 1
and dl, 0xe
push eax
add dl, 0x46
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb], dl
call sub.MFC42.DLL_CFile::Write
mov ecx, dword [esp + 0x48]
lea edx, [esp + 3]
neg ecx
sbb cl, cl
push 1
and cl, 0xe
push edx
add cl, 0x46
mov byte [esp + 0xb], cl
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Write
mov eax, dword [esp + 8]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x30
ret

Function at 0x40ab00
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
test edx, edx
jle 0x40ab1d
mov ecx, dword [esp + 4]
push ebx
mov bl, byte [eax + ecx]
xor bl, al
mov byte [eax + ecx], bl
inc eax
cmp eax, edx
jl 0x40ab0f
pop ebx
ret