Function at 0x40a540
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482000
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x49e400]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
cmp byte [0x49f0f8], 0
jne 0x40a5ab
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
push 0x52
movups xmmword [ecx], xmm0
push str.You_need_to_run_the_KeyAuthApp.init____function_before_any_other_KeyAuth_functions
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00414660
call fcn.0040b220
add esp, 0x18
mov dword [ebp - 0x70], 0xb4aeb7f1
xor ecx, ecx
mov dword [ebp - 0x6c], 0xbab4aebe
mov word [ebp - 0x68], 0xe2
mov byte [ebp - 0x66], 1
mov dword [ebp - 0x64], 0xb7b8b6f1
mov dword [ebp - 0x60], 0x100e1be
mov dword [ebp - 0x80], 0xa9bcabf1
mov dword [ebp - 0x7c], 0xb0b2b5a8
mov dword [ebp - 0x78], 0xdc84b6
mov byte [ebp - 0x74], 1
mov dword [ebp - 0x5c], 0xbbb1bbf1
mov dword [ebp - 0x58], 0xb2b8b2b5
mov word [ebp - 0x54], 0xe2
mov byte [ebp - 0x52], 1
mov dword [ebp - 0x90], 0xbfa9a1a3
mov dword [ebp - 0x8c], 0xbfb5bfe6
mov dword [ebp - 0x88], 0x968487ab
mov word [ebp - 0x84], 0x100
nop dword [eax + eax]
lea eax, [ecx - 0x29]
xor byte [ebp + ecx - 0x5c], al
inc ecx
cmp ecx, 9
jb 0x40a630
push ecx
lea eax, [ebp - 0x53]
mov byte [ebp - 0x52], 0
push eax
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00413a50
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x90]
call fcn.0040aba0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
push ecx
push eax
push dword [ebp - 0x94]
lea ecx, [ebp - 0xc8]
call fcn.00415d90
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x9c]
cmp ecx, 0xf
jbe 0x40a6bc
mov edx, dword [ebp - 0xb0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a6b2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a701
push ecx
push edx
call fcn.00480303
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0xf
mov byte [ebp - 0xb0], 0
cmp ecx, 0xf
jbe 0x40a711
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a707
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a707
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00480303
add esp, 8
lea eax, [ebp + 8]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0xc8]
call fcn.00410550
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x140], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x130], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 4
push eax
lea edx, [ebp - 0x140]
lea ecx, [ebp - 0x110]
call fcn.0040a440
add esp, 4
lea ecx, [esi + 0x1b4]
mov byte [ebp - 4], 5
push ecx
mov ecx, eax
call fcn.00410550
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x128], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x118], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 6
push eax
lea edx, [ebp - 0x128]
lea ecx, [ebp - 0xf8]
call fcn.00408590
add esp, 4
push esi
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.00410550
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xb0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xa0], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 8
push eax
lea edx, [ebp - 0xb0]
lea ecx, [ebp - 0xe0]
call fcn.00408810
add esp, 4
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 9
push ecx
mov ecx, eax
call fcn.00410550
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0xcc]
cmp ecx, 0xf
jbe 0x40a87d
mov edx, dword [ebp - 0xe0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a873
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40aa30
push ecx
push edx
call fcn.00480303
add esp, 8
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 0xf
mov byte [ebp - 0xe0], 0
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x9c]
cmp ecx, 0xf
jbe 0x40a8d6
mov edx, dword [ebp - 0xb0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a8cc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40aa30
push ecx
push edx
call fcn.00480303
add esp, 8
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0xe4]
cmp ecx, 0xf
jbe 0x40a914
mov edx, dword [ebp - 0xf8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a90a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40aa30
push ecx
push edx
call fcn.00480303
add esp, 8
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0xf
mov byte [ebp - 0xf8], 0
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x114]
cmp ecx, 0xf
jbe 0x40a96d
mov edx, dword [ebp - 0x128]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a963
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40aa30
push ecx
push edx
call fcn.00480303
add esp, 8
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0xfc]
cmp ecx, 0xf
jbe 0x40a9ab
mov edx, dword [ebp - 0x110]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a9a1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40aa30
push ecx
push edx
call fcn.00480303
add esp, 8
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0xf
mov byte [ebp - 0x110], 0
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x12c]
cmp ecx, 0xf
jbe 0x40aa00
mov edx, dword [ebp - 0x140]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a9f6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40aa30
push ecx
push edx
call fcn.00480303
add esp, 8
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0xb4]
cmp ecx, 0xf
jbe 0x40aa40
mov edx, dword [ebp - 0xc8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40aa36
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40aa36
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00480303
add esp, 8
sub esp, 0x18
mov dword [ebp - 0xb8], 0
lea eax, [esi + 0x60]
mov dword [ebp - 0x94], esp
mov ecx, esp
mov dword [ebp - 0xb4], 0xf
mov byte [ebp - 0xc8], 0
push eax
call fcn.00410710
sub esp, 0x18
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00410710
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x11
call fcn.0040ac40
add esp, 0x30
push 0
push 1
sub esp, 0x28
mov byte [ebp - 4], 0x13
mov eax, esp
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x50]
mov dword [eax + 0x24], 0
call fcn.00413c60
add esp, 0x20
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x50]
mov ecx, esp
push eax
call fcn.0040fe80
mov ecx, esi
call fcn.00404460
lea ecx, [ebp - 0x50]
call fcn.0040fe60
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x40ab00
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40aaf6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ab68
push ecx
push edx
call fcn.00480303
add esp, 8
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp ecx, 0xf
jbe 0x40ab42
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ab38
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ab68
push ecx
push edx
call fcn.00480303
add esp, 8
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x40ab78
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ab6e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40ab6e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00480303
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047ffc0
mov esp, ebp
pop ebp
ret 0x18