Function at 0x4048e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x14], esi
mov edx, dword [ebp + 8]
movsx ebx, byte [edx + 2]
movsx eax, byte [edx + 3]
shl eax, 8
and ebx, 0xff
or ebx, eax
movsx eax, byte [edx + 1]
and eax, 0xff
shl ebx, 8
or ebx, eax
movsx eax, byte [edx]
and eax, 0xff
shl ebx, 8
or ebx, eax
movsx eax, byte [edx + 7]
shl eax, 8
movsx ecx, byte [edx + 6]
and ecx, 0xff
or ecx, eax
movsx eax, byte [edx + 5]
and eax, 0xff
shl ecx, 8
or ecx, eax
movsx eax, byte [edx + 4]
and eax, 0xff
shl ecx, 8
or ecx, eax
movsx eax, byte [edx + 0xa]
xor ecx, dword [esi + 0x1008]
and eax, 0xff
mov dword [ebp + 8], eax
movsx eax, byte [edx + 0xb]
shl eax, 8
mov edi, dword [ebp + 8]
or edi, eax
movsx eax, byte [edx + 9]
and eax, 0xff
shl edi, 8
or edi, eax
movsx eax, byte [edx + 8]
and eax, 0xff
xor ebx, dword [esi + 0x1004]
mov dword [ebp - 4], ecx
movsx ecx, byte [edx + 0xf]
shl edi, 8
or edi, eax
movsx eax, byte [edx + 0xe]
xor edi, dword [esi + 0x100c]
and eax, 0xff
shl ecx, 8
or eax, ecx
movsx ecx, byte [edx + 0xd]
shl eax, 8
and ecx, 0xff
or eax, ecx
movsx ecx, byte [edx + 0xc]
shl eax, 8
and ecx, 0xff
or eax, ecx
xor eax, dword [esi + 0x1010]
cmp byte [esi], 0
mov dword [ebp + 8], edi
je 0x404b51
lea edi, [esi + 4]
lea ecx, [esi + 0x10a0]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], 8
nop
mov ecx, ebx
sar ecx, 0x18
movzx ecx, cl
lea edx, [ecx*2 + 0x200]
or edx, 1
mov ecx, ebx
sar ecx, 8
movzx ecx, cl
mov esi, dword [edi + edx*4]
add ecx, ecx
or ecx, 1
xor esi, dword [edi + ecx*4]
mov ecx, ebx
sar ecx, 0x10
movzx ecx, cl
xor esi, dword [edi + ecx*8 + 0x800]
movzx ecx, bl
xor esi, dword [edi + ecx*8]
mov ecx, dword [ebp - 4]
sar ecx, 0x10
movzx ecx, cl
mov edi, dword [ebp - 0xc]
lea edx, [ecx*2 + 0x200]
mov ecx, dword [ebp - 4]
sar ecx, 8
movzx ecx, cl
or edx, 1
mov edx, dword [edi + edx*4]
xor edx, dword [edi + ecx*8 + 0x800]
mov ecx, dword [ebp - 4]
movzx ecx, cl
add ecx, ecx
or ecx, 1
xor edx, dword [edi + ecx*4]
mov ecx, dword [ebp - 4]
sar ecx, 0x18
movzx ecx, cl
xor edx, dword [edi + ecx*8]
mov edi, dword [ebp - 8]
sub edi, 8
mov ecx, dword [edi + 8]
mov dword [ebp - 8], edi
lea ecx, [ecx + edx*2]
add ecx, esi
xor eax, ecx
ror eax, 1
mov ecx, dword [ebp + 8]
rol ecx, 1
mov dword [ebp + 8], ecx
mov ecx, dword [edi + 4]
add ecx, edx
mov edx, dword [ebp + 8]
add ecx, esi
xor edx, ecx
mov edi, dword [ebp - 0xc]
mov ecx, edx
sar ecx, 0x18
movzx ecx, cl
mov dword [ebp + 8], edx
lea edx, [ecx*2 + 0x200]
mov ecx, dword [ebp + 8]
sar ecx, 8
movzx ecx, cl
add ecx, ecx
or ecx, 1
or edx, 1
mov esi, dword [edi + edx*4]
xor esi, dword [edi + ecx*4]
mov edx, dword [ebp + 8]
mov ecx, edx
sar ecx, 0x10
movzx ecx, cl
xor esi, dword [edi + ecx*8 + 0x800]
movzx ecx, dl
xor esi, dword [edi + ecx*8]
mov ecx, eax
sar ecx, 0x10
movzx ecx, cl
lea edx, [ecx*2 + 0x200]
or edx, 1
mov ecx, eax
rol ebx, 1
mov edx, dword [edi + edx*4]
sar ecx, 8
movzx ecx, cl
xor edx, dword [edi + ecx*8 + 0x800]
movzx ecx, al
add ecx, ecx
or ecx, 1
xor edx, dword [edi + ecx*4]
mov ecx, eax
sar ecx, 0x18
movzx ecx, cl
xor edx, dword [edi + ecx*8]
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 8]
mov ecx, dword [ecx]
sub edi, 8
lea ecx, [ecx + edx*2]
add ecx, esi
xor dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
ror ecx, 1
mov dword [ebp - 4], ecx
mov ecx, dword [edi + 4]
add ecx, edx
add ecx, esi
xor ebx, ecx
dec dword [ebp - 0x10]
mov dword [ebp - 8], edi
mov edi, dword [ebp - 0xc]
jne 0x4049f0
mov edx, dword [ebp - 4]
jmp 0x404cc4
lea ecx, [esi + 4]
mov dword [ebp - 0xc], ecx
lea ecx, [esi + 0x1024]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], 8
rol eax, 1
mov esi, dword [ebp - 0xc]
mov ecx, ebx
sar ecx, 0x18
movzx ecx, cl
mov edi, dword [ebp - 0xc]
lea edx, [ecx*2 + 0x200]
or edx, 1
mov ecx, ebx
sar ecx, 8
mov esi, dword [esi + edx*4]
movzx ecx, cl
add ecx, ecx
or ecx, 1
mov edx, dword [ebp - 0xc]
xor esi, dword [edx + ecx*4]
mov ecx, ebx
sar ecx, 0x10
movzx ecx, cl
xor esi, dword [edx + ecx*8 + 0x800]
movzx ecx, bl
xor esi, dword [edx + ecx*8]
mov ecx, dword [ebp - 4]
sar ecx, 0x10
movzx ecx, cl
lea edx, [ecx*2 + 0x200]
mov ecx, dword [ebp - 4]
sar ecx, 8
movzx ecx, cl
or edx, 1
mov edx, dword [edi + edx*4]
xor edx, dword [edi + ecx*8 + 0x800]
mov ecx, dword [ebp - 4]
movzx ecx, cl
add ecx, ecx
or ecx, 1
xor edx, dword [edi + ecx*4]
mov ecx, dword [ebp - 4]
sar ecx, 0x18
movzx ecx, cl
xor edx, dword [edi + ecx*8]
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 8]
mov ecx, dword [ecx]
add ecx, edx
add ecx, esi
xor dword [ebp + 8], ecx
mov ecx, dword [ebp + 8]
ror ecx, 1
mov dword [ebp + 8], ecx
mov ecx, dword [edi + 4]
add edi, 8
lea ecx, [ecx + edx*2]
add ecx, esi
xor eax, ecx
mov ecx, dword [ebp + 8]
sar ecx, 0x18
movzx ecx, cl
mov dword [ebp - 8], edi
mov edi, dword [ebp - 0xc]
lea edx, [ecx*2 + 0x200]
mov ecx, dword [ebp + 8]
sar ecx, 8
movzx ecx, cl
add ecx, ecx
or ecx, 1
or edx, 1
mov esi, dword [edi + edx*4]
xor esi, dword [edi + ecx*4]
mov edx, dword [ebp + 8]
mov ecx, edx
sar ecx, 0x10
movzx ecx, cl
xor esi, dword [edi + ecx*8 + 0x800]
movzx ecx, dl
xor esi, dword [edi + ecx*8]
mov ecx, eax
sar ecx, 0x10
movzx ecx, cl
lea edx, [ecx*2 + 0x200]
or edx, 1
mov edx, dword [edi + edx*4]
mov ecx, eax
sar ecx, 8
movzx ecx, cl
xor edx, dword [edi + ecx*8 + 0x800]
movzx ecx, al
add ecx, ecx
or ecx, 1
xor edx, dword [edi + ecx*4]
mov ecx, eax
sar ecx, 0x18
movzx ecx, cl
xor edx, dword [edi + ecx*8]
mov edi, dword [ebp - 8]
add edi, 8
mov ecx, dword [edi - 8]
add ecx, edx
add ecx, esi
xor ebx, ecx
ror ebx, 1
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], edi
rol ecx, 1
mov dword [ebp - 4], ecx
mov ecx, dword [edi - 4]
lea ecx, [ecx + edx*2]
mov edx, dword [ebp - 4]
add ecx, esi
xor edx, ecx
dec dword [ebp - 0x10]
mov dword [ebp - 4], edx
jne 0x404b67
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
xor ecx, dword [esi + 0x1014]
xor eax, dword [esi + 0x1018]
xor edx, dword [esi + 0x1020]
xor ebx, dword [esi + 0x101c]
mov dword [ebp + 8], ecx
mov dword [ebp - 4], edx
mov edx, dword [ebp + 0xc]
pop edi
mov byte [edx], cl
shr ecx, 8
mov byte [edx + 1], cl
mov ecx, dword [ebp + 8]
shr ecx, 0x10
mov byte [edx + 2], cl
mov ecx, dword [ebp + 8]
shr ecx, 0x18
mov byte [edx + 3], cl
mov byte [edx + 4], al
mov ecx, eax
shr ecx, 8
mov byte [edx + 5], cl
mov ecx, eax
shr eax, 0x18
shr ecx, 0x10
mov byte [edx + 6], cl
mov ecx, dword [ebp - 4]
mov byte [edx + 7], al
mov byte [edx + 8], bl
mov eax, ebx
shr eax, 8
mov byte [edx + 9], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 0xa], al
shr ebx, 0x18
mov byte [edx + 0xb], bl
mov eax, ecx
shr eax, 8
mov byte [edx + 0xc], cl
mov byte [edx + 0xd], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
pop esi
mov byte [edx + 0xe], al
mov byte [edx + 0xf], cl
pop ebx
mov esp, ebp
pop ebp
ret 8