joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fdaf
Capabilities:
Check os version

Disassembly:
cmp dword [0x456d20], 0
jne 0x41fe43
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov edi, 0x456d20
push edi
mov dword [0x456d20], 0x9c
call esi
test eax, eax
jne 0x41fde7
push edi
mov dword [0x456d20], 0x94
call esi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x41fe1f
push str.IsWow64Process
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x41fe18
push 0x456dbc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x456d24], 5
pop edi
pop esi
jne 0x41fe43
cmp dword [0x456d28], 2
jne 0x41fe43
push 1
pop eax
cmp byte [0x456dba], al
jne 0x41fe43
mov dword [0x456d28], eax
ret
Function at 0x421d9e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
test byte [ebp + 0x10], 4
push esi
mov esi, ecx
je 0x421dae
or dword [ebp + 0x14], 4
lea eax, [esi + 4]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 1
mov dword [esi], eax
pop eax
pop esi
pop ebp
ret 0x18

Function at 0x421dd1
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [esi + 4]
je 0x421df6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x421df8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x421df8
xor eax, eax
pop esi
ret

Function at 0x422461
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
push 2
call sym.HPZwis01.exe_public:_unsigned_char__const___thiscall_CPrinter::GetPrinterInfo_unsigned_int_const
test eax, eax
jne 0x4224cd
push 1
mov ecx, esi
call sym.HPZwis01.exe_public:_unsigned_int___thiscall_CPrinter::OpenHP_enum_CPrinter::ETypeUser_const
test eax, eax
je 0x4224c4
push 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push str.Attributes
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4224c8
cmp eax, 5
jne 0x4224c4
push 0x30
push sym.HPZwis01.exe____C__0BE_GCMH_No_5rights_5for_5Bi_9Di__AA_
push sym.HPZwis01.exe____C__07JCGI_Warning__AA_
call sym.HPZwis01.exe_public:_static_unsigned_int___cdecl_CPrinter::ShowWarningMsg_char___char___unsigned_int_
add esp, 0xc
xor eax, eax
jmp 0x4224dc
mov eax, dword [ebp - 0xc]
jmp 0x4224dc
push edi
mov edi, dword [eax + 0x34]
push eax
mov ecx, esi
call sym.HPZwis01.exe_public:_void___thiscall_CPrinter::ReleasePrinterInfo_void__const
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x4224df
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
push 1
call sym.HPZwis01.exe_public:_unsigned_int___thiscall_CPrinter::OpenHP_enum_CPrinter::ETypeUser_const
test eax, eax
je 0x422535
push 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push str.Status
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x422539
cmp eax, 5
jne 0x422535
push 0x30
push sym.HPZwis01.exe____C__0BE_GCMH_No_5rights_5for_5Bi_9Di__AA_
push sym.HPZwis01.exe____C__07JCGI_Warning__AA_
call sym.HPZwis01.exe_public:_static_unsigned_int___cdecl_CPrinter::ShowWarningMsg_char___char___unsigned_int_
add esp, 0xc
xor eax, eax
jmp 0x42253c
mov eax, dword [ebp - 0xc]
pop esi
leave
ret

Function at 0x42280b
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
add ecx, 0x11c
jmp sym.HPZwis01.exe_public:_unsigned_int___thiscall_CPort::IsIrLPT_void_const
Function at 0x42331d
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x423408
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 0x10]
je 0x423408
mov eax, dword [ebp + 0x14]
or eax, dword [ebp + 0x18]
je 0x423408
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
mov dword [ebp - 0xc], esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, esi
mov dword [ebp - 8], eax
je 0x423408
push eax
call fcn.004296a8
cmp eax, esi
pop ecx
mov dword [ebp - 4], eax
je 0x423408
push eax
push dword [ebp - 8]
push esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x42338c
push dword [ebp - 4]
jmp 0x423402
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 4]
push ecx
push 0x43d2b8
push eax
mov dword [ebp + 8], eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4233ff
cmp dword [ebp - 0xc], esi
je 0x4233ff
mov eax, dword [ebp - 4]
push ebx
xor ebx, ebx
push edi
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0x10]
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
push dword [ebp + 8]
or ebx, ecx
xor ecx, ecx
xor edx, edx
or ecx, eax
or esi, edx
mov dword [ebp - 0x14], ecx
or edi, edx
call fcn.004296d1
cmp esi, dword [ebp + 0x10]
pop ecx
jl 0x4233f9
jg 0x4233e5
cmp ebx, dword [ebp + 0xc]
jb 0x4233f9
cmp edi, dword [ebp + 0x18]
jl 0x4233f9
jg 0x4233f4
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x14], eax
jb 0x4233f9
push 1
pop eax
jmp 0x4233fb
xor eax, eax
pop edi
pop ebx
jmp 0x42340a
push dword [ebp + 8]
call fcn.004296d1
pop ecx
xor eax, eax
pop esi
leave
ret 0x14

Function at 0x423489
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x423570
push ebx
call fcn.00409f30
cmp eax, 5
pop ecx
jne 0x423548
push 3
push 0x443ffc
push ebx
call fcn.00427913
add esp, 0xc
test eax, eax
jne 0x423548
movsx eax, byte [ebx + 3]
push eax
call fcn.0040a09a
test eax, eax
pop ecx
je 0x423548
cmp byte [ebx + 4], 0x3a
jne 0x423548
push esi
push edi
push 5
mov esi, str.NetworkPersistent_
pop ecx
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 4
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.0042784b
add esp, 0xc
lea eax, [ebp + 8]
xor esi, esi
push eax
push 0x20019
lea eax, [ebp - 0x24]
push esi
push eax
push 0x80000001
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 8]
push esi
push eax
push esi
push str.RemotePath
push dword [ebp + 8]
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
jmp 0x423577
push 4
push str.DOT4
push ebx
call fcn.00427913
add esp, 0xc
test eax, eax
je 0x423574
push 3
push 0x444028
push ebx
call fcn.00427913
add esp, 0xc
test eax, eax
je 0x423574
xor eax, eax
jmp 0x423577
push 1
pop eax
pop ebx
leave
ret
Function at 0x4235ad
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov esi, 0x4440c8
lea edi, [ebp - 0x18]
xor eax, eax
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x15]
mov ebx, ecx
stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
stosb byte es:[edi], al
call fcn.00409f30
pop ecx
mov esi, eax
call sym.HPZwis01.exe_unsigned_int___cdecl_Is9X_void_
test eax, eax
je 0x42365c
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x20019
push edi
push str.EnumINFRAREDVirtualPorts
push 0x80000002
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0xa
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x42361c
push str.No_IR_installed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x42364f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push str.VirtualLptPortName
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x423653
push str.Error_____unable_to_get_VirtualLptPortName__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x42367f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x18]
push eax
call fcn.00409f30
cmp eax, esi
pop ecx
jbe 0x42366c
mov eax, esi
push eax
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.00407ce4
add esp, 0xc
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42383e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov esi, ecx
jne 0x42385a
push 0x57
pop eax
jmp 0x42398e
call fcn.004211d0
test eax, eax
je 0x42388c
mov eax, dword [0x456e1c]
cmp eax, ebx
je 0x42388c
mov ecx, dword [esi + 4]
cmp ecx, ebx
jne 0x423877
xor ecx, ecx
jmp 0x42387a
mov ecx, dword [ecx + 4]
push 0x20019
add esi, 8
push ebx
push esi
push ecx
call eax
mov dword [ebp - 4], eax
jmp 0x42388f
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], 0xffffffff
je 0x42389e
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4238ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x42398e
mov al, byte [0x4541f8]
push edi
push 0x40
mov byte [ebp - 0x114], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x113]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x104
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
push ebx
push str.Base_Name
push dword [ebp - 4]
call esi
test eax, eax
pop edi
je 0x423904
lea eax, [ebp - 0x114]
push 0x444028
push eax
call fcn.0040d890
pop ecx
pop ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push str.Port_Number
push dword [ebp - 4]
mov dword [ebp - 0x10], 4
call esi
push dword [ebp - 4]
mov esi, eax
cmp esi, ebx
je 0x423935
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x42398e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
lea eax, [ebp - 0x114]
push str._03d
push eax
call fcn.00409f30
pop ecx
lea eax, [ebp + eax - 0x114]
push eax
call fcn.00407725
lea eax, [ebp - 0x114]
push eax
call fcn.00409f30
mov ecx, dword [ebp + 0xc]
add esp, 0x10
dec ecx
cmp eax, ecx
jbe 0x42397b
mov eax, 0xffff3ca8
jmp 0x42398e
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 8]
call fcn.0040d890
pop ecx
xor eax, eax
pop ecx
pop esi
pop ebx
leave
ret 8
Function at 0x4244a2
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x430d94
call fcn.004083b8
sub esp, 0x30
mov al, byte [ebp + 0xb]
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x3c], al
call fcn.00403360
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x2c], al
call fcn.00403360
mov esi, str.Enum_
push esi
call fcn.00409f30
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00403650
lea eax, [ebp - 0x3c]
mov ecx, edi
push eax
mov byte [ebp - 4], 1
call fcn.0042194f
push dword [0x432578]
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x2c]
push ebx
push eax
call fcn.00402cc0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], ebx
cmp eax, ebx
jne 0x42451e
mov eax, 0x43257c
lea ecx, [ebp - 0x10]
push ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, ebx
je 0x424536
mov esi, eax
jmp 0x42458c
mov al, byte [0x4541f8]
lea edi, [ebp - 0x13]
mov byte [ebp - 0x14], al
xor eax, eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push str.CurrentDriveLetterAssignment
mov dword [ebp - 0x18], 4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x10]
mov esi, eax
cmp esi, ebx
je 0x42457c
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42458c
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 0x14]
xor esi, esi
mov byte [eax], cl
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00403360
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x3c]
call fcn.00403360
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4245ba
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
movsx eax, byte [ebx + 0x208]
mov esi, 0x444118
lea edi, [ebp - 4]
movsw word es:[edi], word [esi]
push eax
lea eax, [ebp - 4]
push 0x444114
push eax
movsb byte es:[edi], byte [esi]
call fcn.00407725
add esp, 0xc
call sym.HPZwis01.exe_unsigned_int___cdecl_IsNT_void_
test eax, eax
je 0x424653
lea esi, [ebx + 0x104]
push 0x104
lea eax, [ebp - 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x424614
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x42461e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42464c
push esi
add ebx, 0x310
push dword [ebp + 8]
mov ecx, ebx
push 0x433c08
call fcn.00421d02
test eax, eax
je 0x42464c
push esi
mov ecx, ebx
push dword [ebp + 8]
push 0x433bf8
call fcn.00421d02
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
lea edi, [ebx + 0x310]
push 0
mov esi, 0x433c18
push 0
push esi
mov ecx, edi
call fcn.00421bbc
test eax, eax
je 0x42467c
push 0
push 0
push esi
mov ecx, edi
call fcn.00421bbc
jmp 0x42464c
push dword [ebp + 8]
lea ecx, [ebx + 0x310]
call fcn.00421be8
cmp eax, 0x4e0
je 0x4246cb
test eax, eax
jne 0x42464c
and byte [ebp - 1], al
mov ecx, dword [ebp + 8]
lea eax, [ebp - 1]
push eax
call fcn.004244a2
mov esi, eax
test esi, esi
jne 0x42467c
movsx eax, byte [ebp - 1]
push eax
call fcn.00411860
mov edi, eax
movsx eax, byte [ebx + 0x208]
push eax
call fcn.00411860
pop ecx
cmp edi, eax
pop ecx
je 0x42464a
jmp 0x42467c
mov eax, 0x490
jmp 0x42464c

Function at 0x428af6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x428b16
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004097f8
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x428b39
test byte [esp + 8], 2
je 0x428b39
call fcn.0040986b
mov dword [eax], 0xd
call fcn.00409874
mov dword [eax], 5
jmp 0x428b12
xor eax, eax
ret

Function at 0x42e7b6
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42e7e4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42e802
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042e71c
jmp 0x42e802
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42e802
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0042e71c
test edi, edi
mov eax, edi
jne 0x42e7ec
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403534
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x408b15
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
mov eax, dword [esp + 0x118]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push eax
push 0x66
mov dword [esp + 0x18], ebp
call sub.MFC42.DLL_CDialog::CDialog
xor edi, edi
lea ecx, [ebp + 0x64]
mov dword [esp + 0x120], edi
call fcn.00406f10
lea ecx, [ebp + 0x100]
mov byte [esp + 0x120], 1
call fcn.00401000
lea ecx, [ebp + 0x198]
mov byte [esp + 0x120], 2
call fcn.00401000
lea ecx, [ebp + 0x230]
mov byte [esp + 0x120], 3
call fcn.00401000
lea ecx, [ebp + 0x2c8]
mov byte [esp + 0x120], 4
call fcn.00401000
lea ecx, [ebp + 0x360]
mov byte [esp + 0x120], 5
call fcn.00401000
lea esi, [ebp + 0x3f8]
mov byte [esp + 0x120], 6
mov ecx, esi
call sub.MFC42.DLL_CWnd::CWnd
mov dword [esi], 0x40ab58
lea ecx, [ebp + 0x438]
mov byte [esp + 0x120], 7
call sub.MFC42.DLL_CString::CString
lea ebx, [ebp + 0x440]
mov byte [esp + 0x120], 8
mov ecx, ebx
call sub.MFC42.DLL_CString::CString
lea esi, [ebp + 0x448]
mov byte [esp + 0x120], 9
mov ecx, esi
call sub.MFC42.DLL_CString::CString
push edi
lea ecx, [ebp + 0x458]
mov byte [esp + 0x124], 0xa
call fcn.00405b00
push edi
lea ecx, [ebp + 0x77c]
mov byte [esp + 0x124], 0xb
call fcn.004058a0
lea ecx, [ebp + 0x840]
mov byte [esp + 0x120], 0xc
call fcn.004023d0
push 0x40d208
mov ecx, ebx
mov byte [esp + 0x124], 0xd
mov dword [ebp], 0x40aa80
mov dword [ebp + 0x43c], edi
call fcn.00407e80
push 0x40d1ec
mov ecx, esi
mov dword [ebp + 0x444], 1
call fcn.00407e80
mov dword [ebp + 0x44c], edi
mov dword [ebp + 0x450], edi
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 edx, dword [ebp + 0x20]
push edi
lea ecx, [esp + 0x18]
push 5
push ecx
push edx
mov dword [ebp + 0x454], eax
mov dword [ebp + 0x60], edi
mov dword [ebp + 0x83c], edi
mov dword [ebp + 0x834], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, str.Images
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00407e80
lea ecx, [esp + 0x14]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x118]
pop edi
mov dword [ebp + 0x830], 1
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret 4
Function at 0x405358
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x408de0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push str.help.chm
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [esp + 8]
mov ecx, esp
mov dword [esp + 0xc], esp
push eax
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0xc]
push ecx
call fcn.00402ff0
add esp, 8
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call fcn.00407e5c
mov edx, dword [esp + 4]
mov eax, dword [esi + 0x20]
push 5
push 0
push 0
push edx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00407e5c
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x405410
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x408e06
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x10], ebx
lea ebp, [ebx + 4]
mov dword [esp + 0x120], 0
mov ecx, ebp
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x14]
mov byte [esp + 0x120], 1
push eax
push 0x104
mov dword [ebx], 0x40ac1c
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x40d198
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x128]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.00407e80
lea ecx, [esp + 0x128]
mov dword [esp + 0x120], 0xffffffff
call fcn.00407e5c
mov ecx, dword [esp + 0x118]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret 4
Function at 0x405540
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x408e4d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push esi
mov esi, ecx
mov dword [esp + 8], 0
lea ecx, [esp + 4]
mov dword [esp + 0x114], 3
call sub.MFC42.DLL_CString::CString
mov esi, dword [esi + 4]
mov ecx, dword [esp + 0x128]
mov edx, dword [esp + 0x124]
push esi
lea eax, [esp + 0x10]
push 0x100
push eax
mov eax, dword [esp + 0x12c]
push ecx
push edx
push eax
mov byte [esp + 0x12c], 4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 8]
call fcn.00407e80
mov esi, dword [esp + 0x11c]
lea edx, [esp + 4]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x114], 3
call fcn.00407e5c
lea ecx, [esp + 0x120]
mov byte [esp + 0x114], 2
call fcn.00407e5c
lea ecx, [esp + 0x124]
mov byte [esp + 0x114], 1
call fcn.00407e5c
lea ecx, [esp + 0x128]
mov byte [esp + 0x114], 0
call fcn.00407e5c
mov ecx, dword [esp + 0x10c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x114
ret 0x10

Function at 0x4056c0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x408e88
push eax
mov dword fs:[0], esp
push esi
mov ecx, dword [ecx + 4]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.00407e5c
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], 0xffffffff
call fcn.00407e5c
mov ecx, dword [esp + 4]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0xc

Function at 0x406440
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x408fa0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov edx, dword [esp + 0x20]
push esi
push edi
lea eax, [esp + 0xc]
push 0xa
push eax
push 3
push edx
add ecx, 0x2c0
call sub.MFC42.DLL_CListCtrl::GetItemText
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0xc]
lea ecx, [esp + 0x28]
push eax
mov dword [esp + 0x24], 0
call fcn.00407e80
push 0x2f
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::Find
lea ecx, [esp + 8]
push eax
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 8]
mov byte [esp + 0x20], 0
call fcn.00407e5c
mov edx, dword [esp + 0x28]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x40d4a8
push edx
mov esi, 2
call edi
add esp, 8
test eax, eax
jne 0x4064eb
xor esi, esi
jmp 0x40651d
mov eax, dword [esp + 0x28]
push str.GRAY
push eax
call edi
add esp, 8
test eax, eax
jne 0x406505
mov esi, 1
jmp 0x40651d
mov ecx, dword [esp + 0x28]
push 0x40d49c
push ecx
call edi
add esp, 8
test eax, eax
jne 0x40651d
mov esi, 2
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.00407e5c
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 4