joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a767c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.004a6c50
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004050a8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4a76da
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x65b85c]
mov dl, 1
mov eax, dword [0x4a6a24]
call fcn.0040e270
call fcn.00404588
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4a76e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004050a8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4a773c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x65bd5c]
mov dl, 1
mov eax, dword [0x4a6a24]
call fcn.0040e270
call fcn.00404588
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004a6c80
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4aa16c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4aa3cc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4aa1cf
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004a9c34
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040ea64
cmp al, 1
jne 0x4aa1cf
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004a9f4c
test al, al
je 0x4aa35b
cmp dword [ebp - 8], 0
jge 0x4aa1ed
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004a9c34
mov eax, dword [ebp - 0x210]
call fcn.00404eb0
cmp ebx, eax
jge 0x4aa237
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004a9c34
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x65bd18]
and eax, 0xff
bt dword [edx], eax
jae 0x4aa237
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4aa24b
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004aa148
cmp ebx, dword [ebp - 8]
je 0x4aa34d
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4aa277
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403ef4
and eax, 0x7f
movzx eax, word [eax*2 + 0x655668]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4aa33a
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403ef4
and eax, 0x7f
movzx eax, word [eax*2 + 0x655668]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00456c34
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403ef4
and eax, 0x7f
movzx eax, word [eax*2 + 0x655668]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00456c34
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa341
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4aa3ae
cmp dword [ebp - 8], 0
jge 0x4aa366
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004a9c34
mov eax, dword [ebp - 0x218]
call fcn.00404eb0
cmp eax, dword [ebp - 8]
jg 0x4aa3a0
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004a9c34
mov eax, dword [ebp - 0x21c]
call fcn.00404eb0
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004aa148
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa3d3
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404c0c
ret
Function at 0x4b4720
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 0x208], ecx
mov dword [ebp - 0x204], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b48de
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x204]
mov eax, ebx
call fcn.004b556c
mov eax, dword [ebp - 0x204]
lea edx, [esi + 1]
call fcn.0040ea64
cmp al, 2
jne 0x4b477e
dec esi
mov eax, ebx
call fcn.004b5580
test al, al
je 0x4b4879
test esi, esi
jge 0x4b4793
xor esi, esi
lea edi, [esi + 1]
lea edx, [ebp - 0x208]
mov eax, ebx
call fcn.004b556c
mov eax, dword [ebp - 0x208]
call fcn.00404eb0
cmp edi, eax
jge 0x4b47da
lea edx, [ebp - 0x20c]
mov eax, ebx
call fcn.004b556c
mov eax, dword [ebp - 0x20c]
mov al, byte [eax + edi - 1]
mov edx, dword [0x65bd18]
and eax, 0xff
bt dword [edx], eax
jae 0x4b47da
inc edi
mov eax, dword [ebx + 0x2b8]
cmp esi, eax
jl 0x4b47e8
mov esi, eax
mov edi, esi
mov ecx, edi
mov edx, edi
mov eax, ebx
call fcn.004b49f8
cmp edi, esi
je 0x4b4871
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_GetKeyboardState
push esi
lea esi, [ebp - 0x100]
lea edi, [ebp - 0x200]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
pop esi
mov byte [ebp - 0x1f0], 0x81
mov byte [ebp - 0x1db], 0x81
mov byte [ebp - 0x1ef], 0
lea eax, [ebp - 0x200]
push eax
call sub.user32.dll_SetKeyboardState
push 1
push 0x25
push pe_nt_image_headers32
mov eax, ebx
call fcn.00456c34
push eax
call sub.user32.dll_SendMessageA
push 1
push 0x25
push 0x101
mov eax, ebx
call fcn.00456c34
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_SetKeyboardState
mov dword [ebx + 0x2ac], esi
jmp 0x4b48c0
test esi, esi
jge 0x4b487f
xor esi, esi
lea edx, [ebp - 0x210]
mov eax, ebx
call fcn.004b556c
mov eax, dword [ebp - 0x210]
call fcn.00404eb0
cmp esi, eax
jl 0x4b48b5
lea edx, [ebp - 0x214]
mov eax, ebx
call fcn.004b556c
mov eax, dword [ebp - 0x214]
call fcn.00404eb0
mov esi, eax
mov ecx, esi
mov edx, esi
mov eax, ebx
call fcn.004b49f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b48e5
lea eax, [ebp - 0x214]
mov edx, 5
call fcn.00404c0c
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004050a8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
setne al
pop ebx
ret
Function at 0x4c0b74
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c0c4c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x65cda0], 0
jne 0x4c0c30
lea eax, [ebp - 4]
mov edx, 0x4c0c64
call fcn.00404c80
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004050a8
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4c0c30
mov eax, ebx
call fcn.00402818
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4c0c29
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4c0c13
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4c0c74
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4c0c13
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x65cda0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c0c30
mov eax, dword [ebp - 0xc]
call fcn.00402838
ret
mov ebx, dword [0x65cda0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c0c53
lea eax, [ebp - 4]
call fcn.00404be8
ret
Function at 0x50d7d8
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
cmp byte [ebx + 0x30c], 0
je 0x50d82b
cmp byte [ebx + 0x314], 0
jne 0x50d82b
push 0
push 1
push 0x86
mov eax, ebx
call fcn.00456c34
push eax
call sub.user32.dll_SendMessageA
push 4
mov eax, ebx
call fcn.00456c34
push eax
call sub.user32.dll_ShowWindow
push 0x13
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, ebx
call fcn.00456c34
push eax
call sub.user32.dll_SetWindowPos
pop ebx
ret
Function at 0x536650
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffe94
mov edi, eax
mov eax, edi
call fcn.0052f62c
mov edx, eax
mov eax, edi
call fcn.00535d64
mov ebp, eax
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov byte [esp + 0xd], 0
mov eax, edi
call fcn.00535f7c
xor al, 1
mov byte [esp + 0xc], al
lea edx, [esp + 0x30]
mov eax, edi
call fcn.004d6b58
push edi
lea esi, [esp + 0x34]
lea edi, [esp + 0x12]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
lea eax, [esp + 0xe0]
push eax
call sub.user32.dll_IsRectEmpty
test eax, eax
jne 0x5366be
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x1a], eax
mov dword [esp + 4], 0xffffffff
mov al, byte [esp + 0xc]
xor al, 1
test al, al
je 0x5366d4
neg dword [esp + 4]
push edi
lea esi, [esp + 0x12]
lea edi, [esp + 0x22]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
test al, al
je 0x536712
push 0
lea eax, [esp + 0x160]
push eax
mov ecx, dword [esp + 0x2e]
xor edx, edx
mov eax, dword [esp + 0x26]
call fcn.0041d6e4
push edi
lea esi, [esp + 0x160]
lea edi, [esp + 0x22]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
jmp 0x53671a
mov eax, dword [esp + 0x2a]
mov dword [esp + 0x22], eax
xor ebx, ebx
mov eax, dword [esp + 0x1a]
sub eax, dword [esp + 0x12]
test eax, eax
jns 0x53672d
add eax, 0xff
sar eax, 8
mov dword [esp], eax
cmp dword [esp], 0
jne 0x536824
mov dword [esp], 1
jmp 0x536824
cmp ebx, 0x14
jg 0x536758
mov esi, dword [esp + 4]
imul esi, dword [esp]
jmp 0x536763
inc dword [esp]
mov esi, dword [esp + 4]
imul esi, dword [esp]
mov eax, esi
cdq
xor eax, edx
sub eax, edx
mov ecx, eax
mov eax, ecx
add eax, ebx
cmp ebp, eax
jl 0x53678a
mov eax, esi
cdq
xor eax, edx
sub eax, edx
mov eax, ebp
sub eax, ebx
sar eax, 1
jns 0x536786
adc eax, 0
cmp ecx, eax
jle 0x536793
mov esi, ebp
sub esi, ebx
imul esi, dword [esp + 4]
push 2
push 0
push 0
lea eax, [esp + 0x1a]
push eax
lea eax, [esp + 0x1e]
push eax
push esi
push 0
mov eax, edi
call fcn.00456c34
push eax
call sub.user32.dll_ScrollWindowEx
mov eax, esi
cdq
xor eax, edx
sub eax, edx
add ebx, eax
cmp byte [esp + 0xc], 0
jne 0x5367dc
mov dword [esp + 0x2a], ebx
mov eax, dword [edi + 0x208]
mov eax, dword [eax + 0x14]
mov edx, 0x80000010
call fcn.0042d66c
jmp 0x5367f7
mov eax, dword [esp + 0x2a]
sub eax, ebx
mov dword [esp + 0x22], eax
mov edx, dword [edi + 0x70]
mov eax, dword [edi + 0x208]
mov eax, dword [eax + 0x14]
call fcn.0042d66c
lea edx, [esp + 0x1e]
mov eax, dword [edi + 0x208]
call fcn.0042dd4c
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 8]
cmp eax, 0x190
jg 0x53681e
cmp ebp, ebx
jle 0x53681e
xor eax, eax
jmp 0x536820
mov al, 1
mov byte [esp + 0xd], al
cmp byte [esp + 0xd], 0
je 0x536749
add esp, 0x16c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x54504f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x656dfa
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x5450a7
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x656e1b
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x54509d
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x5450ab
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x5785d0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, eax
lea eax, [esp + 0x100]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
push esp
push 0
push 0x578614
lea eax, [esp + 0x10c]
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, ebx
mov eax, esp
call fcn.0040a880
add esp, 0x200
pop ebx
ret

Function at 0x58d080
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x58d0ae
mov eax, ebx
call fcn.0058db38
cmp dword [ebx + 0x3c], 0
je 0x58d0a7
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x58d11f
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x58d111
cmp dword [ebx + 8], 0
je 0x58d0d0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x58d0e2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x58d111
cmp dword [ebx + 8], 0
je 0x58d0c3
cmp eax, 3
je 0x58d0f5
dec eax
jne 0x58d0c3
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 0x58d0c3
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x58d0c3
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x58d13d
cmp dword [ebx + 0x10], 0xcc
je 0x58d13d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0058d148
pop ebx
ret

Function at 0x5aa1dc
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x5aa1ee
add esp, 0xfffffff0
call fcn.0040405c
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00406cac
xor eax, eax
push ebp
push 0x5aa271
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, esi
call fcn.00403cc8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.005aa368
mov dl, 1
mov eax, dword [0x41ca90]
call fcn.00403cc8
mov dword [esi + 0x28], eax
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x5aa25b
push 0x5aa294
call sub.user32.dll_RegisterClipboardFormatA
mov dword [0x65d11c], eax
push 0x5aa2a8
call sub.user32.dll_RegisterClipboardFormatA
mov dword [0x65d120], eax
call sub.user32.dll_CloseClipboard
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5aa278
lea eax, [ebp - 4]
call fcn.00406c3c
ret
Function at 0x5b1264
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004050a8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x5b127d
test al, 0x10
jne 0x5b1281
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x5b1288
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe78
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x20]
call fcn.00405098
xor eax, eax
push ebp
push 0x5b1463
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
mov eax, dword [ebp + 0x20]
call fcn.00403478
mov edi, eax
cmp dword [ebp + 0x20], 0
je 0x5b1331
cmp dword [ebp - 0x10], 0
je 0x5b1331
mov eax, dword [ebp + 0x20]
call fcn.0040a10c
test al, al
jne 0x5b12e7
mov eax, dword [ebp + 0x20]
call fcn.005b1264
test al, al
je 0x5b130a
push 0x4000
push 0x160
lea eax, [ebp - 0x178]
push eax
push 0
mov eax, dword [ebp + 0x20]
call fcn.004050a8
push eax
call sub.shell32.dll_SHGetFileInfoA
jmp 0x5b132b
push 0x4010
push 0x160
lea eax, [ebp - 0x178]
push eax
push 0
mov eax, dword [ebp + 0x20]
call fcn.004050a8
push eax
call sub.shell32.dll_SHGetFileInfoA
mov edi, dword [ebp - 0x174]
cmp byte [ebp + 0x1c], 0
je 0x5b1358
push 0x4000
push 0x160
lea eax, [ebp - 0x178]
push eax
push 0
push 0x5b1474
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
jmp 0x5b1377
push 0x4001
push 0x160
lea eax, [ebp - 0x178]
push eax
push 0
push 0x5b1474
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call sub.comctl32.dll_ImageList_GetIconSize
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.0041d6bc
test bl, bl
je 0x5b13b7
cmp byte [ebp + 0x14], 0
jne 0x5b13b7
push 1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0042e2fc
push eax
push edi
push esi
call sub.comctl32.dll_ImageList_Draw
test byte [ebp + 0x14], bl
je 0x5b144d
mov dl, 1
mov eax, dword [0x42bed4]
call fcn.00432bc8
mov ebx, eax
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, dword [ebp - 0x18]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
push 0
push 0
push 0
mov eax, ebx
call fcn.00433190
call fcn.0042e2fc
push eax
push edi
push esi
call sub.comctl32.dll_ImageList_Draw
mov eax, dword [ebp - 8]
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x184], eax
fild dword [ebp - 0x14]
fmul qword [ebp + 0xc]
call fcn.00402c54
add eax, dword [ebp - 8]
mov dword [ebp - 0x180], eax
fild dword [ebp - 0x18]
fmul qword [ebp + 0xc]
call fcn.00402c54
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x17c], eax
mov ecx, ebx
lea edx, [ebp - 0x188]
mov eax, dword [ebp - 4]
call fcn.005b1188
mov eax, ebx
call fcn.00403cf8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b146a
lea eax, [ebp + 0x20]
call fcn.00404be8
ret
Function at 0x5b5410
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405098
xor eax, eax
push ebp
push 0x5b54bc
push dword fs:[eax]
mov dword fs:[eax], esp
or edi, 0xffffffff
lea eax, [ebp - 0x110]
mov edx, dword [ebp - 4]
call fcn.0040a6dc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jle 0x5b54a6
mov eax, ebx
call fcn.00402818
mov esi, eax
push esi
push ebx
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x5b54cc
push esi
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x5b549f
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0xfeef04bd
jne 0x5b549f
mov eax, dword [ebp - 0xc]
mov edi, dword [eax + 8]
mov eax, esi
call fcn.00402838
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b54c3
lea eax, [ebp - 4]
call fcn.00404be8
ret

Function at 0x5c8300
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x5c83d1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.0056bb50
mov edx, dword [ebp - 4]
mov eax, 0x5c83e8
call fcn.004051ec
test eax, eax
je 0x5c83bb
mov eax, dword [ebp - 4]
call fcn.00404eb0
push eax
push 2
call sub.kernel32.dll_GlobalAlloc
mov ebx, eax
test ebx, ebx
je 0x5c83bb
push ebx
call sub.kernel32.dll_GlobalLock
mov esi, eax
test esi, esi
jne 0x5c8366
push ebx
call sub.kernel32.dll_GlobalFree
jmp 0x5c83bb
mov edx, 0x5c83ec
mov eax, esi
call fcn.0040a680
mov eax, dword [ebp - 4]
call fcn.004050a8
mov edx, eax
mov eax, esi
call fcn.0040a720
push ebx
call sub.kernel32.dll_GlobalUnlock
mov eax, edi
call fcn.00456c34
push eax
call sub.user32.dll_OpenClipboard
test eax, eax
jne 0x5c83a2
push ebx
call sub.kernel32.dll_GlobalFree
jmp 0x5c83bb
push 0x5c83f0
call sub.user32.dll_RegisterClipboardFormatA
push ebx
movzx eax, ax
push eax
call sub.user32.dll_SetClipboardData
call sub.user32.dll_CloseClipboard
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c83d8
lea eax, [ebp - 4]
call fcn.00404be8
ret
Function at 0x5c944c
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5c963c
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x588]
cmp byte [eax + 0xc], 0
je 0x5c9587
mov eax, dword [ebp - 4]
call fcn.00456c34
push eax
call sub.user32.dll_OpenClipboard
push 0x5c964c
call sub.user32.dll_RegisterClipboardFormatA
mov ebx, eax
call sub.user32.dll_CloseClipboard
call fcn.00449bec
mov edx, ebx
call fcn.00449bb4
test al, al
je 0x5c9587
call fcn.00449bec
mov edx, dword [eax]
call dword [edx + 0x18]
push ebx
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x5c951e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x18], 0
je 0x5c94f2
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x14], eax
jmp 0x5c94f7
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c9525
cmp dword [ebp - 0x18], 0
je 0x5c9513
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GlobalUnlock
call fcn.00449bec
mov edx, dword [eax]
call dword [edx + 0x14]
ret
call fcn.00449bec
mov dx, 1
call fcn.00449bb4
test al, al
je 0x5c9621
call fcn.00449bec
mov edx, dword [eax]
call dword [edx + 0x18]
push 1
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x5c961a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x18], 0
je 0x5c95d3
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x14], eax
jmp 0x5c95d8
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5c95f3
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.005c90f0
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c9621
cmp dword [ebp - 0x18], 0
je 0x5c960f
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GlobalUnlock
call fcn.00449bec
mov edx, dword [eax]
call dword [edx + 0x14]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c9643
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404c0c
ret

Function at 0x5d0ef4
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
and edx, edx
je 0x5d0f12
and ecx, ecx
jle 0x5d0f12
push ebx
xor al, byte [edx]
imul eax, eax, 0x8088405
inc eax
mov ebx, eax
shr ebx, 0x18
mov byte [edx], bl
inc edx
dec ecx
jne 0x5d0efd
pop ebx
ret