Function at 0x10028920
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x30
call fcn.100b1990
push ebx
push ebp
push esi
mov esi, dword [esp + 0x44]
push edi
mov edi, dword [esp + 0x44]
test edi, edi
je 0x10028950
test esi, esi
je 0x10028950
mov eax, dword [esp + 0x50]
mov ebp, dword [esp + 0x58]
test eax, eax
je 0x10028954
test ebp, ebp
jne 0x1002896b
jmp 0x10028954
mov ebp, dword [esp + 0x58]
push str.in__out__key__ivec
push 0xa6
push str..crypto_aes_aes_ige.c
call sym.LIBEAY32_smt.dll_OpenSSLDie
add esp, 0xc
mov eax, dword [esp + 0x5c]
cmp eax, 1
je 0x1002898f
test eax, eax
je 0x1002898f
push str._AES_ENCRYPT__enc__AES_DECRYPT__enc_
push 0xa7
push str..crypto_aes_aes_ige.c
call sym.LIBEAY32_smt.dll_OpenSSLDie
add esp, 0xc
mov ebx, dword [esp + 0x4c]
test bl, 0xf
je 0x100289af
push str._length_AES_BLOCK_SIZE___0
push 0xa8
push str..crypto_aes_aes_ige.c
call sym.LIBEAY32_smt.dll_OpenSSLDie
add esp, 0xc
cmp dword [esp + 0x5c], 1
jne 0x10028aee
lea eax, [ebp + 0x10]
cmp ebx, 0x10
mov ecx, ebp
mov dword [esp + 0x5c], eax
jb 0x10028a56
shr ebx, 4
mov dword [esp + 0x44], ebx
mov ebp, esi
sub ecx, edi
mov eax, edi
sub ebp, edi
mov edx, 0x10
mov bl, byte [ecx + eax]
xor bl, byte [eax]
inc eax
dec edx
mov byte [eax + ebp - 1], bl
jne 0x100289e0
mov ecx, dword [esp + 0x50]
push ecx
push esi
push esi
call sym.LIBEAY32_smt.dll_AES_encrypt
mov ecx, dword [esp + 0x68]
add esp, 0xc
mov eax, esi
sub ecx, esi
mov ebp, 0x10
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec ebp
jne 0x10028a09
mov eax, edi
mov ecx, esi
add edi, 0x10
add esi, 0x10
mov edx, dword [eax]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x24], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x28], edx
lea edx, [esp + 0x20]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x44]
dec eax
mov dword [esp + 0x44], eax
jne 0x100289d3
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x58]
lea ecx, [ebp + 0x20]
add ebp, 0x30
cmp ebx, 0x10
jb 0x10028c84
shr ebx, 4
sub esi, 0x10
mov edi, 0x10
mov eax, esi
sub ecx, esi
mov edx, dword [eax]
mov dword [esp + 0x10], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x14], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x18], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x1c], eax
mov eax, esi
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec edi
jne 0x10028a91
mov eax, dword [esp + 0x50]
push eax
push esi
push esi
call sym.LIBEAY32_smt.dll_AES_encrypt
mov ecx, ebp
add esp, 0xc
mov eax, esi
sub ecx, esi
mov edi, 0x10
mov dl, byte [eax + ecx]
xor byte [eax], dl
inc eax
dec edi
jne 0x10028ab4
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x1c]
dec ebx
mov ecx, esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
lea ebp, [esp + 0x20]
jne 0x10028a68
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov eax, dword [esp + 0x4c]
lea ebx, [ebp + 0x20]
add ebp, 0x30
add edi, eax
add esi, eax
cmp eax, 0x10
jb 0x10028bc5
shr eax, 4
mov dword [esp + 0x5c], eax
sub edi, 0x10
sub esi, 0x10
mov eax, edi
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x14], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 0xc]
mov ecx, dword [eax]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x24], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x10]
mov edx, dword [eax + 0xc]
xor eax, eax
mov dword [esp + 0x2c], edx
sub ebp, ecx
lea ecx, [esp + eax + 0x10]
mov dl, byte [ecx + ebp]
xor byte [ecx], dl
inc eax
cmp eax, 0x10
jb 0x10028b52
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x10]
push eax
push esi
push ecx
call sym.LIBEAY32_smt.dll_AES_decrypt
mov ecx, ebx
add esp, 0xc
mov eax, esi
sub ecx, esi
mov ebp, 0x10
mov dl, byte [eax + ecx]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec ebp
jne 0x10028b7f
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x5c]
dec eax
mov dword [esp + 0x38], edx
lea ebx, [esp + 0x30]
mov ebp, esi
mov dword [esp + 0x5c], eax
jne 0x10028b0c
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x58]
mov ebp, edi
add edi, 0x10
cmp eax, 0x10
jb 0x10028c84
shr eax, 4
mov dword [esp + 0x58], eax
mov ecx, esi
mov edx, dword [ecx]
mov dword [esp + 0x10], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x14], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x18], edx
mov eax, dword [ecx + 0xc]
mov ebx, dword [ecx]
mov dword [esp + 0x1c], eax
mov edx, dword [ecx + 4]
mov dword [esp + 0x24], edx
lea edx, [esp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esp + 0x28], eax
xor eax, eax
mov ecx, dword [ecx + 0xc]
sub edi, edx
mov dword [esp + 0x2c], ecx
lea ecx, [esp + eax + 0x10]
mov dl, byte [edi + ecx]
xor byte [ecx], dl
inc eax
cmp eax, 0x10
jb 0x10028c1a
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x10]
push eax
push esi
push ecx
call sym.LIBEAY32_smt.dll_AES_decrypt
mov ecx, ebp
add esp, 0xc
mov eax, esi
sub ecx, esi
mov edi, 0x10
mov dl, byte [eax + ecx]
xor byte [eax], dl
inc eax
dec edi
jne 0x10028c47
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x58]
mov edi, esi
add esi, 0x10
dec eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
lea ebp, [esp + 0x30]
mov dword [esp + 0x58], eax
jne 0x10028bde
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret