joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b130
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4f4498]
cmp byte [eax + 0xc], 0
je 0x44b29d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44b296
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4f5b28], 0
jne 0x44b184
push 0x44b2a4
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44b2ac
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f5b28], eax
cmp dword [0x4efe48], 0
jne 0x44b27f
push 0x44b2bc
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4efe48], eax
cmp dword [0x4efe48], 0
je 0x44b27f
push 0x44b2c8
mov eax, dword [0x4efe48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f5b2c], eax
push 0x44b2d8
mov eax, dword [0x4efe48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f5b30], eax
push 0x44b2ec
mov eax, dword [0x4efe48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f5b34], eax
push 0x44b304
mov eax, dword [0x4efe48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f5b38], eax
push 0x44b31c
mov eax, dword [0x4efe48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f5b3c], eax
push 0x44b330
mov eax, dword [0x4efe48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f5b40], eax
push 0x44b348
mov eax, dword [0x4efe48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f5b44], eax
push 0x44b360
mov eax, dword [0x4efe48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f5b48], eax
push 0x44b37c
mov eax, dword [0x4efe48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f5b4c], eax
push 0x44b388
mov eax, dword [0x4efe48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4f5b50], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44b29d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x44f624
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.004046e4
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44f673
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.00404954
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x456f88
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x456fd8]
test si, 4
je 0x456f9c
or bl, 1
test si, 8
je 0x456fa6
or bl, 4
test si, 1
je 0x456fb0
or bl, 8
test si, 2
je 0x456fba
or bl, 0x10
test si, 0x10
je 0x456fc4
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x456fd3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x456fdc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x457014]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x456ff5
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x457004
or bl, 4
test esi, 0x20000000
je 0x45700f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45d6d8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45d6ea
add esp, 0xfffffff0
call fcn.00403b90
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004240f8
mov eax, dword [0x4f3f60]
mov dword [eax + 4], ebx
mov dword [eax], 0x45da7c
mov eax, dword [0x4f3f74]
mov dword [eax + 4], ebx
mov dword [eax], 0x45da88
mov eax, ebx
call fcn.0045da94
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41b6b4]
call fcn.00403828
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41b6b4]
call fcn.00403828
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41b6b4]
call fcn.00403828
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41b6b4]
call fcn.00403828
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41b6b4]
call fcn.00403828
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, 0x459eac
push eax
push 0
push 0
mov eax, dword [0x4f417c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x425bc0]
call fcn.00427358
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x425bc0]
call fcn.00427358
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x425bc0]
call fcn.00427358
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045dee4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45ddac
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45ddac
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45ddac
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45d827
call fcn.00403be8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45db90
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 0x45dd3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45dd1c
mov dl, 1
mov eax, dword [0x41bd18]
call fcn.00403828
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004046e4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45dd0b
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.0044b490
test al, al
je 0x45dcfe
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, 0x45dd4c
lea eax, [ebp - 0x254]
call fcn.0040a278
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45dcfe
xor eax, eax
push ebp
push 0x45dcf7
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 0x45dd84
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45dce0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404954
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 0x45dce0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404954
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45dcfe
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45dc01
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00420178
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 0x45dd42
lea eax, [ebp - 0x260]
call fcn.004046e4
ret

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

Disassembly:
push ecx
mov eax, dword [0x4f5b74]
cmp byte [eax + 0xa5], 0
jne 0x45e6f5
cmp dword [0x4f5b8c], 0
jne 0x45e6b6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45e640
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4f5b8c], eax
cmp dword [0x4f5b88], 0
jne 0x45e6d1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4f5b88], eax
cmp dword [0x4f5b90], 0
jne 0x45e6f5
push esp
push 0
push 0
push 0x45e5e4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4f5b90], eax
pop edx
ret
Function at 0x45ed88
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4f5b74]
cmp dword [eax + 0x30], 0
je 0x45ee32
cmp dword [ebx + 0x94], 0
jne 0x45ee2c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45ed18
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45ee2c
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 0x45edf2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45ee2c
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.0041dc78
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45ee01
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45f990
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 0x45f9c5
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.004047d4
jmp 0x45f9d2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404738
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x460b0c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x460b4d
mov eax, esi
call fcn.00446a28
test al, al
je 0x460b4d
mov eax, dword [ebx + 0x84]
call fcn.00446724
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x460b4d
push 0
mov eax, dword [ebx + 0x84]
call fcn.00446724
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x47e0f8
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x47e11d
cmp dword [esp + 4], 5
jb 0x47e11d
mov al, 1
jmp 0x47e11f
xor eax, eax
add esp, 0x94
ret
Function at 0x498f80
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x498fae
mov eax, ebx
call fcn.00499a34
cmp dword [ebx + 0x40], 0
je 0x498fa7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x49901f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x499011
cmp dword [ebx + 8], 0
je 0x498fd0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x498fe2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x499011
cmp dword [ebx + 8], 0
je 0x498fc3
cmp eax, 3
je 0x498ff5
dec eax
jne 0x498fc3
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x498fc3
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x498fc3
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x49903d
cmp dword [ebx + 0x14], 0xcc
je 0x49903d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00499048
pop ebx
ret

Function at 0x4aa8ec
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4aa95d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4f3ca8]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x4aa947
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.004aa8dc
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4aa6b4]
call fcn.004aa984
mov dword [0x4f3d0c], eax
mov eax, dword [ebp - 4]
call fcn.004aa88c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa964
lea eax, [ebp - 8]
call fcn.00406690
ret

Function at 0x4ac384
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4ac43e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404df0
mov eax, dword [0x4f4484]
cmp dword [eax], 2
jne 0x4ac3f3
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00405160
mov eax, dword [ebx]
call fcn.00404f8c
push eax
mov eax, dword [ebx]
call fcn.00404f7c
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00404f8c
mov edx, eax
dec edx
mov eax, ebx
call fcn.00405160
jmp 0x4ac425
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.00409df8
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00404f6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ac445
lea eax, [ebp - 0x3f0]
call fcn.004046e4
ret
Function at 0x4beed8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, eax
mov ebx, dword [ebp + 8]
add ebx, 0xffffffc4
mov esi, dword [ebp + 8]
add esi, 0xffffffb8
xor eax, eax
push ebp
push 0x4bf08b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x44]
call fcn.0042ca90
mov eax, dword [eax + 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
mov edx, dword [edx + 0x70]
mov edx, dword [edx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x4c]
call fcn.0045258c
call fcn.004bb408
mov edx, dword [ebp + 8]
mov dword [edx - 0x50], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 0x50], 0
je 0x4bef5c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x50]
mov eax, dword [eax + 0x68]
call fcn.00427854
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x44]
call fcn.0042ca90
mov eax, dword [eax + 0xc]
pop edx
call fcn.0042785c
mov eax, dword [ebp + 8]
mov dword [eax - 0x40], ebx
lea edx, [ebp - 4]
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.0042773c
mov edx, dword [ebp - 4]
lea eax, [ebx + 0x1c]
call fcn.00409c88
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
push eax
push 0x3c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x44]
call fcn.0042ca90
call fcn.004285c4
push eax
call sub.gdi32.dll_GetObjectA
mov dword [ebx + 8], edi
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.004277b0
mov dword [ebx], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.004277ec
test al, 8
setne al
mov byte [ebx + 0x16], al
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.004277ec
test al, 2
setne al
mov byte [ebx + 0x14], al
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.004277ec
test al, 4
setne al
mov byte [ebx + 0x15], al
mov dword [ebx + 0x10], 0x190
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00427854
mov byte [ebx + 0x17], al
xor eax, eax
mov dword [ebx + 4], eax
mov byte [ebx + 0x18], 0
mov byte [ebx + 0x19], 0
mov eax, dword [ebx + 8]
mov dword [ebx + 0xc], eax
mov byte [ebx + 0x1b], 0
mov byte [ebx + 0x1a], 0
push ebx
call sub.gdi32.dll_CreateFontIndirectA
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x44]
call fcn.0042ca90
mov eax, dword [eax + 0xc]
pop edx
call fcn.004276e8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x44]
call fcn.0042ca90
mov eax, dword [eax + 0xc]
mov edx, dword [ebp + 8]
imul edx, dword [edx - 0x54], 0x13
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0x8c]
mov edx, dword [ecx + edx*8 + 0x10]
call fcn.0042752c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bf092
lea eax, [ebp - 4]
call fcn.004046e4
ret
Function at 0x4c2ff4
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffe9c
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [esp], eax
mov eax, ebx
call fcn.004098c8
test al, al
je 0x4c307b
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x160
call fcn.004031fc
or esi, 0x100
test esi, esi
jns 0x4c302f
call fcn.00403794
push esi
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
mov eax, ebx
call fcn.00404ba4
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x4c307b
mov dl, 1
mov eax, dword [0x4266a0]
call fcn.0042e05c
mov dword [esp], eax
mov edx, dword [esp + 4]
mov eax, dword [esp]
call fcn.0042e42c
mov eax, dword [esp]
mov edx, dword [eax]
call dword [edx + 0x1c]
test al, al
je 0x4c307b
mov eax, esp
call fcn.0040f024
mov eax, dword [esp]
add esp, 0x164
pop esi
pop ebx
ret
Function at 0x4d4634
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x4f3dc0], 0
jne 0x4d4670
cmp dword [0x4f3db0], 0
jne 0x4d4670
push esi
lea eax, [ebp + 8]
push eax
mov ecx, 0x113
mov edx, ebx
mov eax, edi
call fcn.004dab80
mov dword [ebp - 4], eax
cmp esi, 0xfff2
jne 0x4d47a5
cmp byte [edi + 0x7c], 0
jne 0x4d486b
lea eax, [ebp - 0xc]
push eax
call sub.user32.dll_GetCursorPos
lea edx, [ebp - 0xc]
mov eax, 0x4f5f38
call fcn.00406ee0
test al, al
jne 0x4d46ea
mov eax, dword [0x4f3db0]
push eax
push ebx
call sub.user32.dll_KillTimer
xor eax, eax
mov dword [0x4f3db0], eax
mov dword [0x4f3db4], 0xffffffff
mov dword [0x4f3da4], 0xffffffff
mov dword [0x4f3db8], 0xffffffff
push 0
push 0xffffffffffffffff
push 0
mov ecx, 1
mov edx, ebx
mov eax, edi
call fcn.004d11ac
jmp 0x4d486b
cmp dword [0x4f3db4], 0
jne 0x4d4714
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [edi + 0x74]
mov ecx, 0x4f5f38
mov edx, ebx
call fcn.004d3b60
mov dword [0x4f3db8], eax
mov eax, 0x8b004f3d
ja 0x4d4786
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [edi + 0x78]
mov ecx, 0x4f5f38
mov edx, ebx
call fcn.004d3ba4
mov dword [0x4f3db8], eax
mov esi, dword [edi + 0x78]
cmp esi, 0xfffd
jne 0x4d47d7
mov eax, dword [0x4f3dc0]
push eax
push ebx
call sub.user32.dll_KillTimer
push 0
push 0x37
push 0xfffe
push ebx
call sub.user32.dll_SetTimer
mov dword [0x4f3dc0], eax
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4d486b
cmp esi, 0xfffe
jne 0x4d4851
lea eax, [ebp - 0xc]
push eax
call sub.user32.dll_GetCursorPos
lea eax, [ebp - 0xc]
push eax
push ebx
call sub.user32.dll_ScreenToClient
cmp dword [ebp - 0xc], 0
jge 0x4d47fd
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], 0
jge 0x4d4808
xor eax, eax
mov dword [ebp - 8], eax
mov dx, word [ebp - 8]
mov ax, word [ebp - 0xc]
call fcn.00407b70
push eax
mov ecx, 1
mov edx, ebx
mov eax, edi
call fcn.004d3740
cmp dword [0x4f3da0], 0xffffffff
je 0x4d484a
mov byte [edi + 0x58], 1
push 0
mov ecx, dword [0x4f3da0]
mov edx, dword [0x4f3dac]
mov eax, ebx
call fcn.004d4004
mov byte [edi + 0x58], 0
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4d486b
push 0x113
lea eax, [ebp + 8]
push eax
mov ecx, 0x113
mov edx, ebx
mov eax, edi
call fcn.004dab80
mov dword [ebp - 4], eax
Function at 0x102cb61
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x102e070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov dword [ebp - 0x210], eax
xor esi, esi
call ebx
test eax, eax
jne 0x102cc4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x102cc4d
push 0x5c
push edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
jne 0x102cbc6
push edi
mov esi, 0x80070003
push 0x1019ad4
jmp 0x102cc0f
sub eax, edi
sar eax, 1
push eax
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0102ca12
mov esi, eax
test esi, esi
jge 0x102cbeb
push edi
push 0x1019ab0
jmp 0x102cc0f
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
call fcn.0102cb61
mov esi, eax
test esi, esi
jge 0x102cc21
lea eax, [ebp - 0x20c]
push eax
push 0x1019a94
push 1
push esi
push 0x4000000
call fcn.0101e5b9
add esp, 0x14
jmp 0x102cc4f
push dword [ebp - 0x210]
push edi
call ebx
test eax, eax
jne 0x102cc4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x102cc4d
test eax, eax
jle 0x102cc49
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x102cc4f
xor esi, esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101ce8b
leave
ret 8
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x8de008], 0x8088405
inc edx
mov dword [ebx + 0x8de008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cd64
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cd95
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd7d
add dl, dl
jne 0x41cda0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cdf1
xor eax, eax
add dl, dl
jne 0x41cdad
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ce8e
add dl, dl
jne 0x41cdbc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdc7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdd2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cddd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cde7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cd8c
mov eax, 1
add dl, dl
jne 0x41cdff
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ce0a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdf6
sub eax, ebx
mov ebx, 1
jne 0x41ce3d
mov ecx, 1
add dl, dl
jne 0x41ce23
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce2e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce1a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd8c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41ce54
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce5f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce4b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd8c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41ceaf
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cd8c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret