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

Disassembly:
mov edx, dword [esp + 4]
test edx, edx
je 0x10037a78
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10037a78
push edi
mov edi, dword [esp + 0xc]
cmp edi, 0x80
je 0x100375a4
cmp edi, 0xc0
je 0x1003759c
cmp edi, 0x100
je 0x1003759c
mov eax, 0x86001005
pop edi
ret
cmp edi, 0x80
jne 0x100375b0
mov dword [eax + 0xf0], 0xa
jmp 0x100375c5
xor ecx, ecx
cmp edi, 0xc0
setne cl
lea ecx, [ecx + ecx + 0xc]
mov dword [eax + 0xf0], ecx
mov ecx, dword [edx]
push ebx
push esi
mov esi, ecx
ror esi, 8
and esi, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or esi, ecx
mov dword [eax], esi
mov esi, dword [edx + 4]
mov ebx, esi
ror ebx, 8
and ebx, 0xff00ff00
rol esi, 8
and esi, 0xff00ff
or ebx, esi
mov dword [eax + 4], ebx
mov esi, dword [edx + 8]
lea ecx, [eax + 4]
mov ebx, esi
ror ebx, 8
and ebx, 0xff00ff00
rol esi, 8
and esi, 0xff00ff
or ebx, esi
mov dword [eax + 8], ebx
mov esi, dword [edx + 0xc]
mov ebx, esi
ror ebx, 8
and ebx, 0xff00ff00
rol esi, 8
and esi, 0xff00ff
or ebx, esi
cmp edi, 0x80
mov dword [eax + 0xc], ebx
jne 0x1003774c
mov edx, ebx
shr edx, 0x10
movzx edx, dl
mov edx, dword [edx*4 + str.ccccwwww]
xor edx, 0x1000000
movzx esi, bh
mov esi, dword [esi*4 + str.ccccwwww]
and esi, 0xff0000
and edx, 0xff000000
xor edx, esi
mov esi, ebx
shr esi, 0x18
mov esi, dword [esi*4 + str.ccccwwww]
and esi, 0xff
xor edx, esi
mov edi, ebx
mov dword [esp + 0x10], ebx
and ebx, 0xff
mov esi, dword [ebx*4 + str.ccccwwww]
and esi, 0xff00
xor edx, esi
xor edx, dword [eax]
mov esi, dword [ecx]
xor esi, edx
mov dword [eax + 0x10], edx
mov edx, dword [eax + 8]
xor edx, esi
mov dword [eax + 0x18], edx
xor edx, edi
mov dword [eax + 0x14], esi
mov dword [eax + 0x1c], edx
mov esi, 0x1013d4ac
mov edi, edi
mov edx, dword [ecx + 0x18]
add ecx, 0x10
mov ebx, dword [esi]
mov dword [esp + 0x10], edx
movzx edi, byte [esp + 0x12]
mov edi, dword [edi*4 + str.ccccwwww]
movzx eax, dh
mov eax, dword [eax*4 + str.ccccwwww]
and eax, 0xff0000
and edi, 0xff000000
xor eax, edi
mov edi, edx
and edx, 0xff
mov edx, dword [edx*4 + str.ccccwwww]
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edx, 0xff00
and edi, 0xff
xor eax, edi
xor eax, edx
xor eax, dword [ecx - 4]
xor eax, ebx
mov dword [ecx + 0xc], eax
mov edx, dword [ecx]
xor edx, eax
mov dword [ecx + 0x10], edx
mov eax, dword [ecx + 4]
xor eax, edx
mov dword [ecx + 0x14], eax
mov edx, dword [ecx + 8]
xor edx, eax
add esi, 4
cmp esi, 0x1013d4d0
mov dword [ecx + 0x18], edx
jne 0x100376c0
pop esi
pop ebx
xor eax, eax
pop edi
ret
mov esi, dword [edx + 0x10]
mov ebx, esi
ror ebx, 8
and ebx, 0xff00ff00
rol esi, 8
and esi, 0xff00ff
or ebx, esi
mov dword [eax + 0x10], ebx
mov esi, dword [edx + 0x14]
mov ebx, esi
ror ebx, 8
and ebx, 0xff00ff00
rol esi, 8
and esi, 0xff00ff
or ebx, esi
cmp edi, 0xc0
mov dword [eax + 0x14], ebx
jne 0x100378b0
mov ecx, dword [ecx]
mov edx, ebx
shr edx, 0x10
movzx edx, dl
mov edx, dword [edx*4 + str.ccccwwww]
xor edx, 0x1000000
movzx esi, bh
mov esi, dword [esi*4 + str.ccccwwww]
and esi, 0xff0000
and edx, 0xff000000
xor edx, esi
mov esi, ebx
shr esi, 0x18
mov esi, dword [esi*4 + str.ccccwwww]
and esi, 0xff
xor edx, esi
mov dword [esp + 0x10], ebx
and ebx, 0xff
mov esi, dword [ebx*4 + str.ccccwwww]
and esi, 0xff00
xor edx, esi
xor edx, dword [eax]
xor ecx, edx
mov dword [eax + 0x18], edx
mov edx, dword [eax + 8]
xor edx, ecx
mov dword [eax + 0x1c], ecx
mov ecx, dword [eax + 0xc]
xor ecx, edx
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], ecx
add eax, 0x28
mov esi, 0x1013d4ac
mov edi, edi
mov ebx, dword [eax - 4]
mov ecx, dword [eax - 0x18]
mov edx, dword [eax - 0x14]
xor ecx, ebx
mov dword [eax], ecx
xor edx, ecx
mov dword [eax + 4], edx
mov edx, dword [eax + 4]
add eax, 0x18
mov ebx, dword [esi]
mov dword [esp + 0x10], edx
movzx edi, byte [esp + 0x12]
mov edi, dword [edi*4 + str.ccccwwww]
movzx ecx, dh
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff0000
and edi, 0xff000000
xor ecx, edi
mov edi, edx
and edx, 0xff
mov edx, dword [edx*4 + str.ccccwwww]
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edx, 0xff00
and edi, 0xff
xor ecx, edi
xor ecx, edx
xor ecx, dword [eax - 0x28]
xor ecx, ebx
mov dword [eax - 0x10], ecx
mov edx, dword [eax - 0x24]
xor edx, ecx
mov dword [eax - 0xc], edx
mov ecx, dword [eax - 0x20]
xor ecx, edx
mov dword [eax - 8], ecx
mov edx, dword [eax - 0x1c]
xor edx, ecx
add esi, 4
cmp esi, 0x1013d4c8
mov dword [eax - 4], edx
jne 0x10037810
pop esi
pop ebx
xor eax, eax
pop edi
ret
mov esi, dword [edx + 0x18]
mov ebx, esi
ror ebx, 8
and ebx, 0xff00ff00
rol esi, 8
and esi, 0xff00ff
or ebx, esi
mov dword [eax + 0x18], ebx
mov edx, dword [edx + 0x1c]
mov esi, edx
ror esi, 8
and esi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or esi, edx
cmp edi, 0x100
mov dword [eax + 0x1c], esi
jne 0x10037746
mov edx, esi
mov ebx, esi
shr edx, 0x10
movzx edx, dl
mov edx, dword [edx*4 + str.ccccwwww]
mov ecx, dword [ecx]
xor edx, 0x1000000
movzx esi, bh
mov esi, dword [esi*4 + str.ccccwwww]
and esi, 0xff0000
and edx, 0xff000000
xor edx, esi
mov esi, ebx
shr esi, 0x18
mov esi, dword [esi*4 + str.ccccwwww]
and esi, 0xff
xor edx, esi
mov dword [esp + 0x10], ebx
and ebx, 0xff
mov esi, dword [ebx*4 + str.ccccwwww]
and esi, 0xff00
xor edx, esi
xor edx, dword [eax]
xor ecx, edx
mov dword [eax + 0x20], edx
mov edx, dword [eax + 8]
xor edx, ecx
mov dword [eax + 0x24], ecx
mov ecx, dword [eax + 0xc]
xor ecx, edx
mov dword [eax + 0x28], edx
mov dword [eax + 0x2c], ecx
add eax, 0x30
mov esi, 0x1013d4ac
mov edx, dword [eax - 4]
mov ecx, edx
shr ecx, 0x10
mov ebx, dword [eax - 0x20]
movzx ecx, cl
mov ecx, dword [ecx*4 + str.ccccwwww]
movzx edi, dh
mov edi, dword [edi*4 + str.ccccwwww]
and ecx, 0xff0000
and edi, 0xff00
xor ecx, edi
mov edi, edx
mov dword [esp + 0x10], edx
and edx, 0xff
mov edx, dword [edx*4 + str.ccccwwww]
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edx, 0xff
and edi, 0xff000000
xor ecx, edi
xor ecx, edx
mov edx, dword [eax - 0x1c]
xor ecx, ebx
mov dword [eax], ecx
xor edx, ecx
mov ecx, dword [eax - 0x18]
xor ecx, edx
mov dword [eax + 4], edx
mov edx, dword [eax - 0x14]
mov dword [eax + 8], ecx
xor edx, ecx
mov dword [eax + 0xc], edx
mov edx, dword [eax + 0xc]
add eax, 0x20
mov ebx, dword [esi]
mov dword [esp + 0x10], edx
movzx edi, byte [esp + 0x12]
mov edi, dword [edi*4 + str.ccccwwww]
movzx ecx, dh
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff0000
and edi, 0xff000000
xor ecx, edi
mov edi, edx
and edx, 0xff
mov edx, dword [edx*4 + str.ccccwwww]
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edx, 0xff00
and edi, 0xff
xor ecx, edi
xor ecx, edx
xor ecx, dword [eax - 0x30]
xor ecx, ebx
mov dword [eax - 0x10], ecx
mov edx, dword [eax - 0x2c]
xor edx, ecx
mov dword [eax - 0xc], edx
mov ecx, dword [eax - 0x28]
xor ecx, edx
mov dword [eax - 8], ecx
mov edx, dword [eax - 0x24]
xor edx, ecx
add esi, 4
cmp esi, 0x1013d4c4
mov dword [eax - 4], edx
jne 0x10037974
pop esi
pop ebx
xor eax, eax
pop edi
ret
mov eax, 0x86001000
ret