Function at 0x438010
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edi
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc], esi
mov ebx, dword [ebp + 0xc]
lea edx, [ecx - 5]
cmp edx, 0xc
ja 0x4383b4
mov eax, dword [ebp + 0x10]
test byte [eax + 0x175], 0x20
je 0x43811c
mov eax, dword [ebp + 8]
cmp ebx, 1
mov edx, dword [eax]
je 0x438525
mov eax, ebx
shr eax, 0x1f
add eax, ebx
sar eax, 1
test eax, eax
jle 0x4383a5
mov ecx, eax
shr ecx, 0x1f
add ecx, eax
sar ecx, 1
mov dword [ebp - 0x18], ecx
test ecx, ecx
jbe 0x43851b
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], edx
lea edi, [ecx + ebx]
mov dword [ebp - 0x20], edi
lea ecx, [ebx + edx]
mov eax, esi
lea esi, [esi]
mov edx, dword [ebp - 0x1c]
mov ebx, dword [ebp + 0x14]
movzx edi, byte [edx + esi*2]
movzx edx, byte [eax + ecx - 1]
xor edi, edx
mov byte [ebx + esi*2], dl
mov edx, dword [ebp - 0x20]
movzx ebx, byte [eax + ecx - 1]
xor ebx, edi
mov byte [eax + edx - 1], bl
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x14]
movzx edi, byte [ebx + esi*2 + 1]
movzx ebx, byte [eax + ecx - 2]
xor edi, ebx
mov byte [edx + esi*2 + 1], bl
inc esi
movzx edx, byte [eax + ecx - 2]
xor edx, edi
mov edi, dword [ebp - 0x20]
mov byte [eax + edi - 2], dl
add eax, 0xfffffffe
cmp esi, dword [ebp - 0x18]
jb 0x438090
mov eax, dword [ebp - 0x24]
lea edi, [esi + esi + 1]
mov edx, dword [ebp - 0x1c]
mov ebx, dword [ebp + 0xc]
lea ecx, [edi - 1]
cmp eax, ecx
jbe 0x4383a5
mov esi, dword [ebp + 0x14]
movzx ecx, byte [edx + edi - 1]
add edx, ebx
sub edx, edi
add ebx, esi
sub ebx, edi
movzx eax, byte [edx]
xor ecx, eax
mov byte [edi + esi - 1], al
movzx edx, byte [edx]
xor edx, ecx
mov byte [ebx], dl
jmp 0x4383a5
cmp ebx, 1
je 0x438532
cmp ebx, 2
je 0x43831e
cmp ebx, 4
jne 0x4381c9
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, eax
and edx, 3
jne 0x438147
mov edi, dword [eax]
jmp 0x43816b
and eax, 0xfffffffc
test edx, edx
je 0x43815e
lea ecx, [edx*8]
neg ecx
mov edi, dword [eax + 4]
shl edi, cl
jmp 0x438160
xor edi, edi
shl edx, 3
mov ecx, edx
mov eax, dword [eax]
shr eax, cl
or edi, eax
mov edx, dword [ebp + 0x14]
and edx, 3
jne 0x43817d
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
jmp 0x4383a5
mov eax, 0xffffffff
lea ebx, [edx*8]
mov ecx, ebx
mov esi, dword [ebp + 0x14]
shl eax, cl
and esi, 0xfffffffc
test edx, edx
je 0x4381b8
shl edx, 3
neg edx
mov ecx, dword [esi + 4]
and ecx, eax
mov dword [ebp - 0x24], eax
mov eax, edi
mov dword [ebp - 0x20], ecx
mov ecx, edx
shr eax, cl
mov edx, dword [ebp - 0x20]
or edx, eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 4], edx
not eax
mov ecx, ebx
and eax, dword [esi]
shl edi, cl
or eax, edi
mov dword [esi], eax
jmp 0x4383a5
cmp ebx, 8
jne 0x438308
mov eax, dword [ebp + 8]
mov esi, dword [eax]
test esi, 3
jne 0x4381e6
mov edx, dword [esi]
mov eax, dword [esi + 4]
jmp 0x43824c
mov edi, esi
and edi, 0xfffffff8
and esi, 7
je 0x43821d
lea ecx, [esi*8]
neg ecx
mov eax, dword [edi + 8]
add ecx, 0x40
mov dword [ebp - 0x24], eax
cmp ecx, 0x1f
mov eax, dword [edi + 0xc]
ja 0x438214
mov edx, dword [ebp - 0x24]
shld eax, edx, cl
shl edx, cl
jmp 0x438221
mov eax, dword [ebp - 0x24]
xor edx, edx
shl eax, cl
jmp 0x438221
xor edx, edx
xor eax, eax
shl esi, 3
mov ebx, dword [edi]
cmp esi, 0x1f
mov edi, dword [edi + 4]
ja 0x43823a
mov ecx, esi
shrd ebx, edi, cl
shr edi, cl
mov dword [ebp - 0x24], edi
jmp 0x438247
mov ecx, esi
mov ebx, edi
mov dword [ebp - 0x24], 0
shr ebx, cl
or eax, dword [ebp - 0x24]
or edx, ebx
test byte [ebp + 0x14], 3
jne 0x43825f
mov ecx, dword [ebp + 0x14]
mov dword [ecx], edx
mov dword [ecx + 4], eax
jmp 0x4383a5
mov edi, dword [ebp + 0x14]
mov ebx, edi
and edi, 7
mov esi, 0xffffffff
and ebx, 0xfffffff8
mov dword [ebp - 0x10], ebx
lea ecx, [edi*8]
mov dword [ebp - 0x14], ecx
shl esi, cl
test edi, edi
je 0x4382d7
mov ecx, ebx
shl edi, 3
neg edi
mov ebx, dword [ecx + 8]
add edi, 0x40
mov ecx, dword [ecx + 0xc]
and ebx, esi
mov dword [ebp - 0x1c], ecx
cmp edi, 0x1f
mov dword [ebp - 0x18], ebx
ja 0x4382b2
mov ecx, edi
mov ebx, edx
mov edi, eax
shrd ebx, eax, cl
shr edi, cl
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], edi
jmp 0x4382c2
mov ecx, edi
mov ebx, eax
shr ebx, cl
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], ebx
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
or ecx, dword [ebp - 0x20]
or ebx, dword [ebp - 0x24]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ebx
mov ecx, dword [ebp - 0x10]
not esi
and esi, dword [ecx]
cmp dword [ebp - 0x14], 0x1f
ja 0x4382f0
mov ebx, edx
mov ecx, dword [ebp - 0x14]
shld eax, edx, cl
shl ebx, cl
jmp 0x4382f9
mov eax, edx
xor ebx, ebx
mov ecx, dword [ebp - 0x14]
shl eax, cl
mov edx, dword [ebp - 0x10]
or esi, ebx
mov dword [edx], esi
mov dword [edx + 4], eax
jmp 0x4383a5
mov eax, dword [ebp + 8]
push ebx
push dword [eax]
push dword [ebp + 0x14]
call fcn.004c8e40
add esp, 0xc
jmp 0x4383a5
mov eax, dword [ebp + 8]
mov ebx, dword [eax]
mov eax, ebx
and eax, 0xfffffffe
and ebx, 1
je 0x438341
lea ecx, [ebx*8]
neg ecx
add ecx, 0x10
movzx edx, word [eax + 2]
shl edx, cl
jmp 0x438343
xor edx, edx
shl ebx, 3
mov edi, 0xffffffff
mov ecx, ebx
movzx esi, word [eax]
shr esi, cl
mov eax, dword [ebp + 0x14]
or edx, esi
mov esi, eax
and eax, 1
and esi, 0xfffffffe
lea ebx, [eax*8]
mov ecx, ebx
shl edi, cl
test eax, eax
je 0x438395
shl eax, 3
neg eax
add eax, 0x10
movzx ecx, word [esi + 2]
and ecx, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], ecx
mov ecx, eax
movzx edi, dx
shr edi, cl
mov eax, dword [ebp - 0x20]
or eax, edi
mov edi, dword [ebp - 0x24]
mov word [esi + 2], ax
not edi
mov ecx, ebx
movzx eax, word [esi]
shl edx, cl
and eax, edi
or eax, edx
mov word [esi], ax
xor eax, eax
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
lea eax, [ecx - 0x19]
cmp eax, 6
jbe 0x4383d0
lea eax, [ecx - 0x32]
cmp eax, 2
jbe 0x4383d0
lea eax, [ecx - 0x28]
cmp eax, 8
ja 0x43850c
mov eax, dword [ebp + 0x10]
mov edx, dword [ecx*4 + 0x4e911c]
cmp edx, 0xffffffff
movsx esi, byte [eax + 0x160]
je 0x43854b
mov edi, esi
lea ecx, [esi*4]
shl edi, 5
sub edi, ecx
mov eax, dword [ebp + 8]
mov edx, dword [edi + edx*4 + 0x4e92e0]
test edx, edx
mov eax, dword [eax]
je 0x43842a
push dword [ebp + 0x14]
push 0
push eax
call edx
add esp, 0xc
cmp eax, 1
je 0x438453
mov eax, 0x5f
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
cmp ebx, 4
mov edx, dword [eax]
mov dword [ecx], edx
je 0x438453
mov ecx, dword [ebp + 0x14]
cmp ebx, 8
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
je 0x438453
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 0x10]
test byte [eax + 0x175], 0x20
je 0x43850c
test esi, esi
je 0x43847b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp eax, 0x34
je 0x43847b
cmp eax, 0x32
jne 0x43850c
mov esi, ebx
shr esi, 0x1f
add esi, ebx
sar esi, 1
test esi, esi
jle 0x43850c
mov edi, esi
shr edi, 0x1f
add edi, esi
sar edi, 1
test edi, edi
jbe 0x438544
mov eax, dword [ebp + 0x14]
xor edx, edx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], esi
lea ecx, [eax + ebx]
xor eax, eax
mov esi, dword [ebp + 0x14]
movzx ebx, byte [eax + ecx - 1]
movzx edi, byte [esi + edx*2]
xor edi, ebx
mov byte [esi + edx*2], bl
mov ebx, edi
xor byte [eax + ecx - 1], bl
movzx ebx, byte [eax + ecx - 2]
movzx edi, byte [esi + edx*2 + 1]
xor edi, ebx
mov byte [esi + edx*2 + 1], bl
inc edx
mov ebx, edi
xor byte [eax + ecx - 2], bl
add eax, 0xfffffffe
cmp edx, dword [ebp - 0x20]
jb 0x4384ad
mov esi, dword [ebp - 0x24]
lea eax, [edx + edx + 1]
mov ebx, dword [ebp + 0xc]
lea edx, [eax - 1]
cmp esi, edx
jbe 0x43850c
mov esi, dword [ebp + 0x14]
movzx edx, byte [esi + eax - 1]
lea ecx, [ebx + esi]
sub ecx, eax
movzx ebx, byte [ecx]
xor edx, ebx
mov byte [esi + eax - 1], bl
xor byte [ecx], dl
xor eax, eax
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
mov edi, 1
jmp 0x4380ec
movzx eax, byte [edx]
mov edx, dword [ebp + 0x14]
mov byte [edx], al
jmp 0x4383a5
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
mov edi, dword [esi]
movzx eax, byte [edi]
mov byte [edx], al
jmp 0x4383a5
mov eax, 1
jmp 0x4384ed
mov eax, 0x5f
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret