Function at 0x4366a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x5c
mov dword [esp + 0x24], ecx
mov ebp, dword [esp + 0x70]
mov dword [ebp + 8], 0
mov dword [ebp + 4], 0
mov dword [ebp], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x20], 0x100000
mov dword [esp + 4], 0
mov dword [esp + 0x38], 0x7f897f8a
xor eax, eax
mov cl, 1
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, word [esp + eax*2 + 0x38]
lea esi, [eax + 0x134b8ed]
mov edi, 0x4712
sub edi, eax
mov ebx, 0x40cb4712
sub ebx, eax
and ebx, 0x40c80212
and esi, 0x12430cd
or esi, ebx
xor esi, 0x7ed88a32
or esi, edx
not edx
or edx, edi
and edx, esi
mov esi, edx
and esi, 0x6583895
mov edi, edx
and edi, 2
mov ebx, edi
xor ebx, 2
imul ebx, esi
or esi, 2
imul esi, edi
add esi, ebx
xor edx, 0x65a3897
mov edi, esi
and edi, edx
xor esi, edx
lea esi, [esi + edi*2]
and edx, 1
or esi, 1
add esi, edx
mov word [esp + eax*2 + 0x38], si
mov eax, 1
test cl, 1
mov ecx, 0
jne 0x4366f0
mov eax, dword [esp + 0x38]
mov ecx, dword [0x4452ac]
test ecx, ecx
je 0x4367ce
xor edx, edx
mov esi, dword [0x4452b0]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xa8f779e4
je 0x4367a0
inc edx
cmp ecx, edx
jne 0x436790
jmp 0x4367ce
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x4367ce
lea eax, [esp + 0x20]
lea edx, [esp + 4]
push 4
push 0x3000
push eax
push 0
push edx
push 0xffffffffffffffff
push 0x18
push ecx
push dword [0x4452b4]
call fcn.00437870
add esp, 0x24
test eax, eax
js 0x436e5a
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x14], 0x31153113
xor eax, eax
mov cl, 1
nop
nop
nop
nop
nop
nop
movzx edx, word [esp + eax*2 + 0x14]
lea esi, [eax - 0x2a7294b5]
xor esi, edx
add esi, 0x4ecce5bc
mov edx, esi
and edx, 0x3fec
xor esi, 0xbfec
lea edx, [esi + edx*2]
mov word [esp + eax*2 + 0x14], dx
mov eax, 1
test cl, 1
mov ecx, 0
jne 0x436820
mov edi, dword [esp + 0x14]
cmp edi, 0x7ffffffe
mov esi, dword [esp + 0x24]
ja 0x436d65
mov dword [esp + 0x10], 0
xor ebx, ebx
mov dword [esp], 0
jmp 0x4368a4
mov eax, dword [esp]
mov dword [ebp + 4], eax
mov dword [ebp], ebx
mov eax, dword [esp + 0x10]
mov dword [ebp + 8], eax
nop
mov edi, dword [esp + 0x44]
add edi, dword [esp + 0x38]
cmp edi, 0x7fffffff
jae 0x436d65
mov ecx, esi
push 0
push 0x1c
lea eax, [esp + 0x40]
push eax
push 0
push edi
call fcn.00436490
cmp eax, 0xbfffffff
ja 0x436d65
test eax, eax
js 0x436890
cmp dword [esp + 0x48], 0x1000
jne 0x436890
test byte [esp + 0x4c], 0x66
je 0x436890
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x20]
cmp eax, edx
mov dword [esp + 0x28], edi
jbe 0x436af8
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], 0x7f897f8a
xor ecx, ecx
mov dl, 1
nop
nop
nop
nop
nop
movzx esi, word [esp + ecx*2 + 0x14]
lea ebx, [ecx + 0x134b8ed]
mov edi, 0x4712
sub edi, ecx
mov ebp, 0x40cb4712
sub ebp, ecx
and ebp, 0x40c80212
and ebx, 0x12430cd
or ebx, ebp
xor ebx, 0x7ed88a32
or ebx, esi
not esi
or esi, edi
and esi, ebx
mov ebx, esi
and ebx, 0x6583895
mov edi, esi
and edi, 2
mov ebp, edi
xor ebp, 2
imul ebp, ebx
or ebx, 2
imul ebx, edi
add ebx, ebp
xor esi, 0x65a3897
mov edi, ebx
and edi, esi
xor ebx, esi
lea edi, [ebx + edi*2]
and esi, 1
or edi, 1
add edi, esi
mov word [esp + ecx*2 + 0x14], di
mov ecx, 1
test dl, 1
mov edx, 0
jne 0x436900
mov ecx, dword [0x4452ac]
test ecx, ecx
je 0x4369de
mov edx, dword [esp + 0x14]
xor esi, esi
mov edi, dword [0x4452b0]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0x6a2d3ea3
je 0x4369b0
inc esi
cmp ecx, esi
jne 0x4369a0
jmp 0x4369de
mov ecx, dword [edi + esi*8 + 4]
cmp ecx, edx
je 0x4369de
push 0x8000
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0xc]
push eax
push 0xffffffffffffffff
push 0x10
push ecx
push dword [0x4452b4]
call fcn.00437870
add esp, 0x1c
mov eax, dword [esp + 0x44]
mov dword [esp + 4], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], 0x7f897f8a
xor eax, eax
mov cl, 1
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, word [esp + eax*2 + 0x14]
lea esi, [eax + 0x134b8ed]
mov edi, 0x4712
sub edi, eax
mov ebx, 0x40cb4712
sub ebx, eax
and ebx, 0x40c80212
and esi, 0x12430cd
or esi, ebx
xor esi, 0x7ed88a32
or esi, edx
not edx
or edx, edi
and edx, esi
mov esi, edx
and esi, 0x6583895
mov edi, edx
and edi, 2
mov ebx, edi
xor ebx, 2
imul ebx, esi
or esi, 2
imul esi, edi
add esi, ebx
xor edx, 0x65a3897
mov edi, esi
and edi, edx
xor esi, edx
lea esi, [esi + edi*2]
and edx, 1
or esi, 1
add esi, edx
mov word [esp + eax*2 + 0x14], si
mov eax, 1
test cl, 1
mov ecx, 0
jne 0x436a00
mov eax, dword [esp + 0x14]
mov ecx, dword [0x4452ac]
test ecx, ecx
mov ebp, dword [esp + 0x70]
je 0x436ab0
xor edx, edx
mov esi, dword [0x4452b0]
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x28]
nop
cmp dword [esi + edx*8], 0xa8f779e4
je 0x436aba
inc edx
cmp ecx, edx
jne 0x436aa0
jmp 0x436ae8
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x28]
jmp 0x436ae8
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x436ae8
push 4
push 0x3000
lea eax, [esp + 0x28]
push eax
push 0
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push 0x18
push ecx
push dword [0x4452b4]
call fcn.00437870
add esp, 0x24
test eax, eax
mov esi, dword [esp + 0x24]
js 0x436d65
mov edx, dword [esp + 0x20]
mov ecx, esi
lea eax, [esp + 0x58]
push eax
push edx
push dword [esp + 0xc]
push edi
call fcn.00436590
test eax, eax
jns 0x436b19
cmp eax, 0x8000000d
jne 0x436890
push dword [esp + 0x7c]
push dword [esp + 0x7c]
push dword [esp + 0x7c]
push dword [esp + 0x64]
push dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
call fcn.00436e70
add esp, 0x18
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
cmp eax, edx
je 0x43687f
mov dword [esp + 0x54], eax
mov esi, eax
mov eax, dword [esp]
mov edi, ebx
mov dword [esp + 0x2c], edx
jmp 0x436b73
mov edi, ebx
mov dword [edi + ecx], ebp
add eax, 4
add esi, 4
cmp esi, edx
je 0x436d17
mov ebp, dword [esi]
add ebp, dword [esp + 0x28]
sub ebp, dword [esp + 4]
mov ecx, eax
mov ebx, edi
sub ecx, edi
cmp eax, dword [esp + 0x10]
jne 0x436b60
mov dword [esp], eax
mov dword [esp + 8], ecx
sar ecx, 2
lea eax, [ecx + 1]
mov edi, ecx
shr edi, 1
add edi, ecx
cmp edi, eax
ja 0x436ba2
mov edi, eax
mov eax, edi
and eax, 4
mov ecx, edi
or ecx, 4
imul ecx, eax
xor eax, 4
mov edx, edi
and edx, 0xfffffffb
imul edx, eax
add ecx, edx
push ecx
call fcn.00407fa0
add esp, 4
mov edx, eax
test ebx, ebx
je 0x436cfd
mov dword [esp + 0x10], edi
cmp edx, ebx
mov dword [esp + 0xc], ebx
mov eax, dword [esp]
mov ecx, dword [esp + 8]
mov dword [esp + 0x30], edx
jbe 0x436c9f
cmp eax, edx
jbe 0x436c9f
test ecx, ecx
je 0x436ce9
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [ebx + edx]
dec eax
mov ecx, dword [esp + 0x30]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0x436c38
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x436c20
add eax, edx
add ecx, edx
add edx, dword [esp + 8]
mov ebx, dword [esp + 0xc]
mov edi, ebx
sub edi, dword [esp]
cmp edi, 0xfffffff8
ja 0x436ce9
neg edx
xor edi, edi
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edi]
mov byte [ecx + edi], bl
movzx ebx, byte [eax + edi - 1]
mov byte [ecx + edi - 1], bl
movzx ebx, byte [eax + edi - 2]
mov byte [ecx + edi - 2], bl
movzx ebx, byte [eax + edi - 3]
mov byte [ecx + edi - 3], bl
movzx ebx, byte [eax + edi - 4]
mov byte [ecx + edi - 4], bl
movzx ebx, byte [eax + edi - 5]
mov byte [ecx + edi - 5], bl
movzx ebx, byte [eax + edi - 6]
mov byte [ecx + edi - 6], bl
movzx ebx, byte [eax + edi - 7]
mov byte [ecx + edi - 7], bl
add edi, 0xfffffff8
cmp edx, edi
jne 0x436c50
jmp 0x436ce9
shr ecx, 2
mov eax, ebx
mov edi, edx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov edi, dword [esp + 8]
mov ecx, edi
or ecx, 0xfffffffc
mov eax, edi
xor eax, 3
and eax, ecx
add ebx, eax
add eax, edx
mov ecx, edi
shr ecx, 1
and ecx, 1
mov dword [esp], ebx
mov edi, eax
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
test byte [esp + 8], 1
je 0x436ce9
mov ecx, dword [esp + 8]
and ecx, 2
mov edx, dword [esp]
movzx edx, byte [edx + ecx]
mov byte [eax + ecx], dl
push dword [esp + 0xc]
call fcn.00407fb0
add esp, 4
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
lea eax, [edx + edi*4]
mov dword [esp + 0x10], eax
mov eax, edx
mov ecx, dword [esp + 8]
add eax, ecx
mov edi, edx
mov edx, dword [esp + 0x2c]
jmp 0x436b62
mov ebp, dword [esp + 0x70]
mov dword [ebp + 4], eax
mov ebx, edi
mov dword [ebp], edi
mov ecx, dword [esp + 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [esp + 0x54]
test edx, edx
je 0x436d59
mov dword [esp], eax
cmp edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
je 0x436890
push edx
call fcn.00407fb0
add esp, 4
mov dword [esp + 0x14], 0
jmp 0x436890
mov dword [esp], eax
mov esi, dword [esp + 0x24]
jmp 0x436890
mov dword [esp + 0x14], 0x7f897f8a
xor eax, eax
mov cl, 1
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, word [esp + eax*2 + 0x14]
lea esi, [eax + 0x134b8ed]
mov edi, 0x4712
sub edi, eax
mov ebx, 0x40cb4712
sub ebx, eax
and ebx, 0x40c80212
and esi, 0x12430cd
or esi, ebx
xor esi, 0x7ed88a32
or esi, edx
not edx
or edx, edi
and edx, esi
mov esi, edx
and esi, 0x6583895
mov edi, edx
and edi, 2
mov ebx, edi
xor ebx, 2
imul ebx, esi
or esi, 2
imul esi, edi
add esi, ebx
xor edx, 0x65a3897
mov edi, esi
and edi, edx
xor esi, edx
lea esi, [esi + edi*2]
and edx, 1
or esi, 1
add esi, edx
mov word [esp + eax*2 + 0x14], si
mov eax, 1
test cl, 1
mov ecx, 0
jne 0x436d80
mov eax, dword [0x4452ac]
test eax, eax
je 0x436e5a
mov ecx, dword [esp + 0x14]
xor edx, edx
mov esi, dword [0x4452b0]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x6a2d3ea3
je 0x436e30
inc edx
cmp eax, edx
jne 0x436e20
jmp 0x436e5a
mov eax, dword [esi + edx*8 + 4]
cmp eax, ecx
je 0x436e5a
lea ecx, [esp + 0x34]
lea edx, [esp + 4]
push 0x8000
push ecx
push edx
push 0xffffffffffffffff
push 0x10
push eax
push dword [0x4452b4]
call fcn.00437870
add esp, 0x1c
mov eax, ebp
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret 0x10