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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x497018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x6c], ebx
mov ecx, dword [ebx + 0x128]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov edx, dword [ebx + 0x12c]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x70], 0x120c
mov dword [ebp - 0x74], ecx
cmp ecx, 0x120c
je 0x437d48
mov edi, edx
xor al, al
rep stosb byte es:[edi], al
push edx
call fcn.0041e4e0
push 0x120c
call fcn.00429540
mov edi, dword [ebp - 0x54]
add esp, 8
mov edx, eax
mov eax, edi
mov dword [ebx + 0x12c], edx
shr eax, 2
lea edx, [ebx + 0x10]
mov dword [ebp - 0x64], eax
add eax, 6
mov dword [ebx + 0x128], 0x120c
mov dword [ebx + 0x124], 0xffffffff
mov dword [ebx + 0xc], eax
lea esi, [eax*4 + 4]
mov dword [ebx + 0x124], 0
mov eax, dword [edx + 0x104]
mov ecx, dword [edx + 0x108]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x7c], eax
mov eax, edx
neg eax
mov dword [ebp - 0x78], esi
and eax, 0xf
mov dword [ebp - 0x60], ecx
add eax, edx
cmp ecx, eax
jne 0x437dbf
cmp esi, 0x3c
ja 0x437dd9
mov eax, dword [ebp - 0x58]
cmp eax, esi
jbe 0x437dfa
sub eax, esi
lea edi, [ecx + esi*4]
mov dword [ebp - 0x58], eax
jmp 0x437ded
cmp esi, 0x3c
ja 0x437dd9
cmp byte [edx + 0xf9], 0
jne 0x437dd9
mov byte [edx + 0xf9], 1
mov dword [ebp - 0x60], eax
jmp 0x437de0
mov dword [ebp - 0x60], 0
cmp ecx, eax
jne 0x437df7
mov byte [edx + 0xf9], 0
mov edi, ecx
mov ecx, dword [ebp - 0x58]
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x60]
mov dword [edx + 0x108], ecx
mov dword [edx + 0x104], esi
mov dword [edx + 0x100], 0x3fffffff
mov al, byte [0x4a2752]
mov esi, dword [ebx + 0x118]
test al, al
jne 0x437e29
call fcn.0043aef0
mov al, byte [0x4a2752]
cmp byte [0x4a2757], 0
je 0x437e7a
test al, al
jne 0x437e3b
call fcn.0043aef0
cmp byte [0x4a2755], 0
je 0x437e7a
push esi
push edi
push dword [ebp - 0x5c]
call fcn.0043b860
mov eax, dword [ebx + 4]
lea ecx, [ebx + 4]
add esp, 0xc
mov eax, dword [eax + 0x1c]
call eax
test al, al
jne 0x438648
push dword [ebx + 0xc]
push dword [ebx + 0x118]
call fcn.0043b800
add esp, 8
jmp 0x438648
push dword [ebp - 0x54]
and edi, 0xfffffffc
push dword [ebp - 0x5c]
push edi
push esi
call fcn.00424170
mov eax, dword [ebp - 0x54]
sub edi, eax
push edi
add eax, esi
push 0
push eax
call fcn.0043c760
mov eax, dword [ebp - 0x54]
add esp, 0x1c
cmp eax, 0xfffffffc
ja 0x438666
add eax, 3
and eax, 0xfffffffc
push eax
push esi
push esi
push 1
call fcn.00435040
mov eax, dword [ebp - 0x64]
add esp, 0x10
mov ecx, dword [esi + eax*4 - 4]
lea edi, [esi + eax*4]
mov eax, ecx
mov dword [ebp - 0x5c], edi
shr eax, 0x10
movzx eax, al
mov dword [ebp - 0x60], 0x47ffac
movzx edx, byte [eax + str.cw]
mov eax, ecx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
xor edx, eax
movzx eax, cl
shl edx, 8
shr ecx, 0x18
movzx eax, byte [eax + str.cw]
xor edx, eax
movzx eax, byte [ecx + str.cw]
shl edx, 8
xor edx, eax
xor edx, dword [esi]
xor edx, dword [0x47ffa8]
mov dword [edi], edx
mov eax, dword [esi + 4]
xor eax, edx
mov edx, dword [ebp - 0x64]
mov dword [edi + 4], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov dword [esi + edx*4 + 8], ecx
mov eax, dword [esi + 0xc]
xor eax, ecx
mov dword [esi + edx*4 + 0xc], eax
lea edx, [edx*4 + 0x10]
mov edi, dword [ebx + 0x118]
mov eax, dword [ebx + 0x114]
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x68], edx
lea ecx, [edi + eax*4]
lea eax, [edx + esi]
cmp eax, ecx
je 0x43807e
nop
mov eax, dword [ebp - 0x54]
mov edi, dword [ebp - 0x64]
cmp eax, 0x18
jne 0x437f7e
mov ecx, dword [esi + 0x24]
xor ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
xor eax, ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], eax
jmp 0x437fe7
cmp eax, 0x20
jne 0x437fe7
mov ecx, dword [esi + 0x2c]
mov eax, ecx
shr eax, 0x18
movzx edx, byte [eax + str.cw]
mov eax, ecx
shr eax, 0x10
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
xor edx, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
xor edx, eax
movzx eax, cl
mov ecx, dword [esi + 0x18]
shl edx, 8
movzx eax, byte [eax + str.cw]
xor edx, eax
mov eax, dword [esi + 0x14]
xor edx, dword [esi + 0x10]
xor eax, edx
mov dword [esi + 0x30], edx
xor ecx, eax
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x1c]
xor eax, ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
mov esi, dword [ebp - 0x5c]
mov ecx, dword [esi + edi*4 - 4]
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, ecx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
xor edx, eax
movzx eax, cl
shr ecx, 0x18
shl edx, 8
movzx eax, byte [eax + str.cw]
xor edx, eax
movzx eax, byte [ecx + str.cw]
mov ecx, dword [ebp - 0x60]
shl edx, 8
xor edx, eax
lea eax, [esi + edi*4]
mov dword [ebp - 0x5c], eax
xor edx, dword [ecx]
add ecx, 4
xor edx, dword [esi]
mov dword [eax], edx
mov eax, dword [esi + 4]
xor eax, edx
mov dword [ebp - 0x60], ecx
mov dword [esi + edi*4 + 4], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov dword [esi + edi*4 + 8], ecx
mov eax, dword [esi + 0xc]
xor eax, ecx
mov dword [esi + edi*4 + 0xc], eax
mov edi, dword [ebx + 0x118]
mov eax, dword [ebx + 0x114]
mov dword [ebp - 0x58], edi
lea ecx, [edi + eax*4]
mov eax, dword [ebp - 0x68]
add eax, esi
cmp eax, ecx
jne 0x437f60
mov eax, dword [ebx + 4]
lea ecx, [ebx + 4]
mov eax, dword [eax + 0x1c]
call eax
test al, al
je 0x438132
cmp byte [0x4a2750], 0
jne 0x43810c
xor edi, edi
nop dword [eax]
movzx edx, byte [edi + str.cw]
mov ecx, edx
mov esi, edx
shr ecx, 7
imul eax, ecx, 0x1b000000
shl esi, 0x19
imul ecx, ecx, 0x11b
xor esi, eax
mov eax, edx
shl eax, 8
or eax, edx
shl eax, 8
or esi, eax
lea eax, [edx + edx]
xor ecx, eax
xor eax, eax
xor ecx, edx
or eax, esi
or ecx, esi
mov dword [edi*8 + 0x4a1740], eax
mov dword [edi*8 + 0x4a1744], ecx
inc edi
cmp edi, 0x100
jl 0x4380a0
mov edi, dword [ebp - 0x58]
xorps xmm0, xmm0
movlpd qword [0x4a1f48], xmm0
movlpd qword [0x4a1f40], xmm0
mov byte [0x4a2750], 1
push 0x10
push edi
push edi
push 1
call fcn.00435040
mov eax, dword [ebx + 0xc]
shl eax, 4
add eax, edi
push 0x10
push eax
push eax
push 1
call fcn.00435040
add esp, 0x20
jmp 0x438618
cmp byte [0x4a2751], 0
jne 0x438140
call fcn.004368d0
mov eax, dword [ebx + 0xc]
mov esi, 4
mov dword [ebp - 0x5c], esi
lea eax, [eax*4 - 4]
mov dword [ebp - 0x68], eax
cmp eax, esi
jbe 0x43844e
add eax, 2
lea ebx, [edi + eax*4]
lea eax, [edi + 0x18]
mov edi, dword [ebp - 0x68]
mov dword [ebp - 0x54], eax
nop dword [eax]
mov edx, dword [eax - 8]
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*8 + 0x4a1f51]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4a1f52]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4a1f54]
movzx eax, dl
mov edx, dword [ebx - 8]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4a1f53]
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*8 + 0x4a1f51]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4a1f52]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4a1f54]
movzx eax, dl
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4a1f53]
mov eax, dword [ebp - 0x54]
mov dword [eax - 8], ecx
mov dword [ebx - 8], esi
mov edx, dword [eax - 4]
mov eax, edx
shr eax, 8
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov esi, dword [ecx*8 + 0x4a1f52]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4a1f51]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4a1f54]
movzx eax, dl
mov edx, dword [ebx - 4]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4a1f53]
mov eax, edx
shr eax, 8
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*8 + 0x4a1f52]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4a1f51]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4a1f54]
movzx eax, dl
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4a1f53]
mov eax, dword [ebp - 0x54]
mov dword [eax - 4], ecx
mov dword [ebx - 4], esi
mov edx, dword [eax]
mov eax, edx
shr eax, 0x10
movzx eax, al
lea ebx, [ebx - 0x10]
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*8 + 0x4a1f51]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4a1f52]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4a1f54]
movzx eax, dl
mov edx, dword [ebx + 0x10]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4a1f53]
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*8 + 0x4a1f51]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4a1f52]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4a1f54]
movzx eax, dl
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4a1f53]
mov eax, dword [ebp - 0x54]
mov dword [eax], ecx
mov dword [ebx + 0x10], esi
mov edx, dword [eax + 4]
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 8
movzx eax, al
shr edx, 0x18
mov esi, dword [ecx*8 + 0x4a1f51]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4a1f52]
movzx eax, byte [edx + str.cw]
mov edx, dword [ebx + 0x14]
xor esi, dword [eax*8 + 0x4a1f54]
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax + 4]
movzx eax, byte [eax + str.cw]
xor esi, dword [eax*8 + 0x4a1f53]
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 8
movzx eax, al
shr edx, 0x18
mov ecx, dword [ecx*8 + 0x4a1f51]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4a1f52]
movzx eax, byte [edx + str.cw]
xor ecx, dword [eax*8 + 0x4a1f54]
movzx eax, byte [ebx + 0x14]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4a1f53]
mov eax, dword [ebp - 0x54]
mov dword [eax + 4], ecx
add eax, 0x10
mov dword [ebx + 0x14], esi
mov esi, dword [ebp - 0x5c]
add esi, 4
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x5c], esi
sub edi, 4
cmp esi, edi
jb 0x438170
mov ebx, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x58]
mov edx, dword [edi + esi*4]
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*8 + 0x4a1f51]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4a1f52]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4a1f54]
movzx eax, dl
mov edx, dword [edi + esi*4 + 4]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4a1f53]
mov eax, edx
shr eax, 8
movzx eax, al
mov dword [edi + esi*4], ecx
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*8 + 0x4a1f52]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4a1f51]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4a1f54]
movzx eax, dl
mov edx, dword [edi + esi*4 + 8]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4a1f53]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [edi + esi*4 + 4], ecx
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*8 + 0x4a1f51]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4a1f52]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4a1f54]
movzx eax, dl
mov edx, dword [edi + esi*4 + 0xc]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4a1f53]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [edi + esi*4 + 8], ecx
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*8 + 0x4a1f51]
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4a1f52]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4a1f54]
movzx eax, dl
movzx eax, byte [eax + str.cw]
xor ecx, dword [eax*8 + 0x4a1f53]
mov dword [edi + esi*4 + 0xc], ecx
mov eax, dword [ebx + 0xc]
mov ecx, dword [edi]
add eax, eax
bswap ecx
mov eax, dword [edi + eax*8]
bswap eax
mov dword [edi], eax
mov eax, dword [ebx + 0xc]
add eax, eax
mov dword [edi + eax*8], ecx
mov eax, dword [ebx + 0xc]
mov ecx, dword [edi + 4]
add eax, eax
bswap ecx
mov eax, dword [edi + eax*8 + 4]
bswap eax
mov dword [edi + 4], eax
mov eax, dword [ebx + 0xc]
add eax, eax
mov dword [edi + eax*8 + 4], ecx
mov eax, dword [ebx + 0xc]
mov ecx, dword [edi + 8]
add eax, eax
bswap ecx
mov eax, dword [edi + eax*8 + 8]
bswap eax
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
add eax, eax
mov dword [edi + eax*8 + 8], ecx
mov eax, dword [ebx + 0xc]
mov ecx, dword [edi + 0xc]
add eax, eax
bswap ecx
mov eax, dword [edi + eax*8 + 0xc]
bswap eax
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0xc]
add eax, eax
mov dword [edi + eax*8 + 0xc], ecx
cmp byte [0x4a2752], 0
jne 0x438626
call fcn.0043aef0
cmp byte [0x4a2757], 0
je 0x438648
mov eax, dword [ebx + 0xc]
lea ecx, [edi + 0x10]
shl eax, 4
sub eax, 0x10
push eax
push ecx
push ecx
push 1
call fcn.00435040
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041eaaa
mov esp, ebp
pop ebp
ret 0xc
push str.RoundUpToMultipleOf:_integer_overflow
lea ecx, [ebp - 0x28]
call fcn.0041bcbd
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x50]
call fcn.00402c8d
push 0x495834
lea eax, [ebp - 0x50]
push eax
call fcn.0043c6ee
int3