Function at 0x40a610
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x4a9bf0]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str.qpie7r4fl3nb54fy879w8s6d508273h4gfd87aytsdb]
mov ecx, dword [ebp + 0x14]
test ecx, ecx
mov eax, dword [0x4801a4]
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x4c]
movups xmmword [ebp - 0x4c], xmm0
cmovne eax, ecx
mov dword [ebp - 0xc0], edx
movups xmm0, xmmword [0x48018c]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xd0], eax
mov eax, edx
push esi
mov esi, dword [ebp + 0x10]
and eax, 0x20
movups xmmword [ebp - 0x3c], xmm0
push edi
movq xmm0, qword [0x48019c]
mov edi, dword [ebp + 8]
mov dword [ebp - 0xcc], edi
mov dword [ebp - 0xc8], ebx
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xc4], eax
je 0x40a69f
lea eax, [ebp - 0xb8]
jmp 0x40a6aa
test esi, esi
lea eax, [ebp - 0xbc]
cmovne eax, esi
mov dword [ebp - 0xb8], eax
test ebx, ebx
jg 0x40a6e6
mov ebx, edi
lea ecx, [ebx + 1]
nop dword [eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x40a6c0
sub ebx, ecx
mov dword [ebp - 0xc8], ebx
test ebx, ebx
jne 0x40a6e6
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046300c
mov esp, ebp
pop ebp
ret
test dl, 2
je 0x40a7d8
lea eax, [ebp - 0xb4]
mov dword [ebp - 0x10], 0
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x20], xmm0
call fcn.00436870
push ebx
lea eax, [ebp - 0xb4]
push edi
push eax
call fcn.00436f30
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004367d0
mov ebx, dword [ebp - 0xc0]
add esp, 0x18
test bl, 4
je 0x40a78e
mov esi, dword [ebp - 0xc4]
test esi, esi
jne 0x40a759
mov eax, dword [ebp - 0xb8]
push 0x20
push dword [eax]
call fcn.00466ae4
mov ecx, dword [ebp - 0xb8]
add esp, 8
mov dword [ecx], eax
mov eax, dword [ebp - 0xb8]
and ebx, 1
push ebx
push dword [eax]
lea eax, [ebp - 0x20]
push 0x10
push eax
call fcn.0040a480
add esp, 0x10
lea edi, [eax + 1]
lea ecx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x40a780
sub edi, ecx
jmp 0x40aa84
cmp dword [ebp - 0xc4], 0
jne 0x40a7b1
mov eax, dword [ebp - 0xb8]
push 0x10
push dword [eax]
call fcn.00466ae4
mov ecx, dword [ebp - 0xb8]
add esp, 8
mov dword [ecx], eax
mov eax, dword [ebp - 0xb8]
mov edi, 0x10
movups xmm0, xmmword [ebp - 0x20]
mov eax, dword [eax]
movups xmmword [eax], xmm0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046300c
mov esp, ebp
pop ebp
ret
test dl, 0x10
je 0x40a816
mov eax, dword [0x4abe10]
xor ecx, ecx
mov dword [ebp - 0x54], ecx
test eax, eax
je 0x40a7f6
push 1
lea ecx, [ebp - 0x54]
push ecx
call eax
mov ecx, dword [ebp - 0x54]
mov eax, 0x80808081
mul ecx
shr edx, 7
imul eax, edx, 0xff
mov edx, dword [ebp - 0xc0]
sub ecx, eax
movzx eax, cx
mov dword [ebp - 0x50], eax
jmp 0x40a81d
mov dword [ebp - 0x50], 0
mov esi, edx
mov ecx, 1
and esi, 8
mov eax, 0x19
cmovne eax, ecx
xor ecx, ecx
mov dword [ebp - 0x58], eax
lea edi, [ebx + eax]
mov eax, edi
add eax, 0x3e8
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.0046dc45
mov ecx, dword [ebp - 0x50]
add esp, 4
mov dword [ebp - 0x54], eax
mov byte [eax], cl
test esi, 8
je 0x40a87b
mov esi, dword [ebp - 0xcc]
push ebx
mov ebx, eax
mov eax, dword [ebp - 0x58]
add eax, ebx
push esi
push eax
call fcn.004643e0
add esp, 0xc
jmp 0x40a96f
xor esi, esi
lea edi, [eax + 1]
xor ebx, ebx
mov eax, dword [0x4abe10]
xor ecx, ecx
mov dword [ebp - 0x58], ecx
test eax, eax
je 0x40a89b
push 1
lea ecx, [ebp - 0x58]
push ecx
call eax
mov ecx, dword [ebp - 0x58]
mov eax, 0x80808081
mul ecx
shr edx, 7
add dl, cl
mov byte [edi + esi], dl
inc esi
movzx eax, dl
xor ebx, eax
cmp esi, 0x10
jl 0x40a882
mov eax, dword [ebp - 0x54]
push 2
mov esi, dword [ebp - 0xcc]
push 0x20
push 2
push 0
push 3
push 0x1000000
push 5
lea edi, [eax + 0x19]
mov dword [ebp - 0x58], ebx
mov ebx, dword [ebp - 0xc8]
mov dword [eax + 0x15], ebx
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x5c], 5
push eax
push ebx
push esi
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], ebx
push eax
push edi
mov dword [ebp - 0xc], 0
mov byte [ebp - 8], 0
call fcn.004370c0
test eax, eax
je 0x40a91b
push ebx
push esi
push edi
mov dword [ebp - 0x50], ebx
call fcn.004643e0
add esp, 0xc
jmp 0x40a91e
mov ebx, dword [ebp - 0x50]
lea edi, [ebx + 0x19]
mov ebx, dword [ebp - 0x54]
lea eax, [edi - 0x19]
push eax
lea eax, [ebx + 0x19]
push eax
push 0
lea esi, [ebx + 0x11]
call fcn.0040d5c0
mov ecx, dword [ebp - 0x58]
mov dword [esi], eax
mov eax, 0x66666667
imul ecx
push 0x6801
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push 1
lea eax, [eax + eax*4]
add eax, eax
sub ecx, eax
lea eax, [ebx + 1]
add ecx, 6
push ecx
push eax
lea eax, [edi - 0x11]
push eax
push esi
call fcn.00407530
add esp, 0x24
mov ecx, 1
cmp edi, ecx
jle 0x40a984
mov al, byte [ecx + ebx - 1]
xor byte [ecx + ebx], al
inc ecx
cmp ecx, edi
jl 0x40a978
mov esi, dword [ebp - 0xd0]
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a990
push 0x6801
push 1
sub ecx, edx
push ecx
push esi
push edi
push ebx
call fcn.00407530
add esp, 0x18
test eax, eax
je 0x40aa73
mov eax, dword [ebp - 0xc0]
mov esi, eax
and esi, 0x20
test al, 4
je 0x40aa42
test esi, esi
jne 0x40a9f8
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
mov eax, dword [ebp - 0xb8]
push ecx
push dword [eax]
call fcn.00466ae4
mov ecx, dword [ebp - 0xb8]
add esp, 8
mov dword [ecx], eax
mov eax, dword [ebp - 0xc0]
and eax, 1
push eax
mov eax, dword [ebp - 0xb8]
push dword [eax]
push edi
push ebx
call fcn.0040a480
mov eax, dword [ebp - 0xb8]
add esp, 0x10
mov ecx, dword [eax]
mov edi, ecx
lea edx, [edi + 1]
nop dword [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x40aa20
sub edi, edx
inc edi
test esi, esi
jne 0x40aa75
push edi
push ecx
call fcn.00466ae4
mov ecx, dword [ebp - 0xb8]
add esp, 8
mov dword [ecx], eax
jmp 0x40aa75
test esi, esi
jne 0x40aa5f
mov eax, dword [ebp - 0xb8]
push edi
push dword [eax]
call fcn.00466ae4
mov ecx, dword [ebp - 0xb8]
add esp, 8
mov dword [ecx], eax
mov eax, dword [ebp - 0xb8]
push edi
push ebx
push dword [eax]
call fcn.004643e0
add esp, 0xc
jmp 0x40aa75
xor edi, edi
push ebx
call fcn.00468056
mov esi, dword [ebp - 0xc4]
add esp, 4
test edi, edi
jne 0x40aad1
mov eax, dword [ebp - 0xb8]
test esi, esi
je 0x40aaaa
mov eax, dword [eax]
mov byte [eax], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046300c
mov esp, ebp
pop ebp
ret
cmp dword [eax], 0
je 0x40aad1
push eax
call fcn.00409d90
mov ecx, dword [ebp - 0xb8]
push dword [ecx]
call fcn.00468056
mov ecx, dword [ebp - 0xb8]
add esp, 8
mov dword [ecx], 0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046300c
mov esp, ebp
pop ebp
ret