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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b813b
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x51e12c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
cmp dword [ebp + 8], 0
je 0x4322cf
mov ecx, dword [ebp + 0x10]
cmp ecx, 0x10
je 0x431ed6
cmp ecx, 0x18
je 0x431ed6
cmp ecx, 0x20
je 0x431ed6
lea eax, [ebp + 8]
push 0x4e170c
push eax
call fcn.004251a0
add esp, 8
mov dword [ebp - 4], 1
jmp 0x4322e7
mov eax, dword [ebp + 0x14]
cmp eax, 0x10
je 0x431f1e
cmp eax, 0x18
je 0x431f1e
cmp eax, 0x20
je 0x431f1e
lea eax, [ebp + 0x10]
push 0x4e1738
push eax
call fcn.004251a0
add esp, 8
mov ecx, eax
mov dword [ebp - 4], 2
call dword [sym.imp.mfc140u.dll_Ordinal_1665]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00457840
push 0x50c140
lea eax, [ebp - 0x2c]
jmp 0x432300
mov esi, dword [ebp + 0xc]
push eax
mov dword [ebx + 0x3cc], eax
lea eax, [ebx + 0x3d4]
push esi
push eax
mov dword [ebx + 0x3c8], ecx
call fcn.00470fe4
push dword [ebx + 0x3cc]
lea eax, [ebx + 0x3f4]
push esi
push eax
call fcn.00470fe4
mov eax, dword [ebx + 0x3c8]
add esp, 0x18
mov ecx, dword [ebx + 0x3cc]
cmp eax, 0x10
je 0x431f7d
cmp eax, 0x18
je 0x431f73
mov dword [ebx + 0x3d0], 0xe
jmp 0x431f9c
xor eax, eax
cmp ecx, 0x20
sete al
jmp 0x431f8f
cmp ecx, 0x10
jne 0x431f87
lea eax, [ecx - 6]
jmp 0x431f96
xor eax, eax
cmp ecx, 0x18
setne al
lea eax, [eax*2 + 0xc]
mov dword [ebx + 0x3d0], eax
mov eax, ecx
lea esi, [ebx + 8]
cdq
and edx, 3
lea ecx, [edx + eax]
sar ecx, 2
xor edx, edx
mov dword [ebp + 0x10], ecx
test ecx, ecx
jle 0x431fbd
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x3d0]
inc edx
add esi, 0x20
cmp edx, eax
jle 0x431fb0
xor edx, edx
test eax, eax
js 0x431ff2
lea esi, [ebx + 0x1e8]
test ecx, ecx
jle 0x431fe4
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x3d0]
inc edx
add esi, 0x20
cmp edx, eax
jle 0x431fd7
inc eax
imul eax, ecx
mov dword [ebp + 0x14], eax
mov eax, dword [ebx + 0x3c8]
cdq
and edx, 3
lea esi, [edx + eax]
sar esi, 2
lea eax, [ebx + 0x414]
mov dword [ebp - 0x10], esi
mov edi, eax
mov dword [ebp + 0xc], eax
test esi, esi
jle 0x432061
mov ebx, esi
mov esi, dword [ebp + 8]
movzx eax, byte [esi]
lea esi, [esi + 4]
shl eax, 0x18
lea edi, [edi + 4]
mov dword [edi - 4], eax
movzx edx, byte [esi - 3]
shl edx, 0x10
or edx, eax
mov dword [edi - 4], edx
movzx ecx, byte [esi - 2]
shl ecx, 8
or ecx, edx
mov dword [edi - 4], ecx
movzx eax, byte [esi - 1]
or eax, ecx
mov dword [edi - 4], eax
sub ebx, 1
jne 0x432020
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
xor edi, edi
test esi, esi
jle 0x4320b2
mov dword [ebp + 8], eax
nop word [eax + eax]
cmp edi, dword [ebp + 0x14]
jge 0x432230
mov eax, edi
inc edi
cdq
idiv ecx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
lea esi, [edx + eax*8]
mov dword [ebx + esi*4 + 8], ecx
mov ecx, dword [ebx + 0x3d0]
mov esi, dword [ebp - 0x10]
sub ecx, eax
lea ecx, [edx + ecx*8]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
add edx, 4
mov dword [ebx + ecx*4 + 0x1e8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 8], edx
cmp edi, esi
jl 0x432070
cmp edi, dword [ebp + 0x14]
jge 0x432230
mov dword [ebp + 8], 0x4e1590
mov edx, dword [ebx + esi*4 + 0x410]
mov eax, edx
sar eax, 0x10
movzx eax, al
movsx ecx, byte [eax + str.cw]
mov eax, dword [ebp + 8]
inc dword [ebp + 8]
movsx eax, byte [eax]
xor ecx, eax
mov eax, edx
sar eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
xor ecx, eax
movzx eax, dl
shl ecx, 8
sar edx, 0x18
movzx eax, byte [eax + str.cw]
xor ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + str.cw]
xor ecx, eax
lea eax, [ebx + 0x414]
xor dword [eax], ecx
cmp esi, 8
je 0x43214a
cmp esi, 1
jle 0x4321d4
lea ecx, [ebx + 0x418]
lea edx, [esi - 1]
mov eax, dword [ecx - 4]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
sub edx, 1
jne 0x432137
jmp 0x4321ce
lea eax, [ebx + 0x418]
mov edx, 3
mov ecx, dword [eax - 4]
lea eax, [eax + 4]
xor dword [eax - 4], ecx
sub edx, 1
jne 0x432155
mov edx, dword [ebx + 0x420]
mov eax, edx
sar eax, 0x18
movzx eax, al
movsx ecx, byte [eax + str.cw]
mov eax, edx
sar eax, 0x10
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
xor ecx, eax
mov eax, edx
sar eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
xor ecx, eax
movzx eax, dl
shl ecx, 8
mov edx, 3
movzx eax, byte [eax + str.cw]
xor ecx, eax
xor dword [ebx + 0x424], ecx
lea ecx, [ebx + 0x428]
mov eax, dword [ecx - 4]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
sub edx, 1
jne 0x4321c0
lea eax, [ebx + 0x414]
mov dword [ebp - 0x14], 0
test esi, esi
jle 0x432227
mov ecx, eax
mov dword [ebp + 0xc], eax
cmp edi, dword [ebp + 0x14]
jge 0x432230
mov eax, edi
mov ecx, dword [ecx]
cdq
inc edi
idiv dword [ebp + 0x10]
lea esi, [edx + eax*8]
mov dword [ebx + esi*4 + 8], ecx
mov ecx, dword [ebx + 0x3d0]
mov esi, dword [ebp - 0x10]
sub ecx, eax
mov eax, dword [ebp + 0xc]
lea ecx, [edx + ecx*8]
mov eax, dword [eax]
mov dword [ebx + ecx*4 + 0x1e8], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
inc eax
add ecx, 4
mov dword [ebp - 0x14], eax
mov dword [ebp + 0xc], ecx
cmp eax, esi
jl 0x4321e4
cmp edi, dword [ebp + 0x14]
jl 0x4320c2
mov ecx, 1
mov dword [ebp + 8], ecx
cmp dword [ebx + 0x3d0], ecx
jle 0x4322b7
mov eax, dword [ebp + 0x10]
lea edx, [ebx + 0x208]
mov dword [ebp + 0x14], edx
test eax, eax
jle 0x4322a5
mov esi, edx
mov edi, eax
mov edx, dword [esi]
lea esi, [esi + 4]
mov eax, edx
sar eax, 0x18
movzx ecx, al
mov eax, edx
sar eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x4e0590]
xor ecx, dword [eax*4 + 0x4e0990]
mov eax, edx
sar eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4e0d90]
movzx eax, dl
xor ecx, dword [eax*4 + 0x4e1190]
mov dword [esi - 4], ecx
sub edi, 1
jne 0x432258
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
inc ecx
add edx, 0x20
mov dword [ebp + 8], ecx
mov dword [ebp + 0x14], edx
cmp ecx, dword [ebx + 0x3d0]
jl 0x432250
mov byte [ebx + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp + 8]
push 0x4e16f4
push eax
call fcn.004251a0
add esp, 8
mov dword [ebp - 4], 0
mov ecx, eax
call dword [sym.imp.mfc140u.dll_Ordinal_1665]
push eax
lea ecx, [ebp - 0x20]
call fcn.00457840
push 0x50c140
lea eax, [ebp - 0x20]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3