Function at 0x509a53
Capabilities:
Create thread
Hide graphical window
Log keystrokes via polling
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov dword [ebp - 0x108], str.ArBase_Bitmap_Window
mov dword [ebp - 4], str.ArBase_Test_Bitmap_Window
mov al, byte [ebp + 0x14]
mov byte [0x527a48], al
mov cl, byte [ebp + 0x10]
mov byte [0x527a49], cl
mov edx, dword [ebp + 8]
mov dword [0x527a34], edx
mov eax, dword [ebp + 0xc]
mov dword [0x527a30], eax
mov ecx, dword [ebp + 0x18]
and ecx, 0xff
test ecx, ecx
je 0x509ae7
mov edx, dword [ebp + 0x14]
and edx, 0xff
test edx, edx
jne 0x509ae7
mov byte [0x527a55], 1
push 0x527a4c
push 0
push 0
push 0x509f79
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
mov al, byte [0x527a55]
test eax, eax
je 0x509add
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x509ac8
mov eax, 1
jmp 0x509d39
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x527a4c], eax
xor ecx, ecx
mov cl, byte [0x527a54]
test ecx, ecx
jne 0x509bbd
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0x509d3d
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], 0
xor edx, edx
mov dl, byte [0x527a48]
neg edx
sbb edx, edx
and edx, 0xfffffffe
add edx, 0x7f02
push edx
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
mov eax, dword [ebp + 0x14]
and eax, 0xff
test eax, eax
je 0x509b91
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x140], ecx
jmp 0x509b9d
mov edx, dword [ebp - 0x108]
mov dword [ebp - 0x140], edx
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x114], eax
lea ecx, [ebp - 0x138]
push ecx
call dword [sym.imp.USER32.dll_RegisterClassA]
mov byte [0x527a54], 1
mov edx, dword [ebp + 0x14]
and edx, 0xff
test edx, edx
je 0x509c00
mov dword [ebp - 0x13c], 0
jmp 0x509be5
mov eax, dword [ebp - 0x13c]
add eax, 1
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0x100
jge 0x509c00
mov ecx, dword [ebp - 0x13c]
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
jmp 0x509bd6
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, dword [0x527a34]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x110], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, dword [0x527a30]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x10c], eax
mov edx, dword [ebp + 0x14]
and edx, 0xff
test edx, edx
je 0x509c4a
mov eax, dword [ebp - 4]
mov dword [ebp - 0x144], eax
jmp 0x509c56
mov ecx, dword [ebp - 0x108]
mov dword [ebp - 0x144], ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push 0
push 0
mov edx, dword [0x527a30]
push edx
mov eax, dword [0x527a34]
push eax
mov ecx, dword [ebp - 0x10c]
push ecx
mov edx, dword [ebp - 0x110]
push edx
xor eax, eax
mov al, byte [0x527a48]
neg eax
sbb eax, eax
and eax, 0xf8000000
add eax, 0x8000000
or eax, 0x80000000
push eax
push 0
mov ecx, dword [ebp - 0x144]
push ecx
mov edx, dword [ebp + 0x10]
and edx, 0xff
neg edx
sbb edx, edx
and edx, 0xffffff88
add edx, 0x80
push edx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x527a3c], eax
push 4
mov eax, dword [0x527a3c]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x527a3c]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [ebp + 0x14]
and edx, 0xff
test edx, edx
je 0x509d00
push 0
push 0x64
push 2
mov eax, dword [0x527a3c]
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [0x527a3c]
push ecx
push str._08X
lea edx, [ebp - 0x104]
push edx
call fcn.0050e841
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
push str.LOADINGWINDOW
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov byte [0x527a55], 0
mov eax, dword [0x527a3c]
mov esp, ebp
pop ebp
ret