Function at 0x41b6f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x38]
push ebx
mov ebx, dword [esp + 0x34]
shl eax, 9
add eax, dword [esp + 0x38]
push ebp
mov eax, dword [eax*4 + 0x4ffb40]
movzx edx, byte [eax + 1]
mov ebp, dword [esp + 0x28]
push esi
push edi
movzx edi, byte [eax + 2]
lea ecx, [edi + 1]
mov dword [0x5ffb64], ecx
lea ecx, [edx*4]
mov esi, eax
sub esi, ecx
add esi, 4
mov dword [esp + 0x10], edi
mov dword [0x5ffb60], edx
mov dword [0x5ffb68], esi
movzx esi, byte [eax]
mov ecx, 0x5ffb6c
test esi, esi
je 0x41b7ad
lea esp, [esp]
movzx ebp, byte [eax + esi*4 + 3]
lea eax, [eax + esi*4]
mov ebx, ebp
sub ebx, esi
sub ebx, edx
lea edx, [ebx + edi + 2]
mov dword [ecx], edx
mov dword [ecx + 4], ebp
lea edx, [ebp*4]
mov esi, eax
sub esi, edx
mov dword [ecx + 8], esi
movzx edi, byte [eax + 2]
movzx edx, byte [eax + 1]
mov dword [ecx + 0xc], edx
lea esi, [edi + 1]
mov dword [ecx + 0x10], esi
lea esi, [edx*4]
mov ebx, eax
sub ebx, esi
add ebx, 4
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x10], edi
movzx esi, byte [eax]
add ecx, 0x18
test esi, esi
jne 0x41b750
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x30]
mov dword [ecx + 4], 0x40
mov dword [ecx], 0x40
mov eax, dword [ebp]
mov cl, al
mov byte [0x16a8521], cl
mov edx, dword [ebp + 4]
lea ecx, [edx - 1]
mov esi, 0xf
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edx
mov byte [0x16a8522], cl
mov byte [0x16a8523], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x14], 0x5ffb60
lea edi, [esi - 0xb]
cmp edx, 0x40
je 0x41b806
lea ecx, [edx - 1]
mov dword [esp + 0x24], ecx
jmp 0x41b80e
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x20], 0x5ffb64
mov dword [esp + 0x18], ebp
lea ebx, [ebx]
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x20]
cmp eax, dword [ecx]
jl 0x41b846
mov ecx, dword [esp + 0x14]
add ecx, 0xc
mov dword [esp + 0x14], ecx
add ecx, 4
mov dword [esp + 0x20], ecx
cmp eax, dword [ecx]
jge 0x41b830
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx]
jl 0x41b85c
mov ecx, dword [ecx + 8]
mov ecx, dword [ecx + eax*4]
mov dword [edi + 0x16a8520], ecx
jmp 0x41b882
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x4c]
push ecx
call dword [0x4ffb0c]
mov edx, dword [esp + 0x28]
mov dword [edi + 0x16a8520], eax
mov eax, dword [esp + 0x1c]
add esp, 0xc
inc eax
add edi, 4
mov dword [esp + 0x10], eax
cmp eax, edx
jge 0x41b9ed
mov ecx, dword [esp + 0x34]
cmp eax, dword [ecx]
jl 0x41b8ae
lea ebx, [ebx]
add ecx, 4
xor esi, 1
cmp eax, dword [ecx]
jge 0x41b8a0
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x38]
cmp eax, dword [ecx]
jl 0x41b8c4
add ecx, 4
xor esi, 2
cmp eax, dword [ecx]
jge 0x41b8b6
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x3c]
cmp eax, dword [ecx]
jl 0x41b8de
lea esp, [esp]
add ecx, 4
xor esi, 4
cmp eax, dword [ecx]
jge 0x41b8d0
mov dword [esp + 0x3c], ecx
cmp eax, dword [ebx]
jl 0x41b8ec
add ebx, 4
xor esi, 8
cmp eax, dword [ebx]
jge 0x41b8e2
test esi, esi
jne 0x41b828
cmp eax, dword [esp + 0x24]
je 0x41b828
cmp dword [esp + 0x28], esi
jne 0x41b91a
mov ecx, dword [esp + 0x30]
dec al
mov byte [ecx + 0x16a8522], al
mov dword [esp + 0x28], 1
jmp 0x41b949
mov ebp, dword [esp + 0x30]
mov ecx, edi
sub ecx, dword [esp + 0x30]
mov dword [esp + 0x30], edi
sar ecx, 2
mov byte [ebp + 0x16a8520], cl
lea ecx, [eax - 1]
mov byte [edi + 0x16a8521], al
mov byte [edi + 0x16a8522], cl
mov byte [edi + 0x16a8523], al
add edi, 4
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov eax, dword [eax]
mov ecx, dword [ecx]
cmp eax, ecx
jge 0x41b97b
mov ebp, dword [esp + 0x3c]
cmp eax, dword [ebp]
jge 0x41b97b
cmp eax, dword [ebx]
jge 0x41b97b
cmp eax, edx
jl 0x41b96f
lea eax, [edx - 1]
jmp 0x41b9cb
add dword [esp + 0x34], 4
mov esi, 1
jmp 0x41b9cb
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
cmp ecx, eax
jge 0x41b99e
cmp ecx, dword [ebx]
jge 0x41b99e
cmp ecx, edx
jl 0x41b992
lea eax, [edx - 1]
jmp 0x41b9cb
add dword [esp + 0x38], 4
mov esi, 2
jmp 0x41b9c9
mov ecx, dword [ebx]
cmp eax, ecx
jge 0x41b9b8
cmp eax, edx
jl 0x41b9ad
lea eax, [edx - 1]
jmp 0x41b9cb
mov esi, 4
add dword [esp + 0x3c], esi
jmp 0x41b9cb
cmp ecx, edx
jl 0x41b9c1
lea eax, [edx - 1]
jmp 0x41b9cb
add ebx, 4
mov esi, 8
mov eax, ecx
mov dword [esp + 0x10], eax
cmp eax, 0x3f
jne 0x41b828
mov eax, dword [esp + 0x30]
mov byte [eax + 0x16a8520], 0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
cmp edx, 0x40
jge 0x41ba40
mov ebp, dword [esp + 0x30]
add dword [esp + 0x18], 8
mov ecx, edi
sub ecx, ebp
sar ecx, 2
mov byte [ebp + 0x16a8520], cl
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp]
mov cl, al
mov byte [edi + 0x16a8521], cl
mov byte [edi + 0x16a8523], dl
mov ecx, dword [ebp + 4]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x1c]
dec cl
mov dword [esp + 0x30], edi
mov byte [edi + 0x16a8522], cl
mov dword [esp + 0x10], eax
add edi, 4
jmp 0x41b820
mov edx, dword [esp + 0x30]
mov eax, edi
pop edi
pop esi
pop ebp
mov byte [edx + 0x16a8520], 0
pop ebx
add esp, 0x1c
ret