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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [ebp + 0x1c]
xor edx, edx
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebx]
div edi
mov dword [ebp - 0x68], edi
test edx, edx
jne 0x481f7a
cmp byte [ebp + 8], 0
mov edx, dword [ebx + 4]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x18], ecx
je 0x4818ce
mov eax, dword [ebp + 0x18]
mov edx, 8
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], 0x4b3300
mov dword [ebp - 0x40], 0x4b3700
mov dword [ebp - 0x2c], 0x4b3b00
mov dword [ebp - 0x34], 0x4b3f00
mov dword [ebp - 0x10], str.cw
mov dword [ebp - 0x4c], 4
mov dword [ebp - 0x48], eax
jmp 0x481921
mov eax, dword [ebp + 0x14]
add eax, 0xfffffffc
mov dword [ebp - 0x30], 0x4b4300
add eax, edi
mov dword [ebp - 0x40], 0x4b4700
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x18]
add eax, 0xfffffffc
mov dword [ebp - 0x2c], 0x4b4b00
add eax, edi
mov dword [ebp - 0x34], 0x4b4f00
mov dword [ebp - 0x10], 0x4b3200
mov dword [ebp - 0x4c], 0xfffffffc
mov dword [ebp - 0x44], eax
test ecx, ecx
je 0x48191a
add ecx, 0xfffffffc
add ecx, edi
mov dword [ebp - 0x18], ecx
lea edx, [edx*4 + 8]
mov dword [ebp - 0x50], edx
push esi
lea esi, [edx + ebx]
test ecx, ecx
je 0x4819c4
movzx ebx, byte [ecx]
movzx eax, byte [ecx + 1]
mov edx, dword [ebp - 0x4c]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 3]
shl ebx, 8
add ecx, edx
or ebx, eax
mov dword [ebp - 0x28], ebx
movzx ebx, byte [ecx]
movzx eax, byte [ecx + 1]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 3]
shl ebx, 8
add ecx, edx
or ebx, eax
mov dword [ebp - 0x24], ebx
movzx ebx, byte [ecx]
movzx eax, byte [ecx + 1]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 3]
shl ebx, 8
add ecx, edx
or ebx, eax
mov dword [ebp - 0x20], ebx
movzx ebx, byte [ecx]
movzx eax, byte [ecx + 1]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 3]
shl ebx, 8
or ebx, eax
add ecx, edx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ecx
jmp 0x4819dc
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, edi
cdq
and edx, 3
add eax, edx
mov edx, dword [ebp - 0x64]
sar eax, 2
sub edx, eax
lea eax, [esi + edx*4]
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x48]
add edx, eax
mov dword [ebp - 0x70], edx
cmp eax, edx
jae 0x481efe
lea ecx, [esi + 0x10]
mov dword [ebp - 0x6c], ecx
lea ebx, [eax + 2]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x58], ecx
add eax, 2
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x64], ecx
nop
movzx edx, byte [ebx - 2]
movzx ecx, byte [ebx - 1]
shl edx, 8
or edx, ecx
movzx ecx, byte [ebx]
shl edx, 8
or edx, ecx
movzx ecx, byte [ebx + 1]
shl edx, 8
or edx, ecx
cmp byte [ebp + 8], 0
mov dword [ebp + 0x1c], edx
je 0x481ad2
movzx edx, byte [ebx + 2]
movzx ecx, byte [ebx + 3]
movzx esi, byte [ebx + 6]
movzx edi, byte [ebx + 0xa]
shl edx, 8
or edx, ecx
shl esi, 8
movzx ecx, byte [ebx + 4]
shl edx, 8
or edx, ecx
shl edi, 8
movzx ecx, byte [ebx + 5]
shl edx, 8
or edx, ecx
movzx ecx, byte [ebx + 7]
or esi, ecx
movzx ecx, byte [ebx + 8]
shl esi, 8
or esi, ecx
movzx ecx, byte [ebx + 9]
shl esi, 8
or esi, ecx
movzx ecx, byte [ebx + 0xb]
or edi, ecx
movzx ecx, byte [ebx + 0xc]
shl edi, 8
or edi, ecx
movzx ecx, byte [ebx + 0xd]
shl edi, 8
or edi, ecx
cmp dword [ebp - 0x18], 0
mov ecx, dword [ebp + 0x1c]
je 0x481b64
xor ecx, dword [ebp - 0x28]
xor edx, dword [ebp - 0x24]
xor esi, dword [ebp - 0x20]
xor edi, dword [ebp - 0x1c]
jmp 0x481b64
movzx ecx, byte [ebx - 5]
movzx esi, byte [ebx - 0xa]
movzx edi, byte [ebx - 0xe]
mov dword [ebp + 0x1c], edx
movzx edx, byte [ebx - 6]
shl edx, 8
or edx, ecx
shl esi, 8
movzx ecx, byte [ebx - 4]
shl edx, 8
or edx, ecx
shl edi, 8
movzx ecx, byte [ebx - 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [ebx - 9]
or esi, ecx
movzx ecx, byte [ebx - 8]
shl esi, 8
or esi, ecx
movzx ecx, byte [ebx - 7]
shl esi, 8
or esi, ecx
movzx ecx, byte [ebx - 0xd]
or edi, ecx
movzx ecx, byte [ebx - 0xc]
shl edi, 8
or edi, ecx
movzx ecx, byte [ebx - 0xb]
shl edi, 8
or edi, ecx
cmp dword [ebp - 0x18], 0
je 0x481b61
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
jmp 0x481b64
mov ecx, dword [ebp + 0x1c]
add ebx, dword [ebp - 0x68]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], ebx
mov ebx, dword [ebp - 0x50]
mov eax, dword [ebx + eax]
xor eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + ebx + 4]
xor ecx, edx
mov dword [ebp - 0x38], ecx
mov ecx, dword [eax + ebx + 8]
xor ecx, esi
mov dword [ebp - 0x3c], ecx
mov ecx, dword [eax + ebx + 0xc]
mov eax, dword [ebp - 0x6c]
xor ecx, edi
cmp eax, dword [ebp - 0x54]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x14], ecx
je 0x481cae
mov eax, dword [ebp - 0x38]
jmp 0x481bb0
shr ecx, 8
movzx edx, cl
mov ecx, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x40]
shr ecx, 0x10
movzx ecx, cl
mov ebx, dword [ebx + edx*4]
mov edx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
xor ebx, dword [edi + ecx*4]
mov ecx, eax
shr ecx, 0x18
xor ebx, dword [edx + ecx*4]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x34]
movzx ecx, cl
xor ebx, dword [edx + ecx*4]
mov ecx, dword [ebp - 0x14]
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [ebp - 4]
shr ecx, 8
movzx ecx, cl
mov edi, dword [edi + edx*4]
mov edx, dword [ebp - 0x2c]
mov dword [ebp + 0x1c], ebx
mov ebx, dword [ebp - 0x34]
xor edi, dword [edx + ecx*4]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x30]
shr ecx, 0x18
xor edi, dword [edx + ecx*4]
mov edx, dword [ebp - 0x34]
movzx ecx, al
xor edi, dword [edx + ecx*4]
mov ecx, eax
shr ecx, 8
movzx edx, cl
mov ecx, dword [ebp - 4]
shr ecx, 0x10
movzx ecx, cl
mov esi, dword [esi + edx*4]
mov edx, dword [ebp - 0x40]
shr eax, 0x10
xor esi, dword [edx + ecx*4]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
shr ecx, 0x18
xor esi, dword [edx + ecx*4]
mov edx, dword [ebp - 0x3c]
movzx ecx, dl
shr edx, 8
movzx edx, dl
xor esi, dword [ebx + ecx*4]
movzx ecx, al
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + edx*4]
mov eax, dword [ebp - 0x40]
xor edx, dword [eax + ecx*4]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x30]
shr eax, 0x18
xor edx, dword [ecx + eax*4]
mov eax, dword [ebp - 0x14]
movzx ecx, al
mov eax, ebx
xor edx, dword [eax + ecx*4]
mov ecx, dword [ebp - 0xc]
xor edx, dword [ecx]
mov dword [ebp - 4], edx
mov edx, ecx
mov ecx, dword [edx + 8]
mov eax, dword [edx + 4]
xor ecx, edi
xor eax, dword [ebp + 0x1c]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [edx + 0xc]
xor ecx, esi
add edx, 0x10
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], edx
cmp edx, dword [ebp - 0x54]
jne 0x481bb0
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x10]
mov esi, ebx
movzx edx, byte [ecx + edi]
mov ecx, dword [ebp - 0x38]
shr ecx, 0x10
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + edi]
xor edx, ecx
mov edi, dword [ebp - 0x3c]
shl edx, 8
mov ecx, edi
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + ebx]
xor edx, ecx
mov ecx, dword [ebp - 0x14]
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + ebx]
xor edx, ecx
mov ecx, dword [ebp - 0xc]
xor edx, dword [ecx]
mov ecx, dword [ebp - 0x38]
shr ecx, 0x18
mov dword [ebp - 8], edx
movzx edx, byte [ecx + esi]
mov ecx, edi
shr ecx, 0x10
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + esi]
xor edx, ecx
mov ecx, dword [ebp - 0x14]
shr ecx, 8
movzx ecx, cl
shl edx, 8
mov dword [ebp + 0x1c], edx
mov edx, ebx
movzx ecx, byte [ecx + esi]
xor dword [ebp + 0x1c], ecx
mov ecx, dword [ebp - 4]
shl dword [ebp + 0x1c], 8
movzx ecx, cl
movzx ecx, byte [ecx + esi]
xor dword [ebp + 0x1c], ecx
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x1c]
xor ecx, dword [esi + 4]
mov dword [ebp + 0x1c], ecx
mov ecx, dword [ebp - 0x14]
shr ecx, 0x10
movzx ecx, cl
movzx edx, byte [ecx + edx]
mov ecx, edi
shr ecx, 0x18
mov edi, ebx
movzx ecx, byte [ecx + edi]
shl ecx, 8
xor edx, ecx
mov ecx, dword [ebp - 4]
shr ecx, 8
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + edi]
xor edx, ecx
mov ecx, dword [ebp - 0x38]
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + edi]
xor edx, ecx
mov ecx, dword [ebp - 0x14]
xor edx, dword [esi + 8]
shr ecx, 0x18
mov dword [ebp - 0xc], edx
movzx edx, byte [ecx + edi]
mov ecx, dword [ebp - 4]
shl edx, 8
shr ecx, 0x10
movzx ecx, cl
mov ebx, dword [ebp - 0x48]
movzx ecx, byte [ecx + edi]
xor edx, ecx
mov ecx, dword [ebp - 0x38]
shr ecx, 8
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + edi]
xor edx, ecx
mov ecx, dword [ebp - 0x3c]
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + edi]
xor edx, ecx
xor edx, dword [esi + 0xc]
cmp dword [ebp - 0x18], 0
mov esi, dword [ebp - 0xc]
je 0x481e0c
cmp byte [ebp + 8], 0
mov ecx, dword [ebp - 8]
je 0x481df7
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edx
jmp 0x481e0f
xor ecx, dword [ebp - 0x58]
xor esi, dword [ebp - 0x60]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x5c]
xor dword [ebp + 0x1c], ecx
xor edx, dword [ebp - 0x64]
mov dword [ebp - 0xc], esi
mov edi, dword [ebp + 0x1c]
lea ecx, [eax - 2]
test ecx, ecx
je 0x481eef
mov ecx, dword [ebp - 8]
mov ebx, esi
mov byte [eax + 1], cl
shr ecx, 8
mov byte [eax], cl
mov ecx, dword [ebp - 8]
shr ecx, 0x10
mov byte [eax - 1], cl
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x3c], edi
shr dword [ebp - 0x3c], 8
mov dword [ebp - 0x38], edi
shr dword [ebp - 0x38], 0x10
shr ecx, 0x18
shr edi, 0x18
shr ebx, 8
cmp byte [ebp + 8], 0
mov byte [eax - 2], cl
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x44], edi
je 0x481ea0
mov byte [eax + 5], cl
mov ecx, dword [ebp - 0x3c]
mov byte [eax + 4], cl
mov ecx, dword [ebp - 0x38]
mov byte [eax + 3], cl
mov ecx, edi
mov byte [eax + 2], cl
mov ecx, dword [ebp - 0xc]
mov byte [eax + 9], cl
shr ecx, 0x10
mov byte [eax + 7], cl
mov ecx, dword [ebp - 0xc]
shr ecx, 0x18
mov byte [eax + 6], cl
mov ecx, edx
shr ecx, 8
mov byte [eax + 0xc], cl
mov ecx, edx
shr ecx, 0x10
mov byte [eax + 0xd], dl
shr edx, 0x18
mov byte [eax + 8], bl
mov byte [eax + 0xb], cl
mov byte [eax + 0xa], dl
jmp 0x481ee6
mov byte [eax - 3], cl
mov ecx, dword [ebp - 0x3c]
mov byte [eax - 4], cl
mov ecx, dword [ebp - 0x38]
mov byte [eax - 5], cl
mov ecx, dword [ebp - 0x44]
mov byte [eax - 6], cl
mov ecx, dword [ebp - 0xc]
mov byte [eax - 7], cl
shr ecx, 0x10
mov byte [eax - 9], cl
mov ecx, dword [ebp - 0xc]
shr ecx, 0x18
mov byte [eax - 0xa], cl
mov ecx, edx
shr ecx, 8
mov byte [eax - 0xc], cl
mov ecx, edx
shr ecx, 0x10
mov byte [eax - 0xb], dl
shr edx, 0x18
mov byte [eax - 8], bl
mov byte [eax - 0xd], cl
mov byte [eax - 0xe], dl
add eax, dword [ebp - 0x68]
mov ebx, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
lea ecx, [ebx - 2]
cmp ecx, dword [ebp - 0x70]
jb 0x481a30
mov ecx, dword [ebp - 0x18]
pop esi
test ecx, ecx
je 0x481f7a
mov ebx, dword [ebp - 0x4c]
sub ecx, ebx
mov edx, dword [ebp - 0x1c]
mov eax, edx
shr eax, 8
mov byte [ecx + 2], al
mov eax, edx
mov byte [ecx + 3], dl
shr eax, 0x10
mov byte [ecx + 1], al
shr edx, 0x18
mov byte [ecx], dl
sub ecx, ebx
mov edx, dword [ebp - 0x20]
mov eax, edx
shr eax, 8
mov byte [ecx + 2], al
mov eax, edx
mov byte [ecx + 3], dl
shr eax, 0x10
mov byte [ecx + 1], al
shr edx, 0x18
mov byte [ecx], dl
sub ecx, ebx
mov edx, dword [ebp - 0x24]
mov eax, edx
shr eax, 8
mov byte [ecx + 2], al
mov eax, edx
mov byte [ecx + 3], dl
shr eax, 0x10
mov byte [ecx + 1], al
shr edx, 0x18
mov byte [ecx], dl
sub ecx, ebx
mov edx, dword [ebp - 0x28]
mov eax, edx
shr eax, 8
mov byte [ecx + 2], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 3], dl
shr edx, 0x18
mov byte [ecx + 1], al
mov byte [ecx], dl
pop edi
pop ebx
mov esp, ebp
pop ebp
ret