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

Disassembly:
jmp 0x411bb0
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push esi
lea eax, [esp + 0xc]
push edi
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
push SysReAllocString
mov dword [esp + 0x20], 0
call ebp
mov esi, dword [esp + 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x411c17
mov eax, dword [esp + 0x10]
mov ecx, esi
neg ecx
lea edx, [esp + 0x14]
push 4
sbb cl, cl
push edx
and cl, 0x96
push 4
push 0
dec cl
push str.NoDriveTypeAutoRun
push eax
mov byte [esp + 0x2c], cl
call edi
mov ecx, dword [esp + 0x10]
push ecx
call ebx
cmp dword [0x46b748], 4
jb 0x411c5c
lea edx, [esp + 0x10]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerAutoplayHandlers
push SysReAllocString
call ebp
test eax, eax
jne 0x411c5c
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 4
push ecx
test esi, esi
push 4
push 0
sete al
push str.DisableAutoplay
push edx
mov byte [esp + 0x2c], al
call edi
mov eax, dword [esp + 0x10]
push eax
call ebx
lea ecx, [esp + 0x18]
push ecx
push 0x1388
push 2
push 0
push 0
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4

Function at 0x4016f4
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x411ff0
sub esp, 8
push ebx
push edi
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, dword [esp + 8]
xor edi, edi
test ecx, ecx
mov dword [esp + 0xc], eax
jle 0x412062
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_wcsncmp]
push esi
mov esi, eax
mov edx, dword [esi]
push 4
push str._AT:
push edx
call ebp
add esp, 0xc
test eax, eax
jne 0x412050
mov dword [0x46b430], 1
mov eax, dword [esi]
add eax, 8
mov ecx, ebx
push eax
call fcn.00401028
mov dword [0x46b434], eax
mov eax, dword [esp + 0x10]
inc edi
add esi, 4
cmp edi, eax
jl 0x412021
mov eax, dword [esp + 0x14]
pop esi
pop ebp
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop ebx
add esp, 8
ret
Function at 0x401712
Capabilities:
Read .ini file

Disassembly:
jmp 0x412120
sub esp, 0x208
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
mov ebx, ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov byte [eax + 1], 0
mov edi, dword [0x46b528]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x118]
push 0x104
push ecx
push 0x46b324
push str.TEMPLATE_NAME
push str.TEMPLATE_NAME
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebp, dword [sym.imp.MSVCRT.dll__stricmp]
xor edi, edi
mov esi, 0x46b4f8
mov eax, dword [esi]
lea edx, [esp + 0x114]
push edx
push eax
call ebp
add esp, 8
test eax, eax
je 0x412207
add esi, 0xc
inc edi
cmp esi, 0x46b528
jl 0x4121b5
lea esi, [ebx + 0xc4]
push 0x46b4f8
mov ecx, esi
call sub.MFC42.DLL_CString::operator
mov eax, dword [0x46b4fc]
push 0x46b500
lea ecx, [esi + 8]
mov dword [esi + 4], eax
call sub.MFC42.DLL_CString::operator
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
lea ecx, [edi + edi*2]
lea edi, [ebx + 0xc4]
lea esi, [ecx*4 + 0x46b4f8]
mov ecx, edi
push esi
call sub.MFC42.DLL_CString::operator
mov edx, dword [esi + 4]
add esi, 8
push esi
lea ecx, [edi + 8]
mov dword [edi + 4], edx
call sub.MFC42.DLL_CString::operator
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x4017a3
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
jmp 0x41b770
push 0xffffffffffffffff
push 0x455529
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
push eax
push 0x97
mov dword [esp + 0x10], edi
call fcn.0044772e
lea esi, [edi + 0x60]
mov dword [esp + 0x14], 0
mov ecx, esi
mov dword [esp + 0x20], esi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 4]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0xc]
mov byte [esp + 0x14], 2
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x10]
mov byte [esp + 0x14], 3
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x14]
mov byte [esp + 0x14], 4
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x20]
mov byte [esp + 0x14], 5
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x2c]
mov byte [esp + 0x14], 6
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 7
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x34]
mov byte [esp + 0x14], 8
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x3c]
mov byte [esp + 0x14], 9
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x4c]
mov byte [esp + 0x14], 0xa
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x5c]
mov byte [esp + 0x14], 0xb
call sub.MFC42.DLL_CString::CString_3
lea ecx, [edi + 0x14c]
mov byte [esp + 0x14], 0xc
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x1c]
mov dword [edi], 0x45c14c
mov dword [edi + 0x150], ecx
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4017f3
Capabilities:
Get graphical window text

Disassembly:
jmp 0x402b50
mov eax, dword [0x46bb54]
sub esp, 0xcc
test eax, eax
push esi
push edi
mov edi, ecx
je 0x402cee
call fcn.004011e0
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x402ba0
push str.AutoH2UFD
push 0
call esi
push eax
mov dword [0x46b320], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x402ba0
push str.AutoH2
push str.AMSZAUTOH2TOOL
call esi
mov dword [0x46b320], eax
mov ecx, edi
call fcn.004011e0
test eax, eax
je 0x402cee
mov eax, dword [esp + 0xe0]
mov dword [esp + 8], 0x186a0
shr eax, 0xb
cmp eax, 0x186a0
jb 0x402bcc
mov dword [esp + 8], eax
push ebx
push 0
push str.AMSZAUTOH2TOOL
call esi
mov ecx, dword [esp + 0xe0]
mov dword [0x46b320], eax
and ecx, 0xff
add ecx, 0x410
push ecx
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
mov esi, dword [esp + 0xdc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0xc]
xor edi, edi
test eax, eax
jbe 0x402ccc
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [esp + 0x14]
push edx
push 0xc8
push 0xd
push ebx
call ebp
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::operator_1
push str.Pass
mov ecx, esi
call sub.MFC42.DLL_CString::Find_3
cmp eax, 0xffffffff
jne 0x402ccb
push str.Fail
mov ecx, esi
call sub.MFC42.DLL_CString::Find_3
cmp eax, 0xffffffff
jne 0x402ccb
push str.Error
mov ecx, esi
call sub.MFC42.DLL_CString::Find_3
cmp eax, 0xffffffff
jne 0x402ccb
push str.Canceled
mov ecx, esi
call sub.MFC42.DLL_CString::Find_3
cmp eax, 0xffffffff
jne 0x402ccb
push str.Cant
mov ecx, esi
call sub.MFC42.DLL_CString::Find_3
cmp eax, 0xffffffff
jne 0x402ccb
mov ecx, dword [esi]
mov eax, dword [ecx - 8]
test eax, eax
je 0x402ccb
push str.Total_Size:_0_MB
mov ecx, esi
call sub.MFC42.DLL_CString::Find_3
cmp eax, 0xffffffff
jne 0x402ccb
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
inc edi
cmp edi, eax
jb 0x402c29
pop ebp
mov eax, dword [esp + 0xc]
pop ebx
cmp edi, eax
jne 0x402cee
push str.Timeout
mov ecx, esi
call sub.MFC42.DLL_CString::operator_1
pop edi
xor eax, eax
pop esi
add esp, 0xcc
ret 0xc
pop edi
mov eax, 1
pop esi
add esp, 0xcc
ret 0xc
Function at 0x40182a
Capabilities:
Get graphical window text

Disassembly:
jmp 0x402860
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4532bb
push eax
mov eax, dword [0x46bb54]
mov dword fs:[0], esp
sub esp, 0xd8
test eax, eax
push ebx
push esi
push edi
mov ebx, ecx
je 0x402901
call fcn.004011e0
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x4028c6
push str.AutoH2UFD
push 0
call esi
mov edi, dword [sym.imp.USER32.dll_IsWindow]
push eax
mov dword [0x46b320], eax
call edi
test eax, eax
jne 0x4028cc
push str.AutoH2
push str.AMSZAUTOH2TOOL
call esi
mov dword [0x46b320], eax
jmp 0x4028cc
mov edi, dword [sym.imp.USER32.dll_IsWindow]
mov ecx, ebx
call fcn.004011e0
test eax, eax
je 0x402901
push str.AutoH2UFD
push 0
call esi
push eax
mov dword [0x46b320], eax
call edi
test eax, eax
je 0x40291e
mov eax, dword [0x46b320]
push 0
push 0
push 0x4700
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 1
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xe4
ret
push str.AutoH2
push str.AMSZAUTOH2TOOL
call esi
push eax
mov dword [0x46b320], eax
call edi
test eax, eax
je 0x402901
mov ecx, dword [0x46b320]
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x45b
push ecx
call ebp
mov edx, dword [0x46b320]
push 0x45a
push edx
mov dword [esp + 0x24], eax
call ebp
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov byte [esp + 0x13], 0
xor esi, esi
mov dword [esp + 0x18], esi
mov ecx, dword [0x46b320]
lea eax, [esi + 0x410]
push eax
push ecx
call ebp
mov edx, eax
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
push eax
push 0xc8
push 0xd
push edx
call ebx
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_4
push str.Find_Device...
lea ecx, [esp + 0x18]
mov dword [esp + 0xf4], 0
call sub.MFC42.DLL_CString::Find_3
or ecx, 0xffffffff
cmp eax, ecx
jne 0x4029ee
mov dword [esp + 0xf0], ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
inc esi
cmp esi, 0x40
jb 0x40296e
mov esi, dword [esp + 0x18]
jmp 0x402a03
mov dword [esp + 0xf0], ecx
lea ecx, [esp + 0x14]
mov esi, 1
call sub.MFC42.DLL_CString::CString
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x402a21
test esi, esi
je 0x402a35
mov al, byte [esp + 0x13]
inc al
cmp al, 0x1e
mov byte [esp + 0x13], al
jb 0x402968
jmp 0x402a49
mov eax, dword [0x46b320]
push 0
push 0x45b
push 0x111
push eax
call ebx
mov al, byte [esp + 0x13]
pop ebp
cmp al, 0x1e
jne 0x402901
push 0
push 0
push str.Not_Found_Auto_H2Test_Tool_S_
call sub.MFC42.DLL_AfxMessageBox
xor eax, eax
jmp 0x402906
Function at 0x40184d
Capabilities:
Read .ini file

Disassembly:
jmp 0x4075f0
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x453598
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
push ebp
xor ebp, ebp
dec eax
push esi
cmp eax, 6
push edi
mov esi, ecx
ja case.default.0x40761a
jmp dword [eax*4 + 0x407730]
push ebp
push ebp
push str.Function_Param_Error_
jmp 0x407712
push ebp
push ebp
push str.Hub_Profile_Not_Exist_
jmp 0x407712
push ebp
push ebp
push str.Read_Hub_Profile_Error_
jmp 0x407712
push ebp
push ebp
push str.Hub_Profile_Not_Match_
jmp 0x407712
push ebp
push ebp
push str.Not_Support_Save_Hub_Profile_
jmp 0x407712
push ebp
push ebp
push str.Save_Hub_Profile_Error_
jmp 0x407712
cmp dword [0x46b474], ebp
jne 0x407719
mov ecx, dword [0x46b73c]
push ecx
push ebp
push str.RemoteLogging
push str.LogFile
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor edx, edx
cmp eax, ebp
setne dl
mov eax, edx
mov dword [0x46b474], 1
cmp eax, ebp
jne 0x4076e8
push 0x465894
lea eax, [esp + 0x20]
push str.IDS_ERR_CHANGE_RERUN
push eax
call fcn.00401154
add esp, 0xc
mov eax, dword [eax]
push 0x24
push str.RESTART_MP_PROGRAM
push eax
mov ecx, esi
mov dword [esp + 0x20], ebp
call sub.MFC42.DLL_CWnd::MessageBoxA
lea ecx, [esp + 0x1c]
mov edi, eax
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
cmp edi, 6
jne 0x407704
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0x10
push ecx
mov dword [esi + 0x16b74], 1
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x407719
mov ebp, 1
jmp 0x407719
push ebp
push ebp
push str.Not_Process_Error_
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
mov ecx, dword [esp + 0xc]
pop edi
mov eax, ebp
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0xc
ret 4
Function at 0x401893
Capabilities:
Get file size
Read file on windows

Disassembly:
jmp 0x42d640
push 0xffffffffffffffff
push 0x457318
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 + 0x14]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x14]
push eax
push str.Port__d_Last_ERR_INFO.txt
push ecx
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x1c]
push str.Third_DLL_
push 0x46b740
push edx
call sub.MFC42.DLL_operator_2
lea ecx, [esp + 0x14]
lea edx, [esp + 0x34]
push ecx
mov bl, 2
push eax
push edx
mov byte [esp + 0x38], bl
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
push 0
push 0x80
push 4
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
push ebp
call sub.MFC42.DLL_operatornew
mov ecx, ebp
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x24]
push eax
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
push esi
lea ecx, [esp + 0x20]
call fcn.004478a8
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 4
push ecx
mov ecx, dword [esp + 0x3c]
call sub.MFC42.DLL_CString::operator
test esi, esi
je 0x42d771
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x40189d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x411ec0
sub esp, 0x10
mov eax, dword [str.UFDMPTooB]
mov ecx, dword [0x466c50]
mov dl, byte [0x466c54]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
xor edi, edi
push str.UserList
push 0x91
push edi
mov byte [esp + 0x16], 0
mov byte [esp + 0x17], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x20], dl
call esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x411f40
push eax
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x411f40
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x411f40
push eax
lea eax, [esp + 0xe]
push eax
lea ecx, [esp + 0x14]
push 0x46b710
push ecx
call fcn.0044c070
add esp, 0x10
mov edi, eax
mov al, byte [esp + 0xa]
mov dl, 0xa
imul dl
add al, byte [esp + 0xb]
test edi, edi
mov byte [0x466af8], al
je 0x411f75
test al, al
je 0x411f75
mov eax, dword [0x46b75c]
pop edi
pop esi
mov byte [eax], 1
mov ecx, dword [0x46b758]
mov eax, 1
mov byte [ecx], 1
add esp, 0x10
ret
mov edx, dword [0x46b75c]
mov ecx, 8
xor eax, eax
mov edi, 0x46b710
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov byte [0x466af8], 0
mov byte [edx], 0
mov eax, dword [0x46b758]
pop edi
pop esi
mov byte [eax], 0
mov eax, 1
add esp, 0x10
ret
Function at 0x401979
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
jmp 0x414120
mov eax, dword [0x46b600]
sub esp, 0x158
test eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x414143
push eax
call esi
mov dword [0x46b600], 0
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov dword [esp + 8], eax
mov dword [esp + 0x18], 0x44
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [esp + 0x60]
push 0x465e94
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 8]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x5c]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x4141b7
push eax
push eax
push str.CreateProcess_failed.
call sub.MFC42.DLL_AfxMessageBox
mov edx, dword [esp + 4]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
pop esi
add esp, 0x158
ret
Function at 0x4019b5
Capabilities:
Get disk information via ioctl

Disassembly:
jmp 0x41ac30
mov eax, dword [esp + 8]
sub esp, 0x46c
cmp eax, 2
push ebx
push ebp
push esi
push edi
jb 0x41adcd
cmp eax, 3
jbe 0x41ac5f
cmp eax, 5
jne 0x41adcd
mov dword [esp + 0x10], 0x45b1b8
jmp 0x41ac67
mov dword [esp + 0x10], 0x45b1d0
mov eax, dword [esp + 0x10]
push 0x12
push 0
push 0
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41adcd
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
xor ebp, ebp
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x64]
rep stosd dword es:[edi], eax
mov eax, 0x1c
mov dword [esp + 0x60], eax
mov dword [esp + 0x44], eax
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
lea ecx, [esp + 0x60]
push ecx
push ebp
push edx
push 0
push esi
call edi
test eax, eax
je 0x41adc6
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
push 0
push esi
call edi
lea edx, [esp + 0x14]
push 0
push edx
push 0
lea eax, [esp + 0x50]
push 0
push eax
push esi
mov dword [esp + 0x2c], 0
call ebx
mov edx, dword [esp + 0x14]
test edx, edx
je 0x41ada3
cmp edx, 0x400
ja 0x41ada3
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x7c], 5
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x14]
push ecx
push eax
push edx
lea ecx, [esp + 0x88]
lea edx, [esp + 0x50]
push ecx
push edx
push esi
mov dword [esp + 0x40], 0x1c
call ebx
test eax, eax
je 0x41ada3
push 0
push 0
push 3
push 0
push 3
lea eax, [esp + 0x94]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x41ada3
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x24]
push 0xc
push edx
push 0
push 0
push 0x2d1080
push edi
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x41ad9c
mov eax, dword [esp + 0x480]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
je 0x41ada9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebp
jmp 0x41aca5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x46c
ret
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x46c
ret
Function at 0x443be0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x458890
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push esi
push edi
mov esi, ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString_3
mov ecx, esi
mov byte [esp + 0x28], 2
call fcn.004438b0
lea eax, [esp + 0x30]
lea ecx, [esi + 0x10]
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x34]
lea edi, [esi + 0xc]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::operator
lea ebp, [esi + 4]
push 0x46b324
mov ecx, ebp
call sub.MFC42.DLL_CString::operator_1
lea edx, [esi + 8]
lea ecx, [esp + 0xc]
push edx
call sub.MFC42.DLL_CString::operator
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push edi
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x30], 3
mov ecx, esp
mov dword [esp + 0x20], esp
push str.TITLE
call sub.MFC42.DLL_CString::CString_4
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov byte [esp + 0x38], 4
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 2
push ecx
mov ecx, esi
call fcn.00443f10
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0xc]
mov ecx, ebp
push edx
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop edi
mov eax, 1
mov dword fs:[0], ecx
pop esi
pop ebp
add esp, 0x20
ret 8
Function at 0x446120
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45905f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov dword [esp + 0xc], 0
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 3
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x2c]
mov bl, 4
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::Find_3
mov ecx, dword [esp + 0x2c]
mov esi, eax
mov edx, dword [ecx - 8]
lea ecx, [esp + 0x28]
add esi, edx
mov edx, dword [esp + 0x30]
push esi
push edx
call sub.MFC42.DLL_CString::Find
cmp esi, 0xffffffff
je 0x446213
cmp eax, 0xffffffff
je 0x446213
sub eax, esi
lea ecx, [esp + 0x28]
push eax
lea eax, [esp + 0x14]
push esi
push eax
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::TrimRight
mov ecx, dword [esp + 8]
push 0x46b324
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x4461f8
push str.nbsp_
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_1
mov esi, dword [esp + 0x24]
lea edx, [esp + 8]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov ebx, 1
mov dword [esp + 0xc], ebx
jmp 0x44622c
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov ebx, 1
mov dword [esp + 0xc], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0x10