Function at 0x100120b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x74]
xor ebx, ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ecx]
xor ebp, ebp
cmp eax, 2
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
jl case.0x100120ff.2
cmp eax, 5
jg case.0x100120ff.2
mov ecx, dword [ecx + 4]
lea eax, [ecx - 1]
cmp eax, 4
ja case.0x100120ff.2
jmp dword [eax*4 + 0x10012318]
mov dword [esp + 0x14], 2
jmp 0x1001212c
mov dword [esp + 0x14], 3
jmp 0x1001212c
mov dword [esp + 0x14], 4
jmp 0x1001212c
mov dword [esp + 0x14], 5
mov eax, dword [esp + 0x68]
push 1
lea esi, [eax + 7]
shr esi, 3
mov dword [esp + 0x1c], esi
lea ecx, [esi + esi]
push ecx
call fcn.10032980
mov ebp, eax
add esp, 8
cmp ebp, ebx
jne 0x10012158
mov esi, 0xbffff437
jmp 0x100122ce
mov edi, dword [esp + 0x64]
cmp byte [esi + edi - 1], 0xbc
je 0x1001216d
mov esi, 0xfffff436
jmp 0x100122ce
mov ebx, dword [esp + 0x70]
mov ecx, dword [esp + 0x68]
mov eax, esi
sub eax, ebx
lea ebx, [esi*8]
dec eax
sub ebx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x64], ebx
lea edx, [eax + edi]
mov dword [esp + 0x1c], edx
je 0x100121aa
mov cl, 8
sub cl, bl
mov bl, byte [edi]
shr bl, cl
test bl, bl
je 0x100121aa
mov esi, 0xfffff436
jmp 0x100122ce
mov ecx, dword [esp + 0x14]
lea ebx, [esi + ebp]
push ecx
mov ecx, dword [esp + 0x74]
push ecx
push edx
push eax
push ebx
call fcn.100113e0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x100122ce
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x100121fc
mov esi, ebx
mov edx, ebp
sub esi, edi
mov ecx, edi
sub edx, edi
mov al, byte [esi + ecx]
mov edi, dword [esp + 0x68]
xor al, byte [ecx]
inc edi
mov dword [esp + 0x68], edi
mov byte [edx + ecx], al
mov eax, dword [esp + 0x10]
inc ecx
cmp edi, eax
jb 0x100121e2
mov edx, dword [esp + 0x64]
test edx, edx
je 0x10012214
mov al, byte [ebp]
mov cl, dl
shl al, cl
shr al, cl
mov byte [ebp], al
mov eax, dword [esp + 0x10]
xor edx, edx
test eax, eax
jbe 0x10012225
cmp byte [edx + ebp], 0
jne 0x10012225
inc edx
cmp edx, eax
jb 0x1001221a
cmp edx, eax
je 0x100121a0
mov cl, byte [edx + ebp]
inc edx
cmp cl, 1
jne 0x100121a0
sub eax, edx
mov ecx, ebx
mov dword [esp + 0x68], eax
xor eax, eax
mov dword [ecx], eax
mov esi, dword [esp + 0x6c]
lea edi, [ebx + 8]
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0x70]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x68]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [edx + ebp]
mov edx, dword [esp + 0x70]
mov ecx, eax
lea edi, [edx + ebx + 8]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x70]
push edx
lea edx, [ecx + eax + 8]
lea eax, [esp + 0x14]
push edx
push ebx
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.1000dd80
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x100122ce
mov ecx, dword [esp + 0x70]
mov esi, dword [esp + 0x1c]
lea edi, [esp + 0x20]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
mov eax, edx
sete al
dec eax
and eax, 0xfffff436
mov esi, eax
jmp 0x100122ce
mov esi, 0xfffff438
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov cl, byte [esp + 0x20]
mov byte [esp + 0x20], cl
test ebp, ebp
je 0x1001230d
mov edx, dword [esp + 0x18]
mov edi, ebp
lea ecx, [edx + edx]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov al, byte [ebp]
mov byte [ebp], al
push ebp
call fcn.10032abd
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret