joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4414e0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x441513
push esi
call fcn.0044f8b0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44150c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x441599
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x441582
mov eax, dword [esi + 8]
test eax, eax
je 0x441537
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44157e
cmp eax, 2
je 0x441582
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44152a
cmp eax, 3
je 0x44155d
cmp eax, 1
jne 0x44152a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44152a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44152a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004415c0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4415a8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004415c0
add esp, 4
pop esi
ret

Function at 0x441e40
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x441e61
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x441e61
mov eax, dword [eax + 0x44]
test eax, eax
je 0x441e61
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x45f560
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x57e170]
xor edx, edx
cmp eax, edx
jne 0x45f586
xor eax, eax
mov byte [eax + 0x57e070], al
inc eax
cmp eax, 0x100
jl 0x45f56e
mov dword [0x57e170], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x57e070
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x45f617
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x45f5ea
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x45f5b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x45f690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x45f6e3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x45f6ca
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x466070
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4921be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00466990
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x5435fc
call fcn.004840e6
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x466103
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004840e6
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4660fc
push 0
mov ecx, eax
call fcn.0045d190
mov dword [esi + 0xc], eax
jmp 0x466105
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x466105
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x486732
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48676a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00484800
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004847d8
jmp 0x486776
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x487e25
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x487e67
call fcn.0048d79d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x487e67
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x487e5e
xor eax, eax
jmp 0x487e6f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00487e75
pop edi
pop esi
pop ebx
ret 4
Function at 0x48dccd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48dcfb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48dd19
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048dc33
jmp 0x48dd19
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48dd19
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048dc33
test edi, edi
mov eax, edi
jne 0x48dd03
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43100c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43101e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x404930
Capabilities:
Write clipboard data

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x18], edi
jne 0x404953
call fcn.00404c10
test eax, eax
jne 0x404953
push str.Cant_open_clipboard_for_writing.
call fcn.00404a40
pop edi
pop esi
ret 4
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x40498d
cmp dword [esi + 0x18], edi
je 0x40497e
cmp dword [esi + 8], edi
je 0x404973
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], edi
mov dword [esi], edi
push 0x49baac
call fcn.00404a40
pop edi
pop esi
ret 4
mov ecx, dword [esi + 4]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp ecx, edi
je 0x4049d0
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x4049f8
cmp dword [esp + 0x10], 0xd
push ebx
jne 0x4049af
cmp word [eax], di
jmp 0x4049b2
cmp byte [eax], 0
push ecx
sete bl
call ebp
test bl, bl
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], edi
pop ebx
je 0x4049f8
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 4], eax
cmp dword [esi + 0x18], edi
je 0x4049ed
cmp dword [esi + 8], edi
je 0x4049e2
mov edx, dword [esi]
push edx
call ebp
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], edi
mov dword [esi], edi
pop ebp
pop edi
mov eax, 1
pop esi
ret 4
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x404a10
mov dword [esi + 4], edi
jmp 0x4049d0
cmp dword [esi + 0x18], edi
je 0x404a2d
cmp dword [esi + 8], edi
je 0x404a22
mov ecx, dword [esi]
push ecx
call ebp
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esi + 0x18], edi
mov dword [esi], edi
push 0x49babc
call fcn.00404a40
pop ebp
pop edi
pop esi
ret 4

Function at 0x404b10
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x108
test esi, esi
je 0x404b20
mov dword [esi], 0
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x404bef
push 0x104
lea ecx, [esp + 4]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameA]
push 0xb
lea edx, [esp + 4]
push str.Link_Source
push edx
call fcn.004887fd
add esp, 0xc
test eax, eax
je 0x404be6
lea eax, [esp]
push str.ObjectLink
push eax
call fcn.00488441
add esp, 8
test eax, eax
je 0x404be6
lea ecx, [esp]
push str.OwnerLink
push ecx
call fcn.00488441
add esp, 8
test eax, eax
je 0x404be6
lea edx, [esp]
push str.Native
push edx
call fcn.00488441
add esp, 8
test eax, eax
je 0x404be6
lea eax, [esp]
push str.Embed_Source
push eax
call fcn.00488441
add esp, 8
test eax, eax
je 0x404be6
lea ecx, [esp]
push str.MSDEVColumnSelect
push ecx
call fcn.00488441
add esp, 8
test eax, eax
je 0x404bdc
lea edx, [esp]
push str.MSDEVLineSelect
push edx
call fcn.00488441
add esp, 8
test eax, eax
jne 0x404bf3
test esi, esi
je 0x404be6
mov dword [esi], 1
xor eax, eax
add esp, 0x108
ret
mov byte [esp], 0
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
add esp, 0x108
ret
Function at 0x404c10
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp dword [ecx + 0x18], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
jne 0x404c9a
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, dword [sym.imp.USER32.dll_OpenClipboard]
mov edi, eax
mov eax, dword [0x4ae2d8]
push eax
call ebx
test eax, eax
jne 0x404c8f
mov eax, dword [0x4aa8f8]
cmp eax, 0xffffffff
je 0x404c5f
test eax, eax
je 0x404ca6
call esi
mov ecx, dword [0x4aa8f8]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x404ca6
push 1
push 0x8000012f
mov dword [0x4aa8fc], 0
call fcn.00401420
mov edx, dword [0x4ae2d8]
add esp, 8
push edx
mov dword [0x4aa8fc], 1
call ebx
test eax, eax
je 0x404c40
mov eax, dword [esp + 0xc]
mov dword [eax + 0x18], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410b30
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
cmp dword [0x4aeb5c], 0
push ebx
push esi
push edi
mov esi, eax
je 0x410b4b
mov al, byte [0x4ad1ed]
jmp 0x410c95
cmp dword [0x4ae408], 0
je 0x410b5e
mov al, byte [case.0x4c0734.0]
jmp 0x410c95
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [esp + 0x13], 0
call edi
mov ecx, 0x8000
test cx, ax
je 0x410b7f
mov byte [esp + 0xf], 0x10
push 0xa1
call edi
mov edx, 0x8000
test dx, ax
je 0x410b95
or byte [esp + 0xf], 0x20
push 0xa2
call edi
mov ecx, 0x8000
test cx, ax
je 0x410bab
or byte [esp + 0xf], 1
push 0xa3
call edi
mov edx, 0x8000
test dx, ax
je 0x410bc1
or byte [esp + 0xf], 2
push 0xa4
call edi
mov ecx, 0x8000
test cx, ax
je 0x410bd7
or byte [esp + 0xf], 4
push 0xa5
call edi
mov edx, 0x8000
test dx, ax
je 0x410bed
or byte [esp + 0xf], 8
push 0x5b
call edi
mov ecx, 0x8000
test cx, ax
je 0x410c00
or byte [esp + 0xf], 0x40
push 0x5c
call edi
mov edx, 0x8000
test dx, ax
je 0x410c13
or byte [esp + 0xf], 0x80
cmp dword [0x4ae408], 0
je 0x410c91
mov bl, byte [esp + 0xf]
not bl
and bl, byte [case.0x4c0734.0]
cmp byte [0x4ae2fa], 0
je 0x410c4b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ad1c0]
cmp eax, 0x14
jae 0x410c4b
mov al, byte [0x4ae2fa]
not al
and bl, al
test bl, bl
je 0x410c91
mov cl, byte [0x4ae2d7]
mov al, bl
not al
and byte [case.0x4c0734.0], al
and byte [0x4ae2d6], al
and cl, al
mov al, cl
mov byte [0x4ae2d7], cl
mov ecx, 0x4ae300
call fcn.004135e0
mov eax, dword [0x4ad1e0]
test eax, eax
je 0x410c91
test byte [eax + 8], bl
je 0x410c91
mov dword [0x4ad1e0], 0
mov al, byte [esp + 0xf]
mov byte [esp + 0x10], al
mov ecx, dword [esp + 0x10]
push 1
and al, 0xc4
push 0
or al, 4
movzx edx, al
push 0
push ecx
push edx
mov eax, 0xffc3d44f
call fcn.00412dd0
mov al, byte [esi]
add esp, 0x14
cmp al, 0x30
jl 0x410ce7
nop
cmp al, 0x39
jg 0x410ce7
push 0xffc3d44d
push 0
add al, 0x30
push 0
movzx eax, al
push 0
push eax
push 2
call fcn.00410f80
mov al, byte [esi + 1]
inc esi
add esp, 0x18
cmp al, 0x30
jge 0x410cc0
push 0xffc3d44d
push 0
push 0
push 0
push 0x12
push 1
call fcn.00410f80
add esp, 0x18
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x4128b0
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
sub esp, 8
cmp dword [0x4aeb5c], 1
push ebx
jne 0x412981
xor bl, bl
cmp dword [0x4ae408], 0
mov byte [esp + 8], bl
je 0x4128d6
mov bl, 1
mov byte [esp + 8], bl
cmp dword [0x4ae40c], 0
je 0x4128e6
or bl, 2
mov byte [esp + 8], bl
test bl, bl
je 0x412901
mov al, byte [0x4ad1ec]
not al
and al, bl
movzx ecx, al
push 1
push ecx
call fcn.00409210
add esp, 8
mov edx, dword [0x4ad204]
mov eax, dword [0x4ad200]
push 0x1c
push edx
push eax
call dword [sym.imp.USER32.dll_SendInput]
test bl, bl
je 0x4129ff
mov cl, byte [0x4ad1ec]
and cl, bl
test cl, 1
je 0x412968
push 1
call fcn.00413480
mov dl, byte [esp + 0x18]
mov cl, al
xor cl, dl
mov bl, cl
and bl, dl
not bl
and bl, byte [0x4ae2d7]
and cl, al
or bl, cl
add esp, 4
mov byte [0x4ae2d7], bl
mov byte [0x4ae2d6], al
mov byte [case.0x4c0734.0], al
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [0x4ad080], eax
mov edx, dword [esp + 8]
pop ebx
add esp, 8
mov dword [esp + 8], 1
mov dword [esp + 4], edx
jmp fcn.00409210
mov eax, dword [0x4ae2d0]
push 0
push eax
push 0x410d10
push 1
mov dword [0x4ad1f8], 0
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x4ae410], eax
test eax, eax
je 0x4129ff
mov byte [0x4ae2fb], 1
push 1
push 0x8000012f
mov dword [0x4aa8fc], 0
call fcn.00401420
add esp, 8
cmp dword [0x4ae410], 0
mov dword [0x4aa8fc], 1
jne 0x4129b0
mov eax, dword [0x4ad204]
mov ecx, dword [0x4ad200]
cmp dword [eax + ecx*8 - 8], 0
mov byte [0x4ae2fb], 0
jne 0x4129ff
mov ecx, dword [eax + ecx*8 - 4]
mov edx, dword [esp + 0x10]
mov dword [edx], ecx
pop ebx
add esp, 8
ret

Function at 0x412bd0
Capabilities:
Get graphical window text

Disassembly:
push ecx
mov eax, dword [0x4aeaf0]
test eax, eax
je 0x412cbd
mov ecx, dword [0x4aeaf4]
imul ecx, ecx, 0x70
add eax, ecx
mov cl, byte [esp + 8]
mov byte [eax + 5], dl
mov dx, word [esp + 0xc]
mov byte [eax], cl
mov word [eax + 2], dx
push esi
mov byte [eax + 4], 0x69
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [0x4af914]
mov dword [0x4aeaf8], eax
mov dword [esp + 4], ecx
fild dword [esp + 4]
jns 0x412c23
fadd dword [0x4a3f80]
fdiv qword [0x4a3f78]
mov edx, dword [0x4aeaf4]
mov ecx, dword [0x4aeaf0]
mov dword [0x4af914], eax
imul edx, edx, 0x70
fstp dword [esp + 4]
fld dword [esp + 4]
fstp dword [edx + ecx + 8]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x412c82
mov edx, dword [0x4aeaf4]
mov eax, dword [0x4aeaf0]
imul edx, edx, 0x70
cmp esi, dword [0x4aeafc]
je 0x412c7b
push 0x64
lea ecx, [edx + eax + 0xc]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x412c99
mov byte [edx + eax + 0xc], 0
jmp 0x412c99
mov ecx, dword [0x4aeaf4]
mov edx, dword [0x4aeaf0]
imul ecx, ecx, 0x70
mov dword [ecx + edx + 0xc], 0x412f4e
mov eax, dword [0x4aeaf4]
inc eax
mov dword [0x4aeafc], esi
mov dword [0x4aeaf4], eax
pop esi
cmp eax, dword [0x4aa900]
jl 0x412cbd
mov dword [0x4aeaf4], 0
pop ecx
ret
Function at 0x412cc0
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
movzx edi, bl
push edi
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 1
movsx esi, al
neg esi
sbb esi, esi
add esi, 2
cmp ebp, 1
je 0x412cec
cmp ebp, 2
jne 0x412dc2
cmp esi, ebp
je 0x412dc2
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
call edi
mov ecx, 0x8000
test cx, ax
je 0x412d1d
push 0xffc3d44d
push 0
push 0
push 0
push ebx
push 1
call fcn.00410f80
add esp, 0x18
push 0xffc3d44d
push 0
push 0
push 0
push ebx
push 2
call fcn.00410f80
add esp, 0x18
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4af260]
sete al
mov byte [esp + 0x14], al
test al, al
je 0x412d73
push 1
push 0xffffffffffffffff
mov dword [0x4aa8fc], 0
call fcn.00401420
add esp, 8
mov dword [0x4aa8fc], 1
cmp bl, 0x14
jne 0x412dc2
cmp ebp, 2
jne 0x412dc2
push 0x14
call edi
test al, 1
je 0x412dc2
push 0xffc3d44d
push 0
push 0
push 0
push 0x10
push ebp
call fcn.00410f80
add esp, 0x18
cmp byte [esp + 0x14], 0
je 0x412dc2
push 1
push 0xffffffffffffffff
mov dword [0x4aa8fc], 0
call fcn.00401420
add esp, 8
mov dword [0x4aa8fc], 1
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret

Function at 0x413480
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
cmp dword [0x4ae408], 0
je 0x413498
cmp byte [esp + 8], 0
jne 0x413498
mov al, byte [case.0x4c0734.0]
pop ecx
ret
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov byte [esp + 0xb], 0
call esi
mov ecx, 0x8000
test cx, ax
je 0x4134ba
mov byte [esp + 7], 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x4134d0
or byte [esp + 7], 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x4134e6
or byte [esp + 7], 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x4134fc
or byte [esp + 7], 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x413512
or byte [esp + 7], 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x413528
or byte [esp + 7], 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x41353b
or byte [esp + 7], 0x40
push 0x5c
call esi
mov edx, 0x8000
pop esi
test dx, ax
je 0x41354f
or byte [esp + 3], 0x80
cmp dword [0x4ae408], 0
je 0x4135cf
push ebx
mov bl, byte [esp + 7]
not bl
and bl, byte [case.0x4c0734.0]
cmp byte [0x4ae2fa], 0
je 0x413588
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4ad1c0]
cmp eax, 0x14
jae 0x413588
mov al, byte [0x4ae2fa]
not al
and bl, al
test bl, bl
je 0x4135ce
mov cl, byte [0x4ae2d7]
mov al, bl
not al
and byte [case.0x4c0734.0], al
and byte [0x4ae2d6], al
and cl, al
mov al, cl
mov byte [0x4ae2d7], cl
mov ecx, 0x4ae300
call fcn.004135e0
mov eax, dword [0x4ad1e0]
test eax, eax
je 0x4135ce
test byte [eax + 8], bl
je 0x4135ce
mov dword [0x4ad1e0], 0
pop ebx
mov al, byte [esp + 3]
pop ecx
ret
Function at 0x414940
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ecx
dec dword [0x4aa8e8]
jne 0x41494e
call fcn.00414820
mov ecx, dword [0x4ad214]
mov eax, dword [ecx]
add ecx, 4
mov dword [0x4ad214], ecx
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov edx, eax
and edx, 0xff3a58ad
shl edx, 7
xor eax, edx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov edx, eax
shr edx, 0x12
xor edx, eax
mov dword [esp], edx
fild dword [esp]
jns 0x414995
fadd qword [0x4a3f48]
fmul qword [0x4a3f88]
pop ecx
ret

Function at 0x415330
Capabilities:
Write clipboard data

Disassembly:
cmp byte [eax + 0x17], 0
jne 0x415339
mov eax, dword [eax + 0xc]
cmp byte [eax + 0x17], 2
jne 0x41535a
cmp dword [0x4af904], 0
je 0x41535a
mov dword [esp + 4], 1
mov ecx, 0x4af8f8
jmp fcn.00404930
and byte [eax + 0x15], 0x86
cmp byte [esp + 4], 0
mov cl, byte [eax + 0x15]
je 0x41536e
or cl, 1
mov byte [eax + 0x15], cl
mov eax, 1
ret 4