joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4896d0
Capabilities:
Log keystrokes

Disassembly:
push esi
mov esi, dword [esp + 8]
sar esi, 0x10
push edi
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
and esi, 0x7f
push 3
push esi
call edi
lea ecx, [eax - 8]
cmp ecx, 0x9b
ja case.0x4896fe.58
xor edx, edx
mov dl, byte [ecx + 0x4899b0]
jmp dword [edx*4 + 0x4898e4]
pop edi
mov eax, 0xd
pop esi
ret
pop edi
mov eax, 0x7f
pop esi
ret
pop edi
mov eax, 0x89
pop esi
ret
pop edi
mov eax, 0x8c
pop esi
ret
pop edi
mov eax, 0x8a
pop esi
ret
pop edi
mov eax, 0x8d
pop esi
ret
pop edi
mov eax, 0x88
pop esi
ret
pop edi
mov eax, 0x81
pop esi
ret
pop edi
mov eax, 0x84
pop esi
ret
pop edi
mov eax, 0x85
pop esi
ret
pop edi
mov eax, 0x86
pop esi
ret
pop edi
mov eax, 0x87
pop esi
ret
pop edi
mov eax, 0x92
pop esi
ret
pop edi
mov eax, 0x91
pop esi
ret
pop edi
mov eax, 0x90
pop esi
ret
pop edi
mov eax, 0x93
pop esi
ret
pop edi
mov eax, 0x8e
pop esi
ret
pop edi
mov eax, 0x8f
pop esi
ret
pop edi
mov eax, 0x94
pop esi
ret
pop edi
mov eax, 0x95
pop esi
ret
pop edi
mov eax, 0x96
pop esi
ret
pop edi
mov eax, 0x97
pop esi
ret
pop edi
mov eax, 0x98
pop esi
ret
pop edi
mov eax, 0x99
pop esi
ret
pop edi
mov eax, 0x9a
pop esi
ret
pop edi
mov eax, 0x9b
pop esi
ret
pop edi
mov eax, 0x9c
pop esi
ret
pop edi
mov eax, 0x9d
pop esi
ret
pop edi
mov eax, 0x9e
pop esi
ret
pop edi
mov eax, 0x9f
pop esi
ret
pop edi
mov eax, 0x83
pop esi
ret
pop edi
mov eax, 0xad
pop esi
ret
pop edi
mov eax, 0xa9
pop esi
ret
pop edi
mov eax, 0xaa
pop esi
ret
pop edi
mov eax, 0xab
pop esi
ret
pop edi
mov eax, 0xa6
pop esi
ret
pop edi
mov eax, 0xa7
pop esi
ret
pop edi
mov eax, 0xa8
pop esi
ret
pop edi
mov eax, 0xa3
pop esi
ret
pop edi
mov eax, 0xa4
pop esi
ret
pop edi
mov eax, 0xa5
pop esi
ret
pop edi
mov eax, 0xb3
pop esi
ret
pop edi
mov eax, 0xb1
pop esi
ret
pop edi
mov eax, 0xb4
pop esi
ret
pop edi
mov eax, 0xb0
pop esi
ret
pop edi
mov eax, 0xae
pop esi
ret
pop edi
mov eax, 0xaf
pop esi
ret
pop edi
mov eax, 0xec
pop esi
ret
pop edi
mov eax, 0xed
pop esi
ret
pop edi
mov eax, 0xee
pop esi
ret
push 2
push eax
call edi
mov edi, eax
mov eax, dword [0x56a94c]
and edi, 0xff
cmp eax, 1
jle 0x4898b9
push 1
push edi
call fcn.0051c658
add esp, 8
jmp 0x4898c4
mov eax, dword [str.________________________________H]
mov al, byte [eax + edi*2]
and eax, 1
test eax, eax
je 0x4898d3
push edi
call fcn.0051bc87
add esp, 4
mov edi, eax
cmp esi, 0x29
jne 0x4898dd
mov edi, 0x60
mov eax, edi
pop edi
pop esi
ret

Function at 0x489c90
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword [0x7fec88]
test eax, eax
jne 0x489cd5
mov eax, dword [0x7fec8c]
test eax, eax
jne 0x489cd5
mov eax, dword [0xcbb66c]
push 0
push eax
push 0x489a50
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
test eax, eax
mov dword [0x7fec7c], eax
je 0x489ccb
mov dword [0x7fec88], 1
ret
mov dword [0x7fec8c], 1
ret
Function at 0x4a0300
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4a0333
push esi
call fcn.004d09c0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4a032c
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 0x4a0369
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4a035b
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x2d
mov edx, dword [esi]
call dword [edx]
add esp, 4
mov eax, dword [esi + 0x90]
mov dword [esi + 0x98], eax
jmp 0x4a0389
cmp eax, 0xcc
je 0x4a0389
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x11
mov edx, dword [esi]
mov eax, dword [esi + 0x10]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
cmp dword [esi + 0x10], 0xcc
je 0x4a03af
mov edx, dword [esi + 0x1a0]
push esi
call dword [edx]
add esp, 4
mov dword [esi + 0x8c], 0
mov dword [esi + 0x10], 0xcc
mov eax, dword [esi + 0x1a0]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4a03da
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x2d
mov edx, dword [esi]
call dword [edx]
mov eax, dword [esi + 0x1a0]
add esp, 4
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4a03bc
mov edx, dword [esi + 0x44]
xor ecx, ecx
test edx, edx
setne cl
add ecx, 0xcd
mov eax, 1
mov dword [esi + 0x10], ecx
pop esi
ret
Function at 0x4a0930
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x13e6b3c]
sub esp, 0x694
test eax, eax
je 0x4a0ac6
mov eax, dword [0x13e4298]
mov ecx, dword [eax + 0x20]
test ecx, ecx
jne 0x4a0ac6
mov eax, dword [0x1313c24]
test eax, eax
je 0x4a0ac6
push ebp
mov ebp, dword [esp + 0x6a4]
push esi
mov esi, dword [esp + 0x6a4]
push edi
mov edi, dword [esp + 0x6a4]
xor eax, eax
sub edi, esi
sub ebp, esi
movzx cx, byte [edi + esi]
xor edx, edx
mov dh, cl
or edx, ecx
movzx cx, byte [esi]
mov word [esp + eax*2 + 0xa0], dx
xor edx, edx
mov dh, cl
or edx, ecx
movzx cx, byte [esi + ebp]
mov word [esp + eax*2 + 0x2a0], dx
xor edx, edx
mov dh, cl
or edx, ecx
mov word [esp + eax*2 + 0x4a0], dx
inc eax
inc esi
cmp eax, 0x100
jl 0x4a097e
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x10], 5
jne 0x4a0a41
cmp dword [esp + 0x1c], 2
jne 0x4a0a41
push str.performing_W2K_gamma_clamp._n
call fcn.0044cf80
add esp, 4
lea esi, [esp + 0x19e]
mov edi, 3
push ebx
xor edx, edx
mov eax, 0x8000
lea ecx, [esi - 0xfe]
xor ebx, ebx
mov bx, word [ecx]
cmp ebx, eax
jle 0x4a0a19
lea ebx, [edx - 0x80]
shl ebx, 8
mov word [ecx], bx
add eax, 0x100
inc edx
add ecx, 2
cmp eax, 0x10000
jl 0x4a0a07
cmp word [esi], 0xfe00
jbe 0x4a0a35
mov word [esi], 0xfe00
add esi, 0x200
dec edi
jne 0x4a09fa
pop ebx
jmp 0x4a0a4e
push str.skipping_W2K_gamma_clamp._n
call fcn.0044cf80
add esp, 4
lea esi, [esp + 0xa2]
mov edi, 3
mov eax, esi
mov edx, 0xff
mov cx, word [eax - 2]
cmp word [eax], cx
jae 0x4a0a6d
mov word [eax], cx
add eax, 2
dec edx
jne 0x4a0a61
add esi, 0x200
dec edi
jne 0x4a0a5a
mov eax, dword [0x13e4090]
pop edi
pop esi
pop ebp
test eax, eax
je 0x4a0aa0
mov edx, dword [0x1313c24]
lea ecx, [esp + 0x94]
push ecx
push edx
call eax
add esp, 0x694
ret
mov ecx, dword [0x1313c24]
lea eax, [esp + 0x94]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetDeviceGammaRamp]
test eax, eax
jne 0x4a0ac6
push str.SetDeviceGammaRamp_failed._n
call fcn.0044cdc0
add esp, 4
add esp, 0x694
ret
Function at 0x4a28c0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 1
push 0
call esi
push 0
push 0
push 1
push 0
mov dword [0x1313c64], eax
call esi
push 0
push 0
push 1
push 0
mov dword [0x1313c5c], eax
call esi
push 0x1313c60
push 0
push 0
mov dword [0x1313c4c], eax
mov eax, dword [esp + 0x14]
push 0x4a28a0
push 0
push 0
mov dword [0x1313c58], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [0x1313c54], eax
test eax, eax
setne cl
mov eax, ecx
pop esi
ret
Function at 0x4b9530
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x98
lea eax, [esp + 0x14]
push ebx
push ebp
push esi
push edi
push eax
push ecx
call fcn.00463f30
mov edx, dword [esp + 0xb4]
mov esi, dword [esp + 0xc0]
mov edi, dword [esp + 0xbc]
add esp, 8
xor ecx, ecx
lea eax, [esp + 0x50]
test cl, 1
je 0x4b9570
mov ebx, dword [edi]
jmp 0x4b9572
mov ebx, dword [esi]
test cl, 2
mov dword [esp + 0x18], ebx
je 0x4b9580
mov ebx, dword [edi + 4]
jmp 0x4b9583
mov ebx, dword [esi + 4]
test cl, 4
mov dword [esp + 0x1c], ebx
je 0x4b9591
fld dword [edi + 8]
jmp 0x4b9594
fld dword [esi + 8]
fld dword [esp + 0x24]
fmul dword [esp + 0x18]
inc ecx
add eax, 0xc
cmp ecx, 8
fstp dword [eax - 0x14]
fld dword [esp + 0x28]
fmul dword [esp + 0x18]
fstp dword [eax - 0x10]
fld dword [esp + 0x2c]
fmul dword [esp + 0x18]
fstp dword [eax - 0xc]
fld dword [esp + 0x1c]
fld dword [esp + 0x30]
fmul st(1)
fadd dword [eax - 0x14]
fstp dword [eax - 0x14]
fld dword [esp + 0x34]
fmul st(1)
fadd dword [eax - 0x10]
fstp dword [eax - 0x10]
fld dword [esp + 0x38]
fmul st(1)
fadd dword [eax - 0xc]
fstp dword [eax - 0xc]
fstp st(0)
fld dword [esp + 0x3c]
fmul st(1)
fadd dword [eax - 0x14]
fstp dword [eax - 0x14]
fld dword [esp + 0x40]
fmul st(1)
fadd dword [eax - 0x10]
fstp dword [eax - 0x10]
fld dword [esp + 0x44]
fmul st(1)
fadd dword [eax - 0xc]
fstp dword [eax - 0xc]
fstp st(0)
fld dword [eax - 0x14]
fadd dword [edx]
fstp dword [eax - 0x14]
fld dword [eax - 0x10]
fadd dword [edx + 4]
fstp dword [eax - 0x10]
fld dword [eax - 0xc]
fadd dword [edx + 8]
fstp dword [eax - 0xc]
jl 0x4b9567
mov esi, dword [esp + 0xc8]
mov edi, dword [esp + 0xc4]
mov ebx, dword [esp + 0xc0]
mov ebp, dword [esp + 0xbc]
push esi
push edi
push ebx
lea edx, [esp + 0x60]
push ebp
lea eax, [esp + 0x58]
push edx
push eax
call fcn.0049a4e0
push esi
push edi
push ebx
lea ecx, [esp + 0x90]
push ebp
lea edx, [esp + 0x7c]
push ecx
push edx
call fcn.0049a4e0
push esi
push edi
push ebx
lea eax, [esp + 0x9c]
push ebp
lea ecx, [esp + 0xac]
push eax
push ecx
call fcn.0049a4e0
add esp, 0x48
lea edx, [esp + 0x48]
lea eax, [esp + 0x60]
push esi
push edi
push ebx
push ebp
push edx
push eax
call fcn.0049a4e0
push esi
push edi
push ebx
lea ecx, [esp + 0xa8]
push ebp
lea edx, [esp + 0xa0]
push ecx
push edx
call fcn.0049a4e0
push esi
push edi
push ebx
lea eax, [esp + 0xd8]
push ebp
lea ecx, [esp + 0xc4]
push eax
push ecx
call fcn.0049a4e0
add esp, 0x48
lea edx, [esp + 0x90]
lea eax, [esp + 0x9c]
push esi
push edi
push ebx
push ebp
push edx
push eax
call fcn.0049a4e0
push esi
push edi
push ebx
lea ecx, [esp + 0x9c]
push ebp
lea edx, [esp + 0xb8]
push ecx
push edx
call fcn.0049a4e0
lea eax, [esp + 0x78]
add esp, 0x30
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 4
jmp 0x4b9720
mov eax, dword [esp + 0x10]
push esi
push edi
push ebx
lea ecx, [eax + 0x30]
push ebp
push ecx
push eax
call fcn.0049a4e0
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
add esp, 0x18
add ecx, 0xc
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x4b971c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
Function at 0x4d64a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x34]
mov eax, esi
imul eax, edi
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
lea ebp, [edx*4 + 0x80]
push ebp
call dword [0x1313ca0]
mov ebx, eax
mov eax, ebp
cdq
and edx, 3
add eax, edx
sar eax, 2
push eax
push 0
push ebx
call fcn.0044ef50
lea ebp, [esi*4]
push ebp
call dword [0x1313ca0]
mov ecx, dword [esp + 0x50]
push ebp
push ecx
push eax
mov dword [ebx + 0x78], eax
call fcn.0044f000
lea ebp, [edi*4]
push ebp
call dword [0x1313ca0]
mov edx, dword [esp + 0x60]
push ebp
add edx, 0x104
mov dword [ebx + 0x7c], eax
push edx
push eax
call fcn.0044f000
lea eax, [ebx + 0x20]
lea ecx, [ebx + 0x14]
push eax
push ecx
mov dword [ebx + 0x70], esi
mov dword [ebx + 0x74], edi
mov dword [ebx], 2
call fcn.0045b130
add esp, 0x38
test esi, esi
jle 0x4d65df
mov eax, dword [esp + 0x38]
lea ebp, [ebx + 0x80]
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], esi
test edi, edi
jle 0x4d65ba
mov edx, dword [esp + 0x38]
lea ecx, [esi + esi*4]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x10], edi
lea eax, [esi + ecx*2]
shl eax, 2
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x3c]
lea eax, [ebx + 0x20]
push eax
lea eax, [ebx + 0x14]
mov ecx, 0xb
mov edi, ebp
push eax
push ebp
rep movsd dword es:[edi], dword [esi]
call fcn.0045b1a0
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x1c]
add esp, 0xc
add ebp, edx
add ecx, 0xb2c
dec eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x10], eax
jne 0x4d6575
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add edx, 0x2c
add ebp, 0x2c
dec eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
jne 0x4d6558
fld dword [ebx + 0x14]
fadd dword [ebx + 0x20]
lea eax, [esp + 0x20]
mov dword [esp + 0x3c], eax
fmul dword [0x5354e0]
fst dword [ebx + 0x2c]
fld dword [ebx + 0x24]
fadd dword [ebx + 0x18]
fmul dword [0x5354e0]
fstp dword [ebx + 0x30]
fld dword [ebx + 0x28]
fadd dword [ebx + 0x1c]
fmul dword [0x5354e0]
fstp dword [ebx + 0x34]
fld dword [ebx + 0x14]
fsub st(1)
fstp dword [esp + 0x20]
fstp st(0)
fld dword [ebx + 0x18]
fsub dword [ebx + 0x30]
fstp dword [esp + 0x24]
fld dword [ebx + 0x1c]
fsub dword [ebx + 0x34]
fstp dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x40]
fld dword [esi]
fld dword [esi + 4]
fxch st(1)
fmul dword [esi]
fxch st(1)
fld dword [esi + 8]
fxch st(1)
fmul dword [esi + 4]
fxch st(1)
fmul dword [esi + 8]
fxch st(2)
faddp st(1)
faddp st(1)
fsqrt
pop esi
mov eax, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x30]
pop edi
fst dword [ebx + 0x38]
fstp dword [ebx + 0x64]
mov dword [ebx + 0x60], eax
pop esi
mov dword [ebx + 0x58], ecx
mov dword [ebx + 0x5c], edx
mov eax, ebx
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x52659d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x56d458
cmp edx, dword [eax]
je 0x5265bf
add eax, 8
inc ecx
cmp eax, 0x56d4e8
jl 0x5265b0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x56d458]
jne 0x5266ed
mov eax, dword [0xcbb2e8]
cmp eax, 1
je 0x5266c7
test eax, eax
jne 0x5265f0
cmp dword [0x56ab24], 1
je 0x5266c7
cmp edx, 0xfc
je 0x5266ed
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x526627
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.005232c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00521320
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x52666a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00521320
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x555b98
push edi
call fcn.0051adf0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.005232c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.005232d0
lea eax, [ebp - 0xa0]
push 0x5382bc
push eax
call fcn.005232d0
push dword [esi + 0x56d45c]
lea eax, [ebp - 0xa0]
push eax
call fcn.005232d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0052b6f5
add esp, 0x2c
pop edi
jmp 0x5266ed
lea eax, [ebp + 8]
lea esi, [esi + 0x56d45c]
push 0
push eax
push dword [esi]
call fcn.00521320
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x402e94
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4049b0
Capabilities:
Hide graphical window

Disassembly:
test eax, eax
je 0x4049c4
push eax
push 0
call sub.user32.dll_ShowWindow
test eax, eax
je 0x4049a8
ret

Function at 0x40aa18
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40aa7c
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.user32.dll_IsDialogMessageA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404550
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_GetWindowTextA
mov edx, eax
pop eax
call fcn.004085e0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40aa83
lea eax, [ebp - 0xc]
call fcn.004042e8
ret

Function at 0x41de58
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41de5e
ret

Function at 0x41f944
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x10]
mov dl, byte [0x41f988]
mov eax, ebx
call fcn.0041fa60
mov eax, dword [ebp + 8]
call fcn.0041e674
push eax
push edi
push esi
mov eax, dword [ebx + 4]
push eax
call sub.user32.dll_GetKeyboardLayout
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x41fb28
Capabilities:
Get keyboard layout

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 0x10]
call fcn.0041f048
push eax
mov eax, dword [ebx + 4]
push eax
call sub.user32.dll_GetDC
mov eax, dword [ebx + 0x10]
movzx eax, byte [eax + 0x18]
movzx eax, word [eax*2 + 0x459774]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.user32.dll_GetKeyboardLayoutList
pop ebx
ret
Function at 0x422524
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
mov eax, esi
call fcn.00422490
lea edx, [ebp - 0x68]
mov ecx, 0x64
mov eax, edi
call fcn.00416218
cmp dword [ebp - 0x40], 0x464d4520
je 0x422555
call fcn.0041fc7c
mov eax, dword [ebp - 0x38]
call fcn.00402788
mov dword [ebp - 4], eax
mov ebx, dword [esi + 0x28]
xor eax, eax
push ebp
push 0x4225e4
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x68]
mov ecx, 0x64
call fcn.00402940
mov ecx, dword [ebp - 0x38]
sub ecx, 0x64
mov edx, dword [ebp - 4]
add edx, 0x64
mov eax, edi
call fcn.00416218
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x38]
push eax
call sub.user32.dll_GetKeyNameTextA
mov edi, eax
mov dword [ebx + 8], edi
test edi, edi
jne 0x4225af
call fcn.0041fc7c
mov word [ebx + 0x18], 0
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x50]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x4c]
mov dword [ebx + 0x10], eax
mov byte [esi + 0x2c], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4225eb
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.004027a8
ret

Function at 0x422c04
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
mov esi, edx
mov ebx, eax
cmp dword [ebx + 0x28], 0
je 0x422d46
lea eax, [ebp - 0x22]
xor ecx, ecx
mov edx, 0x16
call fcn.00402e74
mov ebx, dword [ebx + 0x28]
mov dword [ebp - 0x22], 0x9ac6cdd7
mov ax, word [ebx + 0x18]
test ax, ax
jne 0x422c44
mov word [ebp - 0x14], 0x60
jmp 0x422c48
mov word [ebp - 0x14], ax
push 0x9ec
movzx eax, word [ebp - 0x14]
push eax
mov eax, dword [ebx + 0xc]
push eax
call sub.user32.dll_RemoveMenu
mov word [ebp - 0x18], ax
push 0x9ec
movzx eax, word [ebp - 0x14]
push eax
mov eax, dword [ebx + 0x10]
push eax
call sub.user32.dll_RemoveMenu
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x22]
call fcn.00420acc
mov word [ebp - 0xe], ax
push 0
call fcn.00406dbc
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x422d3f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push 8
push 0
push 0
mov eax, dword [ebx + 8]
push eax
call sub.user32.dll_EnumWindows
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.00402788
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x422d1f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push 8
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebx + 8]
push eax
call sub.user32.dll_EnumWindows
cmp eax, dword [ebp - 8]
jae 0x422cea
call fcn.0041fcdc
lea edx, [ebp - 0x22]
mov ecx, 0x16
mov eax, esi
call fcn.00416250
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov eax, esi
call fcn.00416250
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422d26
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004027a8
ret
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x439a0c
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x439b84
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
call sub.user32.dll_InsertMenuA
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x439b98
call fcn.004090d4
mov edx, dword [ebp - 4]
mov eax, 0x45bb78
call fcn.0040433c
mov eax, dword [0x45bb78]
call fcn.00404798
push eax
call sub.user32.dll_MapVirtualKeyA
mov word [0x45bb74], ax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x45b718]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
call sub.user32.dll_InsertMenuItemA
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x20]
mov ecx, 1
mov eax, 0x439bac
call fcn.004090d4
mov edx, dword [ebp - 0x10]
mov eax, 0x45bb7c
call fcn.0040433c
mov eax, dword [0x45bb7c]
call fcn.00404798
push eax
call sub.user32.dll_MapVirtualKeyA
mov word [0x45bb76], ax
mov eax, dword [0x45bb7c]
call fcn.00404798
push eax
call fcn.00406fe4
mov dword [0x45bb80], eax
mov dl, 1
mov eax, dword [0x411968]
call fcn.004141bc
mov dword [0x45bbb8], eax
call fcn.00439610
mov dl, 1
mov eax, dword [0x42b738]
call fcn.00439438
mov dword [0x45bb68], eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x444dac]
call fcn.0044b958
mov edx, dword [0x45a094]
mov dword [edx], eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x444e84]
call fcn.0044ca3c
mov edx, dword [0x459f58]
mov dword [edx], eax
mov eax, dword [0x459f58]
mov eax, dword [eax]
mov dl, 1
call fcn.0044e560
mov ecx, 0x42ba74
mov edx, 0x42ba84
mov eax, dword [0x429a18]
call fcn.00413760
push 0x439bc0
call sub.user32.dll_IsRectEmpty
mov ebx, eax
test ebx, ebx
je 0x439b66
push 0x439bc8
push ebx
call sub.user32.dll_IsWindow
mov dword [0x459860], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x439b8b
lea eax, [ebp - 0x10]
call fcn.004042e8
lea eax, [ebp - 4]
call fcn.004042e8
ret
Function at 0x98e0b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0098e200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x98e0d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x98e0c2
add dl, dl
jne 0x98e0e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x98e134
xor eax, eax
add dl, dl
jne 0x98e0ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x98e1d5
add dl, dl
jne 0x98e0fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x98e108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x98e113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x98e11e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x98e12a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x98e0cd
mov eax, 1
add dl, dl
jne 0x98e142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x98e14d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x98e139
sub eax, ebx
mov ebx, 1
jne 0x98e180
mov ecx, 1
add dl, dl
jne 0x98e166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x98e171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x98e15d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x98e0cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x98e197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x98e1a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x98e18e
cmp eax, 0x7d00
jae 0x98e1c5
cmp eax, 0x500
jb 0x98e1c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x98e0cd
cmp eax, 0x7f
ja 0x98e1c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x98e0cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x98e1f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x98e0cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10