Function at 0x1c5fe0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x57c
mov eax, dword [0x1d5c8c]
mov ecx, dword [0x1d5c90]
mov edx, dword [0x1d5c94]
mov dword [esp + 0x14], eax
cmp byte [esp + 0x14], 0
mov al, byte [0x1d5c98]
push ebx
push esi
mov byte [esp + 0x28], al
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
lea eax, [esp + 0x20]
je 0x1c603b
mov ecx, eax
lea ebx, [ebx]
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x1c6030
lea ecx, [esp + 0x20]
push ecx
call dword [0x1d4060]
mov edx, dword [0x1d65f0]
mov ecx, dword [0x1d65f8]
mov edi, eax
mov eax, dword [0x1d65f4]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], ecx
lea eax, [esp + 0x20]
test dl, dl
je 0x1c607b
mov ecx, eax
nop
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x1c6070
mov esi, dword [fcn.001d4058]
lea edx, [esp + 0x20]
push edx
push edi
call esi
mov eax, dword [0x1d65fc]
mov ecx, dword [0x1d6600]
mov dx, word [0x1d6604]
mov dword [esp + 0x20], eax
cmp byte [esp + 0x20], 0
mov al, byte [0x1d6606]
mov byte [esp + 0x2a], al
mov dword [esp + 0x24], ecx
mov word [esp + 0x28], dx
lea eax, [esp + 0x20]
je 0x1c60cb
mov ecx, eax
mov edi, edi
xor byte [eax], 0xf
inc ecx
cmp byte [ecx], 0
mov eax, ecx
jne 0x1c60c0
lea ecx, [esp + 0x20]
push ecx
push edi
call esi
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edx
push eax
lea eax, [esp + 0x1c]
call fcn.001c4cb0
add esp, 8
test eax, eax
je 0x1c6105
mov ecx, dword [esp + 0x14]
push ecx
call dword [0x1da18c]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x3ff
lea edx, [esp + 0x18d]
push 0
push edx
mov byte [esp + 0x194], 0
call fcn.001cf3a0
mov esi, dword [esp + 0x20]
add esp, 0xc
push 0
push 0x400
lea eax, [esp + 0x190]
push eax
push esi
call dword [0x1d9f58]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x1c615a
push esi
call dword [0x1da18c]
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x1c6147
lea ecx, [esp + 0x191]
push 0x1d5c3c
push ecx
call fcn.001c7380
lea edx, [esp + 0x199]
add esp, 8
cmp eax, edx
je 0x1c6191
push esi
call dword [0x1da18c]
mov eax, 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x1d6608]
mov ecx, dword [0x1d660c]
mov edx, dword [0x1d6610]
mov dword [esp + 0x20], eax
mov eax, dword [0x1d6614]
mov dword [esp + 0x2c], eax
mov al, byte [0x1d5c8a]
mov dword [esp + 0x24], ecx
mov cl, byte [0x1d6618]
mov dword [esp + 0x28], edx
mov dx, word [0x1d5c88]
mov byte [esp + 0x8a], al
lea eax, [esp + 0x20]
mov byte [esp + 0x30], cl
mov word [esp + 0x88], dx
call fcn.001c2c90
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1c61e7
lea edi, [esp + 0x88]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1c61f8
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0x18c]
push edx
call fcn.001c7380
mov ecx, 6
mov esi, 0x1d661c
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov cl, byte [0x1d5c8a]
mov ebx, eax
mov ax, word [0x1d5c88]
movsw word es:[edi], word [esi]
mov word [esp + 0x90], ax
add esp, 8
lea eax, [esp + 0x20]
movsb byte es:[edi], byte [esi]
mov byte [esp + 0x8a], cl
call fcn.001c2c90
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1c6263
lea edi, [esp + 0x88]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1c6276
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x88]
rep movsb byte es:[edi], byte [esi]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1c6294
mov dx, word [0x1d5c88]
mov cl, byte [0x1d5c8a]
mov word [eax], dx
lea edx, [esp + 0x88]
mov byte [eax + 2], cl
push edx
lea eax, [esp + 0x18c]
push eax
call fcn.001c7380
lea ecx, [esp + 0x190]
push 0x1d5c7c
push ecx
mov edi, eax
call fcn.001c7380
mov esi, eax
add esp, 0x10
add esi, 4
test ebx, ebx
je 0x1c62f4
add ebx, 0x12
push ebx
call fcn.001c74f4
add esp, 4
mov dword [esp + 0x10], eax
test edi, edi
je 0x1c631e
lea edx, [esp + 0x10]
push edx
push 0x1d5c84
push esi
call fcn.001c71ab
add esp, 0xc
push 0x1d5c88
push esi
call fcn.001c7380
add esp, 8
add eax, 2
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1c643e
inc eax
push eax
call fcn.001c72aa
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1c60f9
mov eax, dword [esp + 0x10]
inc eax
push eax
push 0
push ebx
call fcn.001cf3a0
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x194]
sub ecx, esi
add edi, ecx
add esp, 0xc
cmp edi, eax
ja 0x1c63b3
push edi
push esi
push ebx
call fcn.001cd300
mov eax, dword [esp + 0x1c]
add esp, 0xc
sub eax, edi
push 0
push eax
lea esi, [ebx + edi]
mov edi, dword [esp + 0x1c]
push esi
push edi
mov dword [esp + 0x20], eax
call dword [0x1d9f58]
test eax, eax
je 0x1c63c2
cmp eax, 0xffffffff
je 0x1c63c2
add esi, eax
sub dword [esp + 0x10], eax
je 0x1c63c2
mov edx, dword [esp + 0x10]
push 0
push edx
push esi
push edi
call dword [0x1d9f58]
test eax, eax
jne 0x1c6391
jmp 0x1c63c2
push eax
push esi
push ebx
call fcn.001cd300
mov edi, dword [esp + 0x20]
add esp, 0xc
push edi
call dword [0x1da18c]
push ebx
mov esi, ebx
call fcn.001c74f4
mov edi, eax
add esp, 4
test edi, edi
je 0x1c6435
lea ebx, [ebx]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1c63e5
sub eax, edx
lea esi, [esi + eax + 1]
mov eax, edi
mov ecx, esi
call fcn.001c2c60
push 0
push 0
lea eax, [esp + 0x20]
push eax
push 0x1c48e0
push 0
push 0
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], esi
call dword [0x1d9ff4]
push 0xffffffffffffffff
push eax
call dword [0x1da150]
add esi, edi
push esi
call fcn.001c74f4
mov edi, eax
add esp, 4
test edi, edi
jne 0x1c63e0
push ebx
call fcn.001c71cd
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret