Function at 0x4d7950
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40a8
call fcn.004bdf20
mov eax, dword [0x5be9a0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x401c], eax
mov eax, dword [eax + 0x20]
push esi
mov dword [ebp - 0x4018], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x4020], ecx
mov dword [ebp - 0x4014], edx
lea ebx, [ebp - 0x400c]
mov dword [ebp - 0x4010], 8
xor ecx, ecx
xor edx, edx
xor esi, esi
test cl, 1
je 0x4d79ab
mov edx, dword [eax]
mov esi, dword [eax + 4]
test cl, 2
je 0x4d79b6
xor edx, dword [eax + 8]
xor esi, dword [eax + 0xc]
test cl, 4
je 0x4d79c1
xor edx, dword [eax + 0x10]
xor esi, dword [eax + 0x14]
test cl, 8
je 0x4d79cc
xor edx, dword [eax + 0x18]
xor esi, dword [eax + 0x1c]
test cl, 0x10
je 0x4d79d7
xor edx, dword [eax + 0x20]
xor esi, dword [eax + 0x24]
test cl, 0x20
je 0x4d79e2
xor edx, dword [eax + 0x28]
xor esi, dword [eax + 0x2c]
test cl, 0x40
je 0x4d79ed
xor edx, dword [eax + 0x30]
xor esi, dword [eax + 0x34]
test cl, cl
jns 0x4d79f7
xor edx, dword [eax + 0x38]
xor esi, dword [eax + 0x3c]
mov dword [ebx + ecx*8], edx
mov dword [ebx + ecx*8 + 4], esi
inc ecx
cmp ecx, 0x100
jb 0x4d799d
add eax, 0x40
add ebx, 0x800
dec dword [ebp - 0x4010]
jne 0x4d799b
mov ecx, dword [ebp - 0x401c]
mov edx, dword [ecx + 0x1c]
xor eax, eax
xor ebx, ebx
dec edx
mov dword [ebp - 0x4010], eax
je 0x4d7ab5
mov edi, dword [ebp - 0x4014]
mov eax, dword [ebp - 0x4020]
mov esi, ecx
add esi, 0x5c
sub eax, edi
mov dword [ebp - 0x4024], eax
jmp 0x4d7a56
mov eax, dword [ebp - 0x4024]
mov ecx, dword [esi]
add eax, edi
mov dword [ebp + ebx*4 - 0x40a4], ecx
mov ecx, dword [esi + 0x18]
mov dword [esi - 4], eax
mov eax, dword [ebp - 0x4018]
lea edx, [ebp - 0x400c]
push ecx
mov dword [esi + 0x10], 5
mov dword [esi], edx
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 0x4018]
add dword [ebp - 0x4010], eax
mov edx, dword [ebp - 0x401c]
add eax, eax
add eax, eax
add eax, eax
add edi, eax
mov eax, dword [edx + 0x1c]
inc ebx
dec eax
add esi, 0x54
cmp ebx, eax
jb 0x4d7a50
mov eax, dword [ebp - 0x4010]
mov ecx, dword [ebp + 0x10]
sub ecx, eax
mov dword [ebp - 0x4024], ecx
mov ecx, dword [ebp - 0x4014]
lea edx, [ecx + eax*8]
mov dword [ebp - 0x4018], edx
mov edx, dword [ebp - 0x4020]
lea ecx, [ebp - 0x400c]
lea eax, [edx + eax*8]
mov dword [ebp - 0x4014], ecx
mov dword [ebp - 0x4020], eax
push ebx
mov edi, dword [ebp - 0x4014]
mov esi, dword [ebp - 0x4020]
mov ebx, dword [ebp - 0x4018]
xor ecx, ecx
nop
movq mm0, qword [ebx + ecx*8]
mov eax, dword [esi + ecx*8]
inc ecx
movzx edx, al
movq mm1, qword [edi + edx*8]
movzx edx, ah
pxor mm1, qword [edi + edx*8 + 0x800]
shr eax, 0x10
movzx edx, al
pxor mm1, qword [edi + edx*8 + 0x1000]
movzx edx, ah
pxor mm1, qword [edi + edx*8 + 0x1800]
mov eax, dword [esi + ecx*8 - 4]
movzx edx, al
pxor mm1, qword [edi + edx*8 + 0x2000]
movzx edx, ah
shr eax, 0x10
cmp ecx, dword [ebp - 0x4024]
pxor mm1, qword [edi + edx*8 + 0x2800]
movzx edx, al
pxor mm1, qword [edi + edx*8 + 0x3000]
movzx edx, ah
pxor mm1, qword [edi + edx*8 + 0x3800]
pxor mm1, mm0
movq qword [ebx + ecx*8 - 8], mm1
jne 0x4d7b00
pop ebx
emms
mov ebx, dword [ebp - 0x401c]
mov ecx, dword [ebx + 0x1c]
xor esi, esi
dec ecx
je 0x4d7bb1
lea edi, [ebx + 0x5c]
lea ebx, [ebx]
mov edx, dword [edi + 0x1c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + esi*4 - 0x40a4]
mov dword [edi], eax
mov ecx, dword [ebx + 0x1c]
inc esi
dec ecx
add edi, 0x54
cmp esi, ecx
jb 0x4d7b90
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc40c
mov esp, ebp
pop ebp
ret