Function at 0x5912d180
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.59083230
mov eax, dword [esp + 0x28]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x5912d3cb
mov eax, dword [esp + 0x34]
xor edx, edx
xor ecx, ecx
mov dl, byte [eax]
lea esi, [eax + 1]
xor eax, eax
mov dword [esp + 0x10], esi
mov ah, byte [esi]
mov cl, byte [esi + 1]
or edx, eax
inc esi
shl ecx, 0x10
or edx, ecx
inc esi
xor eax, eax
xor ecx, ecx
mov al, byte [esi]
mov cl, byte [esi + 1]
shl eax, 0x18
or edx, eax
inc esi
inc esi
xor eax, eax
mov ah, byte [esi]
or ecx, eax
inc esi
xor eax, eax
mov ah, byte [esi + 1]
mov al, byte [esi]
shl eax, 0x10
or ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
lea ebx, [eax - 8]
test ebx, ebx
jl 0x5912d3be
lea ebp, [ebx + 8]
mov esi, dword [esp + 0x28]
shr ebp, 3
mov edi, dword [esp + 0x24]
mov ecx, ebp
neg ecx
lea eax, [ebx + ecx*8]
mov dword [esp + 0x2c], eax
xor eax, eax
xor ecx, ecx
mov al, byte [edi]
mov ch, byte [edi + 1]
inc edi
or eax, ecx
inc edi
xor ecx, ecx
xor ebx, ebx
push 1
mov cl, byte [edi]
shl ecx, 0x10
or eax, ecx
inc edi
xor ecx, ecx
mov cl, byte [edi]
shl ecx, 0x18
or eax, ecx
inc edi
xor ecx, ecx
xor eax, edx
mov cl, byte [edi]
mov bh, byte [edi + 1]
inc edi
or ecx, ebx
inc edi
xor ebx, ebx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
mov bl, byte [edi]
lea eax, [esp + 0x1c]
shl ebx, 0x10
or ecx, ebx
inc edi
xor ebx, ebx
mov bl, byte [edi]
shl ebx, 0x18
or ecx, ebx
inc edi
xor ecx, edx
mov edx, dword [esp + 0x34]
push edx
push eax
mov dword [esp + 0x28], ecx
call fcn.5912c4a0
mov eax, dword [esp + 0x24]
add esp, 0xc
mov byte [esi], al
mov ecx, eax
inc esi
mov edx, eax
shr ecx, 8
mov byte [esi], cl
mov ecx, eax
inc esi
shr ecx, 0x10
mov byte [esi], cl
inc esi
shr eax, 0x18
mov byte [esi], al
mov eax, dword [esp + 0x1c]
inc esi
mov ebx, eax
shr ebx, 8
mov byte [esi], al
inc esi
mov ecx, eax
mov byte [esi], bl
mov ebx, eax
inc esi
mov dword [esp + 0x38], ecx
shr ebx, 0x10
mov byte [esi], bl
inc esi
shr eax, 0x18
mov byte [esi], al
inc esi
dec ebp
jne 0x5912d20a
mov ebx, dword [esp + 0x2c]
cmp ebx, 0xfffffff8
je 0x5912d37e
lea eax, [edi + ebx + 8]
add ebx, 7
xor ebp, ebp
xor edi, edi
cmp ebx, 7
ja case.default.0x5912d2d6
jmp dword [ebx*4 + 0x5912d62c]
dec eax
xor ebx, ebx
mov bl, byte [eax]
mov ebp, ebx
shl ebp, 0x18
dec eax
xor ebx, ebx
mov bl, byte [eax]
shl ebx, 0x10
or ebp, ebx
dec eax
xor ebx, ebx
mov bh, byte [eax]
or ebp, ebx
dec eax
xor ebx, ebx
mov bl, byte [eax]
or ebp, ebx
dec eax
xor ebx, ebx
mov bl, byte [eax]
mov edi, ebx
shl edi, 0x18
dec eax
xor ebx, ebx
mov bl, byte [eax]
shl ebx, 0x10
or edi, ebx
dec eax
xor ebx, ebx
mov bh, byte [eax]
or edi, ebx
xor ebx, ebx
mov bl, byte [eax - 1]
or edi, ebx
xor edi, edx
mov edx, dword [esp + 0x30]
push 1
lea eax, [esp + 0x1c]
xor ebp, ecx
push edx
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebp
call fcn.5912c4a0
mov eax, dword [esp + 0x24]
add esp, 0xc
mov byte [esi], al
mov ecx, eax
inc esi
mov edx, eax
shr ecx, 8
mov byte [esi], cl
mov ecx, eax
inc esi
shr ecx, 0x10
mov byte [esi], cl
inc esi
shr eax, 0x18
mov byte [esi], al
mov eax, dword [esp + 0x1c]
inc esi
mov ebx, eax
shr ebx, 8
mov byte [esi], al
inc esi
mov ecx, eax
mov byte [esi], bl
mov ebx, eax
inc esi
shr ebx, 0x10
shr eax, 0x18
mov byte [esi], bl
mov byte [esi + 1], al
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x10]
pop edi
mov byte [eax], dl
mov eax, edx
shr eax, 8
mov byte [esi], al
mov eax, edx
inc esi
shr eax, 0x10
mov byte [esi], al
inc esi
shr edx, 0x18
mov byte [esi], dl
inc esi
mov edx, ecx
mov eax, ecx
mov byte [esi], cl
inc esi
shr edx, 8
mov byte [esi], dl
inc esi
shr eax, 0x10
shr ecx, 0x18
mov byte [esi], al
mov byte [esi + 1], cl
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
jmp 0x5912d2bd
mov eax, dword [esp + 0x34]
xor ebx, ebx
xor ecx, ecx
xor edx, edx
mov bl, byte [eax]
mov ch, byte [eax + 1]
lea esi, [eax + 1]
or ebx, ecx
mov dword [esp + 0x10], esi
inc esi
xor eax, eax
xor ecx, ecx
mov dl, byte [esi]
mov al, byte [esi + 1]
shl edx, 0x10
or ebx, edx
inc esi
shl eax, 0x18
or ebx, eax
inc esi
xor eax, eax
xor edx, edx
mov al, byte [esi]
mov ch, byte [esi + 1]
inc esi
or eax, ecx
mov ecx, dword [esp + 0x2c]
inc esi
add ecx, 0xfffffff8
mov dh, byte [esi + 1]
mov dword [esp + 0x2c], ecx
mov dl, byte [esi]
shl edx, 0x10
or eax, edx
test ecx, ecx
mov dword [esp + 0x38], eax
jl 0x5912d61c
lea eax, [ecx + 8]
mov edi, dword [esp + 0x28]
shr eax, 3
mov esi, dword [esp + 0x24]
mov dword [esp + 0x14], eax
neg eax
lea edx, [ecx + eax*8]
mov dword [esp + 0x2c], edx
xor eax, eax
xor ecx, ecx
mov al, byte [esi]
mov ch, byte [esi + 1]
inc esi
mov ebp, eax
or ebp, ecx
inc esi
xor edx, edx
xor eax, eax
mov dl, byte [esi]
mov al, byte [esi + 1]
shl edx, 0x10
or ebp, edx
inc esi
shl eax, 0x18
or ebp, eax
inc esi
xor eax, eax
xor ecx, ecx
mov al, byte [esi]
mov ch, byte [esi + 1]
inc esi
or eax, ecx
inc esi
xor edx, edx
xor ecx, ecx
push 0
mov dl, byte [esi]
mov cl, byte [esi + 1]
shl edx, 0x10
or eax, edx
inc esi
mov edx, dword [esp + 0x34]
mov dword [esp + 0x1c], ebp
shl ecx, 0x18
or eax, ecx
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
inc esi
push eax
call fcn.5912c4a0
mov ecx, dword [esp + 0x24]
mov eax, ebx
mov ebx, dword [esp + 0x28]
xor eax, ecx
mov ecx, dword [esp + 0x44]
add esp, 0xc
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
mov eax, dword [esp + 0x28]
inc edi
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x14]
shr edx, 0x10
mov byte [edi], dl
inc edi
shr ecx, 0x18
mov byte [edi], cl
inc edi
dec eax
mov dword [esp + 0x14], eax
jne 0x5912d442
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
cmp ecx, 0xfffffff8
je 0x5912d5dc
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 + 0x30]
push 0
mov ch, byte [esi + 1]
push edx
mov cl, byte [esi]
mov dword [esp + 0x20], ebp
shl ecx, 0x10
or eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
call fcn.5912c4a0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x28]
xor ebx, eax
mov eax, dword [esp + 0x44]
lea edi, [edi + ecx + 8]
add ecx, 7
add esp, 0xc
xor eax, esi
cmp ecx, 7
ja case.default.0x5912d593
jmp dword [ecx*4 + 0x5912d64c]
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 + 0x28]
mov ebx, ebp
mov dword [esp + 0x38], edx
mov eax, edx
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x10]
mov edx, ebx
pop edi
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
mov ecx, eax
mov byte [esi], al
inc esi
shr edx, 8
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, 0x10
ret
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
jmp 0x5912d50d