Function at 0x40a0c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xe8
cmp dword [ecx + 0x20], 0
je 0x40a127
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0x1f], 0
test eax, eax
je 0x40a12e
cmp al, 0x64
jb 0x40a13d
lea ecx, [eax + eax*4]
lea ecx, [eax + ecx*8]
movzx ecx, cx
shr ecx, 0xc
imul edx, ecx, 0x64
sub al, dl
movzx eax, al
mov edx, eax
and edx, 0x7d
mov edi, eax
and edi, 2
or eax, 2
imul eax, edi
xor edi, 2
imul edi, edx
movzx eax, word [edi + eax + 0x442528]
mov word [esp + 0x1d], ax
mov edx, 1
mov eax, ecx
jmp 0x40a146
mov bl, 1
jmp 0x40a97a
lea eax, [esp + 0x1e]
mov dword [esp + 0x24], eax
mov byte [esp + 0x1e], 0x30
jmp 0x40a172
mov edx, 3
cmp al, 9
ja 0x40a15d
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
lea ecx, [esp + edx]
add ecx, 0x1b
mov dword [esp + 0x24], ecx
mov byte [esp + edx + 0x1b], al
jmp 0x40a172
movzx eax, word [eax + eax + 0x442528]
lea ecx, [esp + 0x1d]
mov dword [esp + 0x24], ecx
mov word [esp + 0x1d], ax
lea eax, [esi + 0x10]
push eax
call fcn.00406c90
add esp, 4
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0xb8], eax
lea ebx, [esp + 0xc3]
push ebx
call fcn.00436ad0
add esp, 4
mov dword [esp + 0xbc], edi
lea eax, [edi + 0x400]
push eax
call fcn.00408d80
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], 0x575b1624
mov byte [esp + 0x2c], 0xf0
mov dword [esp + 0x2d], 0
mov dword [esp + 0x31], 0
mov byte [esp + 0x35], 0
xor eax, eax
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x28]
lea edx, [eax - 0x5093ebc2]
lea edi, [eax + ecx]
add edi, 0xaf6c143e
and edx, ecx
add edx, edx
sub edi, edx
mov dword [esp + 8], edi
mov ecx, dword [esp + 8]
add cl, 0x4e
mov byte [esp + eax + 0x28], cl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 0xe
jb 0x40a1e0
lea eax, [esp + 0x28]
mov ecx, esi
push ebx
push eax
mov ebx, eax
mov edi, dword [esp + 0x28]
push edi
call fcn.004097b0
mov dword [esp + 0x28], 0x7316041c
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 8], 0xd98b46f2
mov eax, dword [esp + 8]
add al, 0x7e
mov byte [esp + 0x28], al
movzx eax, byte [esp + 0x29]
lea ecx, [eax + eax]
and ecx, 0xffffffde
neg ecx
add eax, ecx
add eax, 0xd98b46ef
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x7e
mov byte [esp + 0x29], al
movzx eax, byte [esp + 0x2a]
lea ecx, [eax + eax]
and ecx, 0xffffffe0
neg ecx
add eax, ecx
add eax, 0xd98b46f0
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x7e
mov byte [esp + 0x2a], al
movzx eax, byte [esp + 0x2b]
lea ecx, [eax + eax]
and ecx, 0xffffffe2
neg ecx
add eax, ecx
add eax, 0xd98b46f1
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x7e
mov byte [esp + 0x2b], al
movzx eax, byte [esp + 0x2c]
lea ecx, [eax + eax]
and ecx, 0xffffffe4
neg ecx
add eax, ecx
add eax, 0xd98b46f2
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x7e
mov byte [esp + 0x2c], al
movzx eax, byte [esp + 0x2d]
lea ecx, [eax + eax]
and ecx, 0xffffffe6
neg ecx
add eax, ecx
add eax, 0xd98b46f3
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x7e
mov byte [esp + 0x2d], al
movzx eax, byte [esp + 0x2e]
lea ecx, [eax + eax]
and ecx, 0xffffffe8
neg ecx
add eax, ecx
add eax, 0xd98b46f4
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x7e
mov byte [esp + 0x2e], al
movzx eax, byte [esp + 0x2f]
lea ecx, [eax + eax]
and ecx, 0xffffffea
neg ecx
add eax, ecx
add eax, 0xd98b46f5
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x7e
mov byte [esp + 0x2f], al
movzx eax, byte [esp + 0x30]
lea ecx, [eax + eax]
and ecx, 0xffffffec
neg ecx
add eax, ecx
add eax, 0xd98b46f6
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x7e
mov byte [esp + 0x30], al
movzx eax, byte [esp + 0x31]
lea ecx, [eax + eax]
and ecx, 0xffffffee
neg ecx
add eax, ecx
add eax, 0xd98b46f7
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x7e
mov byte [esp + 0x31], al
movzx eax, byte [esp + 0x32]
lea ecx, [eax + eax]
and ecx, 0xfffffff0
neg ecx
add eax, ecx
add eax, 0xd98b46f8
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x7e
mov byte [esp + 0x32], al
movzx eax, byte [esp + 0x33]
lea ecx, [eax + eax]
and ecx, 0xfffffff2
neg ecx
add eax, ecx
add eax, 0xd98b46f9
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x7e
mov byte [esp + 0x33], al
mov ecx, esi
push dword [esp + 0x24]
push ebx
push edi
call fcn.004097b0
mov eax, dword [str.MhMcwl__GAS]
mov dword [esp + 0x28], 0x1b86808c
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov ecx, 0x19bb1985
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + ecx - 0x19bb195d]
lea edi, [ecx - 1]
and edi, edx
add edi, edi
sub edx, edi
add edx, ecx
dec edx
mov dword [esp + 8], edx
mov edx, dword [esp + 8]
add dl, 0x64
mov byte [esp + ecx - 0x19bb195d], dl
movzx edx, byte [esp + ecx - 0x19bb195c]
mov edi, ecx
and edi, edx
add edi, edi
sub edx, edi
add edx, ecx
mov dword [esp + 8], edx
mov edx, dword [esp + 8]
add dl, 0x64
mov byte [esp + ecx - 0x19bb195c], dl
add ecx, 2
cmp ecx, 0x19bb1995
jne 0x40a410
mov ecx, esi
push eax
lea edi, [esp + 0x2c]
push edi
push dword [esp + 0x28]
call fcn.004097b0
mov dword [esp + 0x28], 0xafa6aebb
mov dword [esp + 0x2c], 0xa2aba253
mov dword [esp + 0x30], 0xb0b5b2a3
mov byte [esp + 0x34], 0x2a
mov dword [esp + 0x35], 0
mov byte [esp + 0x39], 0
mov eax, 0x95b5a9a9
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x6a4a567f]
mov edx, eax
and edx, ecx
add edx, edx
sub ecx, edx
add ecx, eax
mov dword [esp + 8], ecx
mov ecx, dword [esp + 8]
add cl, 0x61
mov byte [esp + eax + 0x6a4a567f], cl
movzx ecx, byte [esp + eax + 0x6a4a5680]
lea edx, [eax + 1]
and edx, ecx
add edx, edx
sub ecx, edx
add ecx, eax
inc ecx
mov dword [esp + 8], ecx
mov ecx, dword [esp + 8]
add cl, 0x61
mov byte [esp + eax + 0x6a4a5680], cl
add eax, 2
cmp eax, 0x95b5a9bb
jne 0x40a4b0
mov dword [esp + 8], 0x2b504041
mov dword [esp + 0xc], 0
mov word [esp + 0x10], 0
mov dword [esp + 4], 0x5bf90264
mov eax, dword [esp + 4]
add al, 0xfd
mov byte [esp + 8], al
movzx eax, byte [esp + 9]
lea ecx, [eax + eax]
and ecx, 0x4c
neg ecx
add eax, ecx
add eax, 0x5bf90226
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xfd
mov byte [esp + 9], al
movzx eax, byte [esp + 0xa]
lea ecx, [eax + eax]
and ecx, 0x4e
neg ecx
add eax, ecx
add eax, 0x5bf90227
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xfd
mov byte [esp + 0xa], al
movzx eax, byte [esp + 0xb]
lea ecx, [eax + eax]
and ecx, 0x50
neg ecx
add eax, ecx
add eax, 0x5bf90228
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xfd
mov byte [esp + 0xb], al
movzx eax, byte [esp + 0xc]
lea ecx, [eax + eax]
and ecx, 0x52
neg ecx
add eax, ecx
add eax, 0x5bf90229
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xfd
mov byte [esp + 0xc], al
movzx eax, byte [esp + 0xd]
lea ecx, [eax + eax]
and ecx, 0x54
neg ecx
add eax, ecx
add eax, 0x5bf9022a
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xfd
mov byte [esp + 0xd], al
movzx eax, byte [esp + 0xe]
lea ecx, [eax + eax]
and ecx, 0x56
neg ecx
add eax, ecx
add eax, 0x5bf9022b
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xfd
mov byte [esp + 0xe], al
movzx eax, byte [esp + 0xf]
lea ecx, [eax + eax]
and ecx, 0x58
neg ecx
add eax, ecx
add eax, 0x5bf9022c
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xfd
mov byte [esp + 0xf], al
movzx eax, byte [esp + 0x10]
lea ecx, [eax + eax]
and ecx, 0x5a
neg ecx
add eax, ecx
add eax, 0x5bf9022d
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xfd
mov byte [esp + 0x10], al
movzx eax, byte [esp + 0x11]
lea ecx, [eax + eax]
and ecx, 0x5c
neg ecx
add eax, ecx
add eax, 0x5bf9022e
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xfd
mov byte [esp + 0x11], al
lea ebx, [esp + 8]
mov ecx, esi
push edi
push ebx
push dword [esp + 0x28]
call fcn.004097b0
mov dword [esp + 0x28], 0x61e1416
mov byte [esp + 0x2c], 0xa0
mov dword [esp + 0x31], 0
mov dword [esp + 0x2d], 0
mov eax, 0xcb0f70c6
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x34f08f62]
mov edx, eax
and edx, ecx
add edx, edx
sub ecx, edx
add ecx, eax
mov dword [esp + 8], ecx
mov ecx, dword [esp + 8]
add cl, 0x96
mov byte [esp + eax + 0x34f08f62], cl
cmp eax, 0xcb0f70d2
je 0x40a6f6
movzx ecx, byte [esp + eax + 0x34f08f63]
lea edx, [eax + 1]
and edx, ecx
add edx, edx
sub ecx, edx
add ecx, eax
inc ecx
mov dword [esp + 8], ecx
mov ecx, dword [esp + 8]
add cl, 0x96
mov byte [esp + eax + 0x34f08f63], cl
add eax, 2
jmp 0x40a6a0
mov ecx, esi
push dword [esp + 0xbc]
push dword [esp + 0xbc]
push edi
push dword [esp + 0x2c]
call fcn.00409b80
mov eax, dword [esi + 0x60]
mov dword [esp + 0x28], 0x63f565ab
mov dword [esp + 0x2c], 0x6ffc61f0
mov dword [esp + 0x30], 0x6bfe6d85
mov dword [esp + 0x34], 0x17bb69f6
mov dword [esp + 0x38], 0x139315ea
mov dword [esp + 0x3c], 0x1ffb1182
mov dword [esp + 0x40], 0x1b3c1dd8
mov dword [esp + 0x44], 0x7831989
mov dword [esp + 0x48], 0x3980592
mov dword [esp + 0x4c], 0xf900195
mov dword [esp + 0x50], 0xb920de1
mov dword [esp + 0x54], 0x37d90996
mov dword [esp + 0x58], 0x33a535dc
mov dword [esp + 0x5c], 0x3fa331ac
mov dword [esp + 0x60], 0x3bd03ded
mov dword [esp + 0x64], 0x27a439d5
mov dword [esp + 0x68], 0x23e125c9
mov dword [esp + 0x6c], 0x2fce2102
mov dword [esp + 0x70], 0x2bb72dbf
mov dword [esp + 0x74], 0xd7c429b8
mov dword [esp + 0x78], 0xd34ad539
mov dword [esp + 0x7c], 0xdf13d155
mov dword [esp + 0x80], 0xdb37dd30
mov dword [esp + 0x84], 0xc703d902
mov dword [esp + 0x88], 0xc32fc52a
mov dword [esp + 0x8c], 0xcf57c119
mov dword [esp + 0x90], 0xcb20cd5e
mov dword [esp + 0x94], 0xf725c95b
mov dword [esp + 0x98], 0xf31ff561
mov dword [esp + 0x9c], 0xff6ef16c
mov dword [esp + 0xa0], 0xfb23fd15
mov dword [esp + 0xa4], 0xe7cef9c9
mov word [esp + 0xa8], 0xe5e6
mov dword [esp + 0xad], 0
mov dword [esp + 0xaa], 0
mov ecx, 0x9ba4beb1
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + ecx + 0x645b4177]
mov edi, ecx
and edi, edx
add edi, edi
sub edx, edi
add edx, ecx
mov dword [esp + 8], edx
mov edx, dword [esp + 8]
add dl, 0x29
mov byte [esp + ecx + 0x645b4177], dl
cmp ecx, 0x9ba4bf39
je 0x40a8b7
movzx edx, byte [esp + ecx + 0x645b4178]
lea edi, [ecx + 1]
and edi, edx
add edi, edi
sub edx, edi
add edx, ecx
inc edx
mov dword [esp + 8], edx
mov edx, dword [esp + 8]
add dl, 0x29
mov byte [esp + ecx + 0x645b4178], dl
add ecx, 2
jmp 0x40a860
mov dword [esp + 8], 0xbe305d7
mov dword [esp + 0xc], 0xfe7099a
mov word [esp + 0x10], 0xd0e
mov dword [esp + 0x12], 0
mov word [esp + 0x16], 0
mov ecx, 0xb4b313d5
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + ecx + 0x4b4cec33]
mov edi, ecx
and edi, edx
add edi, edi
sub edx, edi
add edx, ecx
mov dword [esp + 4], edx
mov edx, dword [esp + 4]
add dl, 0x2d
mov byte [esp + ecx + 0x4b4cec33], dl
movzx edx, byte [esp + ecx + 0x4b4cec34]
lea edi, [ecx + 1]
and edi, edx
add edi, edi
sub edx, edi
add edx, ecx
inc edx
mov dword [esp + 4], edx
mov edx, dword [esp + 4]
add dl, 0x2d
mov byte [esp + ecx + 0x4b4cec34], dl
add ecx, 2
cmp ecx, 0xb4b313e5
jne 0x40a8f0
push 0x493e0
push eax
mov edi, dword [esp + 0x28]
push edi
push 0
push 0
lea eax, [esp + 0x3c]
push eax
push ebx
call fcn.0040ca90
add esp, 0x1c
mov ebx, eax
push edi
call fcn.00408d90
add esp, 4
mov eax, dword [esi + 0x60]
add dword [esi + 4], eax
mov dword [esi + 0x60], 0
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret