Function at 0x40cd70
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push edi
push esi
sub esp, 0x14
call fcn.0043e4e0
test al, al
je 0x40cfff
call dword [sym.imp.USER32.dll_GetInputState]
mov esi, eax
call fcn.00436450
test al, al
je 0x40cffa
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 8], 0x6fd282d
mov dword [esp + 0xc], 0x5a501652
mov dword [esp + 0x10], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xb
ja 0x40ce13
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
mov edx, eax
xor edx, 0x90112ee3
mov edi, eax
xor edi, 0x6feed11c
or eax, 0x10112ee3
and eax, edi
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0x91
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xc
jb 0x40cdd0
mov dword [esp + 8], 0xea518737
mov dword [esp + 0xc], 0xfc49aed1
mov word [esp + 0x10], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 9
ja 0x40ce8a
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
mov edx, eax
xor edx, 0xd47c227f
and eax, 0xd47c227f
lea eax, [edx + eax*2]
lea edx, [eax + ecx]
and eax, ecx
mov ecx, edx
not ecx
and ecx, eax
add ecx, eax
not eax
and eax, edx
sub eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0x85
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xa
jb 0x40ce40
test esi, esi
je 0x40cf6a
mov dword [esp], 0xf7f6f999
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 3
ja 0x40cef0
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx]
lea edx, [eax - 0x1b9b21aa]
add eax, ecx
add eax, 0xe464de56
not ecx
or edx, ecx
sub ecx, edx
lea eax, [eax + ecx*2]
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x52
mov ecx, dword [esp + 4]
mov byte [esp + ecx], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 4
jb 0x40ceb0
mov dword [esp + 8], 0x2f91ff61
mov dword [esp + 0xc], 0xd9d4c00a
mov word [esp + 0x10], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 9
ja 0x40cf6a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
mov edx, eax
xor edx, 0x5c498783
and eax, 0xdc498783
lea eax, [edx + eax*2]
lea edx, [eax + ecx]
and eax, ecx
mov ecx, edx
not ecx
and ecx, eax
add ecx, eax
not eax
and eax, edx
sub eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0x71
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xa
jb 0x40cf20
mov dword [esp + 8], 0x22252427
mov dword [esp + 0xc], 0x5e212023
mov byte [esp + 0x10], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 8
ja 0x40cfe7
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
mov edx, eax
not edx
or edx, 0x4fa6afb9
add edx, eax
xor eax, 0x4fa6afb9
lea esi, [eax + edx*2]
lea eax, [eax + edx*2]
add eax, 2
lea edx, [ecx + esi]
add edx, 2
and eax, ecx
mov ecx, edx
xor ecx, eax
add ecx, eax
not eax
and eax, edx
add eax, eax
sub eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0x63
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 9
jb 0x40cf90
call fcn.0040e0d0
test al, al
je 0x40cffa
call fcn.00410d20
call fcn.0040fa90
call fcn.0043f730
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]