Function at 0x409870
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 0x4098c1
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0x27], 0
test eax, eax
je 0x4098c8
cmp al, 0x64
jb 0x4098d7
lea ecx, [eax + eax*4]
lea ecx, [eax + ecx*8]
movzx edx, cx
shr edx, 0xc
imul ecx, edx, 0x64
sub al, cl
movzx eax, al
movzx eax, word [eax + eax + str.00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899]
mov word [esp + 0x25], ax
mov ecx, 1
mov eax, edx
jmp 0x4098e0
mov bl, 1
jmp 0x409ddf
lea eax, [esp + 0x26]
mov dword [esp + 0x20], eax
mov byte [esp + 0x26], 0x30
jmp 0x40990c
mov ecx, 3
cmp al, 9
ja 0x4098f7
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
lea edx, [esp + ecx]
add edx, 0x23
mov dword [esp + 0x20], edx
mov byte [esp + ecx + 0x23], al
jmp 0x40990c
movzx eax, word [eax + eax + str.00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899]
lea ecx, [esp + 0x25]
mov dword [esp + 0x20], ecx
mov word [esp + 0x25], ax
lea eax, [esi + 0x10]
push eax
call fcn.00406570
add esp, 4
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x28], eax
lea ebx, [esp + 0xc3]
push ebx
call fcn.00431010
add esp, 4
mov dword [esp + 0x2c], edi
lea eax, [edi + 0x800]
push eax
call fcn.004088f0
add esp, 4
mov edi, eax
mov dword [esp + 0x30], 0x70bf608
mov byte [esp + 0x34], 0x64
mov dword [esp + 0x35], 0
mov word [esp + 0x39], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0xa
ja 0x4099af
nop word [eax + eax]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx + 0x30]
lea edx, [eax + 0x70]
add eax, ecx
and edx, ecx
add edx, edx
sub eax, edx
add al, 0x60
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0xb
jb 0x409980
lea eax, [esp + 0x30]
mov ecx, esi
push ebx
push eax
push edi
call fcn.00409260
mov dword [esp + 0x30], 0x7bdcc2d6
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov byte [esp + 0x3c], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0xc
ja 0x409a26
nop dword [eax + eax]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx + 0x30]
lea edx, [eax - 0x293927b1]
mov ebx, ecx
not ebx
or ebx, edx
and edx, ecx
add edx, ebx
sub eax, edx
add al, 0x25
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0xd
jb 0x4099f0
mov ecx, esi
push dword [esp + 0x20]
lea eax, [esp + 0x34]
push eax
push edi
call fcn.00409260
mov eax, dword [str.LGNDR1__]
mov dword [esp + 0x30], 0xbb5c525a
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov word [esp + 0x3c], 0
mov dword [esp + 8], 0
mov ecx, dword [esp + 8]
cmp ecx, 0xd
ja 0x409a97
nop dword [eax]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 8]
add cl, 0xe7
xor cl, byte [esp + edx + 0x30]
add cl, 0xaf
mov edx, dword [esp + 8]
mov byte [esp + edx + 0x30], cl
inc dword [esp + 8]
mov ecx, dword [esp + 8]
cmp ecx, 0xe
jb 0x409a70
mov ecx, esi
push eax
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x28], edi
push edi
call fcn.00409260
movsd xmm0, qword [0x43a5e0]
movsd qword [esp + 0x30], xmm0
mov dword [esp + 0x38], 0x2e2d283b
mov byte [esp + 0x3c], 0x8c
mov dword [esp + 0x3d], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0x10
ja 0x409b22
nop dword [eax]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ebx, byte [esp + ecx + 0x30]
lea ecx, [eax - 0x704f78e8]
mov edx, ecx
and edx, ebx
mov edi, ecx
xor edi, ebx
add eax, 0x18
and eax, ebx
or ecx, ebx
xor ecx, edi
add ecx, eax
lea eax, [edi + edx*2]
sub eax, ecx
add al, 0x58
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0x11
jb 0x409ae0
movaps xmm0, xmmword [0x43a5f0]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xf
ja 0x409b6f
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 8]
lea edx, [eax + 0x3b]
and edx, ecx
add eax, ecx
add edx, edx
sub eax, edx
add al, 0x9e
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 8], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x10
jb 0x409b40
lea edx, [esp + 8]
mov ecx, esi
lea eax, [esp + 0x30]
push eax
push edx
push dword [esp + 0x28]
call fcn.00409260
mov dword [esp + 0x30], 0x767e7476
mov byte [esp + 0x34], 0x88
mov dword [esp + 0x35], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 8
ja 0x409bf1
nop word [eax + eax]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx + 0x30]
lea edx, [eax - 0x1cb3313e]
lea edi, [eax + 0xc2]
mov ebx, edx
and ebx, edi
and ebx, ecx
xor edx, edi
and edx, ecx
add eax, ecx
lea ecx, [edx + ebx*2]
sub eax, ecx
add al, 0x74
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 9
jb 0x409bb0
mov ecx, esi
push dword [esp + 0x2c]
push dword [esp + 0x2c]
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x2c]
call fcn.004094f0
mov eax, dword [esi + 0x60]
movaps xmm0, xmmword [0x43a600]
movups xmmword [esp + 0x30], xmm0
movaps xmm0, xmmword [0x43a610]
movups xmmword [esp + 0x40], xmm0
movaps xmm0, xmmword [0x43a620]
movups xmmword [esp + 0x50], xmm0
movaps xmm0, xmmword [0x43a630]
movups xmmword [esp + 0x60], xmm0
movaps xmm0, xmmword [0x43a640]
movups xmmword [esp + 0x70], xmm0
movaps xmm0, xmmword [0x43a650]
movups xmmword [esp + 0x80], xmm0
movaps xmm0, xmmword [0x43a660]
movups xmmword [esp + 0x90], xmm0
movaps xmm0, xmmword [0x43a670]
movups xmmword [esp + 0xa0], xmm0
mov word [esp + 0xb0], 0x2126
mov dword [esp + 0xb6], 0
mov dword [esp + 0xb2], 0
mov byte [esp + 0xba], 0
mov dword [esp + 8], 0
mov ecx, dword [esp + 8]
cmp ecx, 0x8a
ja 0x409d0d
nop word cs:[eax + eax]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 8]
movzx edx, byte [esp + edx + 0x30]
lea edi, [ecx + edx]
add edi, 0x3b75f83b
add ecx, 0x3b
and ecx, edx
add ecx, ecx
mov edx, ecx
xor edx, edi
not ecx
and ecx, edi
add ecx, ecx
sub ecx, edx
mov edx, ecx
or edx, 0x62
and ecx, 0x62
add ecx, edx
inc cl
mov edx, dword [esp + 8]
mov byte [esp + edx + 0x30], cl
inc dword [esp + 8]
mov ecx, dword [esp + 8]
cmp ecx, 0x8b
jb 0x409cc0
movsd xmm0, qword [0x43a680]
movsd qword [esp + 8], xmm0
mov word [esp + 0x10], 0xf5f4
mov dword [esp + 0x16], 0
mov dword [esp + 0x12], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0x17
ja 0x409da6
nop word cs:[eax + eax]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 8]
lea edi, [ecx + 0xbe]
mov ebx, edx
not ebx
or ebx, edi
and edi, edx
add edi, ebx
sub ecx, edi
add cl, 0x8b
mov edx, dword [esp + 4]
mov byte [esp + edx + 8], cl
mov ecx, dword [esp + 4]
mov edx, ecx
and edx, 1
xor ecx, 1
lea ecx, [ecx + edx*2]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 4]
cmp ecx, 0x18
jb 0x409d60
push 0x493e0
push eax
mov edi, dword [esp + 0x28]
push edi
push 0
push 0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0040d1d0
add esp, 0x1c
mov ebx, eax
push edi
call fcn.00408900
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