Function at 0x180c4f67
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x1819f008]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [edx]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x10], edx
push edi
lea ecx, [esp + 0x20]
push ecx
mov ecx, edx
call dword [eax + 0x50]
xor ebx, ebx
mov ecx, esi
mov edi, ebx
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
call fcn.180b9322
test al, al
je 0x180c50b0
mov ecx, dword [esp + 0x18]
push esi
push dword [esp + 0x18]
call fcn.180bdb44
mov dword [esp + 0x1c], eax
mov eax, dword [eax + 0x24]
cmp eax, 1
je 0x180c50b0
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push esi
push ebx
call fcn.180b948d
push esi
push ebx
lea ecx, [esp + 0x78]
call fcn.180b948d
mov ecx, esi
call fcn.180e46f7
mov ecx, esi
mov eax, dword [eax + 0x14]
mov dword [esp + 0x14], eax
call fcn.180e46f7
mov ebx, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebx
mov eax, dword [eax + 0x14]
add eax, 0x58
mov dword [esp + 0x1c], eax
mov eax, dword [ebx]
call dword [eax + 0x14]
mov eax, dword [ebx]
lea ecx, [esp + 0x70]
push ecx
mov ecx, ebx
call dword [eax + 0x18]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x70]
push edx
lea edx, [esp + 0x2c]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
test al, al
jne 0x180c5099
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x30]
call fcn.180c4c47
lea edx, [esp + 0x50]
mov ecx, ebx
lea esi, [eax + 2]
call fcn.180c4dc7
add esi, eax
mov ecx, dword [esp + 0x2c]
mov eax, esi
lea edx, [esp + 0x28]
or eax, 1
bsr eax, eax
push edx
imul eax, eax, 9
add eax, 0x49
shr eax, 6
add eax, esi
add edi, eax
mov eax, dword [ecx]
call dword [eax + 0x44]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x70]
push edx
lea edx, [esp + 0x2c]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x180c5040
lea ecx, [esp + 0x70]
call fcn.180b9583
lea ecx, [esp + 0x28]
call fcn.180b9583
jmp case.default.0x180c5104
cmp dword [esi + 0x20], 3
mov dword [esp + 0x10], ebx
jne 0x180c50ce
mov ecx, dword [esp + 0x18]
push esi
push dword [esp + 0x18]
call fcn.180baa65
mov dword [esp + 0x10], eax
jmp 0x180c50f3
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x10]
cmp byte [eax + 0x2f], bl
jne 0x180c50eb
mov ecx, dword [esp + 0x18]
push esi
push dword [esp + 0x18]
call fcn.180ba9dd
test al, al
je 0x180c50f3
mov dword [esp + 0x10], 1
mov ecx, esi
call fcn.180b92f6
dec eax
cmp eax, 0x11
ja case.default.0x180c5104
jmp dword [eax*4 + 0x180c549f]
cmp dword [esi + 0x20], 3
jne 0x180c513f
cmp dword [esp + 0x10], ebx
jbe case.default.0x180c5104
mov ecx, dword [esp + 0x18]
push ebx
push esi
push dword [esp + 0x1c]
call fcn.180bb195
mov ecx, eax
call fcn.1804c443
add edi, eax
inc ebx
cmp ebx, dword [esp + 0x10]
jb 0x180c511b
jmp case.default.0x180c5104
mov ecx, dword [esp + 0x18]
push esi
push dword [esp + 0x18]
call fcn.180bb05e
mov ecx, eax
call fcn.1804c443
mov edi, eax
jmp case.default.0x180c5104
cmp dword [esi + 0x20], 3
jne 0x180c5191
cmp dword [esp + 0x10], ebx
jbe case.default.0x180c5104
mov ecx, dword [esp + 0x18]
push ebx
push esi
push dword [esp + 0x1c]
call fcn.180bb426
push edx
push eax
call fcn.1804c26f
add edi, eax
inc ebx
pop ecx
pop ecx
cmp ebx, dword [esp + 0x10]
jb 0x180c516b
jmp case.default.0x180c5104
mov ecx, dword [esp + 0x18]
push esi
push dword [esp + 0x18]
call fcn.180bb2d9
push edx
push eax
call fcn.1804c26f
pop ecx
pop ecx
jmp 0x180c5154
cmp dword [esi + 0x20], 3
jne 0x180c51ef
cmp dword [esp + 0x10], ebx
jbe case.default.0x180c5104
mov ecx, dword [esp + 0x18]
push ebx
push esi
push dword [esp + 0x1c]
call fcn.180bb195
mov ecx, eax
add eax, eax
sar ecx, 0x1f
xor ecx, eax
or ecx, 1
bsr eax, ecx
imul eax, eax, 9
add eax, 0x49
shr eax, 6
add edi, eax
inc ebx
cmp ebx, dword [esp + 0x10]
jb 0x180c51ba
jmp case.default.0x180c5104
mov ecx, dword [esp + 0x18]
push esi
push dword [esp + 0x18]
call fcn.180bb05e
mov ecx, eax
add eax, eax
sar ecx, 0x1f
xor ecx, eax
or ecx, 1
bsr eax, ecx
imul edi, eax, 9
add edi, 0x49
shr edi, 6
jmp case.default.0x180c5104
cmp dword [esi + 0x20], 3
jne 0x180c5250
cmp dword [esp + 0x10], ebx
jbe case.default.0x180c5104
mov ecx, dword [esp + 0x18]
push ebx
push esi
push dword [esp + 0x1c]
call fcn.180bb426
push edx
push eax
call fcn.180c0e0c
add edi, eax
inc ebx
pop ecx
pop ecx
cmp ebx, dword [esp + 0x10]
jb 0x180c522a
jmp case.default.0x180c5104
mov ecx, dword [esp + 0x18]
push esi
push dword [esp + 0x18]
call fcn.180bb2d9
push edx
push eax
call fcn.180c0e0c
jmp 0x180c51a6
cmp dword [esi + 0x20], 3
jne 0x180c52a6
cmp dword [esp + 0x10], ebx
jbe case.default.0x180c5104
mov ecx, dword [esp + 0x18]
push ebx
push esi
push dword [esp + 0x1c]
call fcn.180bb6aa
or eax, 1
bsr eax, eax
imul eax, eax, 9
add eax, 0x49
shr eax, 6
add edi, eax
inc ebx
cmp ebx, dword [esp + 0x10]
jb 0x180c527a
jmp case.default.0x180c5104
mov ecx, dword [esp + 0x18]
push esi
push dword [esp + 0x18]
call fcn.180bb573
or eax, 1
bsr eax, eax
jmp 0x180c520c
cmp dword [esi + 0x20], 3
jne 0x180c52f5
cmp dword [esp + 0x10], ebx
jbe case.default.0x180c5104
mov ecx, dword [esp + 0x18]
push ebx
push esi
push dword [esp + 0x1c]
call fcn.180bb93b
push edx
push eax
call fcn.1804c26f
add edi, eax
inc ebx
pop ecx
pop ecx
cmp ebx, dword [esp + 0x10]
jb 0x180c52cf
jmp case.default.0x180c5104
mov ecx, dword [esp + 0x18]
push esi
push dword [esp + 0x18]
call fcn.180bb7ee
jmp 0x180c519f
mov edi, dword [esp + 0x10]
shl edi, 2
jmp case.default.0x180c5104
mov edi, dword [esp + 0x10]
shl edi, 3
jmp case.default.0x180c5104
mov edi, dword [esp + 0x10]
jmp case.default.0x180c5104
cmp dword [esi + 0x20], 3
jne 0x180c535d
cmp dword [esp + 0x10], ebx
jbe case.default.0x180c5104
mov ecx, dword [esp + 0x18]
push ebx
push esi
push dword [esp + 0x1c]
call fcn.180bd024
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x28]
add edi, eax
inc ebx
cmp ebx, dword [esp + 0x10]
jb 0x180c5339
jmp case.default.0x180c5104
push ecx
mov ecx, dword [esp + 0x1c]
push esi
push dword [esp + 0x1c]
call fcn.180bcb4d
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x28]
jmp 0x180c5154
cmp dword [esi + 0x20], 3
jne 0x180c53ac
cmp dword [esp + 0x10], ebx
jbe case.default.0x180c5104
mov ecx, dword [esp + 0x18]
push ebx
push esi
push dword [esp + 0x1c]
call fcn.180bd024
mov ecx, eax
call fcn.180c59cd
add edi, eax
inc ebx
cmp ebx, dword [esp + 0x10]
jb 0x180c5388
jmp case.default.0x180c5104
push ecx
mov ecx, dword [esp + 0x1c]
push esi
push dword [esp + 0x1c]
call fcn.180bcb4d
mov ecx, eax
call fcn.180c59cd
jmp 0x180c5154
cmp dword [esi + 0x20], 3
jne 0x180c53fc
cmp dword [esp + 0x10], ebx
jbe case.default.0x180c5104
mov ecx, dword [esp + 0x18]
push ebx
push esi
push dword [esp + 0x1c]
call fcn.180bc947
mov ecx, dword [eax + 8]
call fcn.1804c443
add edi, eax
inc ebx
cmp ebx, dword [esp + 0x10]
jb 0x180c53d7
jmp case.default.0x180c5104
mov ecx, dword [esp + 0x18]
push esi
push dword [esp + 0x18]
call fcn.180bc746
mov ecx, dword [eax + 8]
call fcn.1804c443
jmp 0x180c5154
mov eax, ebx
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x10], eax
jbe case.default.0x180c5104
cmp dword [esi + 0x20], 3
push ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], 0xf
mov byte [esp + 0x5c], bl
jne 0x180c544b
push eax
push esi
push dword [esp + 0x20]
call fcn.180bc5c5
jmp 0x180c5455
push esi
push dword [esp + 0x1c]
call fcn.180bc2e5
mov ecx, eax
mov eax, dword [ecx + 0x10]
or eax, 1
bsr eax, eax
imul eax, eax, 9
add eax, 0x49
shr eax, 6
add eax, dword [ecx + 0x10]
lea ecx, [esp + 0x58]
add edi, eax
call fcn.1800ce96
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x10]
jb 0x180c5423
mov ecx, dword [esp + 0xa4]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.18128eaf
mov esp, ebp
pop ebp
ret