Function at 0x591285c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.5907e4c0
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x24]
test eax, eax
je 0x591287f8
mov eax, dword [esp + 0x38]
xor edx, edx
xor ecx, ecx
mov dl, byte [eax]
lea ebp, [eax + 1]
xor eax, eax
mov dword [esp + 0x3c], ebp
mov ah, byte [ebp]
mov cl, byte [ebp + 1]
or edx, eax
inc ebp
shl ecx, 0x10
or edx, ecx
inc ebp
xor eax, eax
xor ecx, ecx
mov al, byte [ebp]
shl eax, 0x18
or edx, eax
inc ebp
xor eax, eax
mov al, byte [ebp]
mov ch, byte [ebp + 1]
inc ebp
or eax, ecx
inc ebp
xor ecx, ecx
mov ch, byte [ebp + 1]
mov cl, byte [ebp]
shl ecx, 0x10
or eax, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x20], eax
lea ebx, [ecx - 8]
test ebx, ebx
jl 0x5912870b
lea ebp, [ebx + 8]
shr ebp, 3
mov eax, ebp
neg eax
lea ecx, [ebx + eax*8]
mov dword [esp + 0x28], ecx
xor eax, eax
xor ecx, ecx
mov al, byte [esi]
mov ch, byte [esi + 1]
inc esi
or eax, ecx
inc esi
xor ecx, ecx
xor ebx, ebx
mov cl, byte [esi]
shl ecx, 0x10
or eax, ecx
inc esi
xor ecx, ecx
mov cl, byte [esi]
shl ecx, 0x18
or eax, ecx
inc esi
xor ecx, ecx
xor eax, edx
mov cl, byte [esi]
mov bh, byte [esi + 1]
inc esi
or ecx, ebx
inc esi
xor ebx, ebx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov bl, byte [esi]
mov eax, dword [esp + 0x30]
shl ebx, 0x10
or ecx, ebx
inc esi
xor ebx, ebx
mov bl, byte [esi]
shl ebx, 0x18
or ecx, ebx
inc esi
xor ecx, edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.59127e10
mov eax, dword [esp + 0x24]
add esp, 0x10
mov byte [edi], al
mov ebx, eax
inc edi
mov ecx, dword [esp + 0x18]
shr ebx, 8
mov byte [edi], bl
mov ebx, eax
inc edi
mov edx, eax
shr ebx, 0x10
mov byte [edi], bl
inc edi
shr eax, 0x18
mov byte [edi], al
inc edi
mov eax, ecx
mov dword [esp + 0x20], ecx
mov byte [edi], cl
inc edi
shr eax, 8
mov byte [edi], al
mov eax, ecx
inc edi
shr eax, 0x10
mov byte [edi], al
inc edi
shr ecx, 0x18
mov byte [edi], cl
inc edi
dec ebp
jne 0x5912864e
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
cmp ebx, 0xfffffff8
je 0x591287d4
lea ecx, [esi + ebx + 8]
add ebx, 7
xor ebp, ebp
xor esi, esi
cmp ebx, 7
ja case.default.0x59128724
jmp dword [ebx*4 + 0x59128a54]
dec ecx
xor ebx, ebx
mov bl, byte [ecx]
mov ebp, ebx
shl ebp, 0x18
dec ecx
xor ebx, ebx
mov bl, byte [ecx]
shl ebx, 0x10
or ebp, ebx
dec ecx
xor ebx, ebx
mov bh, byte [ecx]
or ebp, ebx
dec ecx
xor ebx, ebx
mov bl, byte [ecx]
or ebp, ebx
dec ecx
xor ebx, ebx
mov bl, byte [ecx]
mov esi, ebx
shl esi, 0x18
dec ecx
xor ebx, ebx
mov bl, byte [ecx]
shl ebx, 0x10
or esi, ebx
dec ecx
xor ebx, ebx
mov bh, byte [ecx]
or esi, ebx
xor ebx, ebx
mov bl, byte [ecx - 1]
or esi, ebx
mov ecx, dword [esp + 0x34]
xor esi, edx
mov edx, dword [esp + 0x30]
xor ebp, eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ebp
call fcn.59127e10
mov ecx, dword [esp + 0x24]
add esp, 0x10
mov byte [edi], cl
mov ebx, ecx
inc edi
mov eax, dword [esp + 0x18]
shr ebx, 8
mov byte [edi], bl
mov ebx, ecx
inc edi
mov edx, ecx
shr ebx, 0x10
mov byte [edi], bl
inc edi
shr ecx, 0x18
mov byte [edi], cl
inc edi
mov ecx, eax
mov byte [edi], cl
mov ebx, ecx
inc edi
shr ebx, 8
mov byte [edi], bl
mov ebx, ecx
inc edi
shr ebx, 0x10
shr ecx, 0x18
mov byte [edi], bl
mov byte [edi + 1], cl
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
mov byte [ecx], dl
mov ecx, edx
shr ecx, 8
mov byte [esi], cl
mov ecx, edx
inc esi
shr ecx, 0x10
mov byte [esi], cl
inc esi
shr edx, 0x18
mov byte [esi], dl
jmp 0x59128a33
mov eax, dword [esp + 0x38]
xor ebx, ebx
xor edx, edx
xor ecx, ecx
mov bl, byte [eax]
mov dh, byte [eax + 1]
lea ebp, [eax + 1]
or ebx, edx
mov dword [esp + 0x3c], ebp
inc ebp
xor eax, eax
xor edx, edx
mov al, byte [ebp]
mov cl, byte [ebp + 1]
shl eax, 0x10
or ebx, eax
inc ebp
shl ecx, 0x18
or ebx, ecx
inc ebp
xor eax, eax
xor ecx, ecx
mov al, byte [ebp]
mov dh, byte [ebp + 1]
inc ebp
or eax, edx
mov edx, dword [esp + 0x28]
inc ebp
mov ch, byte [ebp + 1]
mov cl, byte [ebp]
shl ecx, 0x10
or eax, ecx
lea ecx, [edx - 8]
test ecx, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ecx
jl 0x5912893d
lea eax, [ecx + 8]
shr eax, 3
mov dword [esp + 0x10], eax
neg eax
lea eax, [ecx + eax*8]
mov dword [esp + 0x28], eax
xor ecx, ecx
xor edx, edx
mov cl, byte [esi]
mov dh, byte [esi + 1]
inc esi
mov ebp, ecx
or ebp, edx
inc esi
xor eax, eax
xor ecx, ecx
mov al, byte [esi]
mov cl, byte [esi + 1]
shl eax, 0x10
or ebp, eax
inc esi
shl ecx, 0x18
or ebp, ecx
inc esi
xor eax, eax
xor edx, edx
mov al, byte [esi]
mov dh, byte [esi + 1]
inc esi
or eax, edx
inc esi
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x14], ebp
mov cl, byte [esi]
mov dl, byte [esi + 1]
shl ecx, 0x10
or eax, ecx
inc esi
mov ecx, dword [esp + 0x30]
shl edx, 0x18
or eax, edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
inc esi
push eax
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.59127f70
mov ecx, dword [esp + 0x24]
mov eax, ebx
mov ebx, dword [esp + 0x28]
xor eax, ecx
mov ecx, dword [esp + 0x30]
add esp, 0x10
xor ecx, ebx
mov byte [edi], al
mov edx, eax
inc edi
shr edx, 8
mov byte [edi], dl
mov edx, eax
inc edi
mov ebx, ebp
shr edx, 0x10
mov byte [edi], dl
inc edi
shr eax, 0x18
mov byte [edi], al
inc edi
mov eax, ecx
mov edx, ecx
mov byte [edi], cl
inc edi
shr eax, 8
mov byte [edi], al
inc edi
shr edx, 0x10
mov byte [edi], dl
inc edi
shr ecx, 0x18
mov byte [edi], cl
inc edi
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x5912886a
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
cmp ecx, 0xfffffff8
je 0x59128a14
xor ecx, ecx
xor edx, edx
mov cl, byte [esi]
mov dh, byte [esi + 1]
inc esi
mov ebp, ecx
or ebp, edx
inc esi
xor eax, eax
xor ecx, ecx
mov al, byte [esi]
mov cl, byte [esi + 1]
shl eax, 0x10
or ebp, eax
inc esi
shl ecx, 0x18
or ebp, ecx
inc esi
xor eax, eax
xor edx, edx
mov al, byte [esi]
mov dh, byte [esi + 1]
inc esi
or eax, edx
inc esi
xor ecx, ecx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x14], ebp
mov ch, byte [esi + 1]
push edx
mov cl, byte [esi]
lea edx, [esp + 0x18]
shl ecx, 0x10
or eax, ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
push eax
push ecx
push edx
call fcn.59127f70
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x28]
xor ebx, eax
mov eax, dword [esp + 0x30]
lea edi, [edi + ecx + 8]
add ecx, 7
add esp, 0x10
xor eax, esi
cmp ecx, 7
ja case.default.0x591289cb
jmp dword [ecx*4 + 0x59128a74]
mov ecx, eax
dec edi
shr ecx, 0x18
mov byte [edi], cl
mov edx, eax
dec edi
shr edx, 0x10
mov byte [edi], dl
mov ecx, eax
dec edi
shr ecx, 8
mov byte [edi], cl
dec edi
mov byte [edi], al
mov edx, ebx
dec edi
shr edx, 0x18
mov byte [edi], dl
mov eax, ebx
dec edi
shr eax, 0x10
mov byte [edi], al
mov ecx, ebx
dec edi
shr ecx, 8
mov byte [edi], cl
mov byte [edi - 1], bl
mov edx, dword [esp + 0x24]
mov ebx, ebp
mov dword [esp + 0x20], edx
mov eax, edx
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
mov edx, ebx
shr edx, 8
mov byte [ecx], bl
mov byte [esi], dl
mov ecx, ebx
inc esi
shr ecx, 0x10
mov byte [esi], cl
inc esi
shr ebx, 0x18
mov byte [esi], bl
inc esi
mov edx, eax
shr edx, 8
mov byte [esi], al
inc esi
mov ecx, eax
pop edi
mov byte [esi], dl
inc esi
shr ecx, 0x10
shr eax, 0x18
mov byte [esi], cl
mov byte [esi + 1], al
pop esi
pop ebp
pop ebx
add esp, 0xc
ret