Function at 0x10037cf0
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
push edi
je 0x10038259
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10038259
mov edi, dword [esp + 0x28]
test edi, edi
je 0x10038259
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, ecx
ror eax, 8
and eax, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or eax, ecx
mov ecx, edx
push ebx
push ebp
xor eax, dword [edi]
ror ecx, 8
and ecx, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or ecx, edx
xor ecx, dword [edi + 4]
mov edx, dword [esi + 8]
mov ebx, dword [edi + 8]
mov dword [esp + 0x28], ecx
mov ecx, edx
ror ecx, 8
and ecx, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or ecx, edx
mov edx, dword [esi + 0xc]
movzx esi, byte [esp + 0x2a]
mov ebp, dword [esi*4 + 0x1013b0a8]
xor ecx, ebx
mov ebx, edx
ror ebx, 8
and ebx, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or ebx, edx
xor ebx, dword [edi + 0xc]
movzx edx, ch
mov edx, dword [edx*4 + 0x1013b4a8]
xor edx, ebp
mov esi, eax
shr esi, 0x18
xor edx, dword [esi*4 + 0x1013aca8]
mov esi, ebx
and esi, 0xff
mov ebp, dword [esi*4 + 0x1013b8a8]
mov esi, dword [edi + 0x10]
xor edx, ebp
xor edx, esi
mov dword [esp + 0x18], ecx
movzx ebp, byte [esp + 0x1a]
movzx esi, bh
mov esi, dword [esi*4 + 0x1013b4a8]
xor esi, dword [ebp*4 + 0x1013b0a8]
mov ebp, dword [esp + 0x28]
shr ebp, 0x18
xor esi, dword [ebp*4 + 0x1013aca8]
mov ebp, eax
and ebp, 0xff
xor esi, dword [ebp*4 + 0x1013b8a8]
xor esi, dword [edi + 0x14]
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], ebx
movzx esi, byte [esp + 0x22]
movzx ebp, ah
mov dword [esp + 0x1c], eax
mov eax, dword [esi*4 + 0x1013b0a8]
mov esi, dword [ebp*4 + 0x1013b4a8]
shr ecx, 0x18
xor eax, esi
mov esi, dword [ecx*4 + 0x1013aca8]
mov ecx, dword [esp + 0x28]
xor eax, esi
mov dword [esp + 0x14], edx
and ecx, 0xff
mov esi, dword [ecx*4 + 0x1013b8a8]
mov ecx, dword [edi + 0x18]
xor eax, esi
movzx esi, byte [esp + 0x1e]
mov ebp, dword [esi*4 + 0x1013b0a8]
xor eax, ecx
movzx ecx, byte [esp + 0x29]
mov ecx, dword [ecx*4 + 0x1013b4a8]
shr ebx, 0x18
mov esi, dword [ebx*4 + 0x1013aca8]
xor ecx, ebp
xor ecx, esi
mov esi, dword [esp + 0x18]
and esi, 0xff
mov ebx, dword [esi*4 + 0x1013b8a8]
mov esi, dword [edi + 0x1c]
xor ecx, ebx
xor ecx, esi
lea esi, [edi + 0x20]
mov edi, dword [edi + 0xf0]
sar edi, 1
dec edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
je 0x100380a0
mov ebp, edi
jmp 0x10037eb0
movzx ebx, byte [esp + 0x12]
movzx edi, ah
mov edi, dword [edi*4 + 0x1013b4a8]
xor edi, dword [ebx*4 + 0x1013b0a8]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x1013aca8]
mov ebx, ecx
and ebx, 0xff
xor edi, dword [ebx*4 + 0x1013b8a8]
xor edi, dword [esi]
movzx ebx, byte [esp + 0x22]
mov dword [esp + 0x1c], edi
movzx edi, ch
mov edi, dword [edi*4 + 0x1013b4a8]
xor edi, dword [ebx*4 + 0x1013b0a8]
mov ebx, dword [esp + 0x10]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x1013aca8]
mov ebx, edx
and ebx, 0xff
xor edi, dword [ebx*4 + 0x1013b8a8]
xor edi, dword [esi + 4]
mov dword [esp + 0x28], edi
movzx edi, byte [esp + 0x1a]
movzx ebx, dh
mov edx, dword [edi*4 + 0x1013b0a8]
xor edx, dword [ebx*4 + 0x1013b4a8]
mov edi, eax
shr edi, 0x18
mov ebx, dword [edi*4 + 0x1013aca8]
mov edi, dword [esp + 0x10]
and edi, 0xff
xor edx, ebx
mov ebx, dword [edi*4 + 0x1013b8a8]
movzx edi, byte [esp + 0x11]
xor edx, ebx
xor edx, dword [esi + 8]
movzx ebx, byte [esp + 0x16]
shr ecx, 0x18
mov dword [esp + 0x20], ebx
mov ebx, dword [edi*4 + 0x1013b4a8]
mov edi, dword [esp + 0x20]
xor ebx, dword [edi*4 + 0x1013b0a8]
mov edi, dword [ecx*4 + 0x1013aca8]
mov ecx, dword [esi + 0xc]
xor ebx, edi
and eax, 0xff
xor ebx, dword [eax*4 + 0x1013b8a8]
xor ebx, ecx
movzx ecx, byte [esp + 0x2a]
movzx eax, dh
mov edi, dword [eax*4 + 0x1013b4a8]
xor edi, dword [ecx*4 + 0x1013b0a8]
mov eax, dword [esp + 0x1c]
mov ecx, eax
shr ecx, 0x18
xor edi, dword [ecx*4 + 0x1013aca8]
mov ecx, ebx
and ecx, 0xff
xor edi, dword [ecx*4 + 0x1013b8a8]
xor edi, dword [esi + 0x10]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edx
movzx edi, byte [esp + 0x1a]
movzx ecx, bh
mov ecx, dword [ecx*4 + 0x1013b4a8]
xor ecx, dword [edi*4 + 0x1013b0a8]
mov edi, dword [esp + 0x28]
shr edi, 0x18
xor ecx, dword [edi*4 + 0x1013aca8]
mov edi, eax
mov dword [esp + 0x20], ebx
and edi, 0xff
xor ecx, dword [edi*4 + 0x1013b8a8]
xor ecx, dword [esi + 0x14]
mov dword [esp + 0x10], ecx
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
mov edi, dword [ecx*4 + 0x1013b0a8]
movzx eax, ah
xor edi, dword [eax*4 + 0x1013b4a8]
mov ecx, edx
shr ecx, 0x18
mov eax, dword [ecx*4 + 0x1013aca8]
mov ecx, dword [esp + 0x28]
xor edi, eax
mov eax, ecx
and eax, 0xff
xor edi, dword [eax*4 + 0x1013b8a8]
mov eax, dword [esi + 0x18]
movzx ecx, ch
mov ecx, dword [ecx*4 + 0x1013b4a8]
xor eax, edi
movzx edi, byte [esp + 0x1e]
xor ecx, dword [edi*4 + 0x1013b0a8]
shr ebx, 0x18
mov edi, dword [ebx*4 + 0x1013aca8]
mov ebx, dword [esi + 0x1c]
xor ecx, edi
and edx, 0xff
mov edi, dword [edx*4 + 0x1013b8a8]
mov edx, dword [esp + 0x14]
xor ecx, edi
xor ecx, ebx
add esi, 0x20
dec ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
jne 0x10037eb0
movzx edi, byte [esp + 0x12]
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff0000
movzx ebx, ah
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff00
xor edi, ebx
mov ebx, edx
shr ebx, 0x18
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff000000
xor edi, ebx
mov ebp, dword [esp + 0x2c]
mov ebx, ecx
and ebx, 0xff
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, ebx
xor edi, dword [esi]
mov ebx, edi
ror ebx, 8
and ebx, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or ebx, edi
movzx edi, byte [esp + 0x22]
mov dword [ebp], ebx
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff0000
movzx ebx, ch
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff00
xor edi, ebx
mov ebx, dword [esp + 0x10]
shr ebx, 0x18
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff000000
xor edi, ebx
mov ebx, edx
and ebx, 0xff
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, ebx
xor edi, dword [esi + 4]
mov ebx, edi
ror ebx, 8
and ebx, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or ebx, edi
movzx edi, byte [esp + 0x1a]
mov dword [ebp + 4], ebx
mov edi, dword [edi*4 + str.ccccwwww]
movzx edx, dh
mov edx, dword [edx*4 + str.ccccwwww]
and edi, 0xff0000
and edx, 0xff00
xor edi, edx
mov edx, eax
shr edx, 0x18
mov edx, dword [edx*4 + str.ccccwwww]
and edx, 0xff000000
xor edi, edx
mov edx, dword [esp + 0x10]
mov ebx, edx
and ebx, 0xff
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, ebx
xor edi, dword [esi + 8]
mov ebx, edi
ror ebx, 8
and ebx, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or ebx, edi
movzx edi, byte [esp + 0x16]
mov dword [ebp + 8], ebx
mov edi, dword [edi*4 + str.ccccwwww]
movzx edx, dh
mov edx, dword [edx*4 + str.ccccwwww]
and edi, 0xff0000
and edx, 0xff00
xor edi, edx
shr ecx, 0x18
mov ecx, dword [ecx*4 + str.ccccwwww]
and eax, 0xff
mov edx, dword [eax*4 + str.ccccwwww]
and ecx, 0xff000000
xor edi, ecx
and edx, 0xff
xor edi, edx
xor edi, dword [esi + 0xc]
mov eax, edi
ror eax, 8
and eax, 0xff00ff00
rol edi, 8
and edi, 0xff00ff
or eax, edi
mov dword [ebp + 0xc], eax
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
pop edi
mov eax, 0x86001000
pop esi
add esp, 0x14
ret