Function at 0x438250
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x50]
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
add ecx, esi
sub ecx, ebp
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp + 0x28], ecx
cmp ecx, esi
jbe 0x438722
mov edi, dword [esp + 0x54]
xor eax, eax
xor edx, edx
mov dword [esp + 0x14], 0
jmp 0x4382cd
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 4]
mov dword [edx + eax], esi
mov ecx, dword [esp + 0x18]
add ecx, 4
mov eax, dword [esp + 0x40]
mov dword [eax + 4], ecx
mov ebp, dword [esp + 0x50]
add esi, ebp
dec esi
mov eax, ecx
inc esi
cmp esi, dword [esp + 0x28]
jae 0x438722
mov dword [esp + 8], eax
test edi, edi
mov dword [esp], edx
je 0x438345
movzx eax, byte [edi]
mov byte [esp + 4], al
mov byte [esp + 0x1c], 5
lea eax, [esp + 0x1d]
mov word [eax + 4], 0
mov dword [eax], 0
mov ecx, 0x1dc2bff1
mov edx, 0xe23d4010
nop
nop
movzx ebx, byte [esp + ecx - 0x1dc2bfd5]
mov edi, ecx
and edi, ebx
add edi, edi
lea eax, [edx + ebx]
sub ebx, edi
add ebx, ecx
not eax
and eax, 1
or ebx, 1
add ebx, eax
add bl, 0x4a
mov byte [esp + ecx - 0x1dc2bfd5], bl
inc ecx
dec edx
cmp ecx, 0x1dc2bff8
jne 0x438300
movzx eax, byte [esp + 4]
cmp al, byte [esp + 0x1c]
mov edi, dword [esp + 0x54]
mov edx, dword [esp]
je 0x438354
movzx eax, byte [esi]
mov ecx, dword [esp + 0x4c]
cmp al, byte [ecx]
jne 0x438430
cmp ebp, 2
jb 0x4383f0
mov eax, 1
jmp 0x438386
movzx ecx, byte [esi + eax]
mov edx, dword [esp + 0x4c]
cmp cl, byte [edx + eax]
jne 0x43854f
inc eax
cmp eax, ebp
je 0x4383f0
test edi, edi
je 0x438370
movzx ecx, byte [edi + eax]
mov byte [esp + 0x1c], 0xff
lea edx, [esp + 0x1d]
mov dword [edx + 3], 0
mov dword [edx], 0
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + edx + 0x1c]
mov ebx, edx
or ebx, 0x29d3520
xor ebx, edi
add ebx, 0xf2edf65f
mov edi, ebx
and edi, 1
xor ebx, 1
lea ebx, [ebx + edi*2]
mov byte [esp + edx + 0x1c], bl
mov edi, edx
and edi, 1
xor edx, 1
lea edx, [edx + edi*2]
cmp edx, 8
jb 0x4383b0
cmp cl, byte [esp + 0x1c]
mov edi, dword [esp + 0x54]
jne 0x438370
jmp 0x438381
mov ecx, dword [esp + 8]
mov eax, ecx
not eax
mov edx, dword [esp]
mov ebx, edx
mov dword [esp + 0x24], eax
and ebx, eax
mov eax, ebx
mov ebp, edx
not ebp
and ebp, ecx
mov ebx, ebp
sub ebx, eax
cmp ecx, dword [esp + 0x14]
je 0x438439
mov eax, ecx
sub eax, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
mov ebp, ebx
jmp 0x4385eb
mov eax, dword [esp + 8]
jmp 0x4382c2
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], ebx
mov eax, ebx
sar eax, 2
inc eax
sub ecx, edx
mov dword [esp + 4], ecx
sar ecx, 2
mov edx, ecx
shr edx, 1
add edx, ecx
cmp edx, eax
ja 0x43845c
mov edx, eax
mov dword [esp + 0x14], edx
lea eax, [edx*4]
push eax
call fcn.00408420
add esp, 4
mov ebx, eax
mov edx, dword [esp]
test edx, edx
mov dword [esp + 0x10], eax
je 0x4385c1
cmp ebx, edx
mov ecx, dword [esp + 0xc]
jbe 0x438569
lea eax, [edx + ecx]
cmp eax, ebx
jbe 0x438569
test ecx, ecx
je 0x4385ab
mov edx, dword [esp + 0xc]
mov eax, edx
and eax, 0xfffffffe
mov ecx, edx
not ecx
and ecx, 1
sub eax, ecx
mov ecx, dword [esp + 0x10]
add ecx, eax
add eax, dword [esp]
mov edi, edx
and edi, 7
je 0x4384e4
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x4384d0
add eax, edx
add ecx, edx
add edx, dword [esp + 0xc]
mov edi, dword [esp + 0x18]
sub edi, ebp
cmp edi, 0xfffffff8
ja 0x4385ab
neg edx
xor edi, edi
nop
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 0x438500
jmp 0x4385ab
mov ecx, eax
and ecx, 0xfffffffe
add ecx, ecx
xor eax, 1
sub ecx, eax
add esi, ecx
mov edx, dword [esp]
mov eax, dword [esp + 8]
jmp 0x4382c2
mov eax, ecx
mov ebp, ecx
shr ecx, 2
mov eax, edx
mov edi, ebx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov ecx, edx
mov eax, ebp
mov edx, ebp
and edx, 0xfffffffc
lea ebp, [ebx + edx]
add edx, ecx
mov ecx, eax
shr ecx, 1
and ecx, 1
mov ebx, edx
mov edi, ebp
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
test al, 1
je 0x4385ab
mov ecx, dword [esp + 0xc]
and ecx, 2
movzx edx, byte [edx + ecx]
mov byte [ebp + ecx], dl
mov edi, dword [esp]
push edi
call fcn.00408430
mov edx, edi
add esp, 4
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
mov dword [eax], ebx
mov ebp, dword [esp + 0xc]
lea ecx, [ebx + ebp]
mov dword [esp + 0x18], ecx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x14]
lea ecx, [ebx + ecx*4]
mov dword [esp + 0x14], ecx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
mov ebx, eax
mov dword [esp + 4], eax
cmp eax, ebp
jae 0x4382a0
add edx, ebp
xor ecx, edx
and edx, dword [esp + 0x24]
add edx, edx
mov dword [esp], edx
mov ebx, edx
sub ebx, ecx
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 4]
lea edx, [eax + edi]
add eax, edi
add eax, 4
cmp ebx, 4
jle 0x438669
mov dword [esp + 8], ecx
mov edi, ebx
and edi, 0x7ffffffe
mov ecx, ebx
not ecx
and ecx, 1
sub edi, ecx
add edx, edi
mov ebp, ebx
and ebx, 7
je 0x4386b0
neg ebx
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [edx + edi]
mov byte [edx + edi + 4], al
dec edi
cmp ebx, edi
jne 0x438650
lea eax, [edx + edi]
add eax, 4
add edx, edi
add ebp, edi
jmp 0x4386b2
mov ecx, ebx
shr ecx, 2
mov ebp, edx
mov edi, eax
xchg esi, ebp
rep movsd dword es:[edi], dword [esi]
xchg esi, ebp
mov ebp, ebx
and ebp, 0xfffffffc
add eax, ebp
add ebp, edx
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov edx, ebp
mov edi, eax
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
test bl, 1
mov edi, dword [esp + 0x54]
je 0x4382a0
and ebx, 2
movzx ecx, byte [ebp + ebx]
mov byte [eax + ebx], cl
jmp 0x4382a0
add eax, edi
mov ebx, dword [esp + 8]
sub ebx, dword [esp]
cmp ebx, 0xfffffff8
mov edi, dword [esp + 0x54]
ja 0x4382a0
neg ebp
xor ecx, ecx
nop
nop
nop
nop
nop
nop
movzx ebx, byte [edx + ecx]
mov byte [eax + ecx], bl
movzx ebx, byte [edx + ecx - 1]
mov byte [eax + ecx - 1], bl
movzx ebx, byte [edx + ecx - 2]
mov byte [eax + ecx - 2], bl
movzx ebx, byte [edx + ecx - 3]
mov byte [eax + ecx - 3], bl
movzx ebx, byte [edx + ecx - 4]
mov byte [eax + ecx - 4], bl
movzx ebx, byte [edx + ecx - 5]
mov byte [eax + ecx - 5], bl
movzx ebx, byte [edx + ecx - 6]
mov byte [eax + ecx - 6], bl
movzx ebx, byte [edx + ecx - 7]
mov byte [eax + ecx - 7], bl
add ecx, 0xfffffff8
cmp ebp, ecx
jne 0x4386d0
jmp 0x4382a0
mov eax, dword [esp + 0x40]
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret