joyce8/EMBER2024-capa huggingface dataset:
Function at 0x492b35
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [eax + 0x190]
test al, al
jns 0x492b57
or eax, 0xffffffff
jmp 0x492b5c
mov eax, dword [0x5799ac]
mov edx, dword [esi]
lea ecx, [ebp - 4]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x290]
push dword [ebp - 4]
mov dword [ebp - 8], eax
push 0x57a758
call fcn.00417f38
mov edi, eax
pop ecx
pop ecx
cmp edi, esi
je 0x492bf9
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jl 0x492bf9
cmp edi, ebx
je 0x492bae
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x200]
push eax
push 0x57ae8c
call fcn.00417f38
pop ecx
pop ecx
mov ebx, eax
cmp dword [ebp - 8], 2
jne 0x492c02
test ebx, ebx
je 0x492be5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x198]
test al, 0x40
je 0x492bf9
cmp dword [ebp - 4], 0
je 0x492be5
mov eax, dword [ebx]
push esi
mov ecx, ebx
call dword [eax + 0x224]
mov ecx, dword [ebp + 8]
neg eax
sbb eax, eax
inc eax
mov dword [ecx], eax
mov eax, esi
jmp 0x492bfb
mov eax, dword [esi]
push 5
push 0
push edi
mov ecx, esi
call dword [eax + 0x1d0]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 8], 3
jne 0x492bf9
test edi, edi
je 0x492bf9
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax + 0x15c]
test eax, eax
je 0x492bf9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x164]
test eax, eax
je 0x492bf9
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x218]
mov eax, dword [esi]
push 0
push 1
push 5
push edi
mov ecx, esi
call dword [eax + 0x328]
mov edx, dword [ebp + 8]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
jmp 0x492bfb
Function at 0x4964fc
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
test byte [0x58323c], 1
push ebx
push esi
push edi
mov ebx, ecx
jne 0x49652b
or dword [0x58323c], 1
mov ecx, 0x583238
call fcn.00404360
push 0x53216b
call fcn.00509203
pop ecx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x496537
call fcn.00415856
mov eax, dword [ebx + 0x318]
test eax, eax
je 0x4965b0
cmp dword [eax + 0x20], 0
je 0x4965b0
test eax, eax
je 0x49654e
mov eax, dword [eax + 0x20]
cmp dword [edi], eax
jne 0x4965b0
mov eax, dword [edi + 4]
dec eax
je 0x49658f
dec eax
je 0x496565
dec eax
jne 0x4965b0
mov esi, 0x428e
jmp 0x496594
push 0x11
mov esi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x496594
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x31c]
test eax, eax
je 0x496594
add esi, 3
jmp 0x496594
mov esi, 0x3ea0
push esi
mov ecx, 0x583238
call fcn.00403e50
test eax, eax
je 0x496532
mov eax, dword [0x583238]
mov dword [edi + 0xc], eax
xor eax, eax
inc eax
jmp 0x4965b2
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x496f40
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
mov esi, dword [sym.imp.USER32.dll_GetCursorPos]
xor ecx, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_ScreenToClient]
mov dword [ebx + 0x9c], ecx
cmp dword [ebx + 0x90], ecx
je 0x496fc0
cmp dword [ebp + 0xc], ecx
jne 0x496fc0
cmp dword [ebx + 0x94], ecx
jne 0x496fc0
mov eax, dword [ebx + 0x20]
cmp eax, ecx
je 0x496fb6
cmp eax, 0xffffffff
je 0x496fb6
lea eax, [ebp - 8]
push eax
call esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x20]
call edi
push dword [ebp - 4]
lea ecx, [ebx + 0xc8]
push dword [ebp - 8]
call fcn.0040a582
mov dword [ebx + 0x9c], eax
test eax, eax
jne 0x496fc0
xor eax, eax
jmp 0x497100
mov dword [ebx + 0x9c], 1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xec]
test eax, eax
je 0x496ffb
cmp dword [ebp + 0xc], 0
jne 0x496ffb
lea eax, [ebp - 8]
push eax
call esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x20]
call edi
push dword [ebp - 4]
lea ecx, [ebx + 0xd8]
push dword [ebp - 8]
call fcn.0040a582
test eax, eax
jne 0x496faf
xor ecx, ecx
cmp dword [ebx + 0x9c], ecx
jne 0x497021
mov eax, dword [ebx + 0x20]
cmp eax, ecx
jbe 0x497021
cmp eax, 0xffffffff
je 0x497021
cmp dword [ebx + 0x90], ecx
jne 0x497021
cmp dword [ebx + 0xa8], ecx
je 0x496faf
push dword [ebx + 0x6c]
push 0x57a5ec
call fcn.00417f38
lea esi, [ebx + 0x8c]
mov dword [ebp - 4], eax
mov eax, dword [esi]
xor edi, edi
pop ecx
pop ecx
cmp eax, edi
je 0x49705a
mov dword [eax + 0xf8], edi
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x60]
mov ecx, dword [ebp - 4]
mov dword [esi], edi
cmp ecx, edi
je 0x4970c0
push edi
jmp 0x4970bb
push dword [ebx + 0x6c]
push 0x57a22c
call fcn.00417f38
pop ecx
pop ecx
cmp dword [ebp + 0xc], edi
je 0x497086
cmp eax, edi
je 0x497086
cmp dword [0x581ad4], edi
jne 0x497086
push 1
push ebx
mov ecx, eax
call fcn.0047f885
jmp 0x4970b3
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x49709e
push edi
call fcn.0043b7d8
cmp eax, edi
je 0x49709e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x58]
push dword [ebp + 8]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test eax, eax
je 0x496faf
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x4970c0
push ebx
call fcn.0043e30e
cmp dword [ebx + 0x6c], edi
je 0x4970fd
lea esi, [ebx + 0x54]
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0042ed7e
mov eax, dword [eax + 0x94]
push eax
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
push 0x401
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 0x6c]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_RedrawWindow]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4a9436
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x52b292
call fcn.0050a150
xor edi, edi
cmp dword [0x57a144], edi
je 0x4a94ff
cmp dword [0x57ad38], 0xfffffffe
jne 0x4a94ec
cmp dword [ebp + 8], 0xffffffff
je 0x4a94ff
test byte [0x583608], 1
mov esi, 0x5835e8
jne 0x4a9495
or dword [0x583608], 1
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.0041ea83
push 0x5321eb
call fcn.00509203
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, esi
call fcn.0041eada
cmp dword [0x5835e4], edi
je 0x4a94a9
call fcn.00415856
push edi
push edi
push 0x4a93de
call fcn.0050ff9b
add esp, 0xc
mov dword [0x5835e4], eax
cmp eax, edi
jbe 0x4a94d9
cmp eax, 0xffffffff
je 0x4a94d9
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp + 8]
mov dword [0x57ad38], eax
jmp 0x4a94df
mov dword [0x5835e4], edi
push 0x5835f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4a94ff
mov eax, dword [ebp + 8]
mov dword [0x57ad38], eax
cmp eax, 0xffffffff
jne 0x4a94ff
mov dword [0x5835e4], edi
call fcn.0050a228
ret
Function at 0x4e25cf
Capabilities:
Get common file path

Disassembly:
push 0x120
mov eax, 0x52d75f
call fcn.0050a1b9
mov esi, ecx
mov dword [ebp - 0x128], esi
call fcn.004e7f39
push 0x15c
call fcn.00408f02
pop ecx
mov ecx, eax
mov dword [ebp - 0x124], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x4e2613
mov eax, dword [esi + 4]
push ebx
push eax
call fcn.004e987c
jmp 0x4e2615
xor eax, eax
or dword [ebp - 4], 0xffffffff
push eax
mov ecx, esi
call fcn.004e7f0b
call fcn.00411954
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x88]
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov byte [ebp + esi - 0x114], 0x5c
inc esi
mov dword [ebp - 0x124], esi
mov byte [ebp + esi - 0x114], bl
mov dword [ebp - 0x120], ebx
cmp edi, ebx
je 0x4e27af
cmp dword [edi + 4], ebx
jle 0x4e27af
lea ecx, [ebp - 0x118]
call fcn.00404360
mov edx, dword [edi]
xor eax, eax
inc eax
push eax
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x114]
push eax
push ebx
lea eax, [ebp - 0x118]
push eax
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x4e2793
lea ecx, [ebp - 0x11c]
call fcn.00404360
mov eax, dword [ebp - 0x120]
mov byte [ebp - 4], 2
cmp eax, 9
jne 0x4e26e4
push dword [ebp - 0x118]
lea eax, [ebp - 0x11c]
push 0x54d200
push eax
call fcn.00403b30
add esp, 0xc
jmp 0x4e2716
jge 0x4e2704
push dword [ebp - 0x118]
inc eax
push eax
lea eax, [ebp - 0x11c]
push str._d__s
push eax
call fcn.00403b30
add esp, 0x10
jmp 0x4e2716
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00403740
push 0x15c
call fcn.00408f02
pop ecx
mov dword [ebp - 0x12c], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4e273a
mov ecx, eax
call fcn.004bb4aa
mov esi, eax
jmp 0x4e273c
xor esi, esi
push dword [ebp - 0x11c]
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 2
call dword [eax + 0x10]
mov eax, dword [esi]
lea ecx, [ebx + 0xe110]
push ecx
mov ecx, esi
call dword [eax + 0xc]
push ebx
mov ecx, edi
call fcn.0041e4b0
mov eax, dword [eax]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x24]
mov ecx, dword [ebp - 0x128]
push esi
call fcn.004e7f0b
mov ecx, dword [ebp - 0x11c]
inc dword [ebp - 0x120]
add ecx, 0xfffffff0
call fcn.00404320
mov esi, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x118]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00404320
inc ebx
cmp ebx, dword [edi + 4]
jl 0x4e267d
call fcn.0050a23c
ret
Function at 0x4e709c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4e70b4
mov edi, dword [esi + 0xc]
jmp 0x4e70f4
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4e70cd
call fcn.00411d77
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4e70e2
call fcn.00411d77
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4e70f4
call fcn.00411d77
call fcn.00411954
cmp dword [eax + 0x3c], 0
je 0x4e7109
push edi
mov ecx, ebx
call fcn.004e5f89
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004e6fc2
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x4e7127
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e7133
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4ee64b
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x20a
push esi
mov esi, ecx
jne 0x4ee695
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4ee695
call fcn.004edf33
test eax, eax
je 0x4ee695
push dword [ebx + 0xc]
mov eax, dword [esi + 0x54]
push dword [ebx + 8]
mov ecx, dword [eax + 0xb4]
push dword [ebx + 4]
call fcn.00403720
xor eax, eax
inc eax
jmp 0x4ee8ad
cmp dword [ebx + 4], 0x100
push edi
jne 0x4ee8a4
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call edi
test ax, ax
jl 0x4ee792
push 0x11
call edi
test ax, ax
jl 0x4ee792
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4ee792
mov eax, dword [ebx + 8]
cmp eax, 0xd
je 0x4ee705
cmp eax, 0x20
jbe 0x4ee792
cmp eax, 0x24
jbe 0x4ee6f8
cmp eax, 0x26
je 0x4ee6f8
cmp eax, 0x28
jne 0x4ee792
call fcn.004edf33
test eax, eax
je 0x4ee792
mov ecx, esi
call fcn.0041063d
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
call fcn.004edf33
test eax, eax
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
je 0x4ee73a
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.00403720
jmp 0x4ee89f
call fcn.0040dbbb
test eax, eax
je 0x4ee89f
mov eax, dword [esi + 0x54]
add eax, 0xb8
push eax
mov ecx, esi
call fcn.0040dc45
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x4ee768
xor edi, edi
jmp 0x4ee76b
mov edi, dword [eax + 0x20]
mov esi, dword [esi + 0x54]
mov ecx, dword [esi + 0xb4]
movzx esi, word [esi + 0x20]
call fcn.0040dbbb
push edi
push esi
push 0x111
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4ee89f
mov eax, dword [ebx + 8]
sub eax, 9
je 0x4ee86e
sub eax, 0x12
je 0x4ee846
sub eax, 0xb
je 0x4ee7b4
dec eax
dec eax
jne 0x4ee8a4
push 0x12
call edi
test ax, ax
jl 0x4ee8a4
push 0x11
call edi
test ax, ax
jl 0x4ee8a4
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4ee8a4
call fcn.004edf33
test eax, eax
jne 0x4ee89f
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
push 1
call fcn.004edead
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
push dword [eax + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.0040c7f8
test eax, eax
je 0x4ee89f
mov esi, dword [esi + 0x54]
lea ebx, [esi + 0x90]
mov esi, dword [esi + 0xb4]
push dword [esi + 0x20]
call edi
push eax
call fcn.0040c7f8
push 1
push ebx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4ee89f
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4ee85a
push 0
call fcn.004edead
mov ecx, esi
call fcn.0040d33e
test eax, eax
je 0x4ee8a4
mov ecx, esi
call fcn.0040d33e
jmp 0x4ee898
push dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.0040c7f8
test eax, eax
je 0x4ee8a4
push dword [esi + 0x20]
call edi
push eax
call fcn.0040c7f8
push 0
push esi
mov ecx, eax
call fcn.004090e8
mov ecx, eax
call fcn.0041063d
xor eax, eax
inc eax
jmp 0x4ee8ac
push ebx
mov ecx, esi
call fcn.0040a5e5
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4fb5d5
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 4
mov eax, 0x5295c1
call fcn.0050a150
mov edi, ecx
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0x100
jne 0x4fb6ab
mov ebx, dword [esi + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
and eax, 0x8000
je 0x4fb6ab
cmp ebx, 0x43
je 0x4fb617
cmp ebx, 0x2d
jne 0x4fb6ab
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4fb6ab
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.00404360
movzx ecx, byte [edi + 0xae]
and dword [ebp - 4], 0
push ecx
lea eax, [edi + 0xac]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.00403b30
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
add esp, 0x14
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00404320
mov esi, dword [ebp + 8]
push esi
mov ecx, edi
call fcn.0047e520
call fcn.0050a228
ret 4

Function at 0x5037d5
Capabilities:
Log keystrokes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
call dword [eax + 0x150]
mov edi, eax
movzx eax, word [ebp + 8]
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
cmp byte [ebp + 0xc], 0
jne 0x503815
test edi, edi
jl 0x503815
cmp al, 0x20
je 0x50380a
cmp word [ebp + 8], 0x71
jne 0x503815
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x168]
pop edi
pop esi
pop ebp
ret 8

Function at 0x508877
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x57c6c0]
jne 0x508881
repz ret
jmp fcn.005106a4
Function at 0x51df79
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00510c36
and dword [ebp - 4], 0
cmp dword [0x5852b4], 0
mov ebx, eax
jne 0x51e02a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x51e0db
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x558d70
push edi
call esi
test eax, eax
je 0x51e0db
push eax
call fcn.00510bc4
mov dword [esp], 0x558d60
push edi
mov dword [0x5852b4], eax
call esi
push eax
call fcn.00510bc4
mov dword [esp], 0x558d4c
push edi
mov dword [0x5852b8], eax
call esi
push eax
call fcn.00510bc4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5852bc], eax
call esi
push eax
call fcn.00510bc4
pop ecx
mov dword [0x5852c4], eax
test eax, eax
je 0x51e02a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00510bc4
pop ecx
mov dword [0x5852c0], eax
mov eax, dword [0x5852c0]
cmp eax, ebx
je 0x51e082
cmp dword [0x5852c4], ebx
je 0x51e082
push eax
call fcn.00510c3f
push dword [0x5852c4]
mov esi, eax
call fcn.00510c3f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x51e082
test edi, edi
je 0x51e082
call esi
test eax, eax
je 0x51e079
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x51e079
test byte [ebp - 0xc], 1
jne 0x51e082
or dword [ebp + 0x10], 0x200000
jmp 0x51e0bb
mov eax, dword [0x5852b8]
cmp eax, ebx
je 0x51e0bb
push eax
call fcn.00510c3f
pop ecx
test eax, eax
je 0x51e0bb
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x51e0bb
mov eax, dword [0x5852bc]
cmp eax, ebx
je 0x51e0bb
push eax
call fcn.00510c3f
pop ecx
test eax, eax
je 0x51e0bb
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5852b4]
call fcn.00510c3f
pop ecx
test eax, eax
je 0x51e0db
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x51e0dd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404a7c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00406610
test esi, esi
jne 0x404ab2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040677c
jmp 0x404ad0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404960
mov edi, eax
test esi, esi
je 0x404ad0
cmp dword [ebx], 0
je 0x404ad0
dec esi
jmp 0x404ab9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x404b04
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x405578
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405828
mov byte [esp], al
cmp byte [esp], 0
jne 0x405704
test edi, edi
je 0x405704
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40563b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405616
cmp edi, 0xffffffff
je 0x4055d7
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4055d7
mov byte [esp], 0
jmp 0x405704
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405616
test ebx, ebx
jne 0x40560c
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004026dc
test eax, eax
jne 0x40560c
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405704
call 0x40586c
dec ebp
test ebp, ebp
jg 0x4055bc
cmp edi, 0xffffffff
je 0x40563b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405639
mov byte [esp], 0
jmp 0x405704
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405586
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004026dc
cmp ebx, eax
jne 0x40563b
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405774
mov edx, eax
mov ebx, dword [0x5e18f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4056a2
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4056a0
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4056a2
xor edi, edi
cmp byte [esp], 0
je 0x4056cb
mov ebx, dword [esi]
test bl, 1
jne 0x4056e4
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004026dc
cmp ebx, eax
jne 0x4056a8
mov byte [esp + 1], 1
jmp 0x4056e4
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004026dc
cmp ebx, eax
jne 0x4056cb
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405655
cmp byte [esp], 0
je 0x405704
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40626c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5e1054], 0
je 0x4062d3
cmp word [0x5e1340], 0xd7b2
jne 0x406295
cmp dword [0x5e1348], 0
jbe 0x406295
mov eax, 0x5e133c
call dword [0x5e1358]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x406300
call fcn.00406f64
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5db032], 0
jne 0x4062ef
push 0
push 0x5db9c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4064cc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x5db034], 0
je 0x4064f7
mov edx, edi
mov eax, esi
call dword [0x5db034]
mov ebx, eax
jmp 0x406508
mov eax, 8
call fcn.0040464c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5e1055], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406494
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x40653d
mov edx, 8
mov eax, ebx
call fcn.00404668
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x408a44
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408ba9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406610
cmp si, word [0x5dba00]
jb 0x408adc
cmp si, word [0x5dbc00]
ja 0x408adc
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408adc
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5dba00]
jae 0x408ab6
mov edi, ebx
dec edi
jmp 0x408ad7
cmp si, word [ebx*8 + 0x5dba00]
jbe 0x408ac6
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408ad7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5dba04]
call fcn.00408954
jmp 0x408adc
cmp edi, dword [ebp - 8]
jae 0x408aa0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408b8b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408b8b
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004072c0
push dword [ebp - 0x160]
push 0x408bc4
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004072c0
push dword [ebp - 0x164]
push 0x408bd4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004072c0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040748c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408bb0
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406670
ret