joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4272d1
Capabilities:
Delete file

Disassembly:
push 0x10
mov eax, 0x4a1503
call fcn.004810cf
mov esi, dword [ebp + 8]
xor edi, edi
cmp dword [esi + 0x8a0], edi
jne 0x427368
push edi
mov dword [ebp - 4], edi
push dword [esi + 0x88c]
call fcn.0041c2f3
test al, al
je 0x427385
push 1
push dword [esi + 0x88c]
call fcn.0041c2f3
test al, al
je 0x427385
push 2
push dword [esi + 0x88c]
call fcn.0041c2f3
test al, al
je 0x427385
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x4d4770]
push eax
push str._INFO___d___WaeWnd_Install_1
call fcn.00414401
mov eax, dword [esi + 0x88c]
add eax, 0x5a8
cmp dword [eax + 0x14], 8
pop ecx
pop ecx
jb 0x42734f
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push edi
push 0x8066
mov ecx, esi
call fcn.004313fd
or dword [ebp - 4], 0xffffffff
push 0x7be
push dword [esi + 0x7d8]
lea ecx, [esi + 0x30]
call fcn.0042a210
xor eax, eax
call fcn.00481174
ret 4
cmp dword [esi + 0x8a0], edi
jne 0x427425
lea eax, [esi + 0x8d4]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 1
mov edi, dword [esi + 0x8f0]
cmp dword [esi + 0x8f4], edi
je 0x4273e1
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x4d4770]
push eax
push str._INFO___d___WaeWnd_Install_2:__d
call fcn.00414401
add esp, 0xc
push dword [edi]
push dword [esi + 0x88c]
call fcn.0041c266
add edi, 4
jmp 0x4273ab
mov ecx, dword [esi + 0x8f4]
mov ebx, dword [esi + 0x8f0]
cmp ebx, ecx
je 0x427411
mov eax, ecx
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
push ebx
mov dword [ebp - 0x14], eax
call fcn.0047a3e0
mov eax, dword [ebp - 0x14]
add esp, 0xc
add eax, ebx
mov dword [esi + 0x8f4], eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or dword [ebp - 4], 0xffffffff
jmp 0x4272e0

Function at 0x42826a
Capabilities:
Create process on windows

Disassembly:
push 0x24
mov eax, 0x49fb39
call fcn.00481105
sub esp, 0x1c
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp + 8]
mov esi, esp
mov dword [ebp - 0x30], esp
push eax
call fcn.00402109
lea eax, [ebp - 0x2c]
push eax
call fcn.0041a721
add esp, 0x20
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x4282a4
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004025df
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402a5a
push 1
push edi
push edi
push dword [ebp - 0x30]
push str.Open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
mov eax, dword [ebp - 0x30]
setg bl
add eax, 0xfffffff0
call fcn.00402a23
push edi
push 1
lea ecx, [ebp + 8]
call fcn.00402a5a
mov al, bl
call fcn.00481188
ret
Function at 0x4299a7
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
xor edi, edi
call esi
test ax, ax
jns 0x4299bd
push 8
pop edi
push 1
call esi
test ax, ax
jns 0x4299c9
or edi, 1
push 2
call esi
test ax, ax
jns 0x4299d5
or edi, 2
push 0x10
call esi
test ax, ax
jns 0x4299e1
or edi, 4
push 0x12
call esi
test ax, ax
jns 0x4299ed
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret
Function at 0x42d940
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi + 0xac]
mov ebx, dword [ebp + 8]
cmp eax, ecx
je 0x42d96c
cmp ebx, dword [esi + 0x10c]
je 0x42d96c
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x10c]
cmp ebx, eax
je 0x42da43
push edi
test eax, eax
je 0x42d9cb
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x17
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x10c]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x140]
xor edi, edi
push edi
push edi
push edi
push str.killfocus
push dword [esi + 0x10c]
mov ecx, esi
call fcn.0042d8a0
mov dword [esi + 0x10c], edi
test ebx, ebx
je 0x42da42
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, esi
jne 0x42da42
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x100]
test al, al
je 0x42da42
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10c]
test al, al
je 0x42da42
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [esi + 0x10c], ebx
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x10c]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x140]
xor eax, eax
push eax
push eax
push eax
push 0x4a399c
push dword [esi + 0x10c]
mov ecx, esi
call fcn.0042d8a0
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42dbed
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x4ac]
xor ebx, ebx
call fcn.00428e13
test eax, eax
jle 0x42dc42
push ebx
lea ecx, [esi + 0x4ac]
mov byte [ebp - 1], 0
call fcn.00428e36
mov edx, dword [eax]
lea ecx, [ebp - 1]
push ecx
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [edx]
cmp byte [ebp - 1], 0
jne 0x42dca6
lea ecx, [esi + 0x4ac]
inc ebx
call fcn.00428e13
cmp ebx, eax
jl 0x42dc09
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x42dd0b
sub eax, 4
je 0x42dcaa
dec eax
dec eax
jne 0x42dd02
push dword [ebp + 0xc]
mov word [ebp + 8], ax
lea edi, [ebp + 0xa]
stosw word es:[edi], ax
call fcn.0047f47d
pop ecx
mov ecx, dword [esi + 0x108]
push reloc.WS2_32.dll_select
lea edx, [ebp + 8]
push edx
mov word [ebp + 8], ax
mov eax, dword [ecx]
push 0x42b3d6
call dword [eax + 0x134]
mov esi, eax
test esi, esi
je 0x42dd02
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x128]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov al, 1
jmp 0x42dd04
cmp dword [esi + 0x10c], 0
je 0x42dd02
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x10], ax
mov eax, dword [esi + 0x120]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x124]
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x14], eax
call fcn.004299a7
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x10c]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x140]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x42dd02
cmp dword [esi + 0x10c], 0
je 0x42ddba
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x42dd6d
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
call dword [eax + 0x10c]
test al, al
je 0x42dd6d
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
push str.RichEditUI
call dword [eax + 0xc]
push eax
call fcn.0047b0b9
pop ecx
pop ecx
test eax, eax
je 0x42dd6d
mov ecx, dword [esi + 0x10c]
call fcn.0045722a
test al, al
jne 0x42dd02
cmp dword [esi + 0x10c], 0
je 0x42ddba
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x42ddba
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
call dword [eax + 0x10c]
test al, al
je 0x42ddba
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
push str.WkeWebkitUI
call dword [eax + 0xc]
push eax
call fcn.0047b0b9
pop ecx
pop ecx
test eax, eax
jne 0x42dd02
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setns al
movzx eax, al
push eax
mov ecx, esi
call fcn.0042db0d
jmp 0x42dca6
Function at 0x432f9c
Capabilities:
Terminate process

Disassembly:
push 0x364
mov eax, 0x49b3f6
call fcn.00481105
mov esi, ecx
call fcn.0043d66a
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call edi
push eax
push str._INFO___d___OnCreate_1
push 3
push dword [0x4d2d28]
call fcn.0043d04e
add esp, 0x10
push 0xfffffffffffffff0
mov ecx, esi
call fcn.00428e13
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
mov ecx, esi
call fcn.00428e13
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [esi]
mov ecx, esi
lea ebx, [esi + 0x30]
call dword [eax + 0x30]
push eax
push dword [esi + 4]
mov ecx, ebx
call fcn.0042d80c
lea eax, [esi + 0x24]
push eax
mov ecx, ebx
call fcn.0042a436
lea ecx, [ebp - 0x36c]
call fcn.0045a903
mov eax, dword [esi]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x118]
push ecx
mov ecx, esi
call dword [eax + 0x28]
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.00428f98
test al, al
jne 0x4330b8
call edi
push eax
push str._INFO___d___OnCreate_2
push 3
push dword [0x4d2d28]
call fcn.0043d04e
mov eax, dword [esi]
add esp, 0x10
lea ecx, [ebp - 0x94]
push ecx
mov ecx, esi
call dword [eax + 0x2c]
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00428e17
push eax
call fcn.0047a8f4
pop ecx
lea ecx, [ebp - 0x94]
movzx edi, ax
mov byte [ebp - 4], 1
call fcn.00428e6d
push 0
lea eax, [esi + 0x28]
push ebx
push eax
lea ecx, [ebp - 0x118]
call fcn.00428e17
push eax
push edi
lea ecx, [ebp - 0x36c]
call fcn.0045b8c4
mov edi, eax
jmp 0x433119
call edi
push eax
push str._INFO___d___OnCreate_3
push 3
push dword [0x4d2d28]
call fcn.0043d04e
mov eax, dword [esi]
add esp, 0x10
lea ecx, [ebp - 0x19c]
push ecx
mov ecx, esi
lea edi, [esi + 0x28]
call dword [eax + 0x2c]
push 0
push ebx
push edi
push 0
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00428e17
push ecx
mov ecx, esp
mov dword [ecx], eax
lea ecx, [ebp - 0x36c]
mov dword [ebp - 0x370], esp
call fcn.0045b8c4
lea ecx, [ebp - 0x19c]
mov edi, eax
mov byte [ebp - 4], 1
call fcn.00428e6d
test edi, edi
jne 0x433182
push 0xffffffffffffffff
push 0x4a3e64
lea ecx, [ebp - 0x94]
call fcn.00429288
mov eax, dword [esi]
lea ecx, [ebp - 0x220]
push ecx
mov ecx, esi
mov byte [ebp - 4], 4
call dword [eax + 0x2c]
push eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 5
call fcn.00429014
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 4
call fcn.00428e6d
push 0x10
push str.Duilib
lea ecx, [ebp - 0x94]
call fcn.00428e17
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push edi
mov ecx, ebx
call fcn.004305e7
lea eax, [esi + 0x20]
push eax
mov ecx, ebx
call fcn.0042a3e6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0
call fcn.00428e6d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x36c]
call fcn.00459e69
xor eax, eax
call fcn.00481188
ret 0x10
Function at 0x43794f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4d04c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x18], bl
je 0x4379db
cmp dword [esi + 0x10], ebx
je 0x4379db
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00480b60
mov dword [ebp - 8], esp
cmp esp, ebx
je 0x4379db
push edi
push dword [ebp - 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push dword [ebp - 8]
add ecx, 0x1cc
call fcn.00428ff0
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0042d8a0
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00429ec6
test al, al
je 0x4379db
mov ecx, dword [esi + 0x10]
call fcn.00433ef5
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047a0fb
leave
ret 0x10
Function at 0x43ce78
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x49bd3c
call fcn.0048109c
mov esi, ecx
lea eax, [esi + 0x10]
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], bl
call fcn.004162c7
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
push ebx
push ebx
call fcn.0047ef59
add esp, 0x18
mov dword [ebp + 0xc], eax
cmp eax, ebx
jne 0x43cec9
cmp byte [ebp - 0x10], bl
je 0x43cec5
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor al, al
jmp 0x43cee6
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.004153a9
cmp byte [ebp - 0x10], bl
je 0x43cee4
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, 1
call fcn.00481174
ret 8

Function at 0x43d66a
Capabilities:
Get common file path

Disassembly:
push 0x244
mov eax, 0x49bf13
call fcn.00481105
lea eax, [ebp - 0x218]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebp + eax*2 - 0x21a], 0x5c
je 0x43d6a8
push 0x4bae2c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.004029c1
mov esi, 0x4a5df0
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
call fcn.00480a61
pop ecx
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.00404527
test byte [0x4d2dbc], 1
mov esi, 0x4d2d48
jne 0x43d72f
or dword [0x4d2dbc], 1
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x250]
push eax
mov byte [ebp - 4], 1
call fcn.0043d222
pop ecx
pop ecx
push ebx
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0043ceee
push ebx
push 1
lea ecx, [ebp - 0x250]
call fcn.00401587
push 0x4a25aa
call fcn.0047a864
pop ecx
mov byte [ebp - 4], bl
mov ecx, esi
mov dword [0x4d2d28], esi
call fcn.0043d631
push ebx
push 1
lea ecx, [ebp - 0x234]
call fcn.00402a5a
xor eax, eax
call fcn.00481188
ret
Function at 0x442e99
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 8]
mov esi, eax
and esi, 7
je 0x442ebe
cmp eax, esi
jge 0x442eb6
mov eax, edi
call fcn.004428ed
mov ecx, esi
shr dword [edi + 0xc], cl
sub dword [edi + 8], esi
mov esi, dword [edi + 8]
xor ecx, ecx
test esi, esi
jle 0x442eeb
mov eax, dword [edi + 0xc]
push ebx
mov dl, byte [edi + 0xc]
sub esi, 8
mov byte [ebp + ecx - 4], dl
shr eax, 8
mov ebx, esi
inc ecx
mov dword [edi + 0xc], eax
test ebx, ebx
jg 0x442ecb
mov dword [edi + 8], ebx
pop ebx
cmp ecx, 4
jge 0x442f07
mov esi, dword [edi + 4]
mov eax, dword [edi]
cmp eax, esi
jb 0x442ef8
xor dl, dl
jmp 0x442efd
mov dl, byte [eax]
inc eax
mov dword [edi], eax
mov byte [ebp + ecx - 4], dl
inc ecx
cmp ecx, 4
jl 0x442eee
movzx esi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl esi, 8
add esi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, esi
xor ecx, 0xffff
cmp eax, ecx
je 0x442f3a
push str.zlib_corrupt
call fcn.0043da42
pop ecx
jmp 0x442f76
mov eax, dword [edi]
add eax, esi
cmp eax, dword [edi + 4]
jbe 0x442f4a
push str.read_past_buffer
jmp 0x442f32
mov eax, dword [edi + 0x10]
lea ecx, [eax + esi]
cmp ecx, dword [edi + 0x18]
jbe 0x442f60
push esi
call fcn.004429ca
pop ecx
test eax, eax
je 0x442f76
push esi
push dword [edi]
push dword [edi + 0x10]
call fcn.00480700
add dword [edi], esi
add dword [edi + 0x10], esi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret
Function at 0x452218
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x452226
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x4522e1
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4a7f68]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4a7f68]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4a7f68]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4a7f68]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4a7f68]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4a7f68]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4a7f68]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4a7f68]
add edx, 8
sub edi, 8
dec esi
jne 0x452244
pop ebx
test edi, edi
je 0x4522fa
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x4a7f68]
inc edx
dec edi
jne 0x4522e5
pop edi
not eax
pop esi
pop ebp
ret

Function at 0x452300
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
movsx edx, byte [ebp + 0xc]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x4a7f68]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x4a7f68]
pop esi
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x4527c7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x4527fb
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4527f6
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x452823
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x45280c
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00480700
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret
Function at 0x453837
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4d04c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x45386b
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x45386b
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx ecx, word [esi]
test cx, cx
je 0x453915
mov eax, esi
mov edx, esi
cmp cx, 0x2f
je 0x453887
cmp cx, 0x5c
jne 0x453889
mov eax, edx
add edx, 2
movzx ecx, word [edx]
test cx, cx
jne 0x45387b
cmp eax, esi
je 0x4538c9
sub eax, esi
push edi
sar eax, 1
lea edi, [eax + eax]
push edi
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00480700
xor eax, eax
mov word [ebp + edi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push ebx
call fcn.00453837
add esp, 0x14
pop edi
xor eax, eax
mov word [ebp - 0x20c], ax
test ebx, ebx
je 0x4538e5
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00480aad
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00480a7c
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x453915
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047a0fb
leave
ret

Function at 0x454eb2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x454f5d
cmp dword [esi + 4], 0xffffffff
jne 0x454f5d
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.00480a61
movzx eax, word [esi + eax*2 + 0x242]
pop ecx
cmp eax, 0x5c
je 0x454f04
cmp eax, 0x2f
je 0x454f04
push 0x4bae2c
push edi
call fcn.00480a7c
pop ecx
pop ecx
cmp dword [ebp + 0x10], 1
pop edi
jne 0x454f26
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x454f26
mov eax, 0x2000000
jmp 0x454f62
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004525ec
add esp, 0x10
test eax, eax
jne 0x454f44
mov eax, dword [ebp + 0x10]
jmp 0x454f62
push eax
call fcn.00454987
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x454f62
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x45757d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x69c], ebx
je 0x4575e5
cmp dword [ebp + 8], 0x100
jne 0x4575d4
cmp word [ebp + 0xc], 0xd
jne 0x4575d4
cmp byte [esi + 0x6a2], bl
je 0x4575bb
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4575d4
cmp byte [esi + 0x6a3], bl
jne 0x4575d4
mov ecx, dword [esi + 0x44]
cmp ecx, ebx
je 0x4575d0
push ebx
push ebx
push ebx
push str.return
push esi
call fcn.0042d8a0
xor eax, eax
jmp 0x4575e8
mov eax, dword [esi + 0x69c]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop esi
pop ebx
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x461984
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4d04c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x210], esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ebx, dword [ebp + 0xc]
push eax
push esi
push ebx
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov esi, eax
cmp ebx, 0x21
jb 0x4619d4
cmp ebx, 0x28
jbe 0x4619ce
cmp ebx, 0x2c
jbe 0x4619d4
cmp ebx, 0x2e
ja 0x4619d4
or esi, 0x100
cmp dword [ebp + 0x10], 0
je 0x4619e0
or esi, 0x1000000
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004805d0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
shl esi, 0x10
push esi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call fcn.00429288
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047a0fb
leave
ret 0xc

Function at 0x469761
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x6c0
jmp fcn.00470d6e

Function at 0x46e228
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x6c0
jmp method.DuiLib::CMenuUI.2.virtual_324

Function at 0x46e806
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4d04c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
and dword [ebx + 0x774], 0
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x1c]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x2c], ecx
mov ecx, dword [ebp + 0x20]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebx + 0x770], eax
mov dword [ebx + 0x778], ecx
test eax, eax
jne 0x46e86e
call fcn.0046e704
mov edx, dword [eax]
push edi
mov ecx, eax
call dword [edx + 0xc]
test esi, esi
je 0x46e86e
call fcn.0046e704
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx + 0x14]
lea esi, [ebx + 0x10]
call fcn.0046e704
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx]
mov ecx, dword [ebx + 0x770]
test ecx, ecx
jne 0x46e88b
mov ecx, edi
jmp 0x46e892
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00429caf
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.00428b4f
push 0
sub esp, 0x10
mov edi, esp
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x88
push Ordinal_1
movsd dword es:[edi], dword [esi]
push 0
push dword [ebp - 0x18]
mov ecx, ebx
movsd dword es:[edi], dword [esi]
call fcn.0043174a
mov edi, dword [ebx + 4]
mov esi, dword [sym.imp.USER32.dll_GetParent]
jmp 0x46e8d5
push edi
call esi
mov edi, eax
push edi
call esi
test eax, eax
jne 0x46e8d0
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047a0fb
leave
ret 0x1c