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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x10], ebx
test esi, esi
je 0x435736
mov ecx, dword [ebp + 0x10]
push edi
push 0x18
pop edi
cmp ecx, 0x10
je 0x435371
cmp ecx, edi
je 0x435371
cmp ecx, 0x20
jne 0x435735
mov eax, dword [ebp + 0x14]
cmp eax, 0x10
je 0x435386
cmp eax, edi
je 0x435386
cmp eax, 0x20
jne 0x435735
push eax
push dword [ebp + 0xc]
mov dword [ebx + 0x3cc], eax
lea eax, [ebx + 0x3d4]
push eax
mov dword [ebx + 0x3c8], ecx
call sub.VCRUNTIME140.dll_memcpy
push dword [ebx + 0x3cc]
lea eax, [ebx + 0x3f4]
push dword [ebp + 0xc]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x3c8]
add esp, 0x18
cmp eax, 0x10
je 0x4353e7
cmp eax, edi
je 0x4353d5
mov dword [ebx + 0x3d0], 0xe
jmp 0x435408
cmp dword [ebx + 0x3cc], 0x20
push 0xe
pop eax
push 0xc
pop ecx
cmovne eax, ecx
jmp 0x435402
mov ecx, dword [ebx + 0x3cc]
cmp ecx, 0x10
jne 0x4353f7
push 0xa
pop eax
jmp 0x435402
push 0xe
pop eax
push 0xc
cmp ecx, edi
pop edx
cmove eax, edx
mov dword [ebx + 0x3d0], eax
mov eax, dword [ebx + 0x3cc]
cdq
and edx, 3
lea edi, [edx + eax]
xor eax, eax
sar edi, 2
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], eax
cmp dword [ebx + 0x3d0], eax
jl 0x43544c
lea edx, [ebx + 8]
test edi, edi
jle 0x43543d
mov ecx, edi
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
inc eax
add edx, 0x20
mov dword [ebp + 8], eax
cmp eax, dword [ebx + 0x3d0]
jle 0x43542b
xor edx, edx
cmp dword [ebx + 0x3d0], edx
jl 0x435481
lea eax, [ebx + 0x1e8]
mov dword [ebp + 8], eax
test edi, edi
jle 0x435472
mov ecx, edi
xor eax, eax
mov edi, dword [ebp + 8]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
inc edx
add eax, 0x20
mov dword [ebp + 8], eax
cmp edx, dword [ebx + 0x3d0]
jle 0x43545f
mov eax, dword [ebx + 0x3d0]
inc eax
imul eax, edi
mov dword [ebp + 0x14], eax
mov eax, dword [ebx + 0x3c8]
cdq
and edx, 3
add edx, eax
lea eax, [ebx + 0x414]
sar edx, 2
mov ecx, eax
mov dword [ebp + 0x10], edx
test edx, edx
jle 0x4354e2
mov edi, edx
movzx eax, byte [esi]
lea esi, [esi + 4]
shl eax, 0x18
mov dword [ecx], eax
movzx eax, byte [esi - 3]
shl eax, 0x10
or dword [ecx], eax
movzx eax, byte [esi - 2]
shl eax, 8
or dword [ecx], eax
movzx eax, byte [esi - 1]
or dword [ecx], eax
lea ecx, [ecx + 4]
sub edi, 1
jne 0x4354ae
mov edi, dword [ebp + 0xc]
lea eax, [ebx + 0x414]
xor esi, esi
mov dword [ebp + 8], esi
test edx, edx
jle 0x435535
mov ecx, eax
mov dword [ebp - 4], eax
cmp esi, dword [ebp + 0x14]
jge 0x4356b7
mov eax, esi
mov ecx, dword [ecx]
cdq
idiv edi
lea esi, [edx + eax*8]
mov dword [ebx + esi*4 + 8], ecx
mov ecx, dword [ebx + 0x3d0]
mov esi, dword [ebp + 8]
sub ecx, eax
mov eax, dword [ebp - 4]
inc esi
mov dword [ebp + 8], esi
lea ecx, [edx + ecx*8]
mov edx, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ebx + ecx*4 + 0x1e8], eax
mov ecx, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 4], ecx
cmp esi, edx
jl 0x4354f0
cmp esi, dword [ebp + 0x14]
jge 0x4356b7
mov dword [ebp - 4], 0x518ef8
mov edx, dword [ebx + edx*4 + 0x410]
mov eax, edx
sar eax, 0x10
movzx eax, al
movsx ecx, byte [eax + str.cw]
mov eax, dword [ebp - 4]
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
mov edx, dword [ebp + 0x10]
shl ecx, 8
movzx eax, byte [eax + str.cw]
xor ecx, eax
lea eax, [ebx + 0x414]
xor dword [eax], ecx
inc dword [ebp - 4]
cmp edx, 8
je 0x4355d2
cmp edx, 1
jle 0x435659
lea ecx, [ebx + 0x418]
lea edi, [edx - 1]
mov eax, dword [ecx - 4]
xor dword [ecx], eax
lea ecx, [ecx + 4]
sub edi, 1
jne 0x4355bd
mov edi, dword [ebp + 0xc]
jmp 0x435653
push 3
lea ecx, [ebx + 0x418]
pop edx
mov eax, dword [ecx - 4]
xor dword [ecx], eax
lea ecx, [ecx + 4]
sub edx, 1
jne 0x4355db
mov edx, dword [ebx + 0x420]
mov eax, edx
sar eax, 0x18
movzx eax, al
push 3
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
pop edx
movzx eax, byte [eax + str.cw]
xor ecx, eax
xor dword [ebx + 0x424], ecx
lea ecx, [ebx + 0x428]
mov eax, dword [ecx - 4]
xor dword [ecx], eax
lea ecx, [ecx + 4]
sub edx, 1
jne 0x435643
mov edx, dword [ebp + 0x10]
lea eax, [ebx + 0x414]
and dword [ebp - 0xc], 0
test edx, edx
jle 0x4356ae
mov ecx, eax
mov dword [ebp - 8], eax
cmp esi, dword [ebp + 0x14]
jge 0x4356b7
mov eax, esi
mov ecx, dword [ecx]
cdq
idiv edi
lea esi, [edx + eax*8]
mov dword [ebx + esi*4 + 8], ecx
mov ecx, dword [ebx + 0x3d0]
mov esi, dword [ebp + 8]
sub ecx, eax
mov eax, dword [ebp - 8]
lea ecx, [edx + ecx*8]
mov edx, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ebx + ecx*4 + 0x1e8], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
inc eax
add ecx, 4
mov dword [ebp - 0xc], eax
inc esi
mov dword [ebp - 8], ecx
mov dword [ebp + 8], esi
cmp eax, edx
jl 0x435666
cmp esi, dword [ebp + 0x14]
jl 0x435545
xor esi, esi
inc esi
cmp dword [ebx + 0x3d0], esi
jle 0x435731
lea eax, [ebx + 0x208]
mov dword [ebp + 8], eax
test edi, edi
jle 0x435722
mov ebx, edi
mov dword [ebp + 0x10], eax
mov edi, eax
mov edx, dword [edi]
mov eax, edx
sar eax, 0x18
movzx ecx, al
mov eax, edx
sar eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x517ef8]
xor ecx, dword [eax*4 + 0x5182f8]
mov eax, edx
sar eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5186f8]
movzx eax, dl
xor ecx, dword [eax*4 + 0x518af8]
mov dword [edi], ecx
lea edi, [edi + 4]
sub ebx, 1
jne 0x4356d6
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
inc esi
add eax, 0x20
mov dword [ebp + 8], eax
cmp esi, dword [ebx + 0x3d0]
jl 0x4356cb
mov byte [ebx + 4], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10