Function at 0x100017b0
Capabilities:
Encrypt data using aes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x40
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ebx
bswap ecx
xor ecx, dword [edx]
mov edx, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 8]
bswap edx
xor edx, dword [ebx + 4]
mov dword [ebp - 0x14], edx
mov edx, dword [eax + 0xc]
bswap ecx
mov eax, dword [ebx + 0x200]
xor ecx, dword [ebx + 8]
bswap edx
xor edx, dword [ebx + 0xc]
sar eax, 1
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
jmp 0x100018b1
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x24]
mov edx, dword [edx*4 + 0x10020040]
xor edx, dword [esi*4 + 0x1001ec40]
mov eax, dword [eax*4 + 0x10020040]
xor eax, dword [edi*4 + 0x1001ec40]
mov edi, dword [ebp - 0x1c]
xor eax, dword [ebp - 0x28]
xor eax, dword [edi*4 + 0x1001f440]
mov edi, dword [ebp - 0x20]
xor eax, dword [edi*4 + 0x1001f040]
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax*4 + 0x10020040]
xor eax, dword [edi*4 + 0x1001ec40]
mov edi, dword [ebp - 0x10]
xor eax, dword [edi + 4]
mov edi, dword [ebp - 0x30]
xor eax, dword [ecx*4 + 0x1001f440]
mov ecx, dword [edi*4 + 0x1001f040]
mov edi, dword [ebp - 0x10]
xor ecx, eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax*4 + 0x10020040]
mov eax, dword [ebp - 0x44]
xor ecx, dword [eax*4 + 0x1001ec40]
mov eax, dword [ebp - 0x3c]
xor ecx, dword [edi + 8]
mov edi, dword [ebp - 0x40]
xor ecx, dword [eax*4 + 0x1001f440]
xor ecx, dword [edi*4 + 0x1001f040]
mov edi, dword [ebp - 0x10]
xor edx, dword [edi + 0xc]
mov edi, dword [ebp - 0x18]
xor edx, dword [edi*4 + 0x1001f440]
xor edx, dword [ebx*4 + 0x1001f040]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
movzx ebx, dl
mov esi, dword [ebp - 0x10]
shr eax, 0x18
mov eax, dword [eax*4 + 0x10020040]
xor eax, dword [ebx*4 + 0x1001ec40]
mov ebx, edi
shr ebx, 0x10
xor eax, dword [esi + 0x10]
movzx esi, byte [ebp - 0x1c]
movzx ebx, bl
xor eax, dword [ebx*4 + 0x1001f440]
movzx ebx, ch
xor eax, dword [ebx*4 + 0x1001f040]
mov ebx, edi
movzx edi, byte [ebp - 0x14]
shr ebx, 0x18
mov dword [ebp - 0x18], eax
mov ebx, dword [ebx*4 + 0x10020040]
xor ebx, dword [esi*4 + 0x1001ec40]
mov esi, dword [ebp - 0x10]
xor ebx, dword [esi + 0x14]
mov esi, ecx
shr esi, 0x10
mov eax, esi
movzx esi, al
mov eax, edx
xor ebx, dword [esi*4 + 0x1001f440]
movzx esi, dh
shr eax, 0x10
xor ebx, dword [esi*4 + 0x1001f040]
mov esi, ecx
shr edx, 0x18
movzx ecx, cl
shr esi, 0x18
mov edx, dword [edx*4 + 0x10020040]
xor edx, dword [ecx*4 + 0x1001ec40]
mov esi, dword [esi*4 + 0x10020040]
xor esi, dword [edi*4 + 0x1001ec40]
mov edi, dword [ebp - 0x10]
xor esi, dword [edi + 0x18]
movzx edi, al
mov eax, dword [ebp - 0x1c]
xor esi, dword [edi*4 + 0x1001f440]
mov ecx, eax
movzx edi, ah
mov eax, dword [ebp - 0x14]
xor esi, dword [edi*4 + 0x1001f040]
shr ecx, 0x10
mov edi, dword [ebp - 0x10]
movzx ecx, cl
xor edx, dword [edi + 0x1c]
xor edx, dword [ecx*4 + 0x1001f440]
movzx ecx, ah
add edi, 0x20
xor edx, dword [ecx*4 + 0x1001f040]
mov ecx, ebx
mov dword [ebp - 0x10], edi
shr ecx, 0x10
mov eax, dword [ebp - 0x18]
movzx edi, cl
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 0x10]
shr eax, 0x18
mov dword [ebp - 0x14], eax
mov eax, esi
mov edi, dword [edi]
movzx ecx, ah
movzx eax, dh
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], edi
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x20], ecx
movzx ecx, dl
mov eax, edi
mov dword [ebp - 0x24], ecx
mov ecx, ebx
movzx eax, al
shr ecx, 0x18
mov dword [ebp - 0x34], eax
mov eax, esi
shr eax, 0x18
mov dword [ebp - 0x2c], ecx
mov ecx, esi
mov dword [ebp - 0x38], eax
mov eax, edx
shr ecx, 0x10
shr eax, 0x10
shr edx, 0x18
movzx ecx, cl
movzx eax, al
mov dword [ebp - 0x3c], eax
mov eax, edi
movzx edi, ah
movzx eax, bl
movzx ebx, bh
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], edi
shr eax, 0x10
sub dword [ebp - 0x48], 1
movzx edi, al
mov eax, esi
mov dword [ebp - 0x18], edi
movzx esi, al
jne 0x10001800
mov eax, esi
mov esi, ebx
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp - 0x1c]
mov ebx, eax
mov eax, dword [ebp - 0x4c]
shl eax, 5
add eax, dword [ebp + 0x10]
mov ecx, eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax*4 + 0x1001dc40]
xor eax, dword [edi*4 + 0x1001e040]
mov edi, dword [ebp - 0x20]
xor eax, dword [ebp - 0x28]
xor eax, dword [edi*4 + 0x1001e440]
mov edi, dword [ebp - 0x24]
xor eax, dword [edi*4 + str.cwko0]
mov edi, dword [ebp + 0xc]
bswap eax
mov dword [edi], eax
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax*4 + 0x1001dc40]
xor eax, dword [edi*4 + 0x1001e040]
mov edi, dword [ebp - 0x30]
xor eax, dword [ecx + 4]
xor eax, dword [edi*4 + 0x1001e440]
mov edi, dword [ebp - 0x34]
xor eax, dword [edi*4 + str.cwko0]
mov edi, dword [ebp + 0xc]
bswap eax
mov dword [edi + 4], eax
mov edi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax*4 + 0x1001dc40]
xor eax, dword [edi*4 + 0x1001e040]
mov edi, dword [ebp - 0x40]
xor eax, dword [ecx + 8]
xor eax, dword [edi*4 + 0x1001e440]
mov edi, dword [ebp - 0x44]
xor eax, dword [edi*4 + str.cwko0]
mov edi, dword [ebp + 0xc]
bswap eax
mov dword [edi + 8], eax
mov eax, dword [edx*4 + 0x1001dc40]
mov edx, dword [ebp - 0x18]
xor eax, dword [edx*4 + 0x1001e040]
xor eax, dword [ecx + 0xc]
xor eax, dword [esi*4 + 0x1001e440]
xor eax, dword [ebx*4 + str.cwko0]
bswap eax
mov dword [edi + 0xc], eax
add esp, 0x40
pop ebx
pop esi
pop edi
pop ebp
ret