Function at 0x10001b81
Capabilities:
Encode data using xor

Disassembly:
jmp 0x10161c60
mov eax, 0x20
call fcn.10001f96
mov eax, dword [esp + 0x34]
movzx edx, byte [eax + 1]
push ebx
push ebp
push esi
lea esi, [eax + 1]
shl edx, 8
movzx eax, byte [eax]
or edx, eax
movzx eax, byte [esi + 1]
shl eax, 0x10
or edx, eax
movzx eax, byte [esi + 2]
shl eax, 0x18
or edx, eax
cmp dword [esp + 0x44], 0
push edi
mov dword [esp + 0x10], edx
je 0x10161e81
movzx eax, byte [esi + 4]
movzx ecx, byte [esi + 3]
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x34]
shl eax, 8
or ecx, eax
movzx eax, byte [esi + 5]
shl eax, 0x10
lea ebp, [ebx - 8]
or ecx, eax
lea eax, [esi + 6]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x14], eax
movzx eax, byte [eax]
shl eax, 0x18
or ecx, eax
mov dword [esp + 0x48], ecx
test ebp, ebp
js 0x10161da2
shr ebx, 3
mov eax, ebx
neg eax
lea ebp, [ebp + eax*8]
nop dword [eax]
movzx eax, byte [edi + 1]
movzx edx, byte [edi]
movzx ecx, byte [edi + 4]
shl eax, 8
or edx, eax
movzx eax, byte [edi + 2]
shl eax, 0x10
push dword [esp + 0x40]
or edx, eax
movzx eax, byte [edi + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [edi + 5]
xor edx, dword [esp + 0x14]
shl eax, 8
or ecx, eax
mov dword [esp + 0x2c], edx
movzx eax, byte [edi + 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edi + 7]
shl eax, 0x18
add edi, 8
or ecx, eax
lea eax, [esp + 0x2c]
xor ecx, dword [esp + 0x4c]
push eax
mov dword [esp + 0x34], ecx
call sym.libcrypto_1_1.dll_RC2_encrypt
mov edx, dword [esp + 0x30]
add esp, 8
mov ecx, dword [esp + 0x2c]
mov eax, edx
shr eax, 8
mov byte [esi], dl
mov byte [esi + 1], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 3], al
mov eax, ecx
shr eax, 8
mov byte [esi + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, ecx
shr eax, 0x18
mov byte [esi + 4], cl
mov byte [esi + 7], al
add esi, 8
mov dword [esp + 0x10], edx
mov dword [esp + 0x48], ecx
sub ebx, 1
jne 0x10161cf0
cmp ebp, 0xfffffff8
je 0x10161e64
lea ecx, [edi + 8]
xor ebx, ebx
add ecx, ebp
xor edi, edi
add ebp, 7
cmp ebp, 7
ja case.default.0x10161dbc
jmp dword [ebp*4 + 0x101620ec]
movzx edi, byte [ecx - 1]
dec ecx
shl edi, 0x18
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
or edi, eax
movzx ebx, byte [ecx - 1]
dec ecx
shl ebx, 0x18
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or ebx, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or ebx, eax
movzx eax, byte [ecx - 1]
or ebx, eax
push dword [esp + 0x40]
xor edi, dword [esp + 0x4c]
lea eax, [esp + 0x2c]
xor ebx, edx
mov dword [esp + 0x30], edi
push eax
mov dword [esp + 0x30], ebx
call sym.libcrypto_1_1.dll_RC2_encrypt
mov edx, dword [esp + 0x30]
add esp, 8
mov ecx, dword [esp + 0x2c]
mov eax, edx
shr eax, 8
mov byte [esi], dl
mov byte [esi + 1], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 3], al
mov eax, ecx
shr eax, 8
mov byte [esi + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, ecx
shr eax, 0x18
mov byte [esi + 4], cl
mov byte [esi + 7], al
mov edi, dword [esp + 0x14]
add edi, 0xfffffffa
lea eax, [edi + 4]
mov ebp, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x14]
jmp 0x10162086
movzx ebp, byte [esi + 3]
lea eax, [esi + 4]
mov ecx, eax
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x38]
mov ebx, ecx
mov dword [esp + 0x24], ebx
movzx eax, byte [ecx]
shl eax, 8
or ebp, eax
movzx eax, byte [ecx + 1]
shl eax, 0x10
mov ecx, ebp
or ecx, eax
mov dword [esp + 0x48], ebp
mov ebp, dword [esp + 0x40]
lea eax, [ebx + 2]
mov dword [esp + 0x14], eax
movzx eax, byte [eax]
shl eax, 0x18
or ecx, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x48], ecx
lea ebx, [eax - 8]
mov dword [esp + 0x1c], ebx
test ebx, ebx
js 0x10161fb5
shr eax, 3
mov dword [esp + 0x3c], eax
neg eax
mov dword [esp + 0x18], esi
lea ebx, [ebx + eax*8]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x34]
movzx eax, byte [ebx + 1]
movzx edi, byte [ebx]
movzx esi, byte [ebx + 4]
shl eax, 8
or edi, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
or edi, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
or edi, eax
movzx eax, byte [ebx + 5]
shl eax, 8
or esi, eax
mov dword [esp + 0x28], edi
movzx eax, byte [ebx + 6]
shl eax, 0x10
or esi, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
add ebx, 8
or esi, eax
lea eax, [esp + 0x28]
push ebp
push eax
mov dword [esp + 0x34], esi
call sym.libcrypto_1_1.dll_RC2_decrypt
mov ebp, dword [esp + 0x20]
add esp, 8
mov ecx, dword [esp + 0x28]
xor ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
mov eax, ecx
xor edx, dword [esp + 0x48]
mov byte [ebp], cl
shr eax, 8
mov byte [ebp + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp + 2], al
mov eax, edx
shr eax, 8
mov byte [ebp + 5], al
mov eax, edx
mov byte [ebp + 4], dl
shr ecx, 0x18
shr edx, 0x18
shr eax, 0x10
mov byte [ebp + 3], cl
mov ecx, esi
mov byte [ebp + 7], dl
mov edx, edi
mov byte [ebp + 6], al
add ebp, 8
sub dword [esp + 0x3c], 1
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x10], edx
mov dword [esp + 0x48], ecx
jne 0x10161ef1
mov esi, dword [esp + 0x18]
jmp 0x10161fb9
mov ebx, dword [esp + 0x34]
cmp dword [esp + 0x1c], 0xfffffff8
je 0x1016207f
movzx eax, byte [ebx + 1]
movzx edi, byte [ebx]
movzx edx, byte [ebx + 4]
movzx ecx, byte [ebx + 7]
shl eax, 8
or edi, eax
shl ecx, 8
movzx eax, byte [ebx + 2]
shl eax, 0x10
or edi, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
or edi, eax
movzx eax, byte [ebx + 5]
shl eax, 8
or edx, eax
mov dword [esp + 0x28], edi
movzx eax, byte [ebx + 6]
or ecx, eax
lea eax, [esp + 0x28]
shl ecx, 0x10
or edx, ecx
push ebp
push eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x34], edx
call sym.libcrypto_1_1.dll_RC2_decrypt
mov eax, dword [esp + 0x24]
add esp, 8
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
xor ebx, dword [esp + 0x10]
xor edx, dword [esp + 0x48]
lea ecx, [eax + 8]
add eax, 7
add ecx, esi
cmp eax, 7
ja case.default.0x1016203c
jmp dword [eax*4 + 0x1016210c]
dec ecx
mov eax, edx
shr eax, 0x18
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 0x10
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 8
mov byte [ecx], al
dec ecx
mov byte [ecx], dl
dec ecx
mov eax, ebx
shr eax, 0x18
mov byte [ecx], al
dec ecx
mov eax, ebx
shr eax, 0x10
mov byte [ecx], al
dec ecx
mov eax, ebx
shr eax, 8
mov byte [ecx], al
mov byte [ecx - 1], bl
mov ecx, dword [esp + 0x3c]
mov edx, edi
mov ebp, dword [esp + 0x14]
lea edi, [ebp - 6]
mov esi, ecx
mov byte [ebp - 7], dl
shr esi, 8
mov eax, ecx
mov dword [esp + 0x18], esi
mov ebx, ecx
mov esi, edx
shr ebx, 0x10
shr esi, 0x18
mov dword [esp + 0x1c], esi
mov esi, edx
shr esi, 0x10
mov dword [esp + 0x48], esi
mov esi, edx
shr eax, 0x18
shr esi, 8
mov dword [esp + 0x3c], esi
mov esi, edi
mov edx, dword [esp + 0x3c]
mov byte [edi], dl
mov edx, dword [esp + 0x48]
mov byte [edi + 1], dl
mov edx, dword [esp + 0x1c]
mov byte [esi + 2], dl
mov edx, dword [esp + 0x20]
mov byte [esi + 3], cl
mov ecx, dword [esp + 0x18]
pop edi
mov byte [edx], cl
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
mov byte [ecx + 1], bl
mov byte [ecx + 2], al
pop ebx
add esp, 0x20
ret