Function at 0x436970
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 + 0x10], 0x62656467
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0x1c], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xc
ja 0x4369e9
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x10]
mov edx, 0xee
sub edx, eax
add eax, 0x9c90311
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
add al, 0x89
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xd
jb 0x4369b0
mov esi, dword [esp + 0x10]
mov eax, dword [0x44132c]
test eax, eax
je 0x436a39
xor ecx, ecx
mov edx, dword [0x441330]
nop
nop
cmp dword [edx + ecx*8], 0xffc37dba
je 0x436a10
inc ecx
cmp eax, ecx
jne 0x436a00
jmp 0x436a39
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x436a39
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 2
push dword [ebp + 8]
push 5
push dword [0x441334]
push eax
call fcn.00433920
add esp, 0x20
mov esi, eax
cmp esi, 0xc0000023
jne 0x436c97
push dword [esp + 8]
call fcn.00431ff0
add esp, 4
mov dword [esp + 4], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x10], 0x62656467
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0x1c], 0
mov dword [esp], 0
mov edx, dword [esp]
cmp edx, 0xc
ja 0x436acb
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp]
mov esi, dword [esp]
movzx esi, byte [esp + esi + 0x10]
mov edi, 0xee
sub edi, edx
add edx, 0x9c90311
xor edi, edx
and edi, esi
xor edi, edx
mov dword [esp + 0xc], edi
mov edx, dword [esp + 0xc]
add dl, 0x89
mov esi, dword [esp]
mov byte [esp + esi + 0x10], dl
inc dword [esp]
mov edx, dword [esp]
cmp edx, 0xd
jb 0x436a90
mov esi, dword [esp + 0x10]
mov edx, dword [0x44132c]
test edx, edx
je 0x436b2b
xor ebx, ebx
mov edi, dword [0x441330]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + ebx*8], 0xffc37dba
je 0x436b00
inc ebx
cmp edx, ebx
jne 0x436af0
jmp 0x436b2b
mov edx, dword [edi + ebx*8 + 4]
cmp edx, esi
je 0x436b2b
lea esi, [esp + 8]
push esi
push ecx
mov eax, dword [esp + 0xc]
push eax
push 2
push dword [ebp + 8]
push 5
push dword [0x441334]
push edx
call fcn.00433920
add esp, 0x20
mov esi, eax
test esi, esi
js 0x436c8b
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x436c28
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x436c1d
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x10]
shr ecx, 1
mov eax, dword [edx]
cmp eax, ecx
jb 0x436b5d
mov eax, ecx
test eax, eax
je 0x436c15
mov ebx, dword [esp + 4]
add ebx, 0x2c
mov ecx, eax
and eax, 3
je 0x436baf
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], esi
xor edx, edx
nop
nop
nop
movzx esi, word [ebx]
xor ecx, ecx
test si, si
setne cl
lea ebx, [ebx + ecx*2]
mov word [edi], si
add edi, 2
inc edx
cmp eax, edx
jne 0x436b80
mov eax, dword [esp + 0x24]
mov ecx, eax
sub ecx, edx
mov esi, dword [esp + 0x28]
mov edx, dword [ebp + 0x10]
cmp eax, 4
jae 0x436bc0
jmp 0x436c15
mov eax, ecx
cmp eax, 4
jb 0x436c15
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 0x436bc0
mov edx, dword [ebp + 0x10]
mov word [edi], 0
mov ecx, dword [ebp + 0x14]
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x10]
shr eax, 1
mov dword [edx], eax
mov edx, dword [ebp + 0x18]
test ecx, ecx
je 0x436c38
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x14]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x1c]
test edx, edx
je 0x436c4a
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x18]
shr eax, 1
mov dword [edx], eax
mov edx, dword [ebp + 0x20]
test ecx, ecx
je 0x436c5c
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x1c]
shr eax, 1
mov dword [ecx], eax
mov ecx, dword [ebp + 0x24]
test edx, edx
je 0x436c6c
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x20]
mov dword [edx], eax
mov edx, dword [ebp + 0x28]
test ecx, ecx
je 0x436c7e
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x24]
shr eax, 1
mov dword [ecx], eax
test edx, edx
je 0x436c8b
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x28]
mov dword [edx], eax
push dword [esp + 4]
call fcn.00432090
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret