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

Disassembly:
sub esp, 0x38
mov eax, dword [0x101274a4]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x44]
push ebx
push ebp
mov ebp, dword [0x1012f970]
push esi
push edi
mov dword [esp + 0x18], eax
lea ebx, [ebp - 6]
mov dword [esp + 0x20], ebx
test ebx, ebx
jle 0x100980da
mov ecx, ebx
lea edx, [ebx*4 - 4]
shl ecx, 2
lea edi, [esp + 0x24]
mov esi, edx
lea eax, [ecx - 4]
shr ecx, 2
sub esi, eax
sub edx, eax
add esi, dword [esp + 0x4c]
add edi, edx
rep movsd dword es:[edi], dword [esi]
xor esi, esi
xor edx, edx
xor edi, edi
lea eax, [ebp + 1]
cmp esi, eax
jge 0x100980de
cmp edi, ebx
jge 0x100980bf
mov ebp, dword [esp + 0x18]
cmp edx, 4
jge 0x100980b9
mov eax, dword [esp + edi*4 + 0x24]
lea ecx, [edx + esi*4]
inc edi
mov dword [ebp + ecx*4], eax
inc edx
cmp edi, ebx
jl 0x100980a3
mov ebp, dword [0x1012f970]
cmp edx, 4
lea eax, [esi + 1]
cmovne eax, esi
mov esi, eax
xor eax, eax
cmp edx, 4
cmovne eax, edx
mov edx, eax
cmp edi, ebx
jl 0x10098094
jmp 0x100980de
xor esi, esi
xor edx, edx
lea eax, [ebp + 1]
cmp esi, eax
jge 0x10098248
lea eax, [esp + 0x24]
mov dword [esp + 0x10], 0x10106f10
sub eax, 4
mov dword [esp + 0x1c], eax
mov edi, eax
movzx eax, byte [esp + ebx*4 + 0x21]
mov cl, byte [esp + 0x24]
xor cl, byte [eax + str.cw]
mov byte [esp + 0x24], cl
movzx eax, byte [esp + ebx*4 + 0x22]
mov al, byte [eax + str.cw]
xor byte [esp + 0x25], al
movzx eax, byte [esp + ebx*4 + 0x23]
mov al, byte [eax + str.cw]
xor byte [esp + 0x26], al
movzx eax, byte [esp + ebx*4 + 0x20]
mov al, byte [eax + str.cw]
xor byte [esp + 0x27], al
mov eax, dword [esp + 0x10]
add dword [esp + 0x10], 4
mov eax, dword [eax]
xor cl, al
mov byte [esp + 0x24], cl
xor ecx, ecx
inc ecx
cmp ebx, 8
je 0x1009817f
cmp ebx, ecx
jle 0x10098168
mov eax, dword [esp + ecx*4 + 0x20]
xor dword [esp + ecx*4 + 0x24], eax
inc ecx
cmp ecx, ebx
jl 0x1009815b
lea eax, [esp + 0x24]
xor edi, edi
sub eax, 4
mov dword [esp + 0x14], eax
test ebx, ebx
jle 0x10098239
jmp 0x100981f5
mov ebx, dword [esp + 0x1c]
mov ebp, edi
mov edi, ebx
mov dword [esp + 0x14], ebp
mov eax, dword [ebp + ecx*4]
xor dword [esp + ecx*4 + 0x24], eax
inc ecx
cmp ecx, 4
jl 0x10098183
movzx eax, byte [esp + 0x30]
mov ebx, dword [esp + 0x20]
mov ebp, dword [0x1012f970]
mov edi, dword [esp + 0x14]
mov al, byte [eax + str.cw]
xor byte [esp + 0x34], al
movzx eax, byte [esp + 0x31]
push 5
pop ecx
mov al, byte [eax + str.cw]
xor byte [esp + 0x35], al
movzx eax, byte [esp + 0x32]
mov al, byte [eax + str.cw]
xor byte [esp + 0x36], al
movzx eax, byte [esp + 0x33]
mov al, byte [eax + str.cw]
xor byte [esp + 0x37], al
mov eax, dword [edi + ecx*4]
xor dword [esp + ecx*4 + 0x24], eax
inc ecx
cmp ecx, 8
jl 0x100981e6
xor edi, edi
lea eax, [ebp + 1]
cmp esi, eax
jge 0x10098239
cmp edi, ebx
jge 0x10098220
mov ebp, dword [esp + 0x18]
cmp edx, 4
jge 0x1009821a
mov eax, dword [esp + edi*4 + 0x24]
lea ecx, [edx + esi*4]
inc edi
mov dword [ebp + ecx*4], eax
inc edx
cmp edi, ebx
jl 0x10098204
mov ebp, dword [0x1012f970]
cmp edx, 4
lea eax, [esi + 1]
cmovne eax, esi
mov esi, eax
xor eax, eax
cmp edx, 4
cmovne eax, edx
mov edx, eax
cmp edi, ebx
jl 0x100981f5
mov edi, dword [esp + 0x14]
lea eax, [ebp + 1]
cmp esi, eax
jl 0x100980fe
mov ecx, dword [esp + 0x44]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1009caa0
add esp, 0x38
ret