Function at 0x435bd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ecx], 0
lea ecx, [ecx + 2]
jne 0x435bf0
add ecx, 0xfffffffe
and ecx, 0xfffe
mov word [esp + 0x20], cx
add ecx, 2
mov word [esp + 0x22], cx
mov dword [esp + 0x24], eax
mov dword [esp + 8], 0xea959497
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xf
ja 0x435c89
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
mov edx, 0x42
sub edx, eax
add eax, 0xc80c9cbd
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 4], edx
mov eax, dword [esp + 4]
add al, 0xd5
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x10
jb 0x435c50
mov ebx, dword [esp + 8]
mov eax, dword [0x43f060]
test eax, eax
je 0x435cde
xor ecx, ecx
mov edx, dword [0x43f064]
nop
nop
cmp dword [edx + ecx*8], 0xd07a397f
je 0x435cb0
inc ecx
cmp eax, ecx
jne 0x435ca0
jmp 0x435cde
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x435cde
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
push 0
push 0
push 2
push edx
push dword [ebp + 8]
push 6
push dword [0x43f068]
push eax
call fcn.00432610
add esp, 0x24
mov ebx, eax
mov dword [esp + 8], 0x2bd4d5f3
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xf
ja 0x435d49
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
mov edx, 0xa2
sub edx, eax
add eax, 0x7e53205d
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 4], edx
mov eax, dword [esp + 4]
add al, 0x75
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x10
jb 0x435d10
cmp ebx, dword [esp + 8]
jne 0x435ec6
push dword [esp + 0x1c]
call fcn.00430d60
add esp, 4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], 0xea959497
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0xf
ja 0x435ddb
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 8]
mov edi, 0x42
sub edi, ecx
add ecx, 0xc80c9cbd
xor edi, ecx
and edi, edx
xor edi, ecx
mov dword [esp + 4], edi
mov ecx, dword [esp + 4]
add cl, 0xd5
mov edx, dword [esp]
mov byte [esp + edx + 8], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x10
jb 0x435da0
mov ebx, dword [esp + 8]
mov ecx, dword [0x43f060]
test ecx, ecx
je 0x435e3f
xor edx, edx
mov edi, dword [0x43f064]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0xd07a397f
je 0x435e10
inc edx
cmp ecx, edx
jne 0x435e00
jmp 0x435e3f
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, ebx
je 0x435e3f
lea edx, [esp + 0x1c]
lea edi, [esp + 0x20]
push edx
push eax
push dword [esp + 0x20]
push 2
push edi
push dword [ebp + 8]
push 6
push dword [0x43f068]
push ecx
call fcn.00432610
add esp, 0x24
mov ebx, eax
test ebx, ebx
mov edx, dword [ebp + 0x18]
mov edi, dword [esp + 0x18]
js 0x435ebd
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x435e56
mov eax, dword [edi + 4]
mov dword [ecx], eax
test edx, edx
je 0x435ebd
mov eax, esi
test esi, esi
je 0x435eb8
mov eax, dword [edx]
mov ecx, dword [edi + 8]
cmp eax, ecx
jb 0x435e6b
mov eax, ecx
lea edx, [edi + 0xc]
mov ecx, eax
shr ecx, 2
mov edi, esi
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov ecx, eax
and ecx, 0xfffffffc
add esi, ecx
mov edx, dword [esp + 0x18]
add edx, ecx
add edx, 0xc
mov ecx, eax
shr ecx, 1
and ecx, 1
mov dword [esp + 0x28], edx
mov edi, esi
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov edi, dword [esp + 0x18]
test al, 1
mov edx, dword [ebp + 0x18]
je 0x435eb8
and eax, 2
mov ecx, dword [esp + 0x28]
movzx ecx, byte [ecx + eax]
mov byte [esi + eax], cl
mov eax, dword [edi + 8]
mov dword [edx], eax
push edi
call fcn.00430e10
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret