Function at 0x10022a70
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x40
call fcn.100a1060
push ebx
mov ebx, dword [esp + 0x58]
push ebp
push esi
mov esi, dword [esp + 0x54]
push edi
mov edi, dword [esp + 0x54]
test edi, edi
je 0x10022a9e
test esi, esi
je 0x10022a9e
mov eax, dword [esp + 0x60]
test eax, eax
je 0x10022a9e
test ebx, ebx
jne 0x10022ab2
push str.in__out__key__ivec
push 0x56
push str..crypto_aes_aes_ige.c
call sym.LIBEAY32.dll_OpenSSLDie
add esp, 0xc
mov ebp, dword [esp + 0x68]
cmp ebp, 1
je 0x10022ad3
test ebp, ebp
je 0x10022ad3
push str._AES_ENCRYPT__enc__AES_DECRYPT__enc_
push 0x57
push str..crypto_aes_aes_ige.c
call sym.LIBEAY32.dll_OpenSSLDie
add esp, 0xc
mov eax, dword [esp + 0x5c]
test al, 0xf
je 0x10022af3
push str._length_AES_BLOCK_SIZE___0
push 0x58
push str..crypto_aes_aes_ige.c
call sym.LIBEAY32.dll_OpenSSLDie
mov eax, dword [esp + 0x68]
add esp, 0xc
shr eax, 4
cmp ebp, 1
mov edx, eax
mov dword [esp + 0x54], edx
jne 0x10022d3a
cmp edi, esi
je 0x10022bda
mov eax, edi
or eax, esi
or eax, ebx
test al, 3
jne 0x10022bda
test edx, edx
lea ecx, [ebx + 0x10]
mov eax, ebx
mov dword [esp + 0x5c], ecx
mov ebp, ecx
je 0x10022ba5
mov dword [esp + 0x54], edx
mov edi, edi
mov edx, dword [eax]
mov ecx, dword [edi]
xor ecx, edx
mov dword [esi], ecx
mov edx, dword [eax + 4]
xor edx, dword [edi + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
xor ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
xor edx, dword [edi + 0xc]
mov eax, dword [esp + 0x60]
push eax
push esi
push esi
mov dword [esi + 0xc], edx
call sym.LIBEAY32.dll_AES_encrypt
mov ecx, dword [ebp]
mov edx, dword [esi]
mov eax, dword [esi + 4]
xor edx, ecx
mov ecx, dword [esi + 8]
mov dword [esi], edx
mov edx, dword [ebp + 4]
xor eax, edx
mov edx, dword [esi + 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
xor ecx, eax
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0xc]
xor edx, ecx
mov ecx, dword [esp + 0x60]
mov dword [esi + 0xc], edx
mov eax, esi
mov ebp, edi
add esp, 0xc
add edi, 0x10
add esi, 0x10
dec ecx
mov dword [esp + 0x54], ecx
jne 0x10022b30
mov ecx, dword [esp + 0x5c]
mov edx, dword [eax]
mov dword [ebx], edx
mov edx, dword [eax + 4]
mov dword [ebx + 4], edx
mov edx, dword [eax + 8]
mov dword [ebx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ebx + 0xc], eax
mov edx, dword [ebp]
mov dword [ecx], edx
mov eax, dword [ebp + 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 8]
pop edi
mov dword [ecx + 8], edx
mov eax, dword [ebp + 0xc]
pop esi
pop ebp
mov dword [ecx + 0xc], eax
pop ebx
add esp, 0x40
ret
mov ecx, ebx
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [esp + 0x34], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x38], edx
lea ebp, [ebx + 0x10]
mov dword [esp + 0x3c], ecx
mov edx, ebp
mov ecx, dword [edx]
mov dword [esp + 0x20], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x24], ecx
mov ecx, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x54]
test ecx, ecx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x2c], edx
je 0x10022cff
mov dword [esp + 0x54], ecx
mov edx, edi
mov ebp, dword [edx]
mov ecx, dword [edx + 4]
xor eax, ebp
mov dword [esp + 0x44], ecx
mov ecx, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
xor eax, dword [esp + 0x34]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x14], eax
xor ecx, dword [esp + 0x38]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x3c]
xor ecx, edx
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x60]
push edx
lea eax, [esp + 0x14]
mov dword [esp + 0x20], ecx
push eax
mov ecx, eax
push ecx
call sym.LIBEAY32.dll_AES_encrypt
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
xor eax, ecx
mov ecx, dword [esp + 0x20]
xor ecx, edx
mov edx, dword [esp + 0x34]
xor dword [esp + 0x24], edx
mov edx, dword [esp + 0x38]
xor dword [esp + 0x28], edx
mov dword [esp + 0x20], ecx
mov edx, esi
mov dword [edx], eax
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x28]
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x60]
add esp, 0xc
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x48]
add edi, 0x10
add esi, 0x10
dec ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], edx
mov dword [esp + 0x54], ecx
jne 0x10022c27
mov ebp, dword [esp + 0x5c]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov dword [ebx], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 4], edx
mov edx, dword [esp + 0x20]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x24]
mov dword [ebp], edx
mov edx, dword [esp + 0x2c]
mov dword [ebx + 0xc], ecx
mov ecx, dword [esp + 0x28]
pop edi
mov dword [ebp + 4], eax
mov dword [ebp + 8], ecx
pop esi
mov dword [ebp + 0xc], edx
pop ebp
pop ebx
add esp, 0x40
ret
cmp edi, esi
je 0x10022e11
mov eax, edi
or eax, esi
or eax, ebx
test al, 3
jne 0x10022e11
test edx, edx
lea ecx, [ebx + 0x10]
mov ebp, ebx
mov dword [esp + 0x5c], ecx
mov eax, ecx
je 0x10022ddc
mov dword [esp + 0x54], edx
mov edx, dword [eax]
mov ecx, dword [edi]
xor ecx, edx
mov edx, dword [eax + 4]
mov dword [esp + 0x40], ecx
xor edx, dword [edi + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x44], edx
xor ecx, dword [edi + 8]
mov edx, dword [eax + 0xc]
xor edx, dword [edi + 0xc]
mov eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x44]
push esi
push ecx
mov dword [esp + 0x58], edx
call sym.LIBEAY32.dll_AES_decrypt
mov edx, dword [ebp]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
xor eax, edx
mov dword [esi], eax
mov eax, dword [ebp + 4]
xor ecx, eax
mov eax, dword [esi + 8]
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 8]
xor eax, ecx
mov ecx, dword [esp + 0x60]
mov dword [esi + 8], eax
mov edx, dword [ebp + 0xc]
xor dword [esi + 0xc], edx
mov ebp, edi
mov eax, esi
add esp, 0xc
add edi, 0x10
add esi, 0x10
dec ecx
mov dword [esp + 0x54], ecx
jne 0x10022d63
mov ecx, dword [esp + 0x5c]
mov edx, dword [ebp]
mov dword [ebx], edx
mov edx, dword [ebp + 4]
mov dword [ebx + 4], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 8], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 0xc], edx
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
pop edi
pop esi
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
pop ebp
mov dword [ecx + 0xc], eax
pop ebx
add esp, 0x40
ret
mov ecx, ebx
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [esp + 0x30], edx
mov edx, dword [ecx + 8]
mov ebp, dword [ecx + 0xc]
mov dword [esp + 0x34], eax
lea eax, [ebx + 0x10]
mov ecx, eax
mov dword [esp + 0x5c], eax
mov eax, dword [ecx]
mov dword [esp + 0x38], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x44], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x10022f42
mov dword [esp + 0x54], ecx
mov ecx, edi
mov ebx, dword [ecx]
mov dword [esp + 0x10], ebx
mov ebx, dword [ecx + 4]
mov dword [esp + 0x14], ebx
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ebx
mov ecx, edi
mov ebx, dword [ecx]
mov dword [esp + 0x20], ebx
mov ebx, dword [ecx + 4]
mov dword [esp + 0x24], ebx
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x10]
xor ebx, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x14]
xor ecx, eax
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x18]
xor ebx, edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x4c]
xor edx, ecx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x60]
push edx
lea eax, [esp + 0x14]
push eax
mov ecx, eax
push ecx
mov dword [esp + 0x24], ebx
call sym.LIBEAY32.dll_AES_decrypt
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
xor ecx, edx
mov edx, dword [esp + 0x24]
xor eax, ebx
xor edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x28]
xor ebx, ebp
mov ebp, esi
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], ebx
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x3c], ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x40], ebp
mov ebp, dword [esp + 0x34]
add esp, 0xc
add edi, 0x10
add esi, 0x10
dec ecx
mov dword [esp + 0x38], ebp
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x54], ecx
jne 0x10022e56
mov ebx, dword [esp + 0x64]
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x5c]
mov dword [ebx], esi
mov esi, dword [esp + 0x34]
mov dword [ebx + 4], esi
mov esi, dword [esp + 0x38]
mov dword [ecx], eax
mov eax, dword [esp + 0x44]
pop edi
mov dword [ebx + 8], esi
mov dword [ecx + 4], eax
pop esi
mov dword [ebx + 0xc], ebp
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x44]
pop ebp
mov dword [ecx + 0xc], edx
pop ebx
add esp, 0x40
ret