Function at 0x1d2b0c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1c
push ebp
push esi
push edi
push 0
push 0
push 3
push 0
mov esi, 1
push esi
push 0x81
push eax
mov ebp, ecx
call dword [0x1da3afc]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1d2b116
call dword [0x1da3abc]
cmp eax, 2
je 0x1d2b10b
mov eax, dword [ebp + 0x18]
cmp eax, 5
jae 0x1d2b10b
mov dword [ebp + eax*4 + 4], 0xface0201
add dword [ebp + 0x18], esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret 4
push 0
push 0
push 0x40
push edi
call dword [0x1da3d20]
push 0
lea ecx, [esp + 0x30]
push ecx
push 0x10
lea edx, [esp + 0x24]
push edx
push edi
call dword [0x1da3b4c]
test eax, eax
je 0x1d2b3b7
cmp dword [esp + 0x2c], 0x10
jne 0x1d2b3b7
push ebx
lea eax, [esp + 0x18]
push eax
push edi
call dword [0x1da3b58]
mov ebx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
test eax, eax
jl 0x1d2b38d
mov esi, dword [esp + 0x1c]
jg 0x1d2b178
test esi, esi
jb 0x1d2b388
mov edx, dword [esp + 0x24]
xor ecx, ecx
add edx, esi
adc ecx, eax
mov eax, dword [esp + 0x18]
cmp eax, ecx
jb 0x1d2b388
ja 0x1d2b198
cmp ebx, edx
jb 0x1d2b388
mov ebx, dword [0x1da3d20]
push 0
lea ecx, [esp + 0x24]
push ecx
push esi
push edi
call ebx
mov edx, dword [esp + 0x24]
push edx
call fcn.01c60210
mov esi, eax
add esp, 4
test esi, esi
jne 0x1d2b1db
push 0xface0204
mov ecx, ebp
call fcn.01d2af30
push edi
call dword [0x1da3ad4]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret 4
mov ecx, dword [esp + 0x24]
push 0
lea eax, [esp + 0x34]
push eax
push ecx
push esi
push edi
call dword [0x1da3b4c]
test eax, eax
je 0x1d2b360
mov edx, dword [esp + 0x30]
cmp edx, dword [esp + 0x24]
jne 0x1d2b360
cmp byte [esi], 0x74
jne 0x1d2b360
cmp byte [esi + 1], 0x68
jne 0x1d2b360
cmp byte [esi + 2], 0x69
jne 0x1d2b360
cmp byte [esi + 3], 0x6e
jne 0x1d2b360
mov eax, 0xb8
cmp word [esi + 8], ax
jb 0x1d2b360
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esi + 0x74]
jl 0x1d2b360
jg 0x1d2b257
mov edx, dword [esp + 0x14]
cmp edx, dword [esi + 0x70]
jb 0x1d2b360
mov ecx, dword [esi + 0x70]
push 0
lea eax, [esi + 0x74]
push eax
push ecx
push edi
call ebx
mov ebx, dword [esi + 0x78]
test ebx, ebx
jne 0x1d2b293
push 0xface0210
mov ecx, ebp
call fcn.01d2af30
push edi
call dword [0x1da3ad4]
push esi
call fcn.01c60200
add esp, 4
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret 4
push esi
call fcn.01c60200
push ebx
call fcn.01c60210
mov esi, eax
add esp, 8
mov dword [esp + 0x10], esi
test esi, esi
jne 0x1d2b2b6
push 0xface0206
jmp 0x1d2b1c1
push 0
lea edx, [esp + 0x34]
push edx
push ebx
push esi
push edi
call dword [0x1da3b4c]
test eax, eax
je 0x1d2b359
cmp dword [esp + 0x30], ebx
jne 0x1d2b359
push edi
call dword [0x1da3ad4]
lea eax, [ebx - 1]
push eax
call fcn.01c60210
add esp, 4
mov dword [ebp], eax
test eax, eax
jne 0x1d2b313
push esi
call fcn.01c60200
add esp, 4
push 0xface0208
mov ecx, ebp
call fcn.01d2af30
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret 4
mov cl, byte [esi + 1]
lea edx, [esi + 1]
inc edx
mov esi, eax
cmp ebx, 2
jbe 0x1d2b33a
lea edi, [ebx - 2]
mov al, byte [edx]
xor al, cl
mov byte [esi], al
shl cl, 7
and al, 0x7f
or al, cl
inc edx
inc esi
sub edi, 1
mov cl, al
jne 0x1d2b324
mov ecx, dword [esp + 0x10]
push ecx
mov byte [esi], 0
call fcn.01c60200
add esp, 4
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x1c
ret 4
push 0xface0207
jmp 0x1d2b365
push 0xface0205
mov ecx, ebp
call fcn.01d2af30
push esi
call fcn.01c60200
add esp, 4
push edi
call dword [0x1da3ad4]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret 4
mov esi, 1
mov eax, dword [ebp + 0x18]
cmp eax, 5
jae 0x1d2b1c8
mov dword [ebp + eax*4 + 4], 0xface0203
add dword [ebp + 0x18], esi
push edi
call dword [0x1da3ad4]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret 4
mov eax, dword [ebp + 0x18]
cmp eax, 5
jae 0x1d2b3ca
mov dword [ebp + eax*4 + 4], 0xface0202
add dword [ebp + 0x18], esi
push edi
call dword [0x1da3ad4]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret 4