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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 0x10]
movzx edx, byte [eax + 2]
push ebx
push esi
movzx esi, byte [eax + 3]
shl esi, 8
or esi, edx
movzx edx, byte [eax + 1]
push edi
movzx edi, byte [eax + 6]
movzx ebx, byte [eax + 0xa]
shl esi, 8
or esi, edx
movzx edx, byte [eax]
shl esi, 8
or esi, edx
movzx edx, byte [eax + 7]
xor esi, dword [ecx]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 5]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 4]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 0xb]
shl edi, 8
or edi, ebx
movzx ebx, byte [eax + 9]
shl edi, 8
or edi, ebx
movzx ebx, byte [eax + 8]
shl edi, 8
or edi, ebx
movzx ebx, byte [eax + 0xe]
add ecx, 4
xor edx, dword [ecx]
add ecx, 4
xor edi, dword [ecx]
add ecx, 4
mov dword [ebp + 0x10], edi
movzx edi, byte [eax + 0xf]
shl edi, 8
or edi, ebx
movzx ebx, byte [eax + 0xd]
movzx eax, byte [eax + 0xc]
shl edi, 8
or edi, ebx
shl edi, 8
or edi, eax
xor edi, dword [ecx]
mov eax, dword [ebp + 8]
add ecx, 4
cmp dword [ebp + 0xc], 0
mov dword [ebp - 4], edi
jne 0x46daad
mov ebx, dword [eax]
sar ebx, 1
dec ebx
mov dword [ebp - 8], ebx
mov eax, 0xff
test ebx, ebx
jle 0x46d89d
mov ebx, dword [ebp + 0x10]
shr ebx, 0x10
and ebx, eax
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x4ad330]
xor edi, dword [ebx*4 + 0x4ad730]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4adb30]
mov ebx, esi
and ebx, eax
xor edi, dword [ebx*4 + 0x4acf30]
mov ebx, esi
xor edi, dword [ecx]
shr ebx, 8
mov dword [ebp + 0xc], edi
mov edi, dword [ebp - 4]
and ebx, eax
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x4ad730]
xor edi, dword [ebx*4 + 0x4ad330]
mov ebx, dword [ebp + 0x10]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4adb30]
mov ebx, edx
and ebx, eax
xor edi, dword [ebx*4 + 0x4acf30]
add ecx, 4
xor edi, dword [ecx]
mov ebx, esi
shr ebx, 0x10
and ebx, eax
mov dword [ebp + 8], edi
mov edi, edx
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x4ad330]
xor edi, dword [ebx*4 + 0x4ad730]
mov ebx, dword [ebp - 4]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4adb30]
mov ebx, dword [ebp + 0x10]
and ebx, eax
xor edi, dword [ebx*4 + 0x4acf30]
mov ebx, dword [ebp + 0x10]
shr ebx, 8
and ebx, eax
shr edx, 0x10
and edx, eax
mov dword [ebp + 0x10], edx
mov edx, dword [ebx*4 + 0x4ad330]
mov ebx, dword [ebp + 0x10]
xor edx, dword [ebx*4 + 0x4ad730]
shr esi, 0x18
xor edx, dword [esi*4 + 0x4adb30]
mov esi, dword [ebp - 4]
and esi, eax
xor edx, dword [esi*4 + 0x4acf30]
add ecx, 4
xor edi, dword [ecx]
add ecx, 4
xor edx, dword [ecx]
mov ebx, edi
shr ebx, 0x10
mov esi, edx
shr esi, 8
and esi, eax
mov esi, dword [esi*4 + 0x4ad330]
and ebx, eax
xor esi, dword [ebx*4 + 0x4ad730]
mov ebx, dword [ebp + 8]
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x4adb30]
mov ebx, dword [ebp + 0xc]
and ebx, eax
add ecx, 4
xor esi, dword [ebx*4 + 0x4acf30]
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edx
mov ebx, dword [ebp + 0xc]
shr ebx, 8
and ebx, eax
shr edi, 0x18
xor esi, dword [ecx]
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x4ad730]
xor edx, dword [ebx*4 + 0x4ad330]
mov ebx, dword [ebp + 0xc]
xor edx, dword [edi*4 + 0x4adb30]
mov edi, dword [ebp + 8]
and edi, eax
xor edx, dword [edi*4 + 0x4acf30]
mov edi, dword [ebp + 8]
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x4ad330]
shr ebx, 0x10
and ebx, eax
xor edi, dword [ebx*4 + 0x4ad730]
mov ebx, dword [ebp - 4]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4adb30]
mov ebx, dword [ebp - 0xc]
and ebx, eax
xor edi, dword [ebx*4 + 0x4acf30]
mov ebx, dword [ebp - 0xc]
add ecx, 4
xor edx, dword [ecx]
add ecx, 4
xor edi, dword [ecx]
shr ebx, 8
mov dword [ebp + 0x10], edi
mov edi, dword [ebp + 8]
shr edi, 0x10
and ebx, eax
mov ebx, dword [ebx*4 + 0x4ad330]
and edi, eax
xor ebx, dword [edi*4 + 0x4ad730]
mov edi, dword [ebp + 0xc]
shr edi, 0x18
xor ebx, dword [edi*4 + 0x4adb30]
mov edi, dword [ebp - 4]
and edi, eax
xor ebx, dword [edi*4 + 0x4acf30]
add ecx, 4
xor ebx, dword [ecx]
add ecx, 4
dec dword [ebp - 8]
cmp dword [ebp - 8], 0
mov edi, ebx
mov dword [ebp - 4], edi
jg 0x46d6ad
mov ebx, dword [ebp + 0x10]
shr ebx, 0x10
and ebx, eax
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x4ad330]
xor edi, dword [ebx*4 + 0x4ad730]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4adb30]
mov ebx, esi
and ebx, eax
xor edi, dword [ebx*4 + 0x4acf30]
mov ebx, esi
xor edi, dword [ecx]
shr ebx, 8
mov dword [ebp + 0xc], edi
mov edi, dword [ebp - 4]
and ebx, eax
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x4ad730]
xor edi, dword [ebx*4 + 0x4ad330]
mov ebx, dword [ebp + 0x10]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4adb30]
mov ebx, edx
and ebx, eax
xor edi, dword [ebx*4 + 0x4acf30]
add ecx, 4
xor edi, dword [ecx]
mov ebx, esi
mov dword [ebp + 8], edi
mov edi, edx
shr ebx, 0x10
and ebx, eax
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x4ad330]
xor edi, dword [ebx*4 + 0x4ad730]
mov ebx, dword [ebp - 4]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4adb30]
mov ebx, dword [ebp + 0x10]
and ebx, eax
xor edi, dword [ebx*4 + 0x4acf30]
mov ebx, dword [ebp + 0x10]
shr edx, 0x10
and edx, eax
shr ebx, 8
and ebx, eax
mov ebx, dword [ebx*4 + 0x4ad330]
xor ebx, dword [edx*4 + 0x4ad730]
mov edx, dword [ebp - 4]
and edx, eax
shr esi, 0x18
xor ebx, dword [esi*4 + 0x4adb30]
add ecx, 4
xor ebx, dword [edx*4 + 0x4acf30]
xor edi, dword [ecx]
add ecx, 4
xor ebx, dword [ecx]
mov edx, edi
shr edx, 0x10
and edx, eax
movzx esi, byte [edx + 0x4ace30]
mov edx, dword [ebp + 8]
shr edx, 0x18
movzx edx, byte [edx + 0x4ace30]
shl edx, 8
xor esi, edx
mov edx, ebx
shr edx, 8
and edx, eax
movzx edx, byte [edx + 0x4ace30]
shl esi, 8
xor esi, edx
mov edx, dword [ebp + 0xc]
add ecx, 4
shl esi, 8
and edx, eax
movzx edx, byte [edx + 0x4ace30]
xor esi, edx
xor esi, dword [ecx]
mov edx, ebx
shr edx, 0x10
and edx, eax
mov dword [ebp - 0xc], esi
movzx esi, byte [edx + 0x4ace30]
mov edx, edi
shr edx, 0x18
movzx edx, byte [edx + 0x4ace30]
shl edx, 8
xor esi, edx
mov edx, dword [ebp + 0xc]
shr edx, 8
and edx, eax
movzx edx, byte [edx + 0x4ace30]
shl esi, 8
xor esi, edx
mov edx, dword [ebp + 8]
and edx, eax
movzx edx, byte [edx + 0x4ace30]
shl esi, 8
xor esi, edx
mov edx, dword [ebp + 0xc]
shr edx, 0x10
and edx, eax
add ecx, 4
xor esi, dword [ecx]
add ecx, 4
mov dword [ebp - 8], esi
movzx esi, byte [edx + 0x4ace30]
mov edx, ebx
shr edx, 0x18
movzx edx, byte [edx + 0x4ace30]
shl edx, 8
xor esi, edx
mov edx, dword [ebp + 8]
shr edx, 8
and edx, eax
movzx edx, byte [edx + 0x4ace30]
shl esi, 8
xor esi, edx
mov edx, edi
and edx, eax
movzx edx, byte [edx + 0x4ace30]
shl esi, 8
xor esi, edx
xor esi, dword [ecx]
mov edx, dword [ebp + 8]
mov dword [ebp + 0x10], esi
mov esi, dword [ebp + 0xc]
shr edx, 0x10
and edx, eax
movzx edx, byte [edx + 0x4ace30]
shr esi, 0x18
movzx esi, byte [esi + 0x4ace30]
shl esi, 8
xor edx, esi
shr edi, 8
and edi, eax
movzx esi, byte [edi + 0x4ace30]
shl edx, 8
and ebx, eax
movzx eax, byte [ebx + 0x4ace30]
xor edx, esi
shl edx, 8
xor edx, eax
xor edx, dword [ecx + 4]
jmp 0x46dec7
mov edi, dword [eax]
sar edi, 1
dec edi
mov dword [ebp - 8], edi
mov eax, 0xff
test edi, edi
jle 0x46dcb4
mov edi, dword [ebp + 0x10]
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x4ac630]
mov ebx, edx
shr ebx, 8
and ebx, eax
xor edi, dword [ebx*4 + 0x4ac230]
mov ebx, dword [ebp - 4]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4aca30]
mov ebx, esi
and ebx, eax
xor edi, dword [ebx*4 + 0x4abe30]
mov ebx, dword [ebp + 0x10]
xor edi, dword [ecx]
shr ebx, 8
mov dword [ebp + 0xc], edi
mov edi, dword [ebp - 4]
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x4ac630]
and ebx, eax
xor edi, dword [ebx*4 + 0x4ac230]
mov ebx, esi
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4aca30]
mov ebx, edx
and ebx, eax
xor edi, dword [ebx*4 + 0x4abe30]
add ecx, 4
xor edi, dword [ecx]
mov ebx, esi
mov dword [ebp + 8], edi
mov edi, dword [ebp - 4]
shr edi, 8
and edi, eax
shr ebx, 0x10
and ebx, eax
mov dword [ebp - 0xc], ebx
mov ebx, dword [edi*4 + 0x4ac230]
mov edi, dword [ebp - 0xc]
xor ebx, dword [edi*4 + 0x4ac630]
mov edi, edx
shr edi, 0x18
xor ebx, dword [edi*4 + 0x4aca30]
mov edi, dword [ebp + 0x10]
shr edx, 0x10
and edx, eax
and edi, eax
xor ebx, dword [edi*4 + 0x4abe30]
mov edi, dword [edx*4 + 0x4ac630]
mov edx, dword [ebp + 0x10]
shr esi, 8
and esi, eax
xor edi, dword [esi*4 + 0x4ac230]
mov esi, dword [ebp + 8]
shr edx, 0x18
xor edi, dword [edx*4 + 0x4aca30]
mov edx, dword [ebp - 4]
and edx, eax
xor edi, dword [edx*4 + 0x4abe30]
add ecx, 4
xor ebx, dword [ecx]
shr esi, 8
mov edx, ebx
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x4ac630]
add ecx, 4
xor edi, dword [ecx]
and esi, eax
xor edx, dword [esi*4 + 0x4ac230]
mov esi, edi
shr esi, 0x18
xor edx, dword [esi*4 + 0x4aca30]
mov esi, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
and esi, eax
xor edx, dword [esi*4 + 0x4abe30]
shr ebx, 8
xor edx, dword [ecx]
and ebx, eax
mov esi, edx
mov edx, edi
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x4ac630]
xor edx, dword [ebx*4 + 0x4ac230]
mov ebx, dword [ebp + 0xc]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x4aca30]
mov ebx, dword [ebp + 8]
and ebx, eax
xor edx, dword [ebx*4 + 0x4abe30]
mov ebx, dword [ebp + 0xc]
shr edi, 8
shr ebx, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x4ac230]
and ebx, eax
xor edi, dword [ebx*4 + 0x4ac630]
mov ebx, dword [ebp + 8]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4aca30]
mov ebx, dword [ebp - 0xc]
and ebx, eax
xor edi, dword [ebx*4 + 0x4abe30]
mov ebx, dword [ebp + 8]
add ecx, 4
xor edx, dword [ecx]
add ecx, 4
xor edi, dword [ecx]
shr ebx, 0x10
mov dword [ebp + 0x10], edi
mov edi, dword [ebp + 0xc]
and ebx, eax
mov ebx, dword [ebx*4 + 0x4ac630]
shr edi, 8
and edi, eax
xor ebx, dword [edi*4 + 0x4ac230]
mov edi, dword [ebp - 0xc]
shr edi, 0x18
xor ebx, dword [edi*4 + 0x4aca30]
mov edi, dword [ebp - 4]
and edi, eax
xor ebx, dword [edi*4 + 0x4abe30]
add ecx, 4
xor ebx, dword [ecx]
add ecx, 4
dec dword [ebp - 8]
cmp dword [ebp - 8], 0
mov dword [ebp - 4], ebx
jg 0x46dac2
mov edi, dword [ebp + 0x10]
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x4ac630]
mov ebx, edx
shr ebx, 8
and ebx, eax
xor edi, dword [ebx*4 + 0x4ac230]
mov ebx, dword [ebp - 4]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4aca30]
mov ebx, esi
and ebx, eax
xor edi, dword [ebx*4 + 0x4abe30]
mov ebx, dword [ebp + 0x10]
xor edi, dword [ecx]
shr ebx, 8
mov dword [ebp + 0xc], edi
mov edi, dword [ebp - 4]
and ebx, eax
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x4ac630]
xor edi, dword [ebx*4 + 0x4ac230]
mov ebx, esi
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4aca30]
mov ebx, edx
and ebx, eax
xor edi, dword [ebx*4 + 0x4abe30]
mov ebx, esi
add ecx, 4
xor edi, dword [ecx]
shr ebx, 0x10
mov dword [ebp + 8], edi
mov edi, dword [ebp - 4]
and ebx, eax
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x4ac230]
xor edi, dword [ebx*4 + 0x4ac630]
shr esi, 8
mov ebx, edx
and esi, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4aca30]
mov ebx, dword [ebp + 0x10]
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x4ac630]
xor edx, dword [esi*4 + 0x4ac230]
mov esi, dword [ebp + 0x10]
shr esi, 0x18
xor edx, dword [esi*4 + 0x4aca30]
mov esi, dword [ebp - 4]
and ebx, eax
xor edi, dword [ebx*4 + 0x4abe30]
and esi, eax
xor edx, dword [esi*4 + 0x4abe30]
add ecx, 4
xor edi, dword [ecx]
add ecx, 4
xor edx, dword [ecx]
mov esi, edi
shr esi, 0x10
and esi, eax
movzx esi, byte [esi + str.cw]
mov ebx, edx
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
shl ebx, 8
xor esi, ebx
mov ebx, dword [ebp + 8]
shr ebx, 8
and ebx, eax
movzx ebx, byte [ebx + str.cw]
shl esi, 8
xor esi, ebx
mov ebx, dword [ebp + 0xc]
add ecx, 4
shl esi, 8
and ebx, eax
movzx ebx, byte [ebx + str.cw]
xor esi, ebx
xor esi, dword [ecx]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
shl ebx, 8
mov esi, edx
shr esi, 0x10
and esi, eax
movzx esi, byte [esi + str.cw]
xor esi, ebx
shl esi, 8
mov ebx, edi
shr ebx, 8
and ebx, eax
movzx ebx, byte [ebx + str.cw]
xor esi, ebx
mov ebx, dword [ebp + 8]
shl esi, 8
and ebx, eax
movzx ebx, byte [ebx + str.cw]
xor esi, ebx
mov ebx, dword [ebp + 8]
add ecx, 4
xor esi, dword [ecx]
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
mov dword [ebp - 8], esi
mov esi, dword [ebp + 0xc]
shr esi, 0x10
and esi, eax
movzx esi, byte [esi + str.cw]
shl ebx, 8
xor esi, ebx
shl esi, 8
mov ebx, edx
shr ebx, 8
and ebx, eax
movzx ebx, byte [ebx + str.cw]
xor esi, ebx
mov ebx, edi
shl esi, 8
and ebx, eax
movzx ebx, byte [ebx + str.cw]
xor esi, ebx
add ecx, 4
xor esi, dword [ecx]
shr edi, 0x18
movzx edi, byte [edi + str.cw]
mov dword [ebp + 0x10], esi
mov esi, dword [ebp + 8]
shr esi, 0x10
and esi, eax
movzx esi, byte [esi + str.cw]
shl edi, 8
xor esi, edi
mov edi, dword [ebp + 0xc]
shr edi, 8
and edi, eax
movzx edi, byte [edi + str.cw]
shl esi, 8
and edx, eax
movzx eax, byte [edx + str.cw]
xor esi, edi
shl esi, 8
xor esi, eax
xor esi, dword [ecx + 4]
mov dword [ebp - 4], esi
mov edx, esi
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
mov ebx, ecx
shr ebx, 8
mov byte [eax + 1], bl
mov ebx, ecx
mov byte [eax], cl
shr ecx, 0x18
shr ebx, 0x10
mov byte [eax + 3], cl
mov ecx, dword [ebp - 8]
mov byte [eax + 2], bl
mov ebx, ecx
shr ebx, 8
mov byte [eax + 5], bl
mov ebx, ecx
mov byte [eax + 4], cl
shr ecx, 0x18
shr ebx, 0x10
mov byte [eax + 7], cl
mov ecx, dword [ebp + 0x10]
mov byte [eax + 6], bl
mov ebx, ecx
shr ebx, 8
mov byte [eax + 8], cl
mov byte [eax + 9], bl
mov ebx, ecx
shr ecx, 0x18
mov byte [eax + 0xb], cl
mov ecx, edx
shr ecx, 8
mov byte [eax + 0xd], cl
mov ecx, edx
shr ebx, 0x10
pop edi
shr ecx, 0x10
mov byte [eax + 0xc], dl
shr edx, 0x18
pop esi
mov byte [eax + 0xa], bl
mov byte [eax + 0xe], cl
mov byte [eax + 0xf], dl
pop ebx
leave
ret