Function at 0x4080a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x158
push esi
mov esi, ecx
mov eax, SysReAllocString
mov ecx, dword [ebp + 8]
push edi
mov edi, edx
mov dword [esp + 0x1c], edi
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp eax, 1
jb 0x4085c7
cmp dword [ecx + 0x14], 0x10
jb 0x4080d4
mov ecx, dword [ecx]
push edx
push ecx
push 1
push 0x445d84
push ecx
push dword [esp + 0x28]
lea ecx, [esp + 0x60]
call fcn.00414f70
push 0x445d84
lea ecx, [esp + 0x4c]
call fcn.00403430
push ecx
mov ecx, edi
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x24], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [esp + 0x24]
push eax
movq qword [esp + 0x38], xmm0
call fcn.00412840
mov edx, dword [esp + 0x34]
mov dword [esp + 0x10], eax
cmp edx, 0x10
jb 0x408164
mov ecx, dword [esp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40815a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4085cc
push edx
push ecx
call fcn.0041c138
add esp, 8
mov edx, dword [esp + 0x5c]
cmp edx, 0x10
jb 0x40819a
mov ecx, dword [esp + 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408190
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4085cc
push edx
push ecx
call fcn.0041c138
add esp, 8
mov edx, dword [esp + 0x10]
cmp edx, 0xffffffff
je 0x40859d
cmp dword [edi + 0x14], 0x10
mov ecx, edi
mov dword [esp + 8], edi
jb 0x4081b9
mov ecx, dword [edi]
mov dword [esp + 8], ecx
mov eax, dword [edi + 0x10]
cmp edx, eax
jae 0x40859d
sub eax, edx
push eax
lea eax, [ecx + edx]
push 0x3a
push eax
call fcn.0041ec50
add esp, 0xc
test eax, eax
je 0x40859d
sub eax, dword [esp + 8]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x40859d
mov eax, dword [0x4467b4]
xor edx, edx
mov dword [esp + 0x14], eax
mov al, byte [0x4467b8]
mov byte [esp + 0x18], al
mov dword [esp + 0xc], edx
nop word [eax + eax]
mov eax, 0x3521cfb3
mul edx
mov eax, dword [esp + 0xc]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [esp + 0xc]
shr eax, 5
mov cl, dl
movsx eax, al
imul eax, eax, 0x35
sub cl, al
add cl, 0x35
xor byte [esp + edx + 0x14], cl
inc edx
mov dword [esp + 0xc], edx
cmp edx, 5
jl 0x408210
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], 0
lea edx, [ecx + 1]
mov dword [esp + 0x34], 0xf
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408262
sub ecx, edx
lea eax, [esp + 0x14]
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.00403ce0
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
inc ecx
mov dword [esp + 8], edi
cmp dword [esp + 0x34], 0x10
mov dword [esp + 0xc], ecx
cmovae eax, dword [esp + 0x20]
cmp dword [edi + 0x14], 0x10
mov dword [esp + 0x10], eax
jb 0x4082a5
mov eax, dword [edi]
mov dword [esp + 8], eax
mov edi, dword [edi + 0x10]
cmp ecx, edi
jae 0x408303
push 0x100
lea eax, [esp + 0x64]
push 0
push eax
call fcn.0041e930
mov edx, dword [esp + 0x3c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
add edx, ecx
cmp ecx, edx
je 0x4082dd
nop
movzx eax, byte [ecx]
inc ecx
mov byte [esp + eax + 0x60], 1
cmp ecx, edx
jne 0x4082d0
mov edx, dword [esp + 8]
lea ecx, [edi + edx]
mov edi, dword [esp + 0xc]
add edi, edx
cmp edi, ecx
jae 0x408303
nop
movzx eax, byte [edi]
cmp byte [esp + eax + 0x60], 0
je 0x4083f9
inc edi
cmp edi, ecx
jb 0x4082f0
or edi, 0xffffffff
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], edi
cmp eax, 0x10
jb 0x408342
mov edx, dword [esp + 0x20]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x408338
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4085d1
push ecx
push edx
call fcn.0041c138
add esp, 8
cmp edi, 0xffffffff
je 0x40859d
mov eax, dword [esp + 0x1c]
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x408359
mov ecx, dword [eax]
cmp byte [ecx + edi], 0x22
jne 0x408400
cmp dword [eax + 0x14], 0x10
lea ecx, [edi + 1]
mov edx, eax
mov dword [esp + 8], eax
jb 0x408378
mov edx, dword [eax]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x10]
cmp ecx, eax
jae 0x40859d
sub eax, ecx
push eax
lea eax, [edx + ecx]
push 0x22
push eax
call fcn.0041ec50
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x40859d
sub ecx, dword [esp + 8]
cmp ecx, 0xffffffff
je 0x40859d
mov eax, dword [esp + 0x1c]
lea edx, [edi + 1]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
cmp dword [eax + 0x10], edx
jb 0x4085d6
sub ecx, edi
lea edi, [ecx - 1]
mov ecx, dword [eax + 0x10]
sub ecx, edx
cmp ecx, edi
cmovb edi, ecx
cmp dword [eax + 0x14], 0x10
jb 0x4083e6
mov eax, dword [eax]
push edi
add eax, edx
mov ecx, esi
push eax
call fcn.00403ce0
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
sub edi, edx
jmp 0x408306
mov ax, word [0x445f30]
xor edx, edx
mov word [esp + 0xc], ax
mov al, byte [0x445f32]
mov byte [esp + 0xe], al
mov dword [esp + 8], edx
nop word [eax + eax]
mov eax, 0x3521cfb3
mul edx
mov eax, dword [esp + 8]
sub eax, edx
shr eax, 1
add eax, edx
mov edx, dword [esp + 8]
shr eax, 5
mov cl, dl
movsx eax, al
imul eax, eax, 0x35
sub cl, al
add cl, 0x35
xor byte [esp + edx + 0xc], cl
inc edx
mov dword [esp + 8], edx
cmp edx, 3
jl 0x408420
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], 0
lea edx, [ecx + 1]
mov dword [esp + 0x34], 0xf
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408472
sub ecx, edx
lea eax, [esp + 0xc]
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.00403ce0
cmp dword [esp + 0x34], 0x10
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], eax
cmp dword [eax + 0x14], 0x10
jb 0x4084b0
mov ecx, dword [eax]
mov dword [esp + 8], ecx
cmp dword [esp + 0x30], 0
mov eax, dword [eax + 0x10]
mov dword [esp + 0x14], eax
je 0x408510
cmp edi, eax
jae 0x408510
push 0x100
lea eax, [esp + 0x64]
push 0
push eax
call fcn.0041e930
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [esp + 0x30]
add edx, ecx
cmp ecx, edx
je 0x4084f1
movzx eax, byte [ecx]
inc ecx
mov byte [esp + eax + 0x60], 1
cmp ecx, edx
jne 0x4084e4
mov edx, dword [esp + 8]
add edi, edx
mov ecx, dword [esp + 0x14]
add ecx, edx
cmp edi, ecx
jae 0x408510
movzx eax, byte [edi]
cmp byte [esp + eax + 0x60], 0
jne 0x408543
inc edi
cmp edi, ecx
jb 0x408501
or edi, 0xffffffff
mov eax, dword [esp + 0x34]
cmp eax, 0x10
jb 0x408551
mov edx, dword [esp + 0x20]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x408547
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4085d1
jmp 0x408547
sub edi, edx
jmp 0x408513
push ecx
push edx
call fcn.0041c138
add esp, 8
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
cmp edi, 0xffffffff
je 0x4085b1
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx + 0x10]
cmp edx, eax
jb 0x4085d6
sub edi, eax
sub edx, eax
cmp edx, edi
cmovb edi, edx
cmp dword [ecx + 0x14], 0x10
jb 0x40858a
mov ecx, dword [ecx]
add eax, ecx
mov ecx, esi
push edi
push eax
call fcn.00403ce0
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
push 0
push 0x4458bb
mov ecx, esi
call fcn.00403ce0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00401720
call fcn.00421c52
call fcn.00421c52
call fcn.004042a0
int3