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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
sub eax, 0x80
je 0x410e9e
sub eax, 0x40
je 0x410e8f
sub eax, 0x40
je 0x410e80
xor eax, eax
inc eax
jmp 0x4112b0
mov edx, dword [ebp + 8]
mov dword [edx + 0x200], 0xe
jmp 0x410ead
mov eax, dword [ebp + 8]
mov dword [eax + 0x200], 0xc
jmp 0x410eab
mov eax, dword [ebp + 8]
mov dword [eax + 0x200], 0xa
mov edx, eax
mov ecx, dword [ebp + 0x10]
and dword [ebp - 4], 0
push ebx
push esi
push edi
sar ecx, 5
test ecx, ecx
push 4
mov eax, edx
mov dword [ebp - 8], ecx
pop edi
jle 0x410ef6
mov ecx, dword [ebp + 0xc]
add ecx, 2
movzx esi, byte [ecx]
xor ebx, ebx
mov bh, byte [ecx - 2]
mov bl, byte [ecx - 1]
shl ebx, 8
or ebx, esi
movzx esi, byte [ecx + 1]
shl ebx, 8
or ebx, esi
mov esi, dword [ebp - 4]
mov dword [edx + esi*4], ebx
inc esi
add ecx, edi
cmp esi, dword [ebp - 8]
mov dword [ebp - 4], esi
jl 0x410ecc
mov ecx, dword [ebp + 0x10]
sub ecx, 0x80
je 0x411081
sub ecx, 0x40
je 0x410ff5
sub ecx, 0x40
jne 0x4110f7
mov dword [ebp + 0x10], 0x403b40
mov esi, dword [eax + 0x1c]
mov ecx, esi
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x401340]
shl ecx, 8
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x401340]
movzx edx, byte [eax + 0x1c]
shl ecx, 8
xor ecx, dword [edx*4 + 0x401340]
mov edx, esi
shl ecx, 8
shr edx, 0x18
xor ecx, dword [edx*4 + 0x401340]
mov edx, dword [ebp + 0x10]
xor ecx, dword [edx]
lea edx, [eax + 0x20]
xor ecx, dword [eax]
mov dword [ebp + 0xc], edx
mov dword [edx], ecx
mov edx, dword [eax + 4]
xor edx, ecx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x24], edx
mov edx, dword [eax + 0xc]
xor edx, ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], edx
mov ecx, edx
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x401340]
mov ebx, edx
add dword [ebp + 0x10], edi
shl ecx, 8
shr ebx, 0x10
shr edx, 8
movzx ebx, bl
xor ecx, dword [ebx*4 + 0x401340]
movzx edx, dl
shl ecx, 8
xor ecx, dword [edx*4 + 0x401340]
movzx edx, byte [eax + 0x2c]
shl ecx, 8
xor ecx, dword [edx*4 + 0x401340]
mov edx, dword [eax + 0x14]
xor ecx, dword [eax + 0x10]
xor edx, ecx
mov dword [eax + 0x30], ecx
mov ecx, dword [eax + 0x18]
xor ecx, edx
xor esi, ecx
cmp dword [ebp + 0x10], 0x403b5c
mov dword [eax + 0x34], edx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], esi
mov eax, dword [ebp + 0xc]
jl 0x410f1e
jmp 0x41107c
mov dword [ebp + 0x10], 0x403b40
mov esi, dword [eax + 0x14]
mov ecx, esi
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x401340]
shl ecx, 8
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x401340]
movzx edx, byte [eax + 0x14]
shl ecx, 8
xor ecx, dword [edx*4 + 0x401340]
mov edx, esi
shl ecx, 8
shr edx, 0x18
xor ecx, dword [edx*4 + 0x401340]
mov edx, dword [ebp + 0x10]
xor ecx, dword [eax]
add dword [ebp + 0x10], edi
xor ecx, dword [edx]
mov edx, dword [eax + 4]
xor edx, ecx
lea ebx, [eax + 0x18]
mov dword [ebx], ecx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x1c], edx
mov edx, dword [eax + 0xc]
xor edx, ecx
mov dword [eax + 0x20], ecx
mov ecx, dword [eax + 0x10]
xor ecx, edx
xor esi, ecx
cmp dword [ebp + 0x10], 0x403b60
mov dword [eax + 0x24], edx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], esi
mov eax, ebx
jl 0x410ffc
mov edx, dword [ebp + 8]
jmp 0x4110f7
mov dword [ebp + 8], 0x403b40
mov esi, dword [eax + 0xc]
mov ecx, esi
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x401340]
shl ecx, 8
mov ebx, esi
shr ebx, 8
movzx ebx, bl
xor ecx, dword [ebx*4 + 0x401340]
movzx ebx, byte [eax + 0xc]
shl ecx, 8
xor ecx, dword [ebx*4 + 0x401340]
mov ebx, esi
shl ecx, 8
shr ebx, 0x18
xor ecx, dword [ebx*4 + 0x401340]
mov ebx, dword [ebp + 8]
xor ecx, dword [ebx]
mov ebx, dword [eax + 4]
xor ecx, dword [eax]
add dword [ebp + 8], edi
xor ebx, ecx
mov dword [eax + 0x10], ecx
mov ecx, dword [eax + 8]
xor ecx, ebx
xor esi, ecx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], esi
add eax, 0x10
cmp dword [ebp + 8], 0x403b68
jl 0x411088
xor ecx, ecx
cmp dword [section..data], ecx
je 0x41114b
mov esi, dword [ecx + 0x401340]
shl esi, 2
mov ebx, dword [esi + 0x402b40]
mov dword [ecx + 0x459060], ebx
mov ebx, dword [esi + 0x402f40]
mov dword [ecx + 0x458c60], ebx
mov ebx, dword [esi + 0x403340]
mov esi, dword [esi + 0x403740]
mov dword [ecx + 0x458860], ebx
mov dword [ecx + 0x459460], esi
add ecx, edi
cmp ecx, 0x400
jl 0x411101
and dword [section..data], 0
mov esi, dword [eax]
add eax, edi
lea ecx, [edx + 0x100]
mov dword [ecx], esi
mov esi, dword [eax]
add ecx, edi
mov dword [ecx], esi
add eax, edi
mov esi, dword [eax]
add ecx, edi
mov dword [ecx], esi
add eax, edi
mov esi, dword [eax]
add ecx, edi
mov dword [ecx], esi
xor esi, esi
inc esi
add ecx, edi
add eax, edi
cmp dword [edx + 0x200], esi
mov dword [ebp - 4], esi
jle 0x41128e
mov dword [ebp + 0x10], edx
sub eax, 0x20
mov esi, dword [eax]
mov edx, esi
shr edx, 0x10
mov ebx, esi
shr ebx, 0x18
mov ebx, dword [ebx*4 + 0x459060]
movzx esi, dl
xor ebx, dword [esi*4 + 0x458c60]
mov edx, dword [eax]
shr edx, 8
movzx esi, dl
xor ebx, dword [esi*4 + 0x458860]
movzx esi, byte [eax]
xor ebx, dword [esi*4 + 0x459460]
add eax, edi
mov dword [ecx], ebx
mov esi, dword [eax]
mov edx, esi
shr edx, 0x10
mov ebx, esi
shr ebx, 0x18
mov ebx, dword [ebx*4 + 0x459060]
movzx esi, dl
xor ebx, dword [esi*4 + 0x458c60]
mov edx, dword [eax]
shr edx, 8
movzx esi, dl
xor ebx, dword [esi*4 + 0x458860]
movzx esi, byte [eax]
xor ebx, dword [esi*4 + 0x459460]
add ecx, edi
mov dword [ecx], ebx
add eax, edi
mov esi, dword [eax]
mov edx, esi
shr edx, 0x10
mov ebx, esi
shr ebx, 0x18
mov ebx, dword [ebx*4 + 0x459060]
movzx esi, dl
xor ebx, dword [esi*4 + 0x458c60]
mov edx, dword [eax]
shr edx, 8
movzx esi, dl
xor ebx, dword [esi*4 + 0x458860]
movzx esi, byte [eax]
xor ebx, dword [esi*4 + 0x459460]
add ecx, edi
mov dword [ecx], ebx
add eax, edi
mov esi, dword [eax]
mov edx, esi
shr edx, 0x10
mov ebx, esi
shr ebx, 0x18
mov ebx, dword [ebx*4 + 0x459060]
movzx esi, dl
xor ebx, dword [esi*4 + 0x458c60]
mov edx, dword [eax]
shr edx, 8
movzx esi, dl
xor ebx, dword [esi*4 + 0x458860]
movzx esi, byte [eax]
xor ebx, dword [esi*4 + 0x459460]
mov edx, dword [ebp + 0x10]
add ecx, edi
mov dword [ecx], ebx
add ecx, edi
add eax, edi
inc dword [ebp - 4]
mov esi, dword [ebp - 4]
cmp esi, dword [edx + 0x200]
jl 0x411183
sub eax, 0x20
mov edx, dword [eax]
mov dword [ecx], edx
add eax, edi
mov edx, dword [eax]
add ecx, edi
mov dword [ecx], edx
add eax, edi
mov edx, dword [eax]
add ecx, edi
mov dword [ecx], edx
mov eax, dword [eax + 4]
pop edi
pop esi
mov dword [ecx + 4], eax
xor eax, eax
pop ebx
leave
ret 0xc