Function at 0x90d580
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 [0x98229c]
mov edi, eax
cmp edi, 0xffffffff
jne 0x90d5d6
call dword [0x982264]
cmp eax, 2
je 0x90d5cb
mov eax, dword [ebp + 0x18]
cmp eax, 5
jae 0x90d5cb
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 [0x9824a8]
push 0
lea ecx, [esp + 0x30]
push ecx
push 0x10
lea edx, [esp + 0x24]
push edx
push edi
call dword [0x9822f0]
test eax, eax
je 0x90d877
cmp dword [esp + 0x2c], 0x10
jne 0x90d877
push ebx
lea eax, [esp + 0x18]
push eax
push edi
call dword [0x9822fc]
mov ebx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
test eax, eax
jl 0x90d84d
mov esi, dword [esp + 0x1c]
jg 0x90d638
test esi, esi
jb 0x90d848
mov edx, dword [esp + 0x24]
xor ecx, ecx
add edx, esi
adc ecx, eax
mov eax, dword [esp + 0x18]
cmp eax, ecx
jb 0x90d848
ja 0x90d658
cmp ebx, edx
jb 0x90d848
mov ebx, dword [0x9824a8]
push 0
lea ecx, [esp + 0x24]
push ecx
push esi
push edi
call ebx
mov edx, dword [esp + 0x24]
push edx
call fcn.0084dd30
mov esi, eax
add esp, 4
test esi, esi
jne 0x90d69b
push 0xface0204
mov ecx, ebp
call fcn.0090d3f0
push edi
call dword [0x982278]
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 [0x9822f0]
test eax, eax
je 0x90d820
mov edx, dword [esp + 0x30]
cmp edx, dword [esp + 0x24]
jne 0x90d820
cmp byte [esi], 0x74
jne 0x90d820
cmp byte [esi + 1], 0x68
jne 0x90d820
cmp byte [esi + 2], 0x69
jne 0x90d820
cmp byte [esi + 3], 0x6e
jne 0x90d820
mov eax, 0xb8
cmp word [esi + 8], ax
jb 0x90d820
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esi + 0x74]
jl 0x90d820
jg 0x90d717
mov edx, dword [esp + 0x14]
cmp edx, dword [esi + 0x70]
jb 0x90d820
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 0x90d753
push 0xface0210
mov ecx, ebp
call fcn.0090d3f0
push edi
call dword [0x982278]
push esi
call fcn.0084dd20
add esp, 4
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret 4
push esi
call fcn.0084dd20
push ebx
call fcn.0084dd30
mov esi, eax
add esp, 8
mov dword [esp + 0x10], esi
test esi, esi
jne 0x90d776
push 0xface0206
jmp 0x90d681
push 0
lea edx, [esp + 0x34]
push edx
push ebx
push esi
push edi
call dword [0x9822f0]
test eax, eax
je 0x90d819
cmp dword [esp + 0x30], ebx
jne 0x90d819
push edi
call dword [0x982278]
lea eax, [ebx - 1]
push eax
call fcn.0084dd30
add esp, 4
mov dword [ebp], eax
test eax, eax
jne 0x90d7d3
push esi
call fcn.0084dd20
add esp, 4
push 0xface0208
mov ecx, ebp
call fcn.0090d3f0
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 0x90d7fa
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 0x90d7e4
mov ecx, dword [esp + 0x10]
push ecx
mov byte [esi], 0
call fcn.0084dd20
add esp, 4
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x1c
ret 4
push 0xface0207
jmp 0x90d825
push 0xface0205
mov ecx, ebp
call fcn.0090d3f0
push esi
call fcn.0084dd20
add esp, 4
push edi
call dword [0x982278]
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 0x90d688
mov dword [ebp + eax*4 + 4], 0xface0203
add dword [ebp + 0x18], esi
push edi
call dword [0x982278]
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 0x90d88a
mov dword [ebp + eax*4 + 4], 0xface0202
add dword [ebp + 0x18], esi
push edi
call dword [0x982278]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret 4