Function at 0x10004282
Capabilities:
Encode data using xor

Disassembly:
jmp 0x100cc7e0
mov eax, 0xc
call fcn.10001f96
cmp dword [esp + 0x24], 0
mov eax, dword [esp + 0x20]
push ebx
push ebp
push esi
lea edx, [eax + 1]
movzx eax, byte [eax]
push edi
je 0x100cc9f4
movzx ebp, byte [edx]
movzx ebx, byte [edx + 3]
movzx ecx, byte [edx + 6]
shl ebp, 8
or ebp, eax
mov esi, dword [esp + 0x24]
movzx eax, byte [edx + 1]
shl eax, 0x10
or ebp, eax
mov edi, dword [esp + 0x20]
movzx eax, byte [edx + 2]
shl eax, 0x18
or ebp, eax
shl ecx, 8
movzx eax, byte [edx + 4]
shl eax, 8
or ebx, eax
movzx eax, byte [edx + 5]
or ecx, eax
shl ecx, 0x10
or ebx, ecx
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x28]
lea ecx, [ebx - 8]
mov dword [esp + 0x28], ecx
test ecx, ecx
js 0x100cc928
shr ebx, 3
mov eax, ebx
neg eax
lea ecx, [ecx + eax*8]
mov dword [esp + 0x28], ecx
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
or edx, eax
movzx eax, byte [edi + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [edi + 5]
shl eax, 8
xor edx, ebp
or ecx, eax
mov dword [esp + 0x14], 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 + 0x30]
or ecx, eax
lea eax, [esp + 0x1c]
xor ecx, dword [esp + 0x38]
push eax
mov dword [esp + 0x24], ecx
call sym.libcrypto_1_1.dll_DES_encrypt1
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov edx, dword [esp + 0x18]
mov eax, ecx
shr eax, 8
mov ebp, ecx
mov byte [esi], cl
mov byte [esi + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, ecx
shr eax, 0x18
mov byte [esi + 3], al
mov eax, edx
shr eax, 8
mov byte [esi + 5], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 4], dl
mov byte [esi + 7], al
add esi, 8
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], edx
sub ebx, 1
jne 0x100cc870
mov ecx, dword [esp + 0x28]
cmp ecx, 0xfffffff8
je case.default.0x100ccb93
mov eax, dword [esp + 0x28]
add edi, 8
add ecx, edi
add eax, 7
xor edx, edx
xor edi, edi
cmp eax, 7
ja case.default.0x100cc946
jmp dword [eax*4 + 0x100ccbd8]
movzx edx, byte [ecx - 1]
dec ecx
shl edx, 0x18
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or edx, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or edx, eax
movzx eax, byte [ecx - 1]
dec ecx
or edx, eax
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]
or edi, eax
xor edx, dword [esp + 0x30]
lea eax, [esp + 0x14]
push 1
push dword [esp + 0x30]
xor edi, ebp
mov dword [esp + 0x20], edx
push eax
mov dword [esp + 0x20], edi
call sym.libcrypto_1_1.dll_DES_encrypt1
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov byte [esi], cl
mov eax, ecx
shr eax, 8
mov byte [esi + 1], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [esi + 2], al
mov byte [esi + 3], cl
mov ecx, dword [esp + 0x18]
mov eax, ecx
shr eax, 8
mov byte [esi + 5], al
mov eax, ecx
mov byte [esi + 4], cl
shr eax, 0x10
pop edi
shr ecx, 0x18
mov byte [esi + 6], al
mov byte [esi + 7], cl
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
movzx edi, byte [edx]
movzx ecx, byte [edx + 3]
shl edi, 8
or edi, eax
mov ebp, dword [esp + 0x24]
movzx eax, byte [edx + 1]
shl eax, 0x10
or edi, eax
mov ebx, dword [esp + 0x20]
movzx eax, byte [edx + 2]
shl eax, 0x18
or edi, eax
movzx eax, byte [edx + 4]
shl eax, 8
or ecx, eax
mov dword [esp + 0x34], edi
movzx eax, byte [edx + 5]
mov dword [esp + 0x30], ecx
movzx ecx, byte [edx + 6]
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x28]
shl ecx, 0x10
or dword [esp + 0x30], ecx
lea esi, [eax - 8]
test esi, esi
js 0x100ccb17
shr eax, 3
mov dword [esp + 0x28], eax
neg eax
lea esi, [esi + eax*8]
mov dword [esp + 0x10], esi
nop
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 + 0x14], 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 + 0x30]
or esi, eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x24], esi
call sym.libcrypto_1_1.dll_DES_encrypt1
mov ecx, dword [esp + 0x20]
add esp, 0xc
xor ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x18]
mov eax, ecx
xor edx, dword [esp + 0x30]
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 eax, 0x10
shr edx, 0x18
mov byte [ebp + 3], cl
mov byte [ebp + 6], al
mov byte [ebp + 7], dl
add ebp, 8
sub dword [esp + 0x28], 1
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], esi
jne 0x100cca60
mov esi, dword [esp + 0x10]
cmp esi, 0xfffffff8
je case.default.0x100ccb93
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 + 0x14], 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 + 0x14]
push 0
push dword [esp + 0x30]
shl ecx, 0x10
or ecx, edx
push eax
mov dword [esp + 0x24], ecx
call sym.libcrypto_1_1.dll_DES_encrypt1
mov edx, dword [esp + 0x20]
lea ecx, [ebp + 8]
mov ebx, dword [esp + 0x24]
add ecx, esi
xor ebx, dword [esp + 0x3c]
add esi, 7
add esp, 0xc
xor edx, edi
cmp esi, 7
ja case.default.0x100ccb93
jmp dword [esi*4 + 0x100ccbf8]
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
dec ecx
mov byte [ecx], bl
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
mov byte [ecx - 1], dl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret