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

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
sub esp, 0x28
cmp eax, str.wae_70h__HjlJ_lhj_y6_jkP80jH9
jne 0x412f49
lea ecx, [ebp - 0x28]
call fcn.0047a10a
push 0x4c83ec
lea eax, [ebp - 0x28]
push eax
call fcn.004812bb
push esi
push edi
mov dword [ebx + 0x3cc], 0x10
mov eax, str.yWk7_hg7ui__hij
mov dword [ebx + 0x3c8], 0x20
mov esi, eax
lea edi, [ebx + 0x3d4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push dword [ebx + 0x3cc]
push eax
lea eax, [ebx + 0x3f4]
push eax
call fcn.00480700
mov eax, dword [ebx + 0x3c8]
add esp, 0xc
cmp eax, 0x10
je 0x412fb4
cmp eax, 0x18
je 0x412fa2
mov dword [ebx + 0x3d0], 0xe
jmp 0x412fd6
xor eax, eax
cmp dword [ebx + 0x3cc], 0x20
sete al
lea eax, [eax + eax + 0xc]
jmp 0x412fd0
mov eax, dword [ebx + 0x3cc]
cmp eax, 0x10
jne 0x412fc4
push 0xa
pop eax
jmp 0x412fd0
xor ecx, ecx
cmp eax, 0x18
setne cl
lea eax, [ecx + ecx + 0xc]
mov dword [ebx + 0x3d0], eax
mov eax, dword [ebx + 0x3cc]
cdq
and edx, 3
add eax, edx
sar eax, 2
xor edx, edx
mov dword [ebp - 8], eax
cmp dword [ebx + 0x3d0], edx
jl 0x413010
lea esi, [ebx + 8]
test eax, eax
jle 0x413004
mov ecx, eax
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 8]
inc edx
add esi, 0x20
cmp edx, dword [ebx + 0x3d0]
jle 0x412ff5
xor edx, edx
cmp dword [ebx + 0x3d0], edx
jl 0x41303b
lea esi, [ebx + 0x1e8]
test eax, eax
jle 0x41302f
mov ecx, eax
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 8]
inc edx
add esi, 0x20
cmp edx, dword [ebx + 0x3d0]
jle 0x413020
mov esi, dword [ebx + 0x3d0]
inc esi
imul esi, eax
mov eax, dword [ebx + 0x3c8]
cdq
and edx, 3
lea edi, [edx + eax]
sar edi, 2
mov dword [ebp - 0x1c], esi
lea eax, [ebx + 0x414]
mov ecx, str.wae_70h__HjlJ_lhj_y6_jkP80jH9
test edi, edi
jle 0x413095
mov dword [ebp - 0x18], edi
movzx edx, byte [ecx]
shl edx, 0x18
mov dword [eax], edx
movzx edx, byte [ecx + 1]
shl edx, 0x10
or dword [eax], edx
movzx edx, byte [ecx + 2]
shl edx, 8
or dword [eax], edx
movzx edx, byte [ecx + 3]
or dword [eax], edx
add ecx, 4
add eax, 4
dec dword [ebp - 0x18]
jne 0x41306a
and dword [ebp - 4], 0
test edi, edi
jle 0x4130e4
lea eax, [ebx + 0x414]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, esi
jge 0x4130e4
cdq
idiv dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx]
mov dword [ebp - 0x14], eax
lea eax, [edx + eax*8]
mov dword [ebx + eax*4 + 8], ecx
mov eax, dword [ebx + 0x3d0]
sub eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
inc dword [ebp - 4]
mov ecx, dword [ecx]
add dword [ebp - 0xc], 4
lea eax, [edx + eax*8]
mov dword [ebx + eax*4 + 0x1e8], ecx
cmp dword [ebp - 4], edi
jl 0x4130a6
mov ecx, 0xff
cmp dword [ebp - 4], esi
jge 0x41324c
mov dword [ebp - 0x10], 0x4ba6c0
mov eax, dword [ebx + edi*4 + 0x410]
mov esi, dword [ebp - 0x10]
movsx esi, byte [esi]
mov edx, eax
sar edx, 0x10
and edx, ecx
movsx edx, byte [edx + str.cw]
xor edx, esi
mov esi, eax
sar esi, 8
and esi, ecx
movzx esi, byte [esi + str.cw]
shl edx, 8
xor edx, esi
mov esi, eax
and esi, ecx
movzx esi, byte [esi + str.cw]
sar eax, 0x18
shl edx, 8
and eax, ecx
movzx eax, byte [eax + str.cw]
xor edx, esi
shl edx, 8
xor edx, eax
xor dword [ebx + 0x414], edx
inc dword [ebp - 0x10]
cmp edi, 8
je 0x413177
cmp edi, 1
jle 0x4131ed
lea eax, [ebx + 0x418]
lea edx, [edi - 1]
mov esi, dword [eax - 4]
xor dword [eax], esi
add eax, 4
dec edx
jne 0x41316a
jmp 0x4131ed
push 3
lea eax, [ebx + 0x418]
pop edx
mov esi, dword [eax - 4]
xor dword [eax], esi
add eax, 4
dec edx
jne 0x413180
mov eax, dword [ebx + 0x420]
mov edx, eax
sar edx, 0x18
and edx, ecx
movsx edx, byte [edx + str.cw]
mov esi, eax
sar esi, 0x10
and esi, ecx
movzx esi, byte [esi + str.cw]
shl edx, 8
xor edx, esi
mov esi, eax
sar esi, 8
and esi, ecx
movzx esi, byte [esi + str.cw]
shl edx, 8
and eax, ecx
movzx eax, byte [eax + str.cw]
xor edx, esi
shl edx, 8
xor edx, eax
xor dword [ebx + 0x424], edx
push 3
lea eax, [ebx + 0x428]
pop edx
mov esi, dword [eax - 4]
xor dword [eax], esi
add eax, 4
dec edx
jne 0x4131e2
and dword [ebp - 0x18], 0
test edi, edi
jle 0x413240
lea eax, [ebx + 0x414]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x1c]
jge 0x41324c
cdq
idiv dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov esi, dword [esi]
mov dword [ebp - 0x14], eax
lea eax, [edx + eax*8]
mov dword [ebx + eax*4 + 8], esi
mov eax, dword [ebx + 0x3d0]
sub eax, dword [ebp - 0x14]
inc dword [ebp - 0x18]
lea eax, [edx + eax*8]
mov edx, dword [ebp - 0xc]
add dword [ebp - 0xc], 4
mov edx, dword [edx]
inc dword [ebp - 4]
mov dword [ebx + eax*4 + 0x1e8], edx
cmp dword [ebp - 0x18], edi
jl 0x4131fe
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x1c]
jl 0x4130f9
xor eax, eax
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebx + 0x3d0], eax
jle 0x4132c1
lea eax, [ebx + 0x208]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
test eax, eax
jle 0x4132af
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [edx]
mov esi, eax
sar esi, 0x18
and esi, ecx
mov esi, dword [esi*4 + 0x4b96c0]
mov edi, eax
sar edi, 0x10
and edi, ecx
xor esi, dword [edi*4 + 0x4b9ac0]
mov edi, eax
sar edi, 8
and edi, ecx
xor esi, dword [edi*4 + 0x4b9ec0]
and eax, ecx
xor esi, dword [eax*4 + 0x4ba2c0]
mov dword [edx], esi
add edx, 4
dec dword [ebp - 0x1c]
jne 0x413270
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x18], 0x20
cmp eax, dword [ebx + 0x3d0]
jl 0x413263
pop edi
mov byte [ebx + 4], 1
pop esi
leave
ret