joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45430c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4544b7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x454498
mov dl, 1
mov eax, dword [0x415a64]
call fcn.00403bb0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004049f4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x454487
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00445aa4
test al, al
je 0x45447a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4544c8
lea eax, [ebp - 0x254]
call fcn.004099c4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45447a
xor eax, eax
push ebp
push 0x454473
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x454500
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45445c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404c64
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45445c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404c64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45447a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45437d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041973c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4544be
lea eax, [ebp - 0x260]
call fcn.004049f4
ret

Function at 0x454e30
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x468c98]
cmp byte [eax + 0xad], 0
jne 0x454ea1
cmp dword [0x468cb4], 0
jne 0x454e62
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x454dec
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x468cb4], eax
cmp dword [0x468cb0], 0
jne 0x454e7d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x468cb0], eax
cmp dword [0x468cb8], 0
jne 0x454ea1
push esp
push 0
push 0
push 0x454d90
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x468cb8], eax
pop edx
ret
Function at 0x4550a4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4550bb
add esp, 0xfffffff0
call fcn.00403eec
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d890
mov eax, dword [0x4635a0]
cmp word [eax + 2], 0
jne 0x4550e3
mov eax, dword [0x4635a0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00456d94
mov eax, dword [0x46364c]
cmp word [eax + 2], 0
jne 0x4550fd
mov eax, dword [0x46364c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00456fa0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x415640]
call fcn.00403bb0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x415640]
call fcn.00403bb0
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x415640]
call fcn.00403bb0
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x421c50]
call fcn.00427b1c
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4552b4
mov eax, dword [0x4634b0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00427ef0
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x457674
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4634b0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d180
test eax, eax
je 0x455204
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040937c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d1b4
test eax, eax
je 0x455218
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404c64
mov byte [ebx + 0xd4], 0
push ebx
push 0x456820
call fcn.0041ea0c
mov dword [ebx + 0xc8], eax
mov eax, dword [0x46339c]
cmp byte [eax], 0
jne 0x455269
mov eax, ebx
call fcn.004553f8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00457888
mov eax, ebx
call fcn.004583ec
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4552a9
call fcn.00403f44
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x455678
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x455717
cmp dword [ebx + 0x94], 0
jne 0x455711
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x455600
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x455711
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4556d7
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x455711
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004179e4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4556e6
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x455930
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x468c98]
cmp dword [eax + 0x30], 0
je 0x455a8d
test bl, bl
jne 0x4559de
cmp dword [esi + 0x9c], 0
jne 0x4559d3
mov eax, esi
call fcn.00458268
push eax
push 0x45585c
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4559a4
mov eax, dword [0x468c98]
call fcn.00458858
test al, al
je 0x4559a4
mov eax, dword [0x468cbc]
call fcn.00405b18
mov edi, eax
cmp edi, 0
jl 0x4559a4
push 0
mov eax, dword [0x468cbc]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45598e
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4559d3
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004179e4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4559b3
inc dword [esi + 0x9c]
jmp 0x455a8d
cmp dword [esi + 0x9c], 0
jle 0x455a8d
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x455a8d
cmp dword [esi + 0x44], 0
je 0x455a39
mov eax, dword [0x468c98]
call fcn.00458858
test al, al
je 0x455a39
mov eax, dword [0x468cbc]
call fcn.00405b18
mov edi, eax
cmp edi, 0
jl 0x455a39
push 5
mov eax, dword [0x468cbc]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x455a23
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x455a68
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004179e4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x455a48
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x468cbc
mov ecx, 1
mov edx, dword [0x45583c]
call fcn.00405ccc
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x456574
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4565de
mov eax, ebx
call fcn.00458858
test al, al
jne 0x4565de
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404ae4
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x4565cb
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4565eb
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404a48
jmp 0x4565eb
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404a48
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x457a6c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x457ada
mov eax, esi
call fcn.004408dc
test al, al
je 0x457ada
mov eax, dword [ebx + 0x84]
call fcn.004405e0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x457ada
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x457ace
push 0
mov eax, dword [ebx + 0x84]
call fcn.004405e0
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00438684
jmp 0x457ada
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004578a8
pop esi
pop ebx
ret
Function at 0x401280
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x4097ac
push ecx
push 0
mov ebp, edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40129f
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push 0x4097a8
push ebp
call sub.MSVCRT.dll_fopen
mov esi, eax
add esp, 8
test esi, esi
jne 0x4012d7
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push ebx
push 1
push edi
call sub.MSVCRT.dll_fwrite
push esi
call sub.MSVCRT.dll_fclose
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x401b00
Capabilities:
Get disk information

Disassembly:
sub esp, 0x254
push ebx
push ebp
push esi
push edi
mov bl, 0x41
mov ebp, 0x409df0
mov dword [esp + 0x14], 0x1a
movsx esi, bl
push esi
lea eax, [esp + 0x30]
push str._c:_
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea edx, [esp + 0x34]
push esi
push str.DosDevices_c:
push edx
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea eax, [esp + 0x34]
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x10]
push 0
push eax
call fcn.00401a80
test eax, eax
jne 0x401c1e
lea ecx, [esp + 0x64]
lea edx, [esp + 0x28]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
push ecx
mov word [esp + 0x26], 0x100
call dword [0x40b84c]
lea edx, [esp + 0x18]
lea eax, [esp + 0x20]
push 1
push edx
push eax
call dword [0x40b834]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
push ecx
call esi
lea ecx, [esp + 0x10]
mov edx, dword [esp + 0x24]
push 0
push edx
lea edx, [esp + 0x54]
call fcn.00401a80
test eax, eax
jne 0x401bf2
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x18]
push eax
push ecx
push edx
call dword [0x40b84c]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
push 1
push eax
push ecx
call dword [0x40b834]
mov edx, dword [esp + 0x10]
push edx
call esi
mov esi, dword [esp + 0x24]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
add ebp, 0x101
rep movsb byte es:[edi], byte [esi]
mov byte [ebp - 1], bl
mov byte [ebp], 0
mov eax, dword [esp + 0x14]
inc bl
dec eax
mov dword [esp + 0x14], eax
jne 0x401b19
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x254
ret
Function at 0x403450
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push ecx
mov esi, edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
xor eax, eax
cmp ecx, 0xffffffff
setne al
test eax, eax
je 0x40346d
and ecx, 0x10
mov dword [esi], ecx
pop esi
ret
Function at 0x406600
Capabilities:
Get disk size

Disassembly:
sub esp, 0x130
mov edx, dword [esp + 0x134]
lea eax, [esp]
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0x104
push edx
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov al, byte [esp + 0x2c]
mov dl, 0x5c
cmp al, dl
jne 0x406662
cmp byte [esp + 0x2d], dl
jne 0x406662
mov cl, byte [esp + 0x2e]
lea eax, [esp + 0x2e]
test cl, cl
mov dword [esp], eax
je 0x40665a
cmp cl, dl
je 0x40665a
inc eax
mov dword [esp], eax
mov cl, byte [eax]
test cl, cl
jne 0x40664b
cmp byte [eax], 0
je 0x40666a
inc eax
jmp 0x406666
lea eax, [esp + 0x2c]
mov dword [esp], eax
mov cl, byte [eax]
test cl, cl
je 0x40667f
cmp cl, dl
je 0x40667f
inc eax
mov dword [esp], eax
mov cl, byte [eax]
test cl, cl
jne 0x406670
cmp byte [eax], 0
je 0x40668c
inc eax
mov dword [esp], eax
mov byte [eax], 0
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4066f9
push str.GetDiskFreeSpaceExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x4066f9
lea eax, [esp + 0x18]
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
call edi
test eax, eax
jne 0x4066de
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x130
ret
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, 0xa
call fcn.0040e440
pop edi
pop esi
add esp, 0x130
ret
lea ecx, [esp + 0x20]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x40]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x406728
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x130
ret
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
imul ecx, dword [esp + 0x10]
push 0x400
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
pop edi
pop esi
add esp, 0x130
ret

Function at 0x4069f0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push ebx
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x406a1b
xor eax, eax
xor edx, edx
pop ebx
ret
push ebp
push esi
lea ecx, [esp + 0x10]
push edi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 0x14]
push 1
push 0
push 0
push edx
mov ebp, eax
call fcn.0040e2b0
mov esi, eax
xor eax, eax
mov edi, edx
add esi, ebp
push ebx
adc edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x406a55
xor esi, esi
xor edi, edi
mov edx, edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40b6a0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0xa8
push ebx
push ebp
push esi
mov esi, dword [esp + 0xb8]
lea eax, [esp + 0xc]
push edi
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x38]
push 0x80
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
push 0xf
mov edi, eax
call ebx
mov esi, dword [esp + 0xc0]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0x12
call ebx
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [0x42856c]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push esi
call ebp
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
inc eax
dec ecx
inc edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edx
push 0
lea ecx, [esp + 0x3c]
push edi
lea edx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x28]
push edx
push 2
push 1
dec eax
push 4
push esi
mov dword [esp + 0x54], eax
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov eax, dword [0x428574]
mov edx, dword [esp + 0x14]
sub edi, ebx
mov ebx, dword [esp + 0x1c]
push eax
push esi
sub ebx, edx
call ebp
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.GDI32.dll_PatBlt]
push 0xf00021
push ebx
push 1
push ecx
push edx
push esi
mov dword [esp + 0x3c], eax
call ebp
mov eax, dword [esp + 0x14]
push 0xf00021
push 1
push edi
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push esi
call ebp
mov edx, dword [0x428570]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
dec ebx
push 0xf00021
push ebx
inc eax
push 1
dec ecx
push eax
push ecx
push esi
call ebp
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
push 0xf00021
dec edi
push 1
dec edx
push edi
inc eax
push edx
push eax
push esi
call ebp
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40b7e6
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40b7f6
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret
Function at 0x4111a4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4244d0
cmp edx, dword [eax]
je 0x4111c6
add eax, 8
inc ecx
cmp eax, 0x424560
jl 0x4111b7
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4244d0]
jne 0x4112f4
mov eax, dword [0x428594]
cmp eax, 1
je 0x4112ce
test eax, eax
jne 0x4111f7
cmp dword [0x4241c4], 1
je 0x4112ce
cmp edx, 0xfc
je 0x4112f4
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41122e
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00413620
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00410520
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x411271
lea eax, [ebp - 0x1a4]
push eax
call fcn.00410520
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41fe24
push edi
call fcn.0040e4c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00413620
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00413630
lea eax, [ebp - 0xa0]
push 0x41fe04
push eax
call fcn.00413630
push dword [esi + 0x4244d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00413630
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00415528
add esp, 0x2c
pop edi
jmp 0x4112f4
lea eax, [ebp + 8]
lea esi, [esi + 0x4244d4]
push 0
push eax
push dword [esi]
call fcn.00410520
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x413f10
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47ad9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0046f309
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x413f92
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046c9ca
mov eax, dword [eax]
push 0x56f1f0
push eax
call fcn.0045ecd4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046f594
test bl, bl
je 0x413f92
push 0x56f1f0
lea ecx, [esp + 0xc]
call fcn.0046f924
push 0x572d5c
lea ecx, [esp + 0xc]
call fcn.0046f924
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x413fce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046f594
jmp 0x414099
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x414052
lea edx, [esp + 0x7c]
push 0x572d58
push edx
call fcn.0045ecd4
add esp, 8
test eax, eax
je 0x414052
lea eax, [esp + 0x7c]
push 0x572d54
push eax
call fcn.0045ecd4
add esp, 8
test eax, eax
je 0x414052
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x413fe2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046f594
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x414890
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4148f2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc