joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ff90
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
push 0
push 0x1f0fff
call dword [sym.imp.kernel32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x40ffab
pop esi
ret
push 0
push esi
call dword [sym.imp.kernel32.dll_TerminateProcess]
test eax, eax
jne 0x40ffba
pop esi
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, 1
pop esi
ret

Function at 0x4101d0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0xffffffffffffffff
lea ebx, [esi + 0x18]
push 0
mov ecx, ebx
call sub.mfc42.dll_CStringArray::SetSize
add esi, 4
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.00406e30
xor eax, eax
mov ecx, 0x49
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 0
push eax
push 2
rep stosd dword es:[edi], eax
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x10], ebp
jne 0x41022d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x350
ret
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x128
push eax
push ebp
call sub.kernel32.dll_Process32First
test eax, eax
je 0x410305
mov ecx, 0x88
xor eax, eax
lea edi, [esp + 0x140]
mov dword [esp + 0x13c], 0
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x13c]
push 0x224
push ecx
push edx
push eax
call fcn.0040ffe0
add esp, 0x10
test eax, eax
je 0x4102d9
mov ecx, dword [esp + 0x1c]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.kernel32.dll_OpenProcess]
mov edi, eax
push edi
call dword [sym.imp.kernel32.dll_GetPriorityClass]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edi, dword [esi + 8]
mov ebp, dword [esp + 0x1c]
push 0xffffffffffffffff
mov ecx, esi
lea edx, [edi + 1]
push edx
call fcn.00406e30
mov eax, dword [esi + 4]
lea ecx, [esp + 0x25c]
push ecx
mov ecx, ebx
mov dword [eax + edi*4], ebp
mov edx, dword [ebx + 8]
push edx
call sub.mfc42.dll_CStringArray::SetAtGrow
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ebp
call sub.kernel32.dll_Process32Next
test eax, eax
jne 0x410263
push ebp
mov esi, 1
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
push ebp
xor esi, esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x411500
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x445745
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push esi
mov esi, ecx
mov eax, pe_nt_image_headers32
push 0x456eac
lea ecx, [esp + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
call sub.mfc42.dll_CString::CString_2
lea eax, [esp + 0x10]
lea ecx, [esp + 0x114]
push eax
push ecx
mov ecx, dword [esp + 0x230]
push 0
lea edx, [esp + 0x14]
push 0
lea eax, [esp + 0x24]
push edx
mov edx, dword [esi + 4]
push eax
push ecx
push edx
mov dword [esp + 0x23c], 1
call dword [sym.imp.advapi32.dll_RegEnumValueA]
test eax, eax
jne 0x411594
lea eax, [esp + 0x14]
lea ecx, [esp + 4]
push eax
push 0x454328
push ecx
call sub.mfc42.dll_CString::Format
add esp, 0xc
mov esi, dword [esp + 0x224]
lea edx, [esp + 4]
push edx
mov ecx, esi
call sub.mfc42.dll_CString::CString_3
mov dword [esp + 0xc], 1
lea ecx, [esp + 4]
mov byte [esp + 0x21c], 0
call sub.mfc42.dll_CString::CString
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x21c
ret 8

Function at 0x4115e0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x445775
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push esi
mov esi, ecx
push 0x456eac
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], pe_nt_image_headers32
call sub.mfc42.dll_CString::CString_2
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x130]
push 0
push 0
push 0
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
mov dword [esp + 0x140], 1
call dword [sym.imp.advapi32.dll_RegEnumKeyExA]
test eax, eax
jne 0x411669
lea edx, [esp + 0x18]
lea eax, [esp + 4]
push edx
push 0x454328
push eax
call sub.mfc42.dll_CString::Format
add esp, 0xc
mov esi, dword [esp + 0x128]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call sub.mfc42.dll_CString::CString_3
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x120], 0
call sub.mfc42.dll_CString::CString
mov ecx, dword [esp + 0x118]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x120
ret 8

Function at 0x4120d0
Capabilities:
Delete file

Disassembly:
sub esp, 0x20
push esi
push edi
call sub.mfc42.dll_AfxGetThread
xor esi, esi
cmp eax, esi
je 0x4120e9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x4120eb
xor eax, eax
mov eax, dword [eax + 0x20]
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 8]
mov dword [esp + 8], eax
push ecx
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1e], esi
mov dword [esp + 0x22], esi
mov dword [esp + 0x26], esi
mov word [esp + 0x1c], 0x454
call dword [sym.imp.shell32.dll_SHFileOperation]
test eax, eax
je 0x41212f
push edi
call dword [sym.imp.kernel32.dll_GetLastError_2]
pop edi
pop esi
add esp, 0x20
ret
Function at 0x4123e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x600
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x614]
mov ebx, dword [sym.imp.msvcrt.dll_fopen]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x455f18
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call ebx
add esp, 8
test eax, eax
je 0x412445
push eax
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x600
ret
lea edx, [esp + 0x210]
push 0x200
push edx
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
mov edi, 0x4542dc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x210]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x455f18
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 edx, [esp + 0x214]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
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 + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
add esp, 8
test eax, eax
je 0x4124e4
push eax
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x600
ret
lea ecx, [esp + 0x410]
push 0x200
push ecx
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
mov edi, 0x4542dc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x410]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x455f18
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 edx, [esp + 0x414]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
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 + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
add esp, 8
test eax, eax
je 0x412583
push eax
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x600
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x600
ret
Function at 0x412bd0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4458e9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push esi
lea eax, [esp + 0x160]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x15c], 0
call sub.mfc42.dll_CString::CString_3
lea ecx, [esp + 4]
mov byte [esp + 0x158], 1
call fcn.00442a9a
push 0x455f5c
lea ecx, [esp + 0x164]
mov byte [esp + 0x15c], 2
call sub.mfc42.dll_CString::operator_1
mov edx, dword [esp + 0x160]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.kernel32.dll_FindFirstFileA]
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.00442a9a
cmp esi, 0xffffffff
mov byte [esp + 0x158], 3
je 0x412cad
push ebp
mov ebp, dword [sym.imp.kernel32.dll_FindNextFileA]
push edi
mov edi, dword [esp + 0x16c]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x44]
push eax
push ecx
lea edx, [esp + 0x14]
push 0x454820
push edx
call sub.mfc42.dll_CString::Format
mov eax, dword [edi + 8]
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
push eax
mov ecx, edi
call sub.mfc42.dll_CStringArray::SetAtGrow_1
lea edx, [esp + 0x18]
push edx
push esi
call ebp
test eax, eax
jne 0x412c6c
push esi
call dword [sym.imp.kernel32.dll_FindClose]
pop edi
pop ebp
lea ecx, [esp + 0xc]
mov byte [esp + 0x158], 2
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 4]
mov byte [esp + 0x158], 1
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x158], 0
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x160]
mov dword [esp + 0x158], 0xffffffff
call sub.mfc42.dll_CString::CString
mov ecx, dword [esp + 0x150]
pop esi
mov dword fs:[0], ecx
add esp, 0x158
ret
Function at 0x413000
Capabilities:
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x445958
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x160
mov ecx, dword [esp + 0x170]
push pe_nt_image_headers32
lea eax, [esp + 4]
push 0x160
push eax
push 0
push ecx
mov dword [esp + 0x17c], 0
call dword [sym.imp.shell32.dll_SHGetFileInfo]
test eax, eax
je 0x41305d
mov eax, dword [esp + 0x174]
mov edx, dword [esp]
push edx
push 0xffffffffffffffff
mov ecx, dword [eax + 4]
push ecx
jmp 0x413088
call sub.mfc42.dll_AfxGetModuleState
push 0xa4
push 0xe
push 0xa4
call sub.mfc42.dll_AfxFindResourceHandle
push eax
call dword [sym.imp.user32.dll_LoadIconA]
mov edx, dword [esp + 0x174]
push eax
push 0xffffffffffffffff
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.comctl32.dll_ImageList_ReplaceIcon]
lea ecx, [esp + 0x170]
mov dword [esp + 0x168], 0xffffffff
call sub.mfc42.dll_CString::CString
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
add esp, 0x16c
ret
Function at 0x414160
Capabilities:
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x445c30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x24]
call sub.mfc42.dll_CStringArray::CStringArray
xor esi, esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], esi
call fcn.00442a9a
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 1
call fcn.004111a0
push 0x20019
push 0x4560e0
push 0x80000002
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 2
call fcn.00411310
lea eax, [esp + 0x24]
lea ecx, [esp + 0x1c]
push eax
call fcn.004116b0
lea ecx, [esp + 0x1c]
call fcn.00411220
mov ecx, dword [esp + 0x2c]
dec ecx
test ecx, ecx
jl 0x4142d8
mov edi, dword [esp + 0x4c]
mov ebp, dword [esp + 0x48]
mov bl, 3
lea ecx, [esp + 0x4c]
call fcn.00442a9a
push 0x20019
push 0x4560e0
push 0x80000002
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], bl
call fcn.00411310
lea edx, [esp + 0x48]
push esi
push edx
lea ecx, [esp + 0x2c]
call fcn.0040da20
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push eax
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x48], 4
call fcn.004113c0
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], bl
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x1c]
call fcn.00411220
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4142bc
lea edx, [esp + 0x14]
push esi
push edx
lea ecx, [esp + 0x2c]
call fcn.0040da20
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push eax
push 0x4560ac
push ecx
mov byte [esp + 0x4c], 5
call sub.mfc42.dll_CString::Format
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], bl
call sub.mfc42.dll_CString::CString
push edi
push ecx
lea edx, [esp + 0x54]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call sub.mfc42.dll_CString::CString_3
call fcn.004130c0
add esp, 8
test eax, eax
je 0x4142bc
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, ebp
call sub.mfc42.dll_CStringArray::SetAtGrow_1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x40], 2
call sub.mfc42.dll_CString::CString
mov edx, dword [esp + 0x2c]
inc esi
dec edx
cmp esi, edx
jle 0x4141ed
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 1
call fcn.004111d0
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 0
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x40], 0xffffffff
call fcn.00442ff2
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x34
ret
Function at 0x41b7b0
Capabilities:
Get file size
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x446948
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x42c]
or ebp, 0xffffffff
xor ebx, ebx
mov ecx, ebp
xor eax, eax
mov dword [esp + 0x14], ebx
mov byte [esp + 0x13], 0xf6
mov dword [esp + 0x18], 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov eax, ecx
mov esi, edi
mov edi, edx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x80
and ecx, 3
push 3
rep movsb byte es:[edi], byte [esi]
push ebx
push 2
lea ecx, [esp + 0x30]
push 0x40000000
push ecx
call dword [0x448208]
mov esi, eax
cmp esi, ebp
je 0x41b846
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov edi, eax
cmp edi, ebp
jne 0x41b85d
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
lea ecx, [esp + 0x42c]
mov dword [esp + 0x424], ebp
call sub.mfc42.dll_CString::CString
xor eax, eax
jmp 0x41b8ae
cmp edi, ebx
jbe 0x41b884
mov ebp, dword [sym.imp.kernel32.dll_WriteFile]
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x1b]
push 1
push ecx
push esi
call ebp
test eax, eax
je 0x41b881
inc ebx
cmp ebx, edi
jb 0x41b867
or ebp, 0xffffffff
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.kernel32.dll_GetLastError_2]
lea ecx, [esp + 0x42c]
mov dword [esp + 0x424], ebp
call sub.mfc42.dll_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x418
ret
Function at 0x41b8d0
Capabilities:
Get common file path
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x446989
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0
call fcn.00442a9a
mov edi, dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
push 0
push 0
mov byte [esp + 0x16c], 1
call edi
mov esi, eax
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push esi
push 8
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ebp, eax
push ebp
push esi
call edi
mov eax, dword [esp + 0x16c]
mov edi, dword [sym.imp.msvcrt.dll__mbscmp]
push ebp
push eax
call edi
add esp, 8
test eax, eax
je 0x41b954
mov ecx, dword [esp + 0x16c]
push ecx
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
lea edx, [esp + 0x1c]
push edx
push 0x4548bc
call dword [sym.imp.kernel32.dll_FindFirstFileA]
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.00442a9a
cmp esi, 0xffffffff
mov byte [esp + 0x164], 2
je 0x41babb
lea eax, [esp + 0x48]
lea ecx, [esp + 0xc]
push eax
call fcn.00442ad0
mov ecx, dword [esp + 0xc]
push 0x4548b8
push ecx
call edi
add esp, 8
test eax, eax
je 0x41ba5c
mov edx, dword [esp + 0xc]
push 0x4548b4
push edx
call edi
add esp, 8
test eax, eax
je 0x41ba5c
mov eax, dword [esp + 0x1c]
and eax, 0x10
cmp al, 0x10
jne 0x41ba43
mov eax, dword [esp + 0x16c]
mov ecx, dword [eax - 8]
cmp byte [ecx + eax - 1], 0x5c
je 0x41ba22
lea ecx, [esp + 0x16c]
push 0x5c
lea edx, [esp + 0x1c]
push ecx
push edx
call sub.mfc42.dll_operator_2
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
push eax
push ecx
mov byte [esp + 0x174], 3
call sub.mfc42.dll_operator_1
call fcn.0041b8d0
add esp, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x164], 2
call sub.mfc42.dll_CString::CString
jmp 0x41ba5c
push ecx
lea ecx, [esp + 0x10]
mov eax, esp
mov dword [esp + 0x18], esp
lea edx, [esp + 0x170]
push ecx
push edx
push eax
call sub.mfc42.dll_operator_1
call fcn.0041b8d0
jmp 0x41ba59
push ecx
lea eax, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call sub.mfc42.dll_CString::CString_3
call fcn.0041b7b0
add esp, 4
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x41b980
push esi
call dword [sym.imp.kernel32.dll_FindClose]
push ebp
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0xc]
mov byte [esp + 0x164], 1
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 0
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x16c]
mov dword [esp + 0x164], 0xffffffff
call sub.mfc42.dll_CString::CString
mov al, 1
jmp 0x41bafd
push ebp
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0xc]
mov byte [esp + 0x164], 1
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 0
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x16c]
mov dword [esp + 0x164], 0xffffffff
call sub.mfc42.dll_CString::CString
xor al, al
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x15c
ret
Function at 0x4286f3
Capabilities:
Check os version

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x42875b
push 1
mov esi, 0x94
pop ebx
push esi
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x4287b5
push esi
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [edi], esi
push edi
call dword [sym.imp.kernel32.dll_GetVersionExA]
mov eax, dword [edi + 4]
cmp eax, 4
jne 0x42873e
push 5
jmp 0x4287ac
cmp eax, 5
jne 0x4287ad
cmp dword [edi + 8], 0
jne 0x42874d
push 6
jmp 0x4287ac
cmp eax, 5
jne 0x4287ad
cmp dword [edi + 8], ebx
jne 0x4287ad
push 7
jmp 0x4287ac
cmp al, 4
jae 0x428763
xor ebx, ebx
jmp 0x4287b5
push 2
mov esi, 0x94
pop ebx
push esi
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x4287b5
push esi
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [edi], esi
push edi
call dword [sym.imp.kernel32.dll_GetVersionExA]
mov eax, dword [edi + 4]
cmp eax, 4
jne 0x4287ad
cmp dword [edi + 8], 0xa
jne 0x4287a0
push 3
jmp 0x4287ac
cmp eax, 4
jne 0x4287ad
cmp dword [edi + 8], 0x5a
jne 0x4287ad
push eax
pop ebx
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x42a6fd
Capabilities:
Check os version

Disassembly:
call dword [sym.imp.kernel32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x42a715
cmp al, 5
sbb eax, eax
and eax, 2
add eax, 6
ret
push 8
pop eax
ret

Function at 0x42d6b3
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x455f18
mov esi, ecx
push dword [esp + 0x18]
call dword [sym.imp.msvcrt.dll_fopen]
mov ebp, eax
pop ecx
test ebp, ebp
pop ecx
je 0x42d73f
mov ebx, dword [sym.imp.msvcrt.dll_fseek]
push 2
push 0
push ebp
call ebx
push ebp
call dword [sym.imp.msvcrt.dll_ftell]
add esp, 0x10
mov edi, eax
mov ecx, esi
push edi
call fcn.0042d748
test al, al
jne 0x42d6f9
xor bl, bl
jmp 0x42d720
push 0
push 0
push ebp
call ebx
push ebp
push edi
push 1
pop ebx
push ebx
push dword [esi + 0xc]
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x1c
cmp edi, eax
jne 0x42d72c
and dword [esi + 8], 0
mov dword [esi + 4], edi
mov dword [esi + 0x10], edi
push ebp
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
mov al, bl
jmp 0x42d741
and dword [esi + 4], 0
and dword [esi + 8], 0
push ebp
mov dword [esi + 0x10], edi
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
xor al, al
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x432ef7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
push ebx
push esi
push edi
lea eax, [ebp - 0xe8]
mov esi, ecx
push 0xc8
push eax
push dword [esi + 0x9c]
call dword [sym.imp.user32.dll_GetWindowTextA]
and byte [ebp - 0x21], 0
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x9c]
call dword [sym.imp.user32.dll_GetClientRect]
mov eax, dword [esi + 4]
add eax, 0x90
push eax
call dword [sym.imp.gdi32.dll_CreateFontIndirectA]
mov edi, dword [sym.imp.gdi32.dll_SelectObject]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
call edi
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
mov ebx, dword [sym.imp.gdi32.dll_SetTextColor]
push dword [eax + 0xcc]
push dword [ebp + 8]
call ebx
push 1
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
call dword [sym.imp.gdi32.dll_SetBkMode]
push 0xfffffffffffffff0
mov dword [ebp - 8], eax
push dword [esi + 0x9c]
call dword [sym.imp.user32.dll_GetWindowLongA]
mov ecx, eax
xor esi, esi
and ecx, 2
cmp cl, 2
jne 0x432f94
push 2
pop esi
mov ecx, eax
and ecx, 1
cmp cl, 1
jne 0x432fa1
push 1
pop esi
mov edx, eax
mov ecx, 0x200
and edx, ecx
cmp edx, ecx
jne 0x432fb1
or esi, 0x24
mov ecx, eax
and ecx, 0xc
cmp cl, 0xc
jne 0x432fbe
or esi, 0x20
mov ecx, eax
and cx, 0x80
cmp cl, 0x80
jne 0x432fd0
or esi, 0x800
and eax, 0xb
cmp al, 0xb
jne 0x432fda
or esi, 0x20
lea eax, [ebp - 0x20]
push esi
push eax
lea eax, [ebp - 0xe8]
push eax
call dword [sym.imp.kernel32.dll_lstrlen]
mov esi, dword [ebp + 8]
push eax
lea eax, [ebp - 0xe8]
push eax
push esi
call dword [sym.imp.user32.dll_DrawTextA]
push dword [ebp - 0x10]
push esi
call ebx
push dword [ebp - 0xc]
push esi
call edi
push dword [ebp - 4]
call dword [sym.imp.gdi32.dll_DeleteObject]
push dword [ebp - 8]
push esi
call dword [sym.imp.gdi32.dll_SetBkMode]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x435a33
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 0x10]
mov eax, dword [esi + 0xd8]
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call fcn.0043e635
push 0
push eax
push dword [esi + 0x9c]
call dword [sym.imp.user32.dll_SetWindowRgn]
push 1
push 0xf
call dword [sym.imp.user32.dll_GetSysColor]
mov edi, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push edi
call fcn.0042776d
add esp, 0x14
lea eax, [ebp - 0xd4]
push 0xc8
push eax
push dword [esi + 0x9c]
call dword [sym.imp.user32.dll_GetWindowTextA]
mov eax, dword [esi + 4]
and byte [ebp - 0xd], 0
add eax, 0x398
push eax
call dword [sym.imp.gdi32.dll_CreateFontIndirectA]
mov ebx, dword [sym.imp.gdi32.dll_SelectObject]
push eax
push edi
mov dword [ebp - 8], eax
call ebx
mov esi, dword [esi + 4]
mov dword [ebp + 8], eax
push dword [esi + 0x3d4]
mov esi, dword [sym.imp.gdi32.dll_SetTextColor]
push edi
call esi
push 1
push edi
mov dword [ebp + 0xc], eax
call dword [sym.imp.gdi32.dll_SetBkMode]
push 0x25
mov dword [ebp - 0xc], eax
push dword [ebp + 0x10]
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.kernel32.dll_lstrlen]
push eax
lea eax, [ebp - 0xd4]
push eax
push edi
call dword [sym.imp.user32.dll_DrawTextA]
push dword [ebp + 0xc]
push edi
call esi
push dword [ebp + 8]
push edi
call ebx
push dword [ebp - 8]
mov esi, dword [sym.imp.gdi32.dll_DeleteObject]
call esi
push dword [ebp - 0xc]
push edi
call dword [sym.imp.gdi32.dll_SetBkMode]
cmp dword [ebp - 4], 0
je 0x435b2a
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 0xc