Function at 0x10005853
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1006ba70
mov eax, 0x48
call fcn.10001f96
mov eax, dword [0x1025e3d4]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x54]
push ebx
mov ebx, dword [esp + 0x64]
push ebp
mov ebp, dword [esp + 0x54]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 8], ebp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x5c]
push edi
test ebp, ebp
je 0x1006bab9
test esi, esi
je 0x1006bab9
test eax, eax
je 0x1006bab9
test ebx, ebx
jne 0x1006bad0
push 0xbb
push str.crypto_aes_aes_ige.c
push str.assertion_failed:_in__out__key__ivec
call sym.libcrypto_1_1.dll_OPENSSL_die
add esp, 0xc
mov edi, dword [esp + 0x74]
cmp edi, 1
je 0x1006baf4
test edi, edi
je 0x1006baf4
push 0xbc
push str.crypto_aes_aes_ige.c
push str.assertion_failed:__AES_ENCRYPT__enc____AES_DECRYPT__enc_
call sym.libcrypto_1_1.dll_OPENSSL_die
add esp, 0xc
mov eax, dword [esp + 0x14]
test al, 0xf
je 0x1006bb17
push 0xbd
push str.crypto_aes_aes_ige.c
push str.assertion_failed:__length___AES_BLOCK_SIZE___0
call sym.libcrypto_1_1.dll_OPENSSL_die
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp edi, 1
jne 0x1006bcc2
lea edi, [ebx + 0x10]
mov ecx, ebx
cmp eax, 0x10
jb 0x1006be79
mov ebx, eax
shr ebx, 4
mov dword [esp + 0x18], ebx
lea eax, [ecx + 0xf]
cmp esi, eax
ja 0x1006bb45
lea eax, [esi + 0xf]
cmp eax, ecx
jae 0x1006bb53
lea eax, [ebp + 0xf]
cmp esi, eax
ja 0x1006bb80
lea eax, [esi + 0xf]
cmp eax, ebp
jb 0x1006bb80
mov eax, esi
sub ebp, ecx
sub eax, ecx
mov edx, 0x10
mov dword [esp + 0x20], eax
mov ebx, eax
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ebx + ecx - 1], al
sub edx, 1
jne 0x1006bb64
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
jmp 0x1006bb8e
movups xmm1, xmmword [ecx]
movups xmm0, xmmword [ebp]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
push dword [esp + 0x1c]
push esi
push esi
call sym.libcrypto_1_1.dll_AES_encrypt
lea eax, [edi + 0xf]
add esp, 0xc
cmp esi, eax
ja 0x1006bbc3
lea eax, [esi + 0xf]
cmp eax, edi
jb 0x1006bbc3
mov ecx, esi
sub edi, esi
mov edx, 0x10
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x1006bbb3
jmp 0x1006bbd0
movups xmm0, xmmword [esi]
movups xmm1, xmmword [edi]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
movups xmm0, xmmword [ebp]
mov ecx, esi
lea edi, [esp + 0x44]
add ebp, 0x10
add esi, 0x10
sub ebx, 1
mov dword [esp + 0x10], ebp
movups xmmword [esp + 0x44], xmm0
mov dword [esp + 0x18], ebx
jne 0x1006bb37
mov ebx, dword [esp + 0x70]
mov eax, dword [esp + 0x14]
shr eax, 4
mov dword [esp + 0x14], eax
lea edx, [ebx + 0x20]
lea edi, [ebx + 0x30]
nop dword [eax + eax]
movups xmm0, xmmword [esi - 0x10]
mov ebp, esi
lea eax, [edx + 0xf]
sub esi, 0x10
movups xmmword [esp + 0x34], xmm0
cmp esi, eax
ja 0x1006bc45
lea eax, [ebp - 1]
cmp eax, edx
jb 0x1006bc45
mov ecx, esi
sub edx, esi
mov ebx, 0x10
mov al, byte [edx + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub ebx, 1
jne 0x1006bc35
jmp 0x1006bc52
movups xmm1, xmmword [esi]
movups xmm0, xmmword [edx]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
push dword [esp + 0x1c]
push esi
push esi
call sym.libcrypto_1_1.dll_AES_encrypt
lea eax, [edi + 0xf]
add esp, 0xc
cmp esi, eax
ja 0x1006bc87
lea eax, [ebp - 1]
cmp eax, edi
jb 0x1006bc87
mov ecx, esi
sub edi, esi
mov edx, 0x10
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x1006bc77
jmp 0x1006bc94
movups xmm0, xmmword [esi]
movups xmm1, xmmword [edi]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
sub dword [esp + 0x14], 1
lea edi, [esp + 0x44]
movups xmm0, xmmword [esp + 0x34]
mov edx, esi
movups xmmword [esp + 0x44], xmm0
jne 0x1006bc10
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.100032f1
add esp, 0x48
ret
add dword [esp + 0x10], eax
lea ebp, [ebx + 0x20]
add esi, eax
lea edi, [ebx + 0x30]
cmp eax, 0x10
jb 0x1006be79
mov ebx, dword [esp + 0x10]
lea ecx, [esi + 0xf]
shr eax, 4
mov dword [esp + 0x18], eax
movups xmm0, xmmword [ebx - 0x10]
lea ebx, [ebx - 0x10]
sub ecx, 0x10
mov dword [esp + 0x10], ecx
lea eax, [edi + 0xf]
movups xmmword [esp + 0x34], xmm0
lea ecx, [esp + 0x34]
sub esi, 0x10
movups xmm0, xmmword [ebx]
xor edx, edx
movups xmmword [esp + 0x24], xmm0
cmp ecx, eax
ja 0x1006bd33
lea eax, [esp + 0x43]
cmp eax, edi
jb 0x1006bd33
mov eax, ecx
sub edi, eax
nop dword [eax]
lea ecx, [esp + 0x34]
add ecx, edx
inc edx
mov al, byte [ecx + edi]
xor byte [ecx], al
cmp edx, 0x10
jb 0x1006bd20
jmp 0x1006bd44
movups xmm0, xmmword [esp + 0x34]
movups xmm1, xmmword [edi]
pxor xmm1, xmm0
movups xmmword [esp + 0x34], xmm1
push dword [esp + 0x1c]
lea eax, [esp + 0x38]
push esi
push eax
call sym.libcrypto_1_1.dll_AES_decrypt
lea eax, [ebp + 0xf]
add esp, 0xc
cmp esi, eax
ja 0x1006bd80
cmp dword [esp + 0x10], ebp
jb 0x1006bd80
mov ecx, esi
sub ebp, esi
mov edx, 0x10
nop dword [eax]
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x1006bd70
jmp 0x1006bd8e
movups xmm1, xmmword [esi]
movups xmm0, xmmword [ebp]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
sub dword [esp + 0x18], 1
lea ebp, [esp + 0x44]
movups xmm0, xmmword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov edi, esi
movups xmmword [esp + 0x44], xmm0
jne 0x1006bce5
mov ebx, dword [esp + 0x70]
mov ebp, dword [esp + 0x14]
shr ebp, 4
lea edi, [ebx + 0x10]
nop dword [eax + eax]
movups xmm0, xmmword [esi]
lea eax, [edi + 0xf]
xor edx, edx
lea ecx, [esp + 0x34]
movups xmmword [esp + 0x34], xmm0
movups xmm0, xmmword [esi]
movups xmmword [esp + 0x24], xmm0
cmp ecx, eax
ja 0x1006be03
lea eax, [esp + 0x43]
cmp eax, edi
jb 0x1006be03
mov eax, ecx
sub edi, eax
nop dword [eax]
lea ecx, [esp + 0x34]
add ecx, edx
inc edx
mov al, byte [ecx + edi]
xor byte [ecx], al
cmp edx, 0x10
jb 0x1006bdf0
jmp 0x1006be14
movups xmm0, xmmword [esp + 0x34]
movups xmm1, xmmword [edi]
pxor xmm1, xmm0
movups xmmword [esp + 0x34], xmm1
push dword [esp + 0x1c]
lea eax, [esp + 0x38]
push esi
push eax
call sym.libcrypto_1_1.dll_AES_decrypt
lea eax, [ebx + 0xf]
add esp, 0xc
cmp esi, eax
ja 0x1006be50
lea eax, [esi + 0xf]
cmp eax, ebx
jb 0x1006be50
mov ecx, esi
sub ebx, esi
mov edx, 0x10
nop dword [eax]
mov al, byte [ecx + ebx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x1006be40
jmp 0x1006be5d
movups xmm1, xmmword [esi]
movups xmm0, xmmword [ebx]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
movups xmm0, xmmword [esp + 0x24]
mov edi, esi
lea ebx, [esp + 0x44]
add esi, 0x10
movups xmmword [esp + 0x44], xmm0
sub ebp, 1
jne 0x1006bdc0
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100032f1
add esp, 0x48
ret