Function at 0x1005ed80
Capabilities:
Encode data using xor
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
cmp byte [0x1017de94], 0
mov eax, dword [0x100fb7c8]
push ebx
push esi
mov esi, dword [0x100fb7c4]
push edi
mov dword [ebp - 0x14], eax
je 0x1005ee80
mov ecx, dword [0x100fc31c]
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x180]
call eax
call fcn.100465b0
test al, al
je 0x1005edd6
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov byte [ebp - 1], 1
test ax, ax
jne 0x1005edda
mov byte [ebp - 1], 0
mov edx, dword [0x100fb7cc]
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
mov ecx, dword [0x100fb7d0]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
cmp ebx, edx
jle 0x1005ee3c
lea eax, [edx + esi]
cmp ebx, eax
jge 0x1005ee3c
cmp edi, ecx
jle 0x1005ee3c
mov eax, dword [ebp - 0x14]
add eax, ecx
cmp edi, eax
jge 0x1005ee3c
cmp byte [ebp - 1], 0
je 0x1005ee3c
cmp byte [0x1017d9d7], 0
mov byte [0x1017d9d6], 1
jne 0x1005ee45
mov eax, ebx
mov byte [0x1017d9d7], 1
sub eax, edx
mov esi, edi
sub esi, ecx
mov dword [0x1017ec40], eax
mov dword [0x1017ec44], esi
jmp 0x1005ee50
cmp byte [0x1017d9d6], 0
je 0x1005ee6a
mov esi, dword [0x1017ec44]
mov eax, dword [0x1017ec40]
mov edx, ebx
mov ecx, edi
sub edx, eax
sub ecx, esi
mov dword [ebp - 0xc], edx
mov dword [0x100fb7cc], edx
mov dword [ebp - 8], ecx
mov dword [0x100fb7d0], ecx
cmp byte [ebp - 1], 0
jne 0x1005ee90
mov byte [0x1017d9d6], 0
mov byte [0x1017d9d7], 0
jmp 0x1005ee90
mov eax, dword [0x100fb7d0]
mov dword [ebp - 8], eax
mov eax, dword [0x100fb7cc]
mov dword [ebp - 0xc], eax
movzx eax, byte [0x100f92f3]
mov ecx, dword [0x100fc31c]
mov edi, dword [0x100fb7c8]
mov ebx, dword [0x100fb7c4]
push eax
movzx eax, byte [0x100f92f2]
mov esi, dword [ecx]
push eax
mov eax, dword [0x100f92f0]
movzx edx, ah
movzx eax, al
push edx
push eax
mov eax, dword [esi + 0x2c]
call eax
mov esi, dword [ebp - 8]
mov ecx, dword [0x100fc31c]
lea eax, [esi + edi]
mov edi, dword [ebp - 0xc]
mov edx, dword [ecx]
push eax
lea eax, [edi + ebx]
push eax
mov eax, dword [edx + 0x30]
push esi
push edi
call eax
mov dword [ebp - 0x38], 0xa0a7b193
xor ecx, ecx
mov dword [ebp - 0x34], 0xa8b2a4b0
mov dword [ebp - 0x30], 0x100baba
nop word [eax + eax]
mov al, cl
sub al, 0x40
xor byte [ebp + ecx - 0x38], al
inc ecx
cmp ecx, 0xa
jb 0x1005ef00
lea eax, [ebp - 0x38]
mov byte [ebp - 0x2d], 0
push eax
push 0x100df5f4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
mov eax, dword [0x100fb7c8]
cdq
sub eax, edx
mov dword [ebp - 0x10], 8
sar eax, 1
add eax, dword [0x100fb7d0]
push 0x100f92ec
push eax
mov eax, dword [0x100fb7c4]
cdq
sub eax, edx
sar eax, 1
add eax, dword [0x100fb7cc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x1017dbc8
call fcn.100cce90
mov ecx, dword [0x1017dbe8]
add esp, 0x20
test ecx, ecx
je 0x1005f1d6
call fcn.1000e7d0
test al, al
jne 0x1005f1d6
push dword [0x1017dbe8]
call fcn.1005eac0
test al, al
je 0x1005f1d6
mov eax, dword [0x1017dbc8]
mov ecx, dword [0x100fb7bc]
sub ecx, dword [0x100fb7b8]
mov edi, dword [0x100fb7c4]
mov esi, dword [eax + 0xa8]
mov eax, dword [0x100fb7cc]
mov dword [ebp - 0x14], eax
add eax, 5
mov dword [ebp - 8], eax
add eax, 0x19
mov dword [ebp - 0x24], eax
mov eax, dword [0x100fb7c8]
add eax, dword [0x100fb7d0]
mov dword [ebp - 0xc], eax
mov eax, 0x88888889
imul ecx
movzx eax, byte [0x100f92fb]
add edx, ecx
mov dword [ebp - 0x2c], esi
mov ecx, dword [0x100fc31c]
sar edx, 5
push eax
movzx eax, byte [0x100f92fa]
mov ebx, edx
push eax
mov eax, dword [0x100f92f8]
shr ebx, 0x1f
add ebx, edx
movzx edx, ah
imul ebx, esi
mov esi, dword [ecx]
movzx eax, al
push edx
push eax
mov eax, dword [esi + 0x2c]
call eax
mov esi, dword [ebp - 0x14]
mov ecx, dword [0x100fc31c]
add ebx, dword [ebp - 0xc]
push ebx
lea eax, [esi + edi]
mov edi, dword [ebp - 0xc]
mov edx, dword [ecx]
push eax
push edi
push esi
mov eax, dword [edx + 0x30]
call eax
movzx eax, byte [0x100f92ef]
mov ecx, dword [0x100fc31c]
push eax
movzx eax, byte [0x100f92ee]
push eax
mov eax, dword [0x100f92ec]
mov esi, dword [ecx]
movzx edx, ah
movzx eax, al
push edx
push eax
mov eax, dword [esi + 0x2c]
call eax
mov ecx, dword [0x100fc31c]
lea eax, [ebx - 1]
mov edx, dword [ebp - 8]
push eax
add edx, 0x14
mov esi, dword [ecx]
push edx
push edi
push edx
mov eax, dword [esi + 0x3c]
call eax
mov ecx, dword [0x100fb7bc]
mov eax, 0x88888889
mov esi, dword [0x100fb7b8]
sub ecx, esi
imul ecx
mov dword [ebp - 0x10], 0
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1005f1d6
xor ebx, ebx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 8
mov dword [ebp - 0xc], ebx
mov edi, dword [esi + ebx + 0x10]
lea eax, [esi + ebx]
mov dword [ebp - 0x14], eax
cmp edi, 0x14
jbe 0x1005f134
mov dword [ebp - 0x36], 0x4e704e6
xor eax, eax
mov dword [ebp - 0x32], 0x4e4
mov byte [ebp - 0x2e], 1
nop dword [eax + eax]
lea ecx, [eax + 0x4c8]
xor word [ebp + eax*2 - 0x36], cx
inc eax
cmp eax, 3
jb 0x1005f0f0
lea edx, [ebp - 0x36]
mov byte [ebp - 0x2e], 0
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1005f110
sub edx, ecx
lea eax, [ebp - 0x36]
sar edx, 1
push edx
push eax
push edi
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.1005f4a0
mov esi, dword [0x100fb7b8]
mov edi, dword [0x100fb7c8]
lea eax, [esi + 0x18]
add edi, dword [0x100fb7d0]
add eax, ebx
add edi, dword [ebp - 0xc]
cmp dword [eax + 0x14], 8
jb 0x1005f150
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x100f92ec
push edi
push dword [ebp - 8]
lea eax, [ebp - 0x1c]
push eax
push 0x1017dbc8
call fcn.100cd120
mov eax, dword [0x100fb7b8]
add esp, 0x1c
add eax, ebx
cmp dword [eax + 0x14], 8
jb 0x1005f17e
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x100f92ec
push edi
push dword [ebp - 0x24]
lea eax, [ebp - 0x28]
push eax
push 0x1017dbc8
call fcn.100cd120
mov eax, dword [ebp - 0x2c]
add esp, 0x1c
add dword [ebp - 0xc], eax
add ebx, 0x3c
mov ecx, dword [0x100fb7bc]
mov eax, 0x88888889
mov esi, dword [0x100fb7b8]
sub ecx, esi
mov edi, dword [ebp - 0x10]
imul ecx
inc edi
add edx, ecx
mov dword [ebp - 0x10], edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x1005f0c5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret