Function at 0x2d21fb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov dword [esp + 0x38], 0
mov word [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0xd2d1d0d7
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
cmp eax, 0x1d
ja 0x2d22058
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0xc]
movzx edx, byte [esp + eax + 0x10]
lea eax, [ecx + edx]
add eax, 0xe7936d23
add ecx, 0xe7936d23
and ecx, edx
add ecx, ecx
sub eax, ecx
add al, 0xb
mov ecx, dword [esp + 0xc]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, 0x1e
jb 0x2d22020
mov eax, dword [esp + 0x10]
mov ecx, dword [0x2d4dd6c]
test ecx, ecx
je 0x2d220a4
xor edx, edx
mov esi, dword [0x2d4dd70]
nop
nop
cmp dword [esi + edx*8], 0x18dc7455
je 0x2d22080
inc edx
cmp ecx, edx
jne 0x2d22070
jmp 0x2d220a4
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x2d220a4
lea eax, [esp + 0x38]
push eax
push 0
push 0
push 5
push 4
push dword [0x2d4dd74]
push ecx
call fcn.02d3c030
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x2d22182
push dword [esp + 0x38]
call fcn.02d39cc0
add esp, 4
mov edi, eax
mov ecx, dword [esp + 0x38]
mov word [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0xd2d1d0d7
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
cmp eax, 0x1d
ja 0x2d22158
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0xc]
movzx esi, byte [esp + eax + 0x10]
lea eax, [edx + esi]
add eax, 0xe7936d23
add edx, 0xe7936d23
and edx, esi
add edx, edx
sub eax, edx
add al, 0xb
mov edx, dword [esp + 0xc]
mov byte [esp + edx + 0x10], al
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, 0x1e
jb 0x2d22120
mov eax, dword [esp + 0x10]
mov edx, dword [0x2d4dd6c]
test edx, edx
je 0x2d221aa
mov ebx, edi
xor esi, esi
mov edi, dword [0x2d4dd70]
cmp dword [edi + esi*8], 0x18dc7455
je 0x2d22189
inc esi
cmp edx, esi
jne 0x2d22170
mov edi, ebx
jmp 0x2d221aa
xor ebx, ebx
jmp 0x2d2248f
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
mov edi, ebx
je 0x2d221aa
push 0
push ecx
push edi
push 5
push 4
push dword [0x2d4dd74]
push edx
call fcn.02d3c030
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x2d22486
mov ecx, dword [edi]
xor eax, eax
mov edx, edi
nop
nop
nop
nop
nop
nop
lea esi, [edx + ecx]
mov ecx, dword [edx + ecx]
add eax, 0x208
add ebx, 0x104
mov edx, esi
test ecx, ecx
jne 0x2d221c0
test ebx, ebx
jns 0x2d221e0
mov eax, 0xffffffff
push eax
call fcn.02d39cc0
add esp, 4
mov ecx, eax
mov edx, dword [edi]
mov eax, edi
mov dword [esp + 0x30], ecx
mov edi, ecx
mov dword [esp + 0x48], eax
jmp 0x2d2220e
mov word [edi], 0xa
add edi, 2
mov edx, dword [eax]
test edx, edx
je 0x2d22233
mov ecx, dword [eax + edx + 0x3c]
add eax, edx
movzx edx, word [ecx]
test dx, dx
je 0x2d22200
add ecx, 2
nop
mov word [edi], dx
add edi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x2d22220
jmp 0x2d22200
mov eax, dword [esp + 0x30]
cmp edi, eax
je 0x2d22385
mov word [edi], 0
movzx ecx, word [eax]
test cx, cx
je 0x2d2238c
xor esi, esi
jmp 0x2d22270
add edx, esi
mov esi, edx
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x2d222a1
cmp eax, edi
jae 0x2d222a1
mov edx, esi
movzx ebx, cx
xor ecx, ecx
cmp ebx, 0x800
setb byte [esp + 0x34]
mov esi, 1
cmp ebx, 0x80
jb 0x2d22260
movzx ebx, byte [esp + 0x34]
mov cl, bl
xor ecx, 3
mov esi, ecx
jmp 0x2d22260
lea eax, [esi + 1]
mov dword [esp + 0x44], eax
push eax
call fcn.02d39cc0
add esp, 4
test esi, esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], eax
jle 0x2d223a6
lea ecx, [eax + esi]
mov dword [esp + 0x34], ecx
add dword [esp + 0x44], eax
mov esi, eax
mov edx, dword [esp + 0x30]
jmp 0x2d222f6
mov byte [esi], cl
mov eax, 1
add edx, 2
add esi, eax
cmp esi, dword [esp + 0x34]
jae 0x2d223a8
cmp edx, edi
jae 0x2d223a8
movzx ecx, word [edx]
test cx, cx
je 0x2d223a8
cmp cx, 0x7f
jbe 0x2d222e0
mov eax, esi
not eax
add eax, dword [esp + 0x44]
cmp eax, 2
jb 0x2d22350
movzx ebx, cx
cmp ebx, 0x7ff
ja 0x2d22350
mov eax, ecx
shr eax, 6
xor al, 0xc0
mov byte [esi], al
and cl, 0x3f
or cl, 0x80
mov byte [esi + 1], cl
mov eax, 2
jmp 0x2d222e7
cmp eax, 3
mov eax, 0
jb 0x2d222e7
movzx ebx, cx
mov eax, ebx
shr eax, 0xc
or al, 0xe0
mov byte [esi], al
shr ebx, 6
and bl, 0x3f
or bl, 0x80
mov byte [esi + 1], bl
and cl, 0x3f
or cl, 0x80
mov byte [esi + 2], cl
mov eax, 3
jmp 0x2d222e7
xor ebx, ebx
jmp 0x2d22479
mov dword [esp + 0x40], 0
push 1
call fcn.02d39cc0
add esp, 4
mov esi, eax
mov dword [esp + 0x3c], eax
jmp 0x2d223a8
mov esi, eax
mov byte [esi], 0
mov dword [esp + 0x10], 0x44515b7c
mov dword [esp + 0x14], 0x42515645
mov dword [esp + 0x18], 0x334e9753
mov word [esp + 0x1c], 0xb94c
mov dword [esp + 0x1e], 0
mov dword [esp + 0x22], 0
mov dword [esp + 0x25], 0
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
cmp eax, 0x18
ja 0x2d22454
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0xc]
movzx edx, byte [esp + eax + 0x10]
lea esi, [ecx + 0x448921e6]
mov eax, esi
xor eax, edx
and esi, edx
lea eax, [eax + esi*2]
mov edi, 0xbb76de19
sub edi, ecx
or edi, edx
add edi, ecx
lea edx, [esi + edi]
add edx, 0x448921e7
mov ecx, edx
not ecx
and ecx, eax
add ecx, ecx
xor eax, edx
sub ecx, eax
add cl, 0xb6
mov eax, dword [esp + 0xc]
mov byte [esp + eax + 0x10], cl
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, 0x19
jb 0x2d22400
lea eax, [esp + 0x10]
mov ecx, dword [ebp + 8]
push dword [esp + 0x40]
mov esi, dword [esp + 0x40]
push esi
push eax
call fcn.02d09d30
mov ebx, eax
push esi
call fcn.02d09400
add esp, 4
mov eax, dword [esp + 0x30]
push eax
call fcn.02d09400
add esp, 4
mov edi, dword [esp + 0x48]
push edi
call fcn.02d39d60
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret