joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421cc6
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
push ecx
mov ebx, dword [esi + 0x14]
push ebx
call fcn.00415563
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x421ce7
mov eax, dword [esi]
push eax
lea eax, [ebx + 1]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
cmp edi, ebx
jbe 0x421d18
push ecx
lea ebx, [edi - 1]
mov ecx, esi
push ebx
call fcn.00415563
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x421d0e
mov eax, dword [esi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test edi, edi
je 0x421d7c
cmp edi, ebx
ja 0x421d7c
push ecx
push edi
mov ecx, esi
call fcn.00415563
cmp dword [esi + 0x14], 8
mov edi, esi
jb 0x421d33
mov edi, dword [esi]
push 0x5c
push edi
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsrchr]
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x421d77
sub ecx, edi
lea edx, [esi + 0x10]
mov eax, dword [edx]
add ecx, 2
sar ecx, 1
cmp eax, ecx
jae 0x421d56
mov ecx, eax
cmp dword [esi + 0x14], 8
jb 0x421d5e
mov esi, dword [esi]
sub eax, ecx
mov dword [edx], eax
lea eax, [eax*2 + 2]
push eax
lea eax, [esi + ecx*2]
push eax
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x405408
call fcn.0041203a
pop ecx
pop ecx
push 0x405434
lea ecx, [ebp - 0xc]
call fcn.0040c24d
push 0x430f68
lea eax, [ebp - 0xc]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
Function at 0x424522
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push 0x30
push 0x4301f8
call fcn.0042c850
xor esi, esi
mov dword [ebp - 0x1c], esi
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
wait
mov dword [ebp - 4], esi
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.004238b3
mov dword [ebp - 0x1c], eax
wait
jmp 0x424571
mov dword [ebp - 4], 0xfffffffe
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test esi, esi
je 0x424596
mov dword [ebp - 0x1c], esi
push esi
push 0x406270
call fcn.0041203a
pop ecx
pop ecx
cmp byte [0x432a8d], 0
je 0x4245eb
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x24]
sbb eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
fild qword [ebp - 0x38]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
fild qword [ebp - 0x40]
fstp qword [ebp - 0x38]
fdiv qword [ebp - 0x38]
push ecx
push ecx
fstp qword [esp]
push dword [0x432b6c]
push dword [0x432590]
push 0x406290
call fcn.00411f8a
add esp, 0x14
mov al, byte [0x432a8a]
dec al
movzx eax, al
neg eax
sbb eax, eax
and eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42bfb2
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x42bfef
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x42bfe8
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x42bff4
add edx, 0x28
cmp edx, esi
jne 0x42bfd9
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x42bff1
Function at 0x401000
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
push eax
push esi
push edi
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x401035
lea ecx, [esp + 0x14]
push ecx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x401035
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push 4
push edx
push 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x401059
mov ebx, 1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x401070
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x404c25
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push esi
push edi
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 8]
mov dword [esp + 0x124], 1
mov dword [esp + 0x14], 0x104
call sub.MFC42.DLL_CString::Empty
mov edx, dword [esp + 0x130]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x134]
lea eax, [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x401103
mov esi, dword [esp + 0x12c]
lea eax, [esp + 8]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0xc], 1
jmp 0x40115c
mov eax, dword [esp + 0x138]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401136
lea edx, [esp + 0x18]
lea ecx, [esp + 8]
push edx
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x12c]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0x124], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x11c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x120
ret

Function at 0x401190
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4011c1
lea ecx, [esp + 0x10]
push ecx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4011c1
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x18]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov edx, dword [esp + 0x1c]
push 1
push eax
mov eax, dword [esp + 0x20]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
ret
Function at 0x401200
Capabilities:
Delete registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401249
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x40123e
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
ret
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
ret

Function at 0x401250
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x208
lea ecx, [esp]
push eax
push str.regsvr32__s___s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp]
push 0
push edx
call dword [sym.imp.KERNEL32.DLL_WinExec]
add esp, 0x208
ret

Function at 0x401290
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x208
lea ecx, [esp]
push eax
push 0x408034
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp]
push 0
push edx
call dword [sym.imp.KERNEL32.DLL_WinExec]
add esp, 0x208
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret
Function at 0x4012f0
Capabilities:
Create process on windows
Query environment variable
Self delete

Disassembly:
sub esp, 0x208
lea eax, [esp]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
je 0x401400
lea ecx, [esp]
push 0x104
lea edx, [esp + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_GetShortPathNameA]
test eax, eax
je 0x401400
push ebx
push esi
push edi
or ecx, 0xffffffff
mov edi, str._c_del
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x104
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
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 ecx, ebx
lea edx, [esp + 0x114]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.____NUL
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 ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push str.ComSpec
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
pop edi
pop esi
test eax, eax
pop ebx
je 0x401400
push 0
lea ecx, [esp + 0x108]
push 0
lea edx, [esp + 8]
push ecx
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jbe 0x401400
mov eax, 1
add esp, 0x208
ret
xor eax, eax
add esp, 0x208
ret

Function at 0x4016d0
Capabilities:
Get common file path
Get program files directory

Disassembly:
sub esp, 0x10c
lea eax, [esp + 4]
mov dword [esp], 0
push eax
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x401701
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [esp]
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [esp + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov esi, dword [esp + 0x114]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov eax, esi
pop esi
add esp, 0x10c
ret
Function at 0x401bd0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebp
xor ebp, ebp
push esi
push ebp
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x401bf4
pop esi
xor eax, eax
pop ebp
add esp, 0x128
ret
push ebx
push edi
mov ecx, 0x4a
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x128
push eax
push esi
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x401c59
mov edi, dword [esp + 0x13c]
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
lea ecx, [esp + 0x34]
push edi
push ecx
call ebx
add esp, 8
test eax, eax
je 0x401c54
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.DLL_Process32Next
test eax, eax
je 0x401c59
lea eax, [esp + 0x34]
push edi
push eax
call ebx
add esp, 8
test eax, eax
jne 0x401c36
mov ebp, 1
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
add esp, 0x128
ret

Function at 0x401c70
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x12c
push esi
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 4], esi
jne 0x401c95
xor eax, eax
pop esi
add esp, 0x12c
ret
push edi
mov ecx, 0x4a
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x128
push eax
push esi
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x401d1e
mov edi, dword [sym.imp.KERNEL32.DLL_OpenProcess]
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov ecx, dword [esp + 0x140]
lea edx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x401d0d
mov eax, dword [esp + 0x1c]
push eax
push 0
push 0x100001
call edi
mov esi, eax
push 0xffffffffffffffff
push esi
call ebx
push 0xffffffffffffffff
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push esi
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x401cce
pop ebp
pop ebx
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x12c
ret
Function at 0x401d40
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x25c
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x61]
mov byte [esp + 0x60], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x60]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x26c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x1c], 0x44
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x60]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
je 0x401dda
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x25c
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
pop edi
pop esi
pop ebx
add esp, 0x25c
ret

Function at 0x401df0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401e19
xor eax, eax
pop esi
ret
push ebx
push ebp
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
push edi
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 0x18]
mov ebx, eax
push 0
push ecx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, dword [esp + 0x1c]
push 0
push edx
mov ebp, 1
call dword [sym.imp.KERNEL32.DLL_BeginUpdateResourceA]
mov esi, eax
test esi, esi
je 0x401e8a
mov eax, dword [esp + 0x14]
push edi
push ebx
and eax, 0xffff
push 0x400
push eax
push 0xa
push esi
call dword [sym.imp.KERNEL32.DLL_UpdateResourceA]
test eax, eax
je 0x401e8a
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_EndUpdateResourceA]
jmp 0x401e8c
xor ebp, ebp
test ebx, ebx
je 0x401e99
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, ebp
pop edi
pop ebp
pop ebx
pop esi
ret
Function at 0x401ea0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov ecx, dword [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
and ecx, 0xffff
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov edi, eax
test edi, edi
jne 0x401ed0
pop edi
pop esi
pop ebx
pop ecx
ret
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edx, dword [esp + 0x18]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
test esi, esi
jne 0x401f13
pop edi
pop esi
pop ebx
pop ecx
ret
lea eax, [esp + 0xc]
push 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x401f40
cmp ebx, dword [esp + 0xc]
jne 0x401f40
push esi
mov edi, 1
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x401f50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x404dbf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
push 0
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov esi, eax
mov eax, dword [esp + 0x24]
and eax, 0xffff
push 0xa
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov edi, eax
test edi, edi
jne 0x401fb8
mov esi, dword [esp + 0x20]
push 0x408488
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
lea ecx, [esp + 0xc]
mov esi, eax
call sub.MFC42.DLL_CString::CString_2
mov edi, 1
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], edi
call sub.MFC42.DLL_CString::operator_1
mov esi, dword [esp + 0x24]
push ebp
push esi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Left
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], edi
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop ebp
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4020c0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x804
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x814]
push esi
push eax
mov eax, dword [esp + 0x818]
lea ecx, [esp + 0xc]
push 0x800
push ecx
mov ecx, dword [esp + 0x81c]
push edx
push eax
push ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
mov esi, dword [esp + 0x80c]
lea edx, [esp + 8]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov eax, esi
pop esi
add esp, 0x804
ret 0x10
Function at 0x402120
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x4001
mov edi, ecx
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov ebx, dword [esp + 0x18]
push 0xffffffffffffffff
push 0
mov ecx, ebx
mov esi, eax
call sub.MFC42.DLL_CStringArray::SetSize
mov edi, dword [edi + 4]
mov eax, dword [esp + 0x14]
push edi
push 0x4000
push esi
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
test eax, eax
je 0x402193
cmp byte [esi], 0
je 0x402193
mov ecx, dword [ebx + 8]
push esi
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esi + ecx + 1]
lea esi, [esi + ecx + 1]
test al, al
jne 0x40216f
push ebp
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebp
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov ecx, dword [ebx + 8]
xor eax, eax
pop edi
pop esi
test ecx, ecx
pop ebp
pop ebx
setg al
ret 8

Function at 0x402690
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x404f10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
push ecx
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
mov dword [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004023e0
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0xc]
mov dword [esp + 0x14], 0
mov byte [esp + 0x24], 2
mov eax, dword [edx - 8]
test eax, eax
jle 0x40276f
mov edi, dword [esp + 0x30]
lea eax, [esp + 0x14]
lea edx, [esp + 0xc]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x38]
mov ecx, esi
push eax
call fcn.00402520
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call sub.MFC42.DLL_CString::operator
mov ecx, dword [eax]
xor eax, eax
mov byte [esp + 0x24], 2
mov edx, dword [ecx - 8]
lea ecx, [esp + 0x30]
test edx, edx
sete al
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x402760
mov eax, dword [edi + 8]
lea edx, [esp + 0x10]
push edx
push eax
mov ecx, edi
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax - 8]
cmp ecx, eax
jl 0x4026fc
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 8
Function at 0x406291
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4261d0]
jne 0x40629b
repz ret
jmp fcn.0040871c

Function at 0x40adfc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4261d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004074b2
and dword [ebp - 0x14], 0
cmp dword [0x427a30], 0
mov dword [ebp - 0x18], eax
jne 0x40aeaf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40af57
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40af57
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x427a30], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x427a34], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x427a38], eax
call edi
push eax
call esi
mov dword [0x427a40], eax
test eax, eax
je 0x40aeaf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x427a3c], eax
mov eax, dword [0x427a3c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40af08
cmp dword [0x427a40], ecx
je 0x40af08
push eax
call esi
push dword [0x427a40]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40af08
test ebx, ebx
je 0x40af08
call edi
test eax, eax
je 0x40aeff
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40aeff
test byte [ebp - 8], 1
jne 0x40af08
or dword [ebp + 0x10], 0x200000
jmp 0x40af3b
mov eax, dword [0x427a34]
cmp eax, dword [ebp - 0x18]
je 0x40af3b
push eax
call esi
test eax, eax
je 0x40af3b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40af3b
mov eax, dword [0x427a38]
cmp eax, dword [ebp - 0x18]
je 0x40af3b
push eax
call esi
test eax, eax
je 0x40af3b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x427a30]
call esi
test eax, eax
je 0x40af57
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40af59
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406291
leave
ret

Function at 0x401e68
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401ea7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401ea7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401ea7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401ea7
cmp dword [ecx + 0x74], 0xe
jbe 0x401ea7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret