Function at 0x5fb500
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
sub esp, 0x400
mov edi, dword [esp + 0x410]
mov esi, edx
mov ebx, ecx
mov eax, esp
push 0x400
push 0
push eax
call fcn.007bdf30
add esp, 0xc
cmp edi, 0x8000
jae 0x5fb60e
xor eax, eax
nop word cs:[eax + eax]
nop
cmp esi, eax
je 0x5fb7c2
movzx ecx, byte [ebx + eax]
inc eax
inc dword [esp + ecx*4]
cmp edi, eax
jne 0x5fb540
movdqa xmm4, xmmword [0x7d4550]
movd xmm1, edi
pxor xmm0, xmm0
mov eax, 0xffffff00
nop dword [eax]
movdqu xmm5, xmmword [esp + eax*4 + 0x400]
movdqa xmm7, xmmword [0x7d5360]
movdqa xmm6, xmmword [str._v_v_v_v]
movdqu xmm2, xmmword [esp + eax*4 + 0x410]
movdqa xmm3, xmm5
pxor xmm3, xmm4
pcmpgtd xmm7, xmm3
movdqa xmm3, xmm5
pand xmm3, xmm7
pandn xmm7, xmm6
movdqa xmm6, xmm2
por xmm7, xmm3
movdqa xmm3, xmmword [0x7d5360]
pxor xmm6, xmm4
paddd xmm7, xmm7
paddd xmm5, xmm7
paddd xmm1, xmm7
movdqu xmmword [esp + eax*4 + 0x400], xmm5
pcmpgtd xmm3, xmm6
movdqa xmm6, xmm2
pand xmm6, xmm3
pandn xmm3, xmmword [str._v_v_v_v]
por xmm3, xmm6
paddd xmm3, xmm3
paddd xmm2, xmm3
paddd xmm0, xmm3
movdqu xmmword [esp + eax*4 + 0x410], xmm2
add eax, 8
jne 0x5fb570
jmp 0x5fb701
xor ecx, ecx
cmp ecx, esi
jae 0x5fb7d0
movzx eax, byte [ebx + ecx]
add ecx, 0x1d
inc dword [esp + eax*4]
cmp ecx, edi
jb 0x5fb610
add edi, 0x1c
mov ecx, 0x8d3dcb09
pxor xmm0, xmm0
mov eax, edi
mul ecx
mov eax, 0xffffff00
shr edx, 4
movd xmm1, edx
nop word cs:[eax + eax]
nop dword [eax]
movdqu xmm7, xmmword [esp + eax*4 + 0x400]
movdqa xmm5, xmmword [0x7d4550]
movdqa xmm3, xmmword [0x7d5360]
movdqa xmm6, xmmword [str._v_v_v_v]
movdqu xmm4, xmmword [esp + eax*4 + 0x410]
movdqa xmm2, xmm7
pxor xmm2, xmm5
pcmpgtd xmm3, xmm2
movdqa xmm2, xmm7
pand xmm2, xmm3
pandn xmm3, xmm6
movdqa xmm6, xmm4
por xmm3, xmm2
movdqa xmm2, xmmword [0x7d5360]
pxor xmm6, xmm5
movdqa xmm5, xmm4
paddd xmm3, xmm3
pcmpgtd xmm2, xmm6
pand xmm5, xmm2
pandn xmm2, xmmword [str._v_v_v_v]
por xmm2, xmm5
movdqa xmm5, xmmword [0x7d4430]
paddd xmm2, xmm2
por xmm3, xmm5
por xmm2, xmm5
paddd xmm7, xmm3
paddd xmm4, xmm2
paddd xmm1, xmm3
paddd xmm0, xmm2
movdqu xmmword [esp + eax*4 + 0x400], xmm7
movdqu xmmword [esp + eax*4 + 0x410], xmm4
add eax, 8
jne 0x5fb650
paddd xmm0, xmm1
mov eax, dword [esp + 0x424]
mov ecx, dword [esp + 0x420]
mov edi, dword [esp + 0x414]
mov edx, dword [esp + 0x41c]
mov ebx, dword [esp + 0x418]
pshufd xmm1, xmm0, 0xee
paddd xmm1, xmm0
pshufd xmm0, xmm1, 0x55
paddd xmm0, xmm1
movd esi, xmm0
sub esp, 0x24
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
lea ecx, [esp + 0x24]
mov edx, pe_nt_image_headers32
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 8], edi
movd dword [esp], xmm0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0xc], pe_nt_image_headers32
mov dword [esp + 4], 8
call fcn.005d9d80
add esp, 0x24
xor eax, eax
mov ecx, 0xffffff00
jmp 0x5fb793
inc ecx
je 0x5fb7ad
mov edx, dword [esp + ecx*4 + 0x400]
test edx, edx
je 0x5fb790
movzx ebx, byte [edi + ecx + 0x100]
imul edx, ebx
add eax, edx
jmp 0x5fb790
test esi, esi
je 0x5fb7dc
imul eax, eax, 0x7d
xor edx, edx
div esi
add esp, 0x400
pop esi
pop edi
pop ebx
ret
mov ecx, esi
mov edx, esi
push 0x9142b4
call fcn.007c1be0
mov edx, esi
push 0x914294
call fcn.007c1be0
mov ecx, str.attempt_to_divide_by_zero
mov edx, 0x19
push 0x9142a4
call fcn.007c1ca0
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ecx, esi
call fcn.005fbef0
mov ebx, dword [esi + 0x6c]
test bl, 1
jne 0x5fb826
lock dec dword [ebx + 0x10]
jne 0x5fb842
mov eax, dword [ebx + 0x10]
cmp dword [ebx], 0
je 0x5fb833
push dword [ebx + 4]
push 0
push dword [0x94bf18]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x5fb833
shr ebx, 5
neg ebx
cmp dword [esi + 0x68], ebx
je 0x5fb842
add ebx, dword [esi + 0x60]
push ebx
push 0
push dword [0x94bf18]
call dword [sym.imp.kernel32.dll_HeapFree]
pop esi
pop ebx
ret