Function at 0x4d3e7f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov eax, dword [ebx + 0x170]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x174]
mov dword [ebp - 0x1c], eax
mov eax, esi
add eax, dword [ebx + 0x38]
adc ecx, dword [ebx + 0x3c]
cmp ecx, 0xf
ja 0x4d41d3
jb 0x4d3ebe
cmp eax, 0xffffffe0
ja 0x4d41d3
cmp dword [ebx + 0x16c], 0
mov edx, dword [ebx + 0x168]
mov dword [ebx + 0x3c], ecx
lea ecx, [ebx + 0x40]
mov dword [ebx + 0x38], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], ecx
je 0x4d3f2e
test esi, esi
jne 0x4d3ef9
lea eax, [ebx + 0x60]
push eax
push ecx
call fcn.004d5237
and dword [ebx + 0x16c], esi
pop ecx
pop ecx
xor eax, eax
jmp 0x4d41d6
lea eax, [ebx + 0x178]
mov esi, ecx
mov edi, eax
mov dword [ebp - 0x28], eax
xor eax, eax
push 0x10
pop edx
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
mov dword [ebx + 0x16c], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x14]
lea edi, [ebx + 0x178]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x4c], eax
jmp 0x4d3f3a
lea edi, [ebx + 0x178]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x28], edi
movzx ecx, byte [ebx + 0xc]
movzx eax, byte [ebx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0xf]
shl ecx, 8
or ecx, eax
mov eax, edx
and eax, 0xf
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
je 0x4d3fe9
mov ecx, edi
mov edi, dword [ebp + 0x10]
jmp 0x4d3f79
lea ecx, [ebx + 0x178]
mov dword [ebp - 0x10], ecx
lea ecx, [ebx + 0x10]
mov dword [ebp - 0x14], ecx
test esi, esi
je 0x4d3fbd
mov cl, byte [eax]
lea esi, [ebx + 0x178]
mov byte [esi + edx], cl
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 8]
mov al, byte [ebx + esi + 0x10]
mov esi, dword [ebp + 0x14]
xor al, cl
mov ecx, dword [ebp - 8]
mov byte [edi], al
inc edi
mov eax, dword [ebp - 4]
inc edx
inc eax
dec esi
inc ecx
mov dword [ebp - 4], eax
and ecx, 0xf
mov dword [ebp + 0x14], esi
mov dword [ebp - 8], ecx
jne 0x4d3f73
jmp 0x4d3fc3
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 8]
test ecx, ecx
jne 0x4d41c3
push edx
push dword [ebp - 0x10]
lea ecx, [ebx + 0x60]
lea eax, [ebx + 0x40]
push ecx
push eax
call fcn.004d501a
mov ecx, dword [ebp - 0x14]
add esp, 0x10
xor edx, edx
mov dword [ebp - 0x10], edx
jmp 0x4d3ff2
mov edi, dword [ebp + 0x10]
lea ecx, [ebx + 0x10]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], ecx
cmp esi, 0x10
jb 0x4d4022
mov dword [ebp - 8], ecx
test edx, edx
je 0x4d4022
push edx
lea eax, [ebx + 0x178]
push eax
lea eax, [ebx + 0x60]
push eax
push dword [ebp - 0x18]
call fcn.004d501a
mov eax, dword [ebp - 0x14]
add esp, 0x10
and dword [ebp - 0x10], 0
mov dword [ebp - 8], eax
mov ecx, 0xc00
cmp esi, ecx
jb 0x4d40d3
lea eax, [ebx + 0x10]
xor edx, edx
mov dword [ebp - 0x2c], eax
mov eax, esi
div ecx
mov dword [ebp - 0x24], eax
mov esi, dword [ebp - 4]
lea eax, [ebx + 0x60]
push ecx
push esi
push eax
push dword [ebp - 0x18]
call fcn.004d501a
add esp, 0x10
mov dword [ebp - 0x14], 0xc0
push dword [ebp - 0x1c]
lea eax, [ebx + 0x10]
push eax
push ebx
call dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, ecx
mov byte [ebx + 0xf], cl
shr eax, 0x18
mov byte [ebx + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [ebx + 0xe], al
mov ebx, esi
push 4
mov dword [ebp - 0xc], ecx
sub ebx, edi
mov ecx, edi
pop esi
mov eax, dword [ebx + ecx]
xor eax, dword [edx]
lea edx, [edx + 4]
mov dword [ecx], eax
lea ecx, [ecx + 4]
sub esi, 1
jne 0x4d4095
mov esi, dword [ebp - 4]
add edi, 0x10
mov ebx, dword [ebp + 8]
add esi, 0x10
sub dword [ebp - 0x14], 1
mov dword [ebp - 4], esi
jne 0x4d4059
mov esi, dword [ebp + 0x14]
mov ecx, 0xc00
sub esi, ecx
sub dword [ebp - 0x24], 1
mov dword [ebp + 0x14], esi
jne 0x4d403e
mov eax, esi
and eax, 0xfffffff0
je 0x4d416c
push eax
push dword [ebp - 4]
lea eax, [ebx + 0x60]
push eax
push dword [ebp - 0x18]
call fcn.004d501a
add esp, 0x10
cmp esi, 0x10
jb 0x4d416c
mov eax, esi
lea ecx, [ebx + 0x10]
shr eax, 4
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], eax
push dword [ebp - 0x1c]
push ecx
push ebx
call dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
add esp, 0xc
inc ecx
mov edx, edi
mov eax, ecx
mov byte [ebx + 0xf], cl
shr eax, 0x18
mov byte [ebx + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 0xd], al
mov eax, ecx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 4]
shr eax, 8
sub ecx, edi
push 4
mov byte [ebx + 0xe], al
mov ebx, dword [ebp - 0x2c]
pop esi
mov eax, dword [edx + ecx]
xor eax, dword [ebx]
lea ebx, [ebx + 4]
mov dword [edx], eax
lea edx, [edx + 4]
sub esi, 1
jne 0x4d413e
mov esi, dword [ebp + 0x14]
add edi, 0x10
mov ebx, dword [ebp + 8]
sub esi, 0x10
add dword [ebp - 4], 0x10
sub dword [ebp - 0x24], 1
mov dword [ebp + 0x14], esi
lea ecx, [ebx + 0x10]
jne 0x4d4104
test esi, esi
je 0x4d41ce
push dword [ebp - 0x1c]
push dword [ebp - 8]
push ebx
call dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ebp - 0x10]
inc ecx
mov eax, ecx
mov byte [ebx + 0xf], cl
shr eax, 0x18
mov byte [ebx + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [ebx + 0xe], al
mov ebx, dword [ebp - 4]
sub ebx, edi
mov eax, dword [ebp - 0x28]
mov cl, byte [edi + ebx]
mov byte [eax + edx], cl
mov eax, dword [ebp - 8]
mov al, byte [eax]
xor al, cl
inc edx
inc dword [ebp - 8]
mov byte [edi], al
inc edi
sub esi, 1
jne 0x4d41a4
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x168], edx
jmp 0x4d3ef2
mov edx, dword [ebp - 0x10]
jmp 0x4d41c3
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret