joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403520
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push ebp
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x4035c8
push 0xf01ff
push str.SIoctl
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x4035c1
push ebx
lea eax, [esp + 0xc]
push edi
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4035a2
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0x10]
push ecx
push esi
call ebx
test eax, eax
je 0x4035a2
cmp dword [esp + 0x14], 3
jne 0x4035a2
push 0x3e8
call edi
lea edx, [esp + 0x10]
push edx
push esi
call ebx
test eax, eax
jne 0x403588
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
push ebp
call esi
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x1c
ret
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret

Function at 0x4035d0
Capabilities:
Create service
Get common file path
Start service

Disassembly:
push 0xffffffffffffffff
push 0x40bb9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xc]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
push str.Drivers_sioctl.sys
lea ecx, [esp + 0xc]
mov dword [esp + 0x11c], 0
call fcn.0040aea0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x4036c2
mov edx, dword [esp + 8]
push 0
push 0
push 0x412a64
push 0
push 0
push edx
push 1
push 3
push 1
push 0xf01ff
push str.SIoctl
push str.SIoctl
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
je 0x4036c2
push ebx
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
push edi
call esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x11c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
add esp, 0x114
ret
lea ecx, [esp + 8]
mov dword [esp + 0x118], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x110]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x114
ret
Function at 0x4037d0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40bbb8
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
call fcn.00404010
cmp al, 5
mov byte [0x412204], al
je 0x4038bd
cmp al, 6
je 0x4038bd
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
push str..PhysicalDrive0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call fcn.0040ad3e
mov eax, dword [esp + 8]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403899
push 0
push 0
push 0x7000
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0xc]
push 0
push ecx
push 0x200
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
call fcn.004035d0
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xc8
call esi
mov eax, dword [esp + 0x20]
push eax
push 1
push 0x38
call fcn.004036f0
add esp, 0xc
mov edi, eax
push 0xc8
call esi
call fcn.00403520
mov ecx, dword [esp + 0x10]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x403910
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40bbdb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x208
push ebp
push esi
push str.C:OKGFileDEFP.OKD
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 8]
push 0
push 2
push 3
push 0
push 3
push 0x80000000
push eax
mov dword [esp + 0x234], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
or ebp, 0xffffffff
cmp esi, ebp
je 0x4039b3
push edi
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x200
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop edi
test eax, eax
push esi
jne 0x40399c
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4039b3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x10]
push eax
call fcn.00403420
add esp, 4
test eax, eax
jne 0x4039dc
lea ecx, [esp + 8]
mov dword [esp + 0x218], ebp
call sub.MFC42.DLL_CString::CString
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x208]
mov dword fs:[0], ecx
add esp, 0x214
ret
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
push ecx
call fcn.004037d0
add esp, 4
lea ecx, [esp + 8]
mov dword [esp + 0x218], ebp
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x210]
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x214
ret
Function at 0x403a20
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40bbf8
push eax
mov dword fs:[0], esp
sub esp, 8
lea ecx, [esp]
push esi
push str.C:OKGFileDEFP.OKD
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 4]
push 0
push 2
push 2
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403a87
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 8]
push 0
push ecx
push 0x200
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x403ab0
Capabilities:
Get disk information via ioctl
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x40bc18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov ebx, dword [esp + 0x34]
lea ecx, [esp + 0x10]
movsx eax, bl
push eax
xor esi, esi
push str.__c:
push ecx
mov dword [esp + 0x38], esi
call sub.MFC42.DLL_CString::Format_1
mov edx, dword [esp + 0x1c]
add esp, 0xc
push esi
push 0x80
push 3
push esi
push 3
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
or ebp, 0xffffffff
cmp edi, ebp
je 0x403b5c
lea eax, [esp + 0x14]
push esi
push eax
lea ecx, [esp + 0x20]
push 0xc
push ecx
push esi
push esi
push 0x2d1080
push edi
mov dword [esp + 0x34], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x403b45
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403b5c
cmp dword [esp + 0x14], 0xc
je 0x403b55
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403b5c
cmp dword [esp + 0x18], 7
je 0x403b7e
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], ebp
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
mov dword [esi], edx
mov dword [ebp], eax
mov ecx, dword [esi]
push ecx
call fcn.00403280
push ebx
call fcn.00403100
mov edx, dword [esi]
push edx
push eax
call fcn.00403210
mov esi, eax
add esp, 0x10
test esi, esi
je 0x403bc1
push str.get_part_list_Succ.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp], esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x403df0
Capabilities:
Get disk information
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x40bc7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
xor ebp, ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x130], ebp
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov al, byte [esp + 0x24]
xor edi, edi
test al, al
lea esi, [esp + 0x24]
mov bl, 0x44
je 0x403ec6
mov al, byte [esi]
cmp al, 0x43
je 0x403eb8
movsx ecx, al
push ecx
lea edx, [esp + 0x14]
push 0x4123dc
push edx
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x403eb8
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push 0
lea edx, [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
cmp eax, 1
ja 0x403ec4
jb 0x403ea8
cmp ecx, 0x40000000
ja 0x403ec4
cmp eax, ebp
jb 0x403eb8
ja 0x403eb2
cmp ecx, edi
jbe 0x403eb8
mov bl, byte [esi]
mov edi, ecx
mov ebp, eax
mov al, byte [esi + 4]
add esi, 4
test al, al
jne 0x403e4e
jmp 0x403ec6
mov bl, byte [esi]
lea ecx, [esp + 0x10]
mov dword [esp + 0x130], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x128]
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret

Function at 0x403f00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov ecx, 0x41
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov al, byte [esp + 4]
pop edi
add esp, 0x104
ret

Function at 0x404010
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jb 0x40402c
xor al, al
add esp, 0x94
ret
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 4]
cmp eax, 5
jae 0x404051
mov al, 1
add esp, 0x94
ret
jne 0x404077
mov eax, dword [esp + 8]
test eax, eax
jne 0x404064
mov al, 2
add esp, 0x94
ret
cmp eax, 1
je 0x404088
cmp eax, 2
jne 0x404088
mov al, 4
add esp, 0x94
ret
cmp eax, 6
jb 0x404088
call fcn.00404000
add esp, 0x94
ret
mov al, 3
add esp, 0x94
ret

Function at 0x4044c0
Capabilities:
Create process on windows
Manipulate boot configuration

Disassembly:
push 0xffffffffffffffff
push 0x40bd28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
lea ecx, [esp]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x14]
lea ecx, [esp]
push eax
push str._timeout__d
push ecx
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::Format_1
mov edx, dword [esp + 0xc]
add esp, 0xc
push 0
push 0
push edx
push str.BCDEDIT.EXE
push 0x412a64
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp]
mov dword [esp + 0xc], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x404540
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40bd48
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push 0
push 2
push 2
push 0
push 1
push 0xc0000000
push str.C:menu.lst
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4045e6
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [0x412ac8]
mov eax, dword [esp + 0x1c]
and ecx, 0xff
push eax
push ecx
lea edx, [esp + 0xc]
push 2
push edx
mov dword [esp + 0x24], 0
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x14]
add esp, 0x10
lea ecx, [esp + 8]
mov eax, dword [eax - 8]
push 0
push ecx
push eax
push 0xa
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x404600
Capabilities:
Get file attributes
Manipulate boot configuration
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x40bd70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push str.C:_boot.ini
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp]
mov dword [esp + 0x14], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp]
and al, 0xfe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [esp]
lea ecx, [esp + 4]
push edx
call fcn.004064d0
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 4]
push eax
push str.timeout
push str.boot_loader
mov byte [esp + 0x20], 1
call fcn.004065e0
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.004064c0
lea ecx, [esp]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x4046e0
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40bd8b
push eax
mov dword fs:[0], esp
sub esp, 0x204
mov ecx, 0x80
xor eax, eax
push edi
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
call fcn.00403430
add esp, 4
test eax, eax
pop edi
jne 0x404731
call fcn.00403910
test eax, eax
jne 0x404731
lea ecx, [esp + 4]
push ecx
call fcn.00403f30
add esp, 4
lea ecx, [esp]
call sub.MFC42.DLL_CString::CString_1
movsx edx, byte [esp + 0x1e]
push edx
lea eax, [esp + 4]
push str._c:Ghost
push eax
mov dword [esp + 0x218], 0
call sub.MFC42.DLL_CString::Format_1
mov ecx, dword [esp + 0xc]
push 0
push ecx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x14
cmp eax, 0xffffffff
jne 0x404795
mov edx, dword [esp]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [esp]
or al, 2
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp]
mov dword [esp + 0x20c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x204]
mov dword fs:[0], ecx
add esp, 0x210
ret

Function at 0x4048b0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40bdb0
push eax
mov dword fs:[0], esp
sub esp, 8
push 0
push str.C:OKGFilembr1
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
cmp eax, 0xffffffff
je 0x4048ee
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea eax, [esp + 4]
push eax
call fcn.00402f00
add esp, 4
push str.XSBInst.exe
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0
call fcn.0040aea0
lea ecx, [esp]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x18]
lea edx, [esp]
push ecx
push str.__hot_key0x8500___key_nameF11___time_out_d___boot_filesbldr___boot_prevmbr_first___saveC:OKGFilembrbk__hd0_
push edx
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
add esp, 0xc
push 0
push 0
push eax
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp]
mov byte [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x404990
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x40bdd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
lea eax, [esp]
push esi
push eax
call fcn.00402f00
add esp, 4
push str.XSBInst.exe
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0
call fcn.0040aea0
mov esi, dword [sym.imp.MSVCRT.dll__access]
push 0
push str.C:OKGFilembrbk
call esi
add esp, 8
cmp eax, 0xffffffff
je 0x404a26
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 8]
push str.__restoreC:OKGFilembrbk__hd0_
push ecx
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::Format_1
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
add esp, 8
push 0
push 0
push edx
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov byte [esp + 0x14], 0
lea ecx, [esp + 8]
jmp 0x404a78
push 0
push str.C:OKGFilembr1
call esi
add esp, 8
cmp eax, 0xffffffff
je 0x404a7d
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 8]
push str.__restoreC:OKGFilembr1__hd0_
push ecx
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::Format_1
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
add esp, 8
push 0
push 0
push edx
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov byte [esp + 0x14], 0
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x406530
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x40c33f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_1
mov esi, dword [esi + 4]
lea ecx, [esp + 4]
push esi
push 0x400
push 0x400
mov dword [esp + 0x20], 1
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x34]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov esi, dword [esp + 0x1c]
lea eax, [esp + 4]
push eax
mov ecx, esi
call fcn.0040ae94
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
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 0x10
Function at 0x406860
Capabilities:
Get common file path
Get session user name
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40c41b
push eax
mov dword fs:[0], esp
sub esp, 0x21c
mov ecx, 0xd
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x234]
push esi
push edi
mov edi, str._USERPROFILE_
mov esi, ebp
repe cmpsb byte [esi], byte es:[edi]
jne 0x4069ee
mov ecx, 0x41
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov bl, byte [esp + 0x24]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x128]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x128]
push edx
push eax
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea ecx, [esp + 0x14]
xor esi, esi
push ecx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
push 0x80000002
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edx, dword [esp + 0x14]
cmp edx, esi
je 0x4069ee
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x18], 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push ecx
push eax
push esi
push str.ProfilesDirectory
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x128]
lea edx, [esp + 0x31]
movsx eax, bl
push ecx
push edx
push eax
lea ecx, [esp + 0x1c]
push str._c:_s_s
push ecx
mov dword [esp + 0x248], esi
call sub.MFC42.DLL_CString::Format_1
mov edi, dword [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp + 0xd]
push ecx
push edx
push str._s_s
push eax
call sub.MFC42.DLL_CString::Format_1
mov edi, dword [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x24
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x234], 0xffffffff
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x228
ret
Function at 0x406dc0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40c460
push eax
mov dword fs:[0], esp
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, ecx
push edi
push ebp
lea ebx, [esi + 0x70]
mov ecx, ebx
call fcn.0040ad3e
lea edi, [esi + 0x74]
push ebp
mov ecx, edi
call fcn.0040ad3e
push 1
mov ecx, edi
call sub.MFC42.DLL_CString::GetBuffer
mov cl, byte [esp + 0x20]
lea ebp, [esi + 0x98]
mov byte [eax], cl
push 5
mov ecx, ebp
call sub.MFC42.DLL_CWnd::ShowWindow
push str..
lea edx, [esp + 0x24]
push ebx
push edx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
mov ecx, esi
push eax
mov dword [esp + 0x1c], 0
call fcn.00407520
lea ecx, [esp + 0x20]
mov edi, eax
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebx]
push edi
push eax
lea ecx, [esp + 0x2c]
push str.Dir:__s__Count:_d
push ecx
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CString::Format_1
mov edx, dword [esp + 0x34]
add esp, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0xb8]
and edi, 0xffff
shl edi, 0x10
push edi
push 0
push 0x401
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
mov ecx, esi
mov dword [esi + 0x80], 0
call fcn.00407630
push 0x412a64
push 0x3f5
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
push 0
mov ecx, ebp
call sub.MFC42.DLL_CWnd::ShowWindow
lea ecx, [esp + 0x24]
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 8