joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452868
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45287a
add esp, 0xfffffff0
call fcn.00403fa0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00427494
mov eax, dword [0x51d604]
mov dword [eax + 4], ebx
mov dword [eax], 0x452c0c
mov eax, dword [0x51d614]
mov dword [eax + 4], ebx
mov dword [eax], 0x452c18
mov eax, ebx
call fcn.00452c24
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41a458]
call fcn.00403c0c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41a458]
call fcn.00403c0c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41a458]
call fcn.00403c0c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41a458]
call fcn.00403c0c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41a458]
call fcn.00403c0c
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44f0ec
push eax
push 0
push 0
mov eax, dword [0x51d7c0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x42976c]
call fcn.0042ae80
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x42976c]
call fcn.0042ae80
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x42976c]
call fcn.0042ae80
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045308c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452f68
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452f68
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x452f68
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4529b7
call fcn.00403ff8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x452d4c
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 0x452ef7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x452ed8
mov dl, 1
mov eax, dword [0x41aabc]
call fcn.00403c0c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404a4c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x452ec7
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.0046f1c0
test al, al
je 0x452eba
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, 0x452f08
lea eax, [ebp - 0x254]
call fcn.0040a5fc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x452eba
xor eax, eax
push ebp
push 0x452eb3
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 0x452f40
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x452e9c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404cb4
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 0x452e9c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404cb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452eba
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x452dbd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00420704
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 0x452efe
lea eax, [ebp - 0x260]
call fcn.00404a4c
ret

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

Disassembly:
push ecx
mov eax, dword [0x51ebd4]
cmp byte [eax + 0xa5], 0
jne 0x45389d
cmp dword [0x51ebec], 0
jne 0x45385e
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x4537e8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x51ebec], eax
cmp dword [0x51ebe8], 0
jne 0x453879
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x51ebe8], eax
cmp dword [0x51ebf0], 0
jne 0x45389d
push esp
push 0
push 0
push 0x45378c
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x51ebf0], eax
pop edx
ret
Function at 0x4539c4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4539db
add esp, 0xfffffff0
call fcn.00403fa0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00427494
mov eax, dword [0x51d7a4]
cmp word [eax + 2], 0
jne 0x453a03
mov eax, dword [0x51d7a4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004550a0
mov eax, dword [0x51d8a4]
cmp word [eax + 2], 0
jne 0x453a1d
mov eax, dword [0x51d8a4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00455298
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41a458]
call fcn.00403c0c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41a458]
call fcn.00403c0c
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
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 + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x42a1ec]
call fcn.00431d10
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x453ba4
mov eax, dword [0x51d678]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004320e0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x455818
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x51d678]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
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.0040de20
test eax, eax
je 0x453b12
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409f1c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040de48
test eax, eax
je 0x453b26
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404cb4
mov eax, dword [0x51d4e0]
cmp byte [eax], 0
jne 0x453b5a
mov eax, ebx
call fcn.00453ccc
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004559f4
mov eax, ebx
call fcn.004563a4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x453b9a
call fcn.00403ff8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x453f40
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x51ebd4]
cmp dword [eax + 0x30], 0
je 0x453fea
cmp dword [ebx + 0x94], 0
jne 0x453fe4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x453ed0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x453fe4
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 0x453faa
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x453fe4
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.0041d238
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x453fb9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x454ac8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x454afd
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.00404b3c
jmp 0x454b0a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404aa0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x455bd0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x455c11
mov eax, esi
call fcn.0046a85c
test al, al
je 0x455c11
mov eax, dword [ebx + 0x84]
call fcn.0046a558
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x455c11
push 0
mov eax, dword [ebx + 0x84]
call fcn.0046a558
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x458fd0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404a4c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x45901f
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404cb4
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x461838
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x51ec4c], 0
je 0x461987
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x51d880]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x461987
mov eax, dword [0x51ec50]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x51ec4c]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x461956
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x51ec4c]
call fcn.0041d238
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x46194e
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x46194e
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x46194e
mov eax, dword [ebp - 0x14]
call fcn.0046a558
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46194e
push ebp
call fcn.004617f4
pop ecx
test al, al
jne 0x46194e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x46190a
mov eax, dword [ebp - 0x14]
call fcn.004690ec
dec eax
jle 0x46194e
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.00403e38
cmp byte [ebp - 1], 0
je 0x46194e
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x46194e
mov edx, dword [ebp - 0x14]
mov eax, dword [0x51ec50]
call fcn.00460fbc
inc edi
dec ebx
jne 0x46189d
mov eax, dword [0x51ec50]
cmp dword [eax + 8], 0
jle 0x46196e
mov eax, dword [0x51ec50]
call fcn.0046104c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x461987
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0046165c
pop ecx
test al, al
jne 0x461987
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x464fb0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x464ffc
mov eax, esi
call fcn.0044c30c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x464ffc
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x464ffc
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x46513b
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x46503c
cmp eax, 0x108
ja 0x46503c
mov eax, esi
call fcn.0044c30c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x465132
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x46513b
jmp 0x465132
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x46511b
cmp eax, 0x20a
ja 0x46511b
test byte [esi + 0x50], 0x80
jne 0x46506e
sub eax, 0x203
je 0x46506b
sub eax, 3
je 0x46506b
sub eax, 3
jne 0x46506e
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x465082
dec eax
je 0x465097
dec eax
je 0x4650b4
dec eax
je 0x465097
jmp 0x4650bb
mov ecx, ebx
mov eax, dword [0x51d880]
mov eax, dword [eax]
mov edx, esi
call fcn.00455a88
jmp 0x465132
cmp byte [esi + 0x5d], 1
jne 0x4650ad
mov eax, esi
mov si, 0xffed
call fcn.00403e38
jmp 0x46513b
or word [esi + 0x54], 1
jmp 0x465132
and word [esi + 0x54], 0xfffe
jmp 0x465132
mov eax, dword [0x51ec08]
cmp byte [eax + 0x20], 0
je 0x465132
mov eax, dword [0x51ec08]
cmp dword [eax + 0x1c], 0
je 0x465132
mov eax, dword [ebx]
mov edx, dword [0x51ec08]
cmp eax, dword [edx + 0x1c]
jne 0x465132
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.0044c230
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00403e38
jmp 0x46513b
cmp eax, 0xb00b
jne 0x465132
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00463898
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x468704
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x468720
cmp dword [esi + 4], 0
je 0x46874d
test byte [ebx + 0x55], 1
jne 0x46873f
mov eax, ebx
call fcn.0046735c
test eax, eax
jne 0x46873f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x46885d
mov edx, esi
mov eax, ebx
call fcn.00468224
jmp 0x46885d
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x468856
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0046a558
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00464ee4
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00468704
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0046a558
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46885d
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46ee04
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x51da94]
cmp byte [eax + 0xc], 0
je 0x46ef71
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46ef6a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x51ec5c], 0
jne 0x46ee58
push 0x46ef78
call sub.KERNEL32.DLL_GetModuleHandleA_1
mov ebx, eax
push 0x46ef80
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x51ec5c], eax
cmp dword [0x516ef4], 0
jne 0x46ef53
push 0x46ef90
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x516ef4], eax
cmp dword [0x516ef4], 0
je 0x46ef53
push 0x46ef9c
mov eax, dword [0x516ef4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x51ec60], eax
push 0x46efac
mov eax, dword [0x516ef4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x51ec64], eax
push 0x46efc0
mov eax, dword [0x516ef4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x51ec68], eax
push 0x46efd8
mov eax, dword [0x516ef4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x51ec6c], eax
push 0x46eff0
mov eax, dword [0x516ef4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x51ec70], eax
push 0x46f004
mov eax, dword [0x516ef4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x51ec74], eax
push 0x46f01c
mov eax, dword [0x516ef4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x51ec78], eax
push 0x46f034
mov eax, dword [0x516ef4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x51ec7c], eax
push 0x46f050
mov eax, dword [0x516ef4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x51ec80], eax
push 0x46f05c
mov eax, dword [0x516ef4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x51ec84], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ef71
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x471790
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
test dl, dl
je 0x4717a5
add esp, 0xfffffff0
call fcn.00403fa0
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 8]
xor edx, edx
mov eax, ebx
call fcn.00403c0c
movzx edx, si
mov eax, dword [ebp - 8]
call fcn.004098e8
mov edi, eax
mov dword [ebx + 0x10], edi
cmp edi, 0xffffffff
jne 0x4717d3
call fcn.0040e59c
and si, 0xf
cmp si, 2
jne 0x4717e9
mov esi, 8
mov edi, 1
jmp 0x4717f3
mov esi, 2
mov edi, 4
push 0
push 0
push 0
push esi
push 0
mov eax, dword [ebx + 0x10]
push eax
call sub.KERNEL32.DLL_CreateFileMappingA
mov dword [ebx + 0x14], eax
cmp dword [ebx + 0x14], 0
jne 0x47182c
mov eax, ebx
call fcn.0047174c
mov ecx, dword [0x51d75c]
mov dl, 1
mov eax, dword [0x471680]
call fcn.00470038
call fcn.00404408
push 0
push 0
push 0
push edi
mov eax, dword [ebx + 0x14]
push eax
call sub.KERNEL32.DLL_MapViewOfFile
mov esi, eax
test esi, esi
jne 0x471860
mov eax, ebx
call fcn.0047174c
mov ecx, dword [0x51d998]
mov dl, 1
mov eax, dword [0x4716e4]
call fcn.00470038
call fcn.00404408
push 0
mov eax, dword [ebx + 0x10]
push eax
call sub.KERNEL32.DLL_GetFileSize
cmp eax, 0xffffffff
jne 0x471894
push esi
call sub.KERNEL32.DLL_UnmapViewOfFile
mov eax, ebx
call fcn.0047174c
mov ecx, dword [0x51d8c4]
mov dl, 1
mov eax, dword [0x4716e4]
call fcn.00470038
call fcn.00404408
mov ecx, eax
mov edx, esi
mov eax, ebx
call fcn.00421010
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4718b6
call fcn.00403ff8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x471b14
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x471bbb
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404efc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jbe 0x471ba5
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.00405088
mov eax, dword [ebp - 0x10]
push eax
push edi
mov eax, dword [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404efc
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x471ba5
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x471bcc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x471ba5
cmp dword [ebp - 8], 0x34
jne 0x471ba5
mov bl, 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x471bc2
lea eax, [ebp - 0x10]
call fcn.00404a4c
ret
Function at 0x472380
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, edi
call fcn.00472364
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4723f2
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00404efc
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4723e9
cmp dword [ebp - 0x14], 4
jne 0x4723e9
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x472400
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4724ef
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp + 0xc]
call fcn.00404aa0
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, edi
call fcn.00472364
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4724d9
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00404efc
mov esi, eax
push esi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4724d0
mov eax, dword [ebp - 0x14]
dec eax
sub eax, 2
jae 0x4724d0
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00405088
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push esi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4724d0
mov eax, dword [ebp - 0x10]
call fcn.00404efc
call fcn.00409ee0
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.00405088
mov eax, ebx
mov edx, dword [ebp - 0x10]
call fcn.00404aa0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4724f6
lea eax, [ebp - 0x10]
call fcn.00404a4c
ret