Function at 0x100039c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x10090d90
mov eax, 0x1c
call fcn.100011c0
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x40]
movzx edx, byte [edi + 1]
movzx eax, byte [edi]
movzx ecx, byte [edi + 7]
shl edx, 8
or edx, eax
shl ecx, 8
movzx eax, byte [edi + 2]
shl eax, 0x10
or edx, eax
movzx eax, byte [edi + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [edi + 5]
shl eax, 8
cmp dword [esp + 0x44], 0
mov dword [esp + 0x10], edx
je 0x10090f9d
movzx ebx, byte [edi + 4]
mov ebp, dword [esp + 0x38]
or ebx, eax
movzx eax, byte [edi + 6]
mov esi, dword [esp + 0x34]
or ecx, eax
mov edi, dword [esp + 0x30]
shl ecx, 0x10
or ebx, ecx
add ebp, 0xfffffff8
mov dword [esp + 0x14], ebp
js 0x10090ed2
lea eax, [ebp + 8]
shr eax, 3
mov dword [esp + 0x20], eax
neg eax
lea ebp, [ebp + eax*8]
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x20]
nop
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
or edx, eax
movzx eax, byte [edi + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [edi + 5]
xor edx, dword [esp + 0x10]
shl eax, 8
or ecx, eax
mov dword [esp + 0x24], edx
movzx eax, byte [edi + 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edi + 7]
shl eax, 0x18
add edi, 8
push 1
push dword [esp + 0x40]
or ecx, eax
lea eax, [esp + 0x2c]
xor ecx, ebx
push eax
mov dword [esp + 0x34], ecx
call sym.libcrypto_1_1.dll_DES_encrypt1
mov edx, dword [esp + 0x30]
add esp, 0xc
mov ebx, dword [esp + 0x28]
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, ebx
shr eax, 8
mov byte [esi + 5], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, ebx
shr eax, 0x18
mov byte [esi + 4], bl
mov byte [esi + 7], al
add esi, 8
mov dword [esp + 0x10], edx
sub ebp, 1
jne 0x10090e20
mov ebp, dword [esp + 0x14]
cmp ebp, 0xfffffff8
je 0x10091168
mov eax, dword [esp + 0x14]
lea ecx, [ebp + 8]
add ecx, edi
add eax, 7
xor edi, edi
xor ebp, ebp
cmp eax, 7
ja case.default.0x10090ef0
jmp dword [eax*4 + 0x100911d4]
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 ebp, byte [ecx - 1]
dec ecx
shl ebp, 0x18
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or ebp, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or ebp, eax
movzx eax, byte [ecx - 1]
or ebp, eax
push 1
push dword [esp + 0x40]
lea eax, [esp + 0x2c]
xor ebp, edx
xor edi, ebx
mov dword [esp + 0x2c], ebp
push eax
mov dword [esp + 0x34], edi
call sym.libcrypto_1_1.dll_DES_encrypt1
mov edx, dword [esp + 0x30]
add esp, 0xc
mov ebx, dword [esp + 0x28]
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, ebx
shr eax, 8
mov byte [esi + 5], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, ebx
shr eax, 0x18
mov byte [esi + 4], bl
mov byte [esi + 7], al
jmp 0x10091168
movzx esi, byte [edi + 4]
mov ebp, dword [esp + 0x34]
or esi, eax
movzx eax, byte [edi + 6]
mov edi, dword [esp + 0x38]
or ecx, eax
mov ebx, dword [esp + 0x30]
shl ecx, 0x10
or esi, ecx
add edi, 0xfffffff8
mov dword [esp + 0x14], esi
js 0x10091099
lea eax, [edi + 8]
shr eax, 3
mov dword [esp + 0x18], eax
neg eax
lea edi, [edi + eax*8]
mov dword [esp + 0x20], edi
nop word [eax + eax]
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 + 0x24], edi
movzx eax, byte [ebx + 6]
shl eax, 0x10
or esi, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
add ebx, 8
push 0
push dword [esp + 0x40]
or esi, eax
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x34], esi
call sym.libcrypto_1_1.dll_DES_encrypt1
mov ecx, dword [esp + 0x30]
add esp, 0xc
xor ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov eax, ecx
xor edx, dword [esp + 0x14]
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 edx, 0x18
shr ecx, 0x18
shr eax, 0x10
mov byte [ebp + 7], dl
mov edx, edi
mov byte [ebp + 3], cl
mov byte [ebp + 6], al
add ebp, 8
sub dword [esp + 0x18], 1
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], esi
jne 0x10090fe0
mov edi, dword [esp + 0x20]
cmp edi, 0xfffffff8
je 0x10091164
movzx eax, byte [ebx + 1]
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
or ecx, eax
movzx eax, byte [ebx + 5]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
movzx ecx, byte [ebx + 7]
shl eax, 8
or edx, eax
shl ecx, 8
movzx eax, byte [ebx + 6]
or ecx, eax
lea eax, [esp + 0x24]
push 0
push dword [esp + 0x40]
shl ecx, 0x10
or edx, ecx
push eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x34], edx
call sym.libcrypto_1_1.dll_DES_encrypt1
mov ebx, dword [esp + 0x30]
lea ecx, [ebp + 8]
mov edx, dword [esp + 0x34]
add ecx, edi
xor ebx, dword [esp + 0x1c]
add edi, 7
add esp, 0xc
xor edx, esi
cmp edi, 7
ja case.default.0x1009111d
jmp dword [edi*4 + 0x100911f4]
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 edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
jmp 0x10091168
mov ebx, dword [esp + 0x14]
mov eax, ebx
mov ecx, ebx
shr eax, 0x10
mov dword [esp + 0x20], eax
mov eax, ebx
shr eax, 8
mov dword [esp + 0x1c], eax
mov eax, edx
shr eax, 0x18
mov dword [esp + 0x10], eax
mov eax, edx
shr eax, 0x10
mov dword [esp + 0x14], eax
mov eax, edx
shr ecx, 0x18
shr eax, 8
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x40]
pop edi
pop esi
pop ebp
mov byte [eax], dl
mov edx, dword [esp + 0xc]
mov byte [eax + 1], dl
mov edx, dword [esp + 8]
mov byte [eax + 2], dl
mov edx, dword [esp + 4]
mov byte [eax + 3], dl
mov edx, dword [esp + 0x10]
mov byte [eax + 4], bl
mov byte [eax + 5], dl
mov edx, dword [esp + 0x14]
mov byte [eax + 6], dl
mov byte [eax + 7], cl
pop ebx
add esp, 0x1c
ret