Function at 0x435880
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov dword [esp + 0x18], 0xea959497
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xf
ja 0x4358f9
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x18]
mov edx, 0x42
sub edx, eax
add eax, 0xc80c9cbd
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
add al, 0xd5
mov ecx, dword [esp]
mov byte [esp + ecx + 0x18], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x10
jb 0x4358c0
mov ebx, dword [ebp + 0xc]
mov esi, dword [esp + 0x18]
mov eax, dword [0x43f060]
test eax, eax
je 0x43595a
xor ecx, ecx
mov edx, dword [0x43f064]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xacfd81c1
je 0x435930
inc ecx
cmp eax, ecx
jne 0x435920
jmp 0x43595a
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x43595a
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 1
push ebx
push dword [ebp + 8]
push 6
push dword [0x43f068]
push eax
call fcn.00432610
add esp, 0x24
mov esi, eax
cmp esi, 0xc0000023
jne 0x435bc5
push dword [esp + 0x10]
call fcn.00430d60
add esp, 4
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], 0xea959497
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xf
ja 0x4359e9
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x18]
mov esi, 0x42
sub esi, eax
add eax, 0xc80c9cbd
xor esi, eax
and esi, edx
xor esi, eax
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x14]
add al, 0xd5
mov edx, dword [esp]
mov byte [esp + edx + 0x18], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x10
jb 0x4359b0
mov esi, dword [esp + 0x18]
mov eax, dword [0x43f060]
test eax, eax
je 0x435a3c
xor edx, edx
mov edi, dword [0x43f064]
nop
nop
cmp dword [edi + edx*8], 0xacfd81c1
je 0x435a10
inc edx
cmp eax, edx
jne 0x435a00
jmp 0x435a3c
mov eax, dword [edi + edx*8 + 4]
cmp eax, esi
je 0x435a3c
lea edx, [esp + 0x10]
push edx
push ecx
mov ecx, dword [esp + 0xc]
push ecx
push 1
push ebx
push dword [ebp + 8]
push 6
push dword [0x43f068]
push eax
call fcn.00432610
add esp, 0x24
mov esi, eax
test esi, esi
js 0x435bb9
mov edx, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x435b38
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x435b2d
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x10]
shr ecx, 1
mov eax, dword [ebx]
cmp eax, ecx
jb 0x435a6e
mov eax, ecx
test eax, eax
je 0x435b25
mov dword [esp + 0xc], esi
mov ebx, dword [esp + 4]
add ebx, 0x14
mov esi, eax
and esi, 3
je 0x435ab6
mov dword [esp + 8], eax
xor edx, edx
nop
nop
movzx eax, word [ebx]
xor ecx, ecx
test ax, ax
setne cl
lea ebx, [ebx + ecx*2]
mov word [edi], ax
add edi, 2
inc edx
cmp esi, edx
jne 0x435a90
mov eax, dword [esp + 8]
mov ecx, eax
sub ecx, edx
mov edx, dword [ebp + 0x18]
jmp 0x435ab8
mov ecx, eax
cmp eax, 4
mov esi, dword [esp + 0xc]
jb 0x435b25
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, word [ebx]
xor edx, edx
test ax, ax
setne dl
mov word [edi], ax
lea eax, [ebx + edx*2]
movzx edx, word [ebx + edx*2]
xor ebx, ebx
test dx, dx
setne bl
mov word [edi + 2], dx
lea edx, [eax + ebx*2]
movzx eax, word [eax + ebx*2]
xor ebx, ebx
test ax, ax
setne bl
mov word [edi + 4], ax
lea eax, [edx + ebx*2]
movzx edx, word [edx + ebx*2]
xor ebx, ebx
test dx, dx
setne bl
lea ebx, [eax + ebx*2]
mov word [edi + 6], dx
add edi, 8
add ecx, 0xfffffffc
jne 0x435ad0
mov edx, dword [ebp + 0x18]
mov word [edi], 0
mov ebx, dword [ebp + 0x14]
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x10]
shr eax, 1
mov dword [ebx], eax
mov edi, dword [ebp + 0x20]
test edx, edx
je 0x435b48
mov eax, dword [esp + 4]
mov eax, dword [eax + 4]
mov dword [edx], eax
test edi, edi
je 0x435bb9
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x435bb0
mov dword [esp + 0xc], esi
mov eax, dword [edi]
mov esi, dword [esp + 4]
mov ecx, dword [esi + 0xc]
mov edi, dword [esi + 8]
add edi, esi
cmp eax, ecx
jb 0x435b6b
mov eax, ecx
mov ecx, eax
shr ecx, 2
mov esi, edi
mov dword [esp + 8], edi
mov edi, edx
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov ebx, eax
and ebx, 0xfffffffc
add edx, ebx
add ebx, dword [esp + 8]
mov ecx, eax
shr ecx, 1
and ecx, 1
mov esi, ebx
mov edi, edx
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
test al, 1
mov esi, dword [esp + 0xc]
mov edi, dword [ebp + 0x20]
je 0x435bb0
and eax, 2
movzx ecx, byte [ebx + eax]
mov byte [edx + eax], cl
mov eax, dword [esp + 4]
mov eax, dword [eax + 0xc]
mov dword [edi], eax
push dword [esp + 4]
call fcn.00430e10
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret