Function at 0x436620
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 + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xc
ja 0x43669e
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
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 + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xd
jb 0x436660
mov esi, dword [esp + 0x10]
mov eax, dword [0x44132c]
test eax, eax
je 0x4366fc
xor ecx, ecx
mov edx, dword [0x441330]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x5fb66e8c
je 0x4366d0
inc ecx
cmp eax, ecx
jne 0x4366c0
jmp 0x4366fc
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x4366fc
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x441334]
push eax
call fcn.00433920
add esp, 0x24
mov esi, eax
mov dword [esp + 0x10], 0xbb787943
mov dword [esp + 0x14], 0
mov byte [esp + 0x18], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 8
ja 0x43676e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x10]
mov edx, 0x10
sub edx, eax
add eax, 0x8255aeef
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
add al, 0x77
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 9
jb 0x436730
cmp esi, dword [esp + 0x10]
jne 0x436965
push dword [esp + 0x20]
call fcn.00431ff0
add esp, 4
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], 0x62656467
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0x1c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xc
ja 0x4367fe
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x10]
mov esi, 0xee
sub esi, eax
add eax, 0x9c90311
xor esi, eax
and esi, edx
xor esi, eax
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0xc]
add al, 0x89
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xd
jb 0x4367c0
mov ebx, dword [ebp + 0x14]
mov esi, dword [esp + 0x10]
mov eax, dword [0x44132c]
test eax, eax
je 0x43685e
xor edx, edx
mov edi, dword [0x441330]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x5fb66e8c
je 0x436830
inc edx
cmp eax, edx
jne 0x436820
jmp 0x43685e
mov eax, dword [edi + edx*8 + 4]
cmp eax, esi
je 0x43685e
lea edx, [esp + 0x20]
push edx
push ecx
mov ecx, dword [esp + 0x10]
push ecx
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x441334]
push eax
call fcn.00433920
add esp, 0x24
mov esi, eax
test ebx, ebx
je 0x436959
test esi, esi
js 0x436959
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43694e
mov eax, dword [esp + 8]
mov edx, dword [eax + 0xc]
shr edx, 1
mov eax, dword [ebx]
cmp eax, edx
jb 0x43688a
mov eax, edx
mov dword [esp + 0x28], esi
test eax, eax
je 0x436945
mov edx, dword [esp + 8]
add edx, 0x10
mov esi, eax
and esi, 3
je 0x4368db
mov dword [esp + 0x24], eax
xor edi, edi
nop
nop
nop
nop
nop
nop
movzx eax, word [edx]
xor ebx, ebx
test ax, ax
setne bl
lea edx, [edx + ebx*2]
mov word [ecx], ax
add ecx, 2
inc edi
cmp esi, edi
jne 0x4368b0
mov eax, dword [esp + 0x24]
mov esi, eax
sub esi, edi
mov ebx, dword [ebp + 0x14]
cmp eax, 4
jae 0x4368f0
jmp 0x436945
mov esi, eax
cmp eax, 4
jb 0x436945
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, word [edx]
xor ebx, ebx
test ax, ax
setne bl
mov word [ecx], ax
lea eax, [edx + ebx*2]
movzx edx, word [edx + ebx*2]
xor ebx, ebx
test dx, dx
setne bl
mov word [ecx + 2], dx
lea edx, [eax + ebx*2]
movzx eax, word [eax + ebx*2]
xor ebx, ebx
test ax, ax
setne bl
mov word [ecx + 4], ax
lea eax, [edx + ebx*2]
movzx edi, word [edx + ebx*2]
xor edx, edx
test di, di
setne dl
lea edx, [eax + edx*2]
mov word [ecx + 6], di
add ecx, 8
add esi, 0xfffffffc
jne 0x4368f0
mov ebx, dword [ebp + 0x14]
mov word [ecx], 0
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 8]
mov eax, dword [eax + 0xc]
shr eax, 1
mov dword [ebx], eax
push dword [esp + 8]
call fcn.00432090
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret