Function at 0x4d3c80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x18]
mov esi, 0xffffffe0
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x3c]
add edx, edi
adc ecx, 0
xor eax, eax
cmp esi, edx
mov esi, 0xf
sbb esi, ecx
jb 0x4d42f3
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], ecx
cmp dword [ebx + 0x174], 0
je 0x4d3d56
movdqu xmm0, xmmword [ebx + 0x40]
pxor xmm2, xmm2
lea edx, [ebx + 0x60]
lea ecx, [esp + 0x18]
movdqa xmm1, xmm0
punpckhbw xmm0, xmm2
punpcklbw xmm1, xmm2
pshufd xmm0, xmm0, 0x4e
pshufd xmm1, xmm1, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm0, xmm0, 0x1b
pshufhw xmm1, xmm1, 0x1b
packuswb xmm0, xmm1
movdqu xmmword [esp + 0x18], xmm0
call fcn.004d4ba0
movdqu xmm0, xmmword [esp + 0x18]
pxor xmm2, xmm2
movdqa xmm1, xmm0
punpckhbw xmm0, xmm2
punpcklbw xmm1, xmm2
pshufd xmm0, xmm0, 0x4e
pshufd xmm1, xmm1, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm0, xmm0, 0x1b
pshufhw xmm1, xmm1, 0x1b
packuswb xmm0, xmm1
movdqu xmmword [ebx + 0x40], xmm0
mov dword [ebx + 0x174], 0
mov eax, dword [ebx + 0x170]
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
test eax, eax
je 0x4d3e39
test edi, edi
je 0x4d42e8
nop word cs:[eax + eax]
nop dword [eax]
movzx ecx, byte [ebx + eax + 0x10]
xor cl, byte [esi]
inc esi
mov byte [edx], cl
xor byte [ebx + eax + 0x40], cl
inc eax
inc edx
and eax, 0xf
cmp edi, 1
lea edi, [edi - 1]
je 0x4d3d9f
test eax, eax
jne 0x4d3d80
test eax, eax
jne 0x4d42e8
movdqu xmm0, xmmword [ebx + 0x40]
pxor xmm2, xmm2
mov dword [esp + 4], esi
mov esi, edx
lea edx, [ebx + 0x60]
lea ecx, [esp + 0x18]
movdqa xmm1, xmm0
punpckhbw xmm0, xmm2
punpcklbw xmm1, xmm2
pshufd xmm0, xmm0, 0x4e
pshufd xmm1, xmm1, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm0, xmm0, 0x1b
pshufhw xmm1, xmm1, 0x1b
packuswb xmm0, xmm1
movdqu xmmword [esp + 0x18], xmm0
call fcn.004d4ba0
movdqu xmm0, xmmword [esp + 0x18]
pxor xmm2, xmm2
mov edx, esi
mov esi, dword [esp + 4]
movdqa xmm1, xmm0
punpckhbw xmm0, xmm2
punpcklbw xmm1, xmm2
pshufd xmm0, xmm0, 0x4e
pshufd xmm1, xmm1, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm0, xmm0, 0x1b
pshufhw xmm1, xmm1, 0x1b
packuswb xmm0, xmm1
movdqu xmmword [ebx + 0x40], xmm0
mov eax, dword [ebx + 0xc]
mov ecx, esi
cmp edi, 0xc00
mov dword [esp + 8], edi
bswap eax
mov dword [esp], eax
jb 0x4d3ff5
lea esi, [ebx + 0x60]
jmp 0x4d3eca
movdqu xmm0, xmmword [esp + 0x18]
mov eax, dword [esp + 8]
pxor xmm2, xmm2
mov ecx, dword [esp + 4]
mov ebx, dword [ebp + 8]
mov edx, edi
add edx, 0xc00
movdqa xmm1, xmm0
punpckhbw xmm0, xmm2
add eax, 0xfffff400
add ecx, 0xc00
punpcklbw xmm1, xmm2
pshufd xmm0, xmm0, 0x4e
cmp eax, 0xbff
mov dword [esp + 8], eax
pshufd xmm1, xmm1, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm0, xmm0, 0x1b
pshufhw xmm1, xmm1, 0x1b
packuswb xmm0, xmm1
movdqu xmmword [ebx + 0x40], xmm0
jbe 0x4d3ff5
push ebx
push dword [ebp + 0xc]
push 0xc0
push edx
mov dword [esp + 0x14], ecx
push ecx
mov edi, edx
call dword [ebp + 0x1c]
add esp, 0x14
mov eax, dword [esp]
pxor xmm3, xmm3
lea ecx, [esp + 0x18]
mov edx, esi
add eax, 0xc0
mov dword [esp], eax
bswap eax
mov dword [ebx + 0xc], eax
movdqu xmm0, xmmword [ebx + 0x40]
movdqa xmm1, xmm0
movdqa xmm2, xmm0
punpcklbw xmm1, xmm3
punpckhbw xmm2, xmm3
pxor xmm3, xmm3
pshufd xmm1, xmm1, 0x4e
pshufd xmm2, xmm2, 0x4e
pshuflw xmm1, xmm1, 0x1b
pshuflw xmm2, xmm2, 0x1b
pshufhw xmm1, xmm1, 0x1b
pshufhw xmm2, xmm2, 0x1b
packuswb xmm2, xmm1
movdqu xmmword [esp + 0x18], xmm2
movdqu xmm1, xmmword [edi]
pxor xmm1, xmm0
movdqa xmm0, xmm1
punpckhbw xmm1, xmm3
punpcklbw xmm0, xmm3
pshufd xmm1, xmm1, 0x4e
pshufd xmm0, xmm0, 0x4e
pshuflw xmm1, xmm1, 0x1b
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm1, xmm1, 0x1b
pshufhw xmm0, xmm0, 0x1b
packuswb xmm1, xmm0
movdqu xmmword [esp + 0x18], xmm1
call fcn.004d4ba0
mov eax, edi
mov ebx, 0xfffff420
nop word cs:[eax + eax]
nop
movdqu xmm1, xmmword [eax + ebx + 0xbf0]
pxor xmm3, xmm3
movdqu xmm0, xmmword [esp + 0x18]
lea ecx, [esp + 0x18]
mov edx, esi
movdqa xmm2, xmm1
punpckhbw xmm1, xmm3
punpcklbw xmm2, xmm3
pshufd xmm1, xmm1, 0x4e
pshufd xmm2, xmm2, 0x4e
pshuflw xmm1, xmm1, 0x1b
pshuflw xmm2, xmm2, 0x1b
pshufhw xmm1, xmm1, 0x1b
pshufhw xmm2, xmm2, 0x1b
packuswb xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [esp + 0x18], xmm1
call fcn.004d4ba0
test ebx, ebx
je 0x4d3e60
add ebx, 0x10
mov eax, edi
jmp 0x4d3f90
mov edi, dword [esp + 8]
mov dword [esp + 4], ecx
mov eax, edi
and eax, 0xfffffff0
je 0x4d42da
mov esi, edi
shr esi, 4
push ebx
push dword [ebp + 0xc]
push esi
push edx
push dword [esp + 0x14]
mov edi, edx
mov dword [esp + 0x24], eax
call dword [ebp + 0x1c]
add esp, 0x14
mov eax, dword [esp]
pxor xmm3, xmm3
lea edx, [ebx + 0x60]
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], edx
add eax, esi
mov dword [esp], eax
bswap eax
mov dword [ebx + 0xc], eax
movdqu xmm0, xmmword [ebx + 0x40]
movdqa xmm1, xmm0
movdqa xmm2, xmm0
punpcklbw xmm1, xmm3
punpckhbw xmm2, xmm3
pshufd xmm1, xmm1, 0x4e
pshufd xmm2, xmm2, 0x4e
pshuflw xmm1, xmm1, 0x1b
pshuflw xmm2, xmm2, 0x1b
pshufhw xmm1, xmm1, 0x1b
pshufhw xmm2, xmm2, 0x1b
packuswb xmm2, xmm1
movdqu xmmword [esp + 0x18], xmm2
movdqu xmm1, xmmword [edi]
pxor xmm1, xmm0
movdqa xmm0, xmm1
punpckhbw xmm1, xmm3
punpcklbw xmm0, xmm3
pshufd xmm1, xmm1, 0x4e
pshufd xmm0, xmm0, 0x4e
pshuflw xmm1, xmm1, 0x1b
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm1, xmm1, 0x1b
pshufhw xmm0, xmm0, 0x1b
packuswb xmm1, xmm0
movdqu xmmword [esp + 0x18], xmm1
call fcn.004d4ba0
cmp dword [esp + 0x10], 0x10
je 0x4d413b
mov edi, 0x10
mov eax, dword [esp + 0xc]
sub edi, dword [esp + 0x10]
lea esi, [eax + 0x10]
nop dword [eax + eax]
movdqu xmm1, xmmword [esi]
pxor xmm3, xmm3
movdqu xmm0, xmmword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
movdqa xmm2, xmm1
punpckhbw xmm1, xmm3
punpcklbw xmm2, xmm3
pshufd xmm1, xmm1, 0x4e
pshufd xmm2, xmm2, 0x4e
pshuflw xmm1, xmm1, 0x1b
pshuflw xmm2, xmm2, 0x1b
pshufhw xmm1, xmm1, 0x1b
pshufhw xmm2, xmm2, 0x1b
packuswb xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [esp + 0x18], xmm1
call fcn.004d4ba0
add esi, 0x10
add edi, 0x10
jne 0x4d40e0
movdqu xmm0, xmmword [esp + 0x18]
pxor xmm2, xmm2
mov edi, dword [esp + 8]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
movdqa xmm1, xmm0
punpckhbw xmm0, xmm2
add eax, ecx
and edi, 0xf
add edx, ecx
punpcklbw xmm1, xmm2
pshufd xmm0, xmm0, 0x4e
pshufd xmm1, xmm1, 0x4e
pshuflw xmm0, xmm0, 0x1b
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm0, xmm0, 0x1b
pshufhw xmm1, xmm1, 0x1b
packuswb xmm0, xmm1
movdqu xmmword [ebx + 0x40], xmm0
test edi, edi
je 0x4d42e6
lea esi, [ebx + 0x10]
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
push dword [ebp + 0xc]
push esi
push ebx
call dword [ebx + 0x168]
add esp, 0xc
mov eax, dword [esp]
mov edx, 0
mov ecx, edi
mov dword [esp + 8], edi
inc eax
bswap eax
mov dword [ebx + 0xc], eax
xor eax, eax
cmp edi, 0x10
jb 0x4d429d
mov ebx, dword [esp + 0xc]
mov edx, dword [ebp + 8]
lea ecx, [ebx + edi]
lea edx, [edx + edi + 0x40]
mov edi, dword [esp + 8]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 4]
cmp ebx, edx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x28]
setb byte [esp]
add edi, ecx
cmp edx, esi
seta byte [esp + 0x10]
cmp ebx, edi
setb bh
cmp ecx, edx
mov edx, 0
setb byte [esp + 0x28]
cmp edi, esi
mov edi, dword [esp + 8]
seta bl
cmp ecx, dword [esp + 0x14]
mov cl, byte [esp + 0x10]
setb byte [esp + 0x14]
test byte [esp], cl
mov ecx, edi
jne 0x4d429d
and bh, byte [esp + 0x28]
mov edx, 0
mov ecx, edi
jne 0x4d429d
and bl, byte [esp + 0x14]
mov edx, 0
mov ecx, edi
jne 0x4d429d
mov edx, edi
and edi, 0xf
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp + 4]
xor esi, esi
mov dword [esp], edi
mov edi, dword [ebp + 8]
and edx, 0xfffffff0
movdqu xmm0, xmmword [ecx + esi]
movdqu xmm1, xmmword [edi + esi + 0x10]
pxor xmm1, xmm0
movdqu xmmword [ebx + esi], xmm1
movdqu xmm0, xmmword [edi + esi + 0x40]
pxor xmm0, xmm1
movdqu xmmword [edi + esi + 0x40], xmm0
add esi, 0x10
cmp edx, esi
jne 0x4d4260
mov edi, dword [esp + 8]
mov ecx, dword [esp]
cmp edi, edx
jne 0x4d429d
mov ebx, dword [ebp + 8]
mov eax, edi
jmp 0x4d42e8
mov edi, dword [esp + 0xc]
mov dword [esp], ecx
mov ecx, dword [esp + 4]
mov ebx, dword [ebp + 8]
add ecx, edx
lea esi, [ebx + edx + 0x40]
add edi, edx
nop word cs:[eax + eax]
nop dword [eax]
movzx edx, byte [esi + eax - 0x30]
xor dl, byte [ecx + eax]
mov byte [edi + eax], dl
xor byte [esi + eax], dl
inc eax
cmp dword [esp], eax
jne 0x4d42c0
mov eax, dword [esp + 8]
jmp 0x4d42e8
mov eax, dword [esp + 4]
test edi, edi
jne 0x4d4197
xor eax, eax
mov dword [ebx + 0x170], eax
mov eax, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret