Function at 0x4367c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
add ecx, esi
sub ecx, dword [esp + 0x44]
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp + 0x1c], ecx
cmp ecx, esi
jbe 0x436b64
mov edi, dword [esp + 0x48]
mov dword [esp + 4], 0
xor edx, edx
mov dword [esp + 0xc], 0
jmp 0x436847
mov dword [edx + ebp], esi
mov ecx, dword [esp + 4]
add ecx, 4
mov eax, dword [esp + 0x34]
mov dword [esp + 4], ecx
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x44]
add esi, eax
dec esi
inc esi
cmp esi, dword [esp + 0x1c]
jae 0x436b64
mov dword [esp], edx
test edi, edi
je 0x4368b0
movzx eax, byte [edi]
mov byte [esp + 0x10], 0x8b
lea ecx, [esp + 0x11]
mov byte [ecx + 4], 0
mov dword [ecx], 0
xor ecx, ecx
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [esp + edx + 0x10]
mov ebp, ecx
and ebp, 4
mov edi, edx
xor edi, 0x92
add edi, ebp
mov ebp, ebx
and ebp, 0xfffffff6
or ebp, 8
and ebx, 9
xor ebx, edi
xor ebx, ebp
xor bl, 8
add bl, 0x26
mov byte [esp + edx + 0x10], bl
inc edx
add ecx, 2
cmp edx, 6
jne 0x436870
cmp al, byte [esp + 0x10]
mov edi, dword [esp + 0x48]
je 0x4368bf
movzx eax, byte [esi]
mov ecx, dword [esp + 0x40]
cmp al, byte [ecx]
jne 0x436990
cmp dword [esp + 0x44], 2
jb 0x436960
mov eax, 1
jmp 0x4368f8
movzx ecx, byte [esi + eax]
mov edx, dword [esp + 0x40]
cmp cl, byte [edx + eax]
jne 0x436a9f
inc eax
cmp eax, dword [esp + 0x44]
je 0x436960
test edi, edi
je 0x4368e0
movzx ecx, byte [edi + eax]
mov byte [esp + 0x10], 0xa5
lea edx, [esp + 0x11]
mov dword [edx + 3], 0
mov dword [edx], 0
mov edi, 0x926b5597
nop
nop
nop
nop
nop
movzx edx, byte [esp + edi + 0x6d94aa79]
mov ebx, edi
and ebx, edx
add ebx, ebx
add edx, edi
mov ebp, ebx
xor ebp, edx
not ebx
and ebx, edx
add ebx, ebx
sub ebx, ebp
add bl, 0xd
mov byte [esp + edi + 0x6d94aa79], bl
inc edi
cmp edi, 0x926b559f
jne 0x436920
cmp cl, byte [esp + 0x10]
mov edi, dword [esp + 0x48]
jne 0x4368e0
jmp 0x4368f1
mov edx, dword [esp + 4]
mov ebx, edx
mov ecx, dword [esp]
sub ebx, ecx
mov eax, edx
not eax
mov ebp, ecx
not ebp
cmp edx, dword [esp + 0xc]
je 0x436998
and eax, ecx
and ebp, edx
sub ebp, eax
mov edx, ecx
cmp ebp, ebx
jae 0x436820
jmp 0x436b36
mov edx, dword [esp]
jmp 0x43683c
and eax, ecx
and ebp, edx
sub ebp, eax
mov eax, ebp
sar eax, 2
mov ecx, eax
shr ecx, 1
mov edx, ecx
and edx, eax
xor ecx, eax
lea ecx, [ecx + edx*2]
mov eax, ebx
sar eax, 2
inc eax
cmp ecx, eax
ja 0x4369bc
mov ecx, eax
mov dword [esp + 0xc], ecx
lea eax, [ecx*4]
push eax
call fcn.00408770
add esp, 4
mov edx, eax
mov eax, dword [esp]
test eax, eax
je 0x436b10
cmp edx, eax
mov eax, dword [esp + 4]
mov dword [esp + 8], ebx
mov dword [esp + 0x18], edx
jbe 0x436ab5
cmp eax, edx
jbe 0x436ab5
test ebx, ebx
je 0x436af9
mov eax, dword [esp]
mov edx, dword [esp + 8]
add eax, edx
dec eax
mov ecx, dword [esp + 0x18]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0x436a34
neg edi
xor edx, edx
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x436a20
add eax, edx
add ecx, edx
add edx, dword [esp + 8]
mov edi, dword [esp]
sub edi, dword [esp + 4]
cmp edi, 0xfffffff8
ja 0x436af9
neg edx
xor edi, edi
nop
nop
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 0x436a50
jmp 0x436af9
mov ecx, eax
xor ecx, 1
and eax, 0xfffffffe
add eax, eax
sub eax, ecx
add esi, eax
mov edx, dword [esp]
jmp 0x43683c
mov ecx, ebx
shr ecx, 2
mov eax, dword [esp]
mov edi, edx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, edx
mov edx, ebx
and edx, 0xfffffffc
lea edi, [eax + edx]
add edx, dword [esp]
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov eax, edx
mov dword [esp + 4], edi
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
test bl, 1
je 0x436af9
mov eax, dword [esp + 8]
and eax, 2
movzx ecx, byte [edx + eax]
mov edx, dword [esp + 4]
mov byte [edx + eax], cl
push dword [esp]
call fcn.00408780
add esp, 4
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 8]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
mov dword [eax], edx
lea ecx, [edx + ebx]
mov dword [esp + 4], ecx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0xc]
lea ecx, [edx + ecx*4]
mov dword [esp + 0xc], ecx
mov dword [eax + 8], ecx
cmp ebp, ebx
jae 0x436820
mov eax, edx
add edx, ebp
lea edi, [eax + ebp]
add edi, 4
mov dword [esp], edi
mov ebx, edx
xor ecx, ecx
xchg esi, ebx
rep movsd dword es:[edi], dword [esi]
xchg esi, ebx
xor ecx, ecx
mov edi, dword [esp]
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov edx, eax
mov edi, dword [esp + 0x48]
jmp 0x436820
mov eax, dword [esp + 0x34]
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret