Function at 0x1001c970
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.100a1060
mov eax, dword [esp + 0x2c]
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x1001ccc4
mov ebx, dword [esp + 0x38]
movzx ecx, byte [ebx]
xor eax, eax
mov ah, byte [ebx + 1]
inc ebx
movzx edx, byte [ebx + 1]
shl edx, 0x10
mov edi, dword [esp + 0x28]
or ecx, eax
inc ebx
movzx eax, byte [ebx + 1]
or ecx, edx
inc ebx
shl eax, 0x18
or ecx, eax
movzx eax, byte [ebx + 1]
xor edx, edx
inc ebx
mov dh, byte [ebx + 1]
inc ebx
mov esi, dword [esp + 0x2c]
or eax, edx
movzx edx, byte [ebx + 1]
inc ebx
shl edx, 0x10
or eax, edx
movzx edx, byte [ebx + 1]
inc ebx
shl edx, 0x18
or eax, edx
mov edx, dword [esp + 0x30]
sub ebx, 7
add edx, 0xfffffff8
mov dword [esp + 0x3c], eax
js 0x1001cab9
lea eax, [edx + 8]
shr eax, 3
mov dword [esp + 0x14], eax
neg eax
lea eax, [edx + eax*8]
mov dword [esp + 0x30], eax
lea ecx, [ecx]
movzx eax, byte [edi]
xor edx, edx
mov dh, byte [edi + 1]
inc edi
or eax, edx
movzx edx, byte [edi + 1]
shl edx, 0x10
or eax, edx
inc edi
movzx edx, byte [edi + 1]
shl edx, 0x18
or eax, edx
inc edi
movzx ebp, byte [edi + 1]
xor edx, edx
inc edi
mov dh, byte [edi + 1]
inc edi
xor eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x20]
or ebp, edx
movzx edx, byte [edi + 1]
inc edi
shl edx, 0x10
or ebp, edx
movzx edx, byte [edi + 1]
inc edi
shl edx, 0x18
or ebp, edx
xor ebp, dword [esp + 0x40]
push ecx
inc edi
mov dword [esp + 0x28], ebp
call sym.LIBEAY32.dll_RC2_encrypt
mov eax, dword [esp + 0x24]
mov byte [esi], al
add esp, 8
inc esi
mov edx, eax
shr edx, 8
mov byte [esi], dl
inc esi
mov edx, eax
shr edx, 0x10
mov byte [esi], dl
inc esi
mov ecx, eax
shr eax, 0x18
mov byte [esi], al
mov eax, dword [esp + 0x20]
mov byte [esi + 1], al
inc esi
mov edx, eax
shr edx, 8
inc esi
mov byte [esi], dl
mov edx, eax
inc esi
shr edx, 0x10
mov dword [esp + 0x3c], eax
mov byte [esi], dl
shr eax, 0x18
inc esi
mov byte [esi], al
mov eax, dword [esp + 0x14]
inc esi
dec eax
mov dword [esp + 0x14], eax
jne 0x1001ca00
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x3c]
cmp edx, 0xfffffff8
je 0x1001cc8a
lea edi, [edi + edx + 8]
mov dword [esp + 0x28], edi
add edx, 7
xor edi, edi
xor ebp, ebp
cmp edx, 7
ja case.default.0x1001cada
jmp dword [edx*4 + 0x1001cf1c]
mov edx, dword [esp + 0x28]
movzx edi, byte [edx - 1]
dec edx
movzx eax, byte [edx - 1]
shl edi, 0x18
shl eax, 0x10
or edi, eax
dec edx
xor eax, eax
mov ah, byte [edx - 1]
dec edx
or edi, eax
movzx eax, byte [edx - 1]
dec edx
movzx ebp, byte [edx - 1]
or edi, eax
dec edx
movzx eax, byte [edx - 1]
shl ebp, 0x18
dec edx
shl eax, 0x10
or ebp, eax
xor eax, eax
mov ah, byte [edx - 1]
dec edx
or ebp, eax
mov eax, dword [esp + 0x3c]
jmp 0x1001cc20
mov edx, dword [esp + 0x28]
movzx eax, byte [edx - 1]
shl eax, 0x10
or edi, eax
dec edx
xor eax, eax
mov ah, byte [edx - 1]
dec edx
or edi, eax
movzx eax, byte [edx - 1]
dec edx
movzx ebp, byte [edx - 1]
or edi, eax
dec edx
movzx eax, byte [edx - 1]
shl ebp, 0x18
dec edx
shl eax, 0x10
or ebp, eax
xor eax, eax
mov ah, byte [edx - 1]
dec edx
or ebp, eax
mov eax, dword [esp + 0x3c]
jmp 0x1001cc20
mov edx, dword [esp + 0x28]
xor eax, eax
mov ah, byte [edx - 1]
dec edx
or edi, eax
movzx eax, byte [edx - 1]
dec edx
movzx ebp, byte [edx - 1]
or edi, eax
dec edx
movzx eax, byte [edx - 1]
shl ebp, 0x18
dec edx
shl eax, 0x10
or ebp, eax
xor eax, eax
mov ah, byte [edx - 1]
dec edx
or ebp, eax
mov eax, dword [esp + 0x3c]
jmp 0x1001cc20
mov edx, dword [esp + 0x28]
movzx eax, byte [edx - 1]
dec edx
movzx ebp, byte [edx - 1]
or edi, eax
dec edx
movzx eax, byte [edx - 1]
shl ebp, 0x18
dec edx
shl eax, 0x10
or ebp, eax
xor eax, eax
mov ah, byte [edx - 1]
dec edx
or ebp, eax
mov eax, dword [esp + 0x3c]
jmp 0x1001cc20
mov edx, dword [esp + 0x28]
movzx ebp, byte [edx - 1]
dec edx
movzx eax, byte [edx - 1]
shl ebp, 0x18
dec edx
shl eax, 0x10
or ebp, eax
xor eax, eax
mov ah, byte [edx - 1]
dec edx
or ebp, eax
mov eax, dword [esp + 0x3c]
jmp 0x1001cc20
mov edx, dword [esp + 0x28]
movzx eax, byte [edx - 1]
dec edx
shl eax, 0x10
or ebp, eax
xor eax, eax
mov ah, byte [edx - 1]
dec edx
or ebp, eax
mov eax, dword [esp + 0x3c]
jmp 0x1001cc20
mov edx, dword [esp + 0x28]
xor eax, eax
mov ah, byte [edx - 1]
dec edx
or ebp, eax
mov eax, dword [esp + 0x3c]
jmp 0x1001cc20
mov edx, dword [esp + 0x28]
movzx edx, byte [edx - 1]
or ebp, edx
xor edi, eax
mov eax, dword [esp + 0x34]
xor ebp, ecx
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], edi
call sym.LIBEAY32.dll_RC2_encrypt
mov eax, dword [esp + 0x24]
mov byte [esi], al
add esp, 8
inc esi
mov edx, eax
shr edx, 8
mov byte [esi], dl
mov edx, eax
shr edx, 0x10
mov byte [esi + 1], dl
inc esi
mov ecx, eax
shr eax, 0x18
mov byte [esi + 1], al
mov eax, dword [esp + 0x20]
inc esi
mov byte [esi + 1], al
inc esi
mov edx, eax
shr edx, 8
inc esi
mov byte [esi], dl
mov edx, eax
inc esi
mov dword [esp + 0x3c], eax
shr edx, 0x10
shr eax, 0x18
mov byte [esi], dl
mov byte [esi + 1], al
mov eax, dword [esp + 0x3c]
mov byte [ebx], cl
inc ebx
mov edx, ecx
shr edx, 8
mov byte [ebx], dl
inc ebx
mov edx, ecx
shr edx, 0x10
mov byte [ebx], dl
shr ecx, 0x18
mov byte [ebx + 1], cl
inc ebx
inc ebx
mov byte [ebx], al
inc ebx
mov ecx, eax
shr ecx, 8
mov byte [ebx], cl
pop edi
inc ebx
mov edx, eax
shr edx, 0x10
pop esi
mov byte [ebx], dl
shr eax, 0x18
pop ebp
mov byte [ebx + 1], al
pop ebx
add esp, 0x14
ret
mov ebp, dword [esp + 0x38]
movzx ebx, byte [ebp]
xor eax, eax
mov ah, byte [ebp + 1]
inc ebp
movzx ecx, byte [ebp + 1]
shl ecx, 0x10
mov esi, dword [esp + 0x28]
or ebx, eax
inc ebp
movzx edx, byte [ebp + 1]
or ebx, ecx
inc ebp
movzx eax, byte [ebp + 1]
shl edx, 0x18
or ebx, edx
inc ebp
xor ecx, ecx
mov ch, byte [ebp + 1]
inc ebp
movzx edx, byte [ebp + 1]
mov edi, dword [esp + 0x2c]
shl edx, 0x10
or eax, ecx
inc ebp
movzx ecx, byte [ebp + 1]
or eax, edx
inc ebp
shl ecx, 0x18
or eax, ecx
mov ecx, dword [esp + 0x30]
sub ebp, 7
add ecx, 0xfffffff8
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], ecx
js 0x1001ce0b
lea eax, [ecx + 8]
shr eax, 3
mov dword [esp + 0x18], eax
neg eax
lea edx, [ecx + eax*8]
mov dword [esp + 0x30], edx
lea esp, [esp]
movzx eax, byte [esi]
xor ecx, ecx
mov ch, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
shl edx, 0x10
or eax, ecx
or eax, edx
inc esi
movzx ecx, byte [esi + 1]
inc esi
shl ecx, 0x18
or eax, ecx
mov dword [esp + 0x10], eax
inc esi
mov dword [esp + 0x1c], eax
movzx eax, byte [esi]
xor edx, edx
mov dh, byte [esi + 1]
inc esi
movzx ecx, byte [esi + 1]
shl ecx, 0x10
or eax, edx
inc esi
movzx edx, byte [esi + 1]
or eax, ecx
inc esi
shl edx, 0x18
or eax, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x20]
push ecx
inc esi
call sym.LIBEAY32.dll_RC2_decrypt
mov ecx, dword [esp + 0x24]
add esp, 8
mov eax, ebx
mov ebx, dword [esp + 0x20]
xor eax, ecx
mov ecx, dword [esp + 0x3c]
mov byte [edi], al
xor ecx, ebx
inc edi
mov edx, eax
shr edx, 8
mov byte [edi], dl
mov ebx, dword [esp + 0x10]
mov edx, eax
shr edx, 0x10
mov byte [edi + 1], dl
inc edi
shr eax, 0x18
mov byte [edi + 1], al
inc edi
inc edi
mov byte [edi], cl
inc edi
mov eax, ecx
shr eax, 8
mov byte [edi], al
mov eax, dword [esp + 0x14]
inc edi
mov edx, ecx
shr edx, 0x10
mov byte [edi], dl
inc edi
shr ecx, 0x18
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x18]
mov byte [edi], cl
inc edi
dec eax
mov dword [esp + 0x18], eax
jne 0x1001cd40
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
cmp ecx, 0xfffffff8
je 0x1001ceda
movzx eax, byte [esi]
xor ecx, ecx
mov ch, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
shl edx, 0x10
or eax, ecx
inc esi
movzx ecx, byte [esi + 1]
or eax, edx
inc esi
shl ecx, 0x18
or eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
movzx eax, byte [esi + 1]
inc esi
xor edx, edx
mov dh, byte [esi + 1]
inc esi
xor ecx, ecx
mov ch, byte [esi + 2]
or eax, edx
mov edx, dword [esp + 0x34]
inc esi
mov cl, byte [esi]
push edx
shl ecx, 0x10
or eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
call sym.LIBEAY32.dll_RC2_decrypt
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, 8
xor eax, esi
cmp ecx, 7
ja case.default.0x1001ce8f
jmp dword [ecx*4 + 0x1001cf3c]
dec edi
mov ecx, eax
shr ecx, 0x18
mov byte [edi], cl
dec edi
mov edx, eax
shr edx, 0x10
mov byte [edi], dl
dec edi
mov ecx, eax
shr ecx, 8
mov byte [edi], cl
dec edi
mov byte [edi], al
dec edi
mov edx, ebx
shr edx, 0x18
mov byte [edi], dl
dec edi
mov eax, ebx
shr eax, 0x10
mov byte [edi], al
dec edi
mov ecx, ebx
shr ecx, 8
mov byte [edi], cl
mov byte [edi - 1], bl
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x3c], edx
mov eax, edx
mov byte [ebp], bl
inc ebp
mov ecx, ebx
shr ecx, 8
mov byte [ebp], cl
inc ebp
mov edx, ebx
shr edx, 0x10
mov byte [ebp], dl
inc ebp
shr ebx, 0x18
mov byte [ebp], bl
inc ebp
mov byte [ebp], al
inc ebp
mov ecx, eax
shr ecx, 8
mov byte [ebp], cl
inc ebp
mov edx, eax
pop edi
shr edx, 0x10
mov byte [ebp], dl
shr eax, 0x18
pop esi
mov byte [ebp + 1], al
pop ebp
pop ebx
add esp, 0x14
ret