Function at 0x1000aff6
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 4], 0
mov dword [ebp - 0x14], esi
je 0x1000b38f
mov edx, dword [ebp + 8]
movzx ebx, byte [edx]
movzx eax, byte [edx + 1]
movzx ecx, byte [edx + 4]
shl eax, 0x10
shl ebx, 0x18
or ebx, eax
movzx eax, byte [edx + 2]
shl eax, 8
or ebx, eax
movzx eax, byte [edx + 3]
or ebx, eax
movzx eax, byte [edx + 5]
shl eax, 0x10
shl ecx, 0x18
or ecx, eax
movzx eax, byte [edx + 6]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 7]
or ecx, eax
xor ecx, dword [esi + 0xc]
movzx eax, byte [edx + 9]
mov dword [ebp - 8], ecx
movzx ecx, byte [edx + 8]
shl eax, 0x10
shl ecx, 0x18
or ecx, eax
movzx eax, byte [edx + 0xa]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 0xb]
or ecx, eax
xor ecx, dword [esi + 0x10]
movzx eax, byte [edx + 0xd]
xor ebx, dword [esi + 8]
mov dword [ebp - 4], ecx
movzx ecx, byte [edx + 0xc]
shl eax, 0x10
shl ecx, 0x18
or ecx, eax
movzx eax, byte [edx + 0xe]
shl eax, 8
mov dword [ebp + 8], eax
movzx eax, byte [edx + 0xf]
mov edx, dword [ebp + 8]
or edx, eax
mov eax, dword [esi + 0x3d0]
or edx, ecx
xor edx, dword [esi + 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp + 8], edx
cmp eax, 1
jle 0x1000b1fd
add esi, 0x30
dec eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], esi
sar eax, 0x10
and eax, 0xff
mov ecx, edx
mov edx, dword [ebp - 8]
sar ecx, 8
and ecx, 0xff
mov edi, dword [ecx*4 + 0x100943a0]
xor edi, dword [eax*4 + 0x10093ba0]
mov ecx, dword [ebp + 8]
mov eax, edx
sar eax, 0x18
and eax, 0xff
sar ecx, 0x10
xor edi, dword [eax*4 + 0x10095600]
movzx eax, bl
xor edi, dword [eax*4 + 0x100937a0]
mov eax, dword [ebp - 4]
xor edi, dword [esi - 4]
sar eax, 0x18
mov esi, 0xff
and eax, esi
and ecx, esi
mov esi, dword [ecx*4 + 0x10093ba0]
xor esi, dword [eax*4 + 0x10095600]
mov ecx, dword [ebp + 8]
mov eax, ebx
sar eax, 8
and eax, 0xff
sar ecx, 0x18
xor esi, dword [eax*4 + 0x100943a0]
movzx eax, dl
and ecx, 0xff
xor esi, dword [eax*4 + 0x100937a0]
mov eax, dword [ebp - 0xc]
xor esi, dword [eax]
mov eax, edx
mov edx, dword [ecx*4 + 0x10095600]
mov ecx, dword [ebp - 4]
sar eax, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x100943a0]
mov eax, ebx
sar eax, 0x10
and eax, 0xff
sar ebx, 0x18
xor edx, dword [eax*4 + 0x10093ba0]
movzx eax, cl
sar ecx, 8
xor edx, dword [eax*4 + 0x100937a0]
mov eax, dword [ebp - 0xc]
and ecx, 0xff
xor edx, dword [eax + 4]
mov eax, dword [ebp - 8]
mov ecx, dword [ecx*4 + 0x100943a0]
sar eax, 0x10
and eax, 0xff
and ebx, 0xff
xor ecx, dword [eax*4 + 0x10093ba0]
mov eax, dword [ebp + 8]
xor ecx, dword [ebx*4 + 0x10095600]
movzx eax, al
mov dword [ebp - 8], edi
xor ecx, dword [eax*4 + 0x100937a0]
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], edx
xor ecx, dword [eax - 8]
mov eax, esi
mov esi, dword [ebp - 0xc]
add esi, 0x20
dec dword [ebp - 0x18]
mov ebx, ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esi
jne 0x1000b0c6
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
shl eax, 5
mov dword [ebp - 0x10], eax
mov edx, dword [eax + esi + 8]
mov esi, dword [ebp + 0xc]
mov eax, edx
sar eax, 0x18
mov ecx, ebx
sar ecx, 0x18
and ecx, 0xff
mov edi, 0xff
xor al, byte [ecx + 0x10095100]
mov ecx, dword [ebp - 8]
mov byte [esi], al
sar ecx, 0x10
and ecx, 0xff
mov eax, edx
sar eax, 0x10
xor al, byte [ecx + 0x10095100]
mov ecx, dword [ebp - 4]
mov byte [esi + 1], al
sar ecx, 8
and ecx, 0xff
mov eax, edx
sar eax, 8
xor al, byte [ecx + 0x10095100]
mov ecx, dword [ebp - 8]
mov byte [esi + 2], al
mov eax, dword [ebp + 8]
movzx eax, al
sar ecx, 0x18
mov al, byte [eax + 0x10095100]
xor al, dl
mov edx, dword [ebp - 0x14]
mov byte [esi + 3], al
mov eax, dword [ebp - 0x10]
and ecx, 0xff
mov edx, dword [eax + edx + 0xc]
mov eax, edx
sar eax, 0x18
xor al, byte [ecx + 0x10095100]
mov ecx, dword [ebp - 4]
mov byte [esi + 4], al
sar ecx, 0x10
and ecx, 0xff
mov eax, edx
sar eax, 0x10
xor al, byte [ecx + 0x10095100]
mov ecx, dword [ebp + 8]
mov byte [esi + 5], al
sar ecx, 8
and ecx, 0xff
mov eax, edx
sar eax, 8
xor al, byte [ecx + 0x10095100]
mov ecx, dword [ebp - 4]
mov byte [esi + 6], al
movzx eax, bl
sar ecx, 0x18
mov al, byte [eax + 0x10095100]
xor al, dl
mov edx, dword [ebp - 0x10]
mov byte [esi + 7], al
mov eax, dword [ebp - 0x14]
and ecx, edi
mov edx, dword [edx + eax + 0x10]
mov eax, edx
sar eax, 0x18
xor al, byte [ecx + 0x10095100]
mov ecx, dword [ebp + 8]
mov byte [esi + 8], al
sar ecx, 0x10
and ecx, edi
mov eax, edx
sar eax, 0x10
xor al, byte [ecx + 0x10095100]
mov ecx, ebx
mov byte [esi + 9], al
sar ecx, 8
mov eax, edx
and ecx, edi
sar eax, 8
xor al, byte [ecx + 0x10095100]
mov ecx, dword [ebp - 0x10]
mov byte [esi + 0xa], al
mov eax, dword [ebp - 8]
movzx eax, al
sar ebx, 0x10
mov al, byte [eax + 0x10095100]
xor al, dl
mov edx, dword [ebp + 8]
mov byte [esi + 0xb], al
mov eax, dword [ebp - 0x14]
sar edx, 0x18
mov ecx, dword [ecx + eax + 0x14]
and edx, edi
mov eax, ecx
sar eax, 0x18
xor al, byte [edx + 0x10095100]
mov edx, dword [ebp - 8]
mov byte [esi + 0xc], al
and ebx, edi
mov eax, ecx
sar eax, 0x10
xor al, byte [ebx + 0x10095100]
sar edx, 8
mov byte [esi + 0xd], al
and edx, edi
mov eax, ecx
sar eax, 8
xor al, byte [edx + 0x10095100]
pop edi
mov byte [esi + 0xe], al
mov eax, dword [ebp - 4]
movzx eax, al
mov al, byte [eax + 0x10095100]
xor al, cl
mov byte [esi + 0xf], al
pop esi
pop ebx
leave
ret 8
push 0x1009eb08
lea ecx, [ebp - 0x24]
call fcn.1004c06f
push 0x10098cb0
lea eax, [ebp - 0x24]
push eax
call fcn.10053a9b
int3