Function at 0x439330
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 0x4396ce
mov eax, dword [ebp + 0x10]
test byte [eax + 0x17d], 0x20
je 0x43943c
mov eax, dword [ebp + 8]
cmp ebx, 1
mov edx, dword [eax]
je 0x439841
mov eax, ebx
shr eax, 0x1f
add eax, ebx
sar eax, 1
test eax, eax
jle 0x4396bf
mov ecx, eax
shr ecx, 0x1f
add ecx, eax
sar ecx, 1
mov dword [ebp - 0x20], ecx
test ecx, ecx
jbe 0x439837
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], edx
lea edi, [ecx + ebx]
mov dword [ebp - 0x1c], edi
lea ecx, [ebx + edx]
mov eax, esi
lea esi, [esi]
mov edx, dword [ebp - 0x18]
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 - 0x1c]
movzx ebx, byte [eax + ecx - 1]
xor ebx, edi
mov byte [eax + edx - 1], bl
mov ebx, dword [ebp - 0x18]
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 - 0x1c]
mov byte [eax + edi - 2], dl
add eax, 0xfffffffe
cmp esi, dword [ebp - 0x20]
jb 0x4393b0
mov eax, dword [ebp - 0x24]
lea edi, [esi + esi + 1]
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp + 0xc]
lea ecx, [edi - 1]
cmp eax, ecx
jbe 0x4396bf
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 0x4396bf
cmp ebx, 1
je 0x43984e
cmp ebx, 2
je 0x439638
cmp ebx, 4
jne 0x4394e3
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, eax
and edx, 3
jne 0x439467
mov esi, dword [eax]
jmp 0x43948b
and eax, 0xfffffffc
test edx, edx
je 0x43947e
lea ecx, [edx*8]
neg ecx
mov esi, dword [eax + 4]
shl esi, cl
jmp 0x439480
xor esi, esi
shl edx, 3
mov ecx, edx
mov eax, dword [eax]
shr eax, cl
or esi, eax
mov edi, dword [ebp + 0x14]
and edi, 3
jne 0x43949d
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
jmp 0x4396bf
mov eax, 0xffffffff
lea edx, [edi*8]
mov ecx, edx
mov ebx, dword [ebp + 0x14]
shl eax, cl
and ebx, 0xfffffffc
test edi, edi
je 0x4394d2
shl edi, 3
neg edi
mov ecx, dword [ebx + 4]
and ecx, eax
mov dword [ebp - 0x24], ecx
mov ecx, edi
mov edi, esi
shr edi, cl
mov ecx, dword [ebp - 0x24]
or ecx, edi
mov dword [ebx + 4], ecx
not eax
mov ecx, edx
and eax, dword [ebx]
shl esi, cl
or eax, esi
mov dword [ebx], eax
jmp 0x4396bf
cmp ebx, 8
jne 0x439622
mov eax, dword [ebp + 8]
mov esi, dword [eax]
test esi, 3
jne 0x439500
mov edx, dword [esi]
mov eax, dword [esi + 4]
jmp 0x439566
mov edi, esi
and edi, 0xfffffff8
and esi, 7
je 0x439537
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 0x43952e
mov edx, dword [ebp - 0x24]
shld eax, edx, cl
shl edx, cl
jmp 0x43953b
mov eax, dword [ebp - 0x24]
xor edx, edx
shl eax, cl
jmp 0x43953b
xor edx, edx
xor eax, eax
shl esi, 3
mov ebx, dword [edi]
cmp esi, 0x1f
mov edi, dword [edi + 4]
ja 0x439554
mov ecx, esi
shrd ebx, edi, cl
shr edi, cl
mov dword [ebp - 0x24], edi
jmp 0x439561
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 0x439579
mov ecx, dword [ebp + 0x14]
mov dword [ecx], edx
mov dword [ecx + 4], eax
jmp 0x4396bf
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 0x4395f1
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 0x4395cc
mov ecx, edi
mov ebx, edx
shrd ebx, eax, cl
mov dword [ebp - 0x20], ebx
mov ebx, eax
shr ebx, cl
mov dword [ebp - 0x24], ebx
jmp 0x4395dc
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 0x43960a
mov ebx, edx
mov ecx, dword [ebp - 0x14]
shld eax, edx, cl
shl ebx, cl
jmp 0x439613
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 0x4396bf
mov eax, dword [ebp + 8]
push ebx
push dword [eax]
push dword [ebp + 0x14]
call fcn.004cd9d0
add esp, 0xc
jmp 0x4396bf
mov eax, dword [ebp + 8]
mov ebx, dword [eax]
mov eax, ebx
and eax, 0xfffffffe
and ebx, 1
je 0x43965b
lea ecx, [ebx*8]
neg ecx
add ecx, 0x10
movzx edx, word [eax + 2]
shl edx, cl
jmp 0x43965d
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 0x4396af
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 0x4396ea
lea eax, [ecx - 0x32]
cmp eax, 2
jbe 0x4396ea
lea eax, [ecx - 0x28]
cmp eax, 8
ja 0x439828
mov eax, dword [ebp + 0x10]
mov edx, dword [ecx*4 + 0x4ec2dc]
cmp edx, 0xffffffff
movsx esi, byte [eax + 0x16a]
je 0x439867
mov edi, esi
lea ecx, [esi*4]
shl edi, 5
sub edi, ecx
mov eax, dword [ebp + 8]
mov edx, dword [edi + edx*4 + 0x4ec4a0]
test edx, edx
mov eax, dword [eax]
je 0x439744
push dword [ebp + 0x14]
push 0
push eax
call edx
add esp, 0xc
cmp eax, 1
je 0x43976d
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 0x43976d
mov ecx, dword [ebp + 0x14]
cmp ebx, 8
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
je 0x43976d
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 + 0x17d], 0x20
je 0x439828
test esi, esi
je 0x439795
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp eax, 0x34
je 0x439795
cmp eax, 0x32
jne 0x439828
mov esi, ebx
shr esi, 0x1f
add esi, ebx
sar esi, 1
test esi, esi
jle 0x439828
mov edi, esi
shr edi, 0x1f
add edi, esi
sar edi, 1
test edi, edi
jbe 0x439860
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 0x4397c7
mov esi, dword [ebp - 0x24]
lea eax, [edx + edx + 1]
mov ebx, dword [ebp + 0xc]
lea edx, [eax - 1]
cmp esi, edx
jbe 0x439828
mov esi, dword [ebp + 0x14]
movzx edi, byte [esi + eax - 1]
lea ecx, [ebx + esi]
sub ecx, eax
movzx ebx, byte [ecx]
xor edi, ebx
mov byte [esi + eax - 1], bl
mov edx, edi
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 0x43940c
movzx eax, byte [edx]
mov edx, dword [ebp + 0x14]
mov byte [edx], al
jmp 0x4396bf
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
mov edi, dword [esi]
movzx eax, byte [edi]
mov byte [edx], al
jmp 0x4396bf
mov eax, 1
jmp 0x439807
mov eax, 0x5f
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret