Function at 0xdd9b10
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, 0x15ac
call fcn.00dda520
mov ebx, edx
mov edi, ecx
mov esi, dword [esp + 0x15c0]
lea eax, [esp + 0x28]
push 0x84
push 0
push eax
call fcn.00dda710
add esp, 0xc
cmp dword [esp + 0x15c8], 0
mov dword [esp + 0x14], ebx
je 0xdd9bdc
test esi, esi
mov ecx, esi
mov ebx, dword [esp + 0x15c4]
jle 0xdda30a
xor eax, eax
cmp ecx, 1
je 0xdd9ba8
mov ecx, dword [esp + 0x15c0]
and ecx, 0x7ffffffe
mov eax, dword [esp + 0x14]
lea eax, [eax + eax*8]
shl eax, 5
lea edx, [eax + edi]
add edx, 0x8f13
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [edx + eax - 1]
inc dword [esp + esi*4 + 0x28]
movzx esi, byte [edx + eax]
inc dword [esp + esi*4 + 0x28]
add eax, 2
cmp ecx, eax
jne 0xdd9b90
mov ecx, dword [esp + 0x15c0]
test cl, 1
je 0xdda30a
mov ecx, dword [esp + 0x14]
lea ecx, [ecx + ecx*8]
shl ecx, 5
add ecx, edi
movzx eax, byte [eax + ecx + 0x8f12]
mov ecx, dword [esp + 0x15c0]
inc dword [esp + eax*4 + 0x28]
jmp 0xdda30a
lea eax, [ebx + ebx*8]
mov dword [esp + 0x1c], eax
mov ebp, eax
shl ebp, 6
test esi, esi
mov dword [esp + 0x10], edi
jle 0xdd9cd9
cmp esi, 1
jne 0xdd9ed5
xor eax, eax
xor ebx, ebx
mov ecx, dword [esp + 0x15c0]
test cl, 1
je 0xdd9c30
lea ecx, [edi + ebp]
add ecx, 0x8192
movzx ecx, word [ecx + eax*2]
test cx, cx
je 0xdd9c30
mov word [esp + ebx*4 + 0xac], cx
mov word [esp + ebx*4 + 0xae], ax
inc ebx
lea eax, [esp + 0x52c]
push 0x800
push 0
push eax
call fcn.00dda710
add esp, 0xc
test ebx, ebx
sete byte [esp + 0xc]
je 0xdd9cf0
xor eax, eax
cmp ebx, 1
je 0xdd9caf
mov ecx, ebx
and ecx, 0xfffffffe
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, word [esp + eax*4 + 0xac]
movzx esi, dl
inc dword [esp + esi*4 + 0x52c]
shr edx, 8
inc dword [esp + edx*4 + 0x92c]
movzx edx, word [esp + eax*4 + 0xb0]
movzx esi, dl
inc dword [esp + esi*4 + 0x52c]
shr edx, 8
inc dword [esp + edx*4 + 0x92c]
add eax, 2
cmp ecx, eax
jne 0xdd9c70
test bl, 1
je 0xdd9cd0
movzx eax, word [esp + eax*4 + 0xac]
movzx ecx, al
inc dword [esp + ecx*4 + 0x52c]
shr eax, 8
inc dword [esp + eax*4 + 0x92c]
mov eax, dword [esp + 0x92c]
jmp 0xdd9cf9
lea eax, [esp + 0x52c]
push 0x800
push 0
push eax
call fcn.00dda710
add esp, 0xc
xor ebx, ebx
mov byte [esp + 0xc], 1
xor eax, eax
mov dword [esp + 0x20], ebp
xor ecx, ecx
cmp eax, ebx
setne cl
inc ecx
mov dword [esp + 0x24], ecx
lea eax, [ebx - 1]
mov dword [esp + 0x18], eax
mov dword [esp], ebx
mov edx, ebx
and edx, 0xfffffffe
lea edi, [esp + 0xac]
lea eax, [esp + 0x112c]
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 8], edx
jmp 0xdd9d44
mov ebx, dword [esp + 4]
inc ebx
add ecx, 8
mov eax, esi
cmp ebx, dword [esp + 0x24]
je 0xdd9e1a
mov esi, edi
mov edi, eax
mov dword [esp + 4], ebx
mov eax, ebx
shl eax, 0xa
add eax, esp
add eax, 0x52c
xor ebx, ebx
xor ebp, ebp
nop
nop
nop
nop
mov dword [esp + ebp*4 + 0xd2c], ebx
add ebx, dword [eax + ebp*4]
mov edx, ebp
and edx, 1
xor ebp, 1
lea ebp, [ebp + edx*2]
cmp ebp, 0x100
jb 0xdd9d60
cmp byte [esp + 0xc], 0
jne 0xdd9d30
cmp dword [esp + 0x18], 0
je 0xdd9de9
xor eax, eax
nop
nop
movzx edx, word [esi + eax*4]
shr edx, cl
movzx edx, dl
mov ebx, dword [esp + edx*4 + 0xd2c]
lea ebp, [ebx + 1]
mov dword [esp + edx*4 + 0xd2c], ebp
mov edx, dword [esi + eax*4]
mov dword [edi + ebx*4], edx
movzx edx, word [esi + eax*4 + 4]
shr edx, cl
movzx edx, dl
mov ebx, dword [esp + edx*4 + 0xd2c]
lea ebp, [ebx + 1]
mov dword [esp + edx*4 + 0xd2c], ebp
mov edx, dword [esi + eax*4 + 4]
mov dword [edi + ebx*4], edx
mov edx, dword [esp + 8]
add eax, 2
cmp edx, eax
jne 0xdd9d90
test byte [esp], 1
je 0xdd9d30
jmp 0xdd9df5
xor eax, eax
test byte [esp], 1
je 0xdd9d30
movzx edx, word [esi + eax*4]
shr edx, cl
movzx edx, dl
mov ebx, dword [esp + edx*4 + 0xd2c]
lea ebp, [ebx + 1]
mov dword [esp + edx*4 + 0xd2c], ebp
mov eax, dword [esi + eax*4]
mov dword [edi + ebx*4], eax
jmp 0xdd9d30
cmp dword [esp], 0
mov ebx, dword [esp + 0x15c4]
mov ebp, dword [esp + 0x1c]
je 0xdda1f3
mov ecx, dword [esp]
cmp ecx, 1
jne 0xdd9e41
mov word [edi], 1
jmp 0xdda0c0
movzx eax, word [edi + 4]
add word [edi], ax
cmp ecx, 3
mov ebx, ecx
jl 0xdd9f35
mov eax, 2
mov ecx, 2
sub ecx, ebx
xor edx, edx
mov esi, 1
jmp 0xdd9e86
inc eax
add word [edi + esi*4], bx
lea ebx, [ecx + esi]
inc ebx
inc esi
cmp ebx, 1
mov ebx, dword [esp]
je 0xdd9f44
cmp eax, ebx
jge 0xdd9eb0
movzx ebp, word [edi + eax*4]
movzx ebx, word [edi + edx*4]
cmp bx, bp
jb 0xdd9eb4
mov word [edi + esi*4], bp
inc eax
cmp eax, dword [esp]
jl 0xdd9ec2
movzx ebp, word [edi + edx*4]
add word [edi + esi*4], bp
mov word [edi + edx*4], si
inc edx
jmp 0xdd9e75
movzx ebx, word [edi + edx*4]
mov word [edi + esi*4], bx
mov word [edi + edx*4], si
inc edx
cmp eax, dword [esp]
jge 0xdd9ea1
movzx ebx, word [edi + eax*4]
cmp edx, esi
jge 0xdd9e70
movzx ebp, word [edi + edx*4]
cmp bp, bx
jae 0xdd9e70
jmp 0xdd9ea5
mov ecx, esi
and ecx, 0x7ffffffe
lea edx, [edi + ebp]
add edx, 0x8194
xor eax, eax
xor ebx, ebx
jmp 0xdd9efb
add eax, 2
cmp ecx, eax
je 0xdd9c01
movzx esi, word [edx + eax*2 - 2]
test si, si
je 0xdd9f16
mov word [esp + ebx*4 + 0xac], si
mov word [esp + ebx*4 + 0xae], ax
inc ebx
movzx esi, word [edx + eax*2]
test si, si
je 0xdd9ef0
mov word [esp + ebx*4 + 0xac], si
lea esi, [eax + 1]
mov word [esp + ebx*4 + 0xae], si
inc ebx
jmp 0xdd9ef0
lea ecx, [ebx - 2]
mov word [edi + ebx*4 - 8], 0
jmp 0xdd9fc1
mov word [edi + ebx*4 - 8], 0
lea edx, [ebx - 3]
mov ecx, ebx
and ecx, 3
xor ecx, 2
mov eax, edx
je 0xdd9f71
mov eax, edx
nop
nop
nop
nop
movzx esi, word [edi + eax*4]
movzx esi, word [edi + esi*4]
inc esi
mov word [edi + eax*4], si
dec eax
dec ecx
jne 0xdd9f60
lea ecx, [ebx - 2]
cmp edx, 3
jb 0xdd9fc1
inc eax
nop
nop
nop
nop
nop
nop
movzx edx, word [edi + eax*4 - 4]
movzx edx, word [edi + edx*4]
inc edx
mov word [edi + eax*4 - 4], dx
movzx edx, word [edi + eax*4 - 8]
movzx edx, word [edi + edx*4]
inc edx
mov word [edi + eax*4 - 8], dx
movzx edx, word [edi + eax*4 - 0xc]
movzx edx, word [edi + edx*4]
inc edx
mov word [edi + eax*4 - 0xc], dx
movzx edx, word [edi + eax*4 - 0x10]
movzx edx, word [edi + edx*4]
inc edx
mov word [edi + eax*4 - 0x10], dx
add eax, 0xfffffffc
jne 0xdd9f80
mov eax, 1
xor edx, edx
mov esi, dword [esp + 0x18]
jmp 0xdd9ffa
mov eax, ebx
and eax, 2
mov ebp, ebx
or ebp, 2
imul ebp, eax
xor eax, 2
and ebx, 0xfffffffd
imul ebx, eax
add ebp, ebx
inc edx
mov eax, ebp
test ebp, ebp
mov ebx, dword [esp + 0x15c4]
jle 0xdda0b2
test ecx, ecx
mov dword [esp + 4], eax
js 0xdda030
lea ebx, [ecx + 1]
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, word [edi + ecx*4]
cmp edx, eax
jne 0xdda040
dec ecx
inc ebp
cmp ebx, ebp
jne 0xdda010
mov ecx, 0xffffffff
jmp 0xdda042
xor ebx, ebx
jmp 0xdda046
mov ebx, ebp
mov eax, dword [esp + 4]
mov ebp, eax
sub ebp, ebx
jle 0xdd9fd0
and ebp, 3
je 0xdda079
mov dword [esp + 0xc], ebx
lea eax, [edi + esi*4]
xor ebx, ebx
nop
nop
nop
nop
nop
nop
mov word [eax], dx
inc ebx
add eax, 0xfffffffc
cmp ebp, ebx
jne 0xdda060
mov ebp, dword [esp + 4]
sub ebp, ebx
sub esi, ebx
mov ebx, dword [esp + 0xc]
jmp 0xdda07b
mov ebp, eax
mov eax, ebx
sub eax, dword [esp + 4]
cmp eax, 0xfffffffc
ja 0xdd9fd0
nop
nop
nop
nop
nop
nop
mov word [edi + esi*4], dx
mov word [edi + esi*4 - 4], dx
mov word [edi + esi*4 - 8], dx
mov word [edi + esi*4 - 0xc], dx
add esi, 0xfffffffc
add ebp, 0xfffffffc
cmp ebp, ebx
jg 0xdda090
jmp 0xdd9fd0
cmp dword [esp], 0
mov ebp, dword [esp + 0x1c]
jle 0xdda1f3
cmp dword [esp + 0x18], 0
je 0xdda1d2
xor eax, eax
nop
nop
nop
movzx ecx, word [edi + eax*4]
mov edx, dword [esp + ecx*4 + 0x28]
mov esi, edx
and esi, 1
xor edx, 1
lea edx, [edx + esi*2]
mov dword [esp + ecx*4 + 0x28], edx
movzx ecx, word [edi + eax*4 + 4]
mov edx, dword [esp + ecx*4 + 0x28]
mov esi, edx
and esi, 1
xor edx, 1
lea edx, [edx + esi*2]
mov dword [esp + ecx*4 + 0x28], edx
add eax, 2
cmp dword [esp + 8], eax
jne 0xdda0d0
test byte [esp], 1
je 0xdda125
movzx eax, word [edi + eax*4]
mov ecx, dword [esp + eax*4 + 0x28]
mov edx, ecx
and edx, 1
xor ecx, 1
lea ecx, [ecx + edx*2]
mov dword [esp + eax*4 + 0x28], ecx
cmp dword [esp], 2
jl 0xdda1f3
cmp ebx, 0x20
jge 0xdda19c
mov eax, dword [esp + ebx*4 + 0x28]
mov edx, ebx
neg edx
mov ecx, ebx
and edx, 3
je 0xdda15c
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add eax, dword [esp + ecx*4 + 0x2c]
inc ecx
mov dword [esp + ebx*4 + 0x28], eax
dec edx
jne 0xdda150
lea edx, [ebx - 0x1d]
cmp edx, 3
jb 0xdda198
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add eax, dword [esp + ecx*4 + 0x2c]
mov dword [esp + ebx*4 + 0x28], eax
add eax, dword [esp + ecx*4 + 0x30]
mov dword [esp + ebx*4 + 0x28], eax
add eax, dword [esp + ecx*4 + 0x34]
mov dword [esp + ebx*4 + 0x28], eax
add eax, dword [esp + ecx*4 + 0x38]
add ecx, 4
mov dword [esp + ebx*4 + 0x28], eax
cmp ecx, 0x20
jne 0xdda170
test ebx, ebx
jle 0xdda1e3
lea edx, [ebx + 1]
xor ecx, ecx
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
xor eax, eax
test byte [esp], 1
jne 0xdda10e
jmp 0xdda125
mov edx, 1
mov ecx, ebx
shl edx, cl
xor eax, eax
jmp 0xdda44d