Function at 0x4d80c0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x178
mov eax, dword [0x5b0008]
xor eax, esp
mov dword [esp + 0x174], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x54], eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0x34], 0x1f
mov esi, edx
mov dword [esp + 0x58], edi
mov dword [esp + 0x18], esi
mov edx, 1
mov eax, dword [edi + 0x5c]
mov ecx, dword [edi + 4]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x24]
mov dword [esp + 0x20], eax
mov eax, esi
sub eax, ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [edi + 0xb8]
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x14]
shl edx, cl
mov ecx, dword [edi + 0x10]
sub esi, edx
sub eax, ecx
cmp eax, edx
mov eax, esi
mov esi, dword [esp + 0x18]
cmovbe eax, ecx
cmp dword [edi + 0x18], 0
cmovne eax, ecx
mov ecx, 5
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0xc4]
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [edi + 0x50]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x54]
mov dword [esp + 0x64], eax
mov eax, 1
shl eax, cl
cmp dword [edi + 0xdc], 0
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x14]
jne 0x4d83a0
mov esi, dword [edi + 0x1c]
sub eax, esi
mov edx, dword [esp + 0x20]
mov ecx, edx
mov dword [esp + 0x24], esi
cmp eax, 0x180
jbe 0x4d82cf
lea eax, [esi + 0x60]
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], eax
cmp esi, eax
jae 0x4d8247
mov ecx, 0x18
sub ecx, edx
mov edx, dword [esp + 0x30]
add edx, 8
mov dword [esp + 0x50], ecx
mov dword [esp + 0x44], edx
nop dword [eax]
imul edx, dword [edx + esi], 0x9e3779b1
and esi, 7
mov eax, dword [edi + 0x54]
mov dword [esp + 0x64], eax
mov eax, 0
xor edx, dword [edi + 0x50]
shr edx, cl
mov ecx, dword [edi + esi*4 + 0x2c]
mov dword [edi + esi*4 + 0x2c], edx
mov esi, ecx
mov edx, dword [esp + 0x40]
shr esi, 3
and esi, 0x1fffffe0
mov dword [esp + 0x28], ecx
add edx, esi
movzx ecx, byte [edx]
dec ecx
and ecx, 0x1f
cmove eax, dword [esp + 0x34]
add ecx, eax
mov eax, dword [esp + 0x28]
mov byte [edx], cl
mov byte [ecx + edx], al
lea eax, [ecx + esi]
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x44]
mov dword [ecx + eax*4], esi
inc esi
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x24], esi
cmp esi, dword [esp + 0x1c]
jb 0x4d81d0
mov eax, dword [edi + 0x24]
mov dword [esp + 0x28], eax
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add esi, 0xffffffe0
mov eax, dword [esp + 0x30]
inc ecx
add eax, esi
mov dword [esp + 0x24], esi
mov edx, esi
mov dword [esp + 0x1c], edx
cmp eax, ecx
jbe 0x4d826b
xor ecx, ecx
jmp 0x4d8272
sub ecx, dword [esp + 0x30]
sub ecx, esi
inc ecx
mov eax, 8
cmp ecx, eax
cmova ecx, eax
add ecx, esi
mov dword [esp + 0x44], ecx
cmp esi, ecx
jae 0x4d82cb
mov esi, dword [esp + 0x44]
mov ecx, 0x18
sub ecx, dword [esp + 0x28]
mov eax, dword [edi + 0x54]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x30]
imul edx, dword [edx + eax], 0x9e3779b1
mov eax, dword [esp + 0x1c]
and eax, 7
xor edx, dword [edi + 0x50]
shr edx, cl
mov dword [edi + eax*4 + 0x2c], edx
mov edx, dword [esp + 0x1c]
inc edx
mov dword [esp + 0x1c], edx
cmp edx, esi
jb 0x4d8293
mov ecx, dword [edi + 0x24]
mov esi, dword [esp + 0x24]
jmp 0x4d82cf
mov ecx, dword [esp + 0x28]
mov eax, dword [edi + 0x5c]
mov edx, dword [edi + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x50], eax
mov dword [esp + 0x60], edx
cmp esi, dword [esp + 0x14]
jae 0x4d836a
mov eax, 0x18
sub eax, ecx
mov dword [esp + 0x44], eax
nop dword [eax]
imul edx, dword [esi + edx + 8], 0x9e3779b1
mov eax, 0
mov ecx, dword [esp + 0x44]
and esi, 7
xor edx, dword [edi + 0x50]
shr edx, cl
mov ecx, dword [edi + esi*4 + 0x2c]
mov dword [edi + esi*4 + 0x2c], edx
mov esi, ecx
mov edx, dword [esp + 0x50]
shr esi, 3
and esi, 0x1fffffe0
mov dword [esp + 0x28], ecx
add edx, esi
movzx ecx, byte [edx]
dec ecx
and ecx, 0x1f
cmove eax, dword [esp + 0x34]
add ecx, eax
mov eax, dword [esp + 0x28]
mov byte [edx], cl
mov byte [ecx + edx], al
lea eax, [ecx + esi]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x60]
mov dword [ecx + eax*4], esi
inc esi
mov dword [esp + 0x24], esi
cmp esi, dword [esp + 0x14]
jb 0x4d8300
mov eax, dword [esp + 0x18]
mov ecx, 0x18
mov esi, dword [esp + 0x14]
sub ecx, dword [esp + 0x20]
mov dword [edi + 0x1c], esi
imul edx, dword [eax + 8], 0x9e3779b1
mov eax, esi
xor edx, dword [esp + 0x38]
shr edx, cl
and eax, 7
mov ecx, dword [edi + eax*4 + 0x2c]
mov dword [edi + eax*4 + 0x2c], edx
mov edx, ecx
mov dword [esp + 0x20], ecx
jmp 0x4d83bc
imul edx, dword [esi], 0x9e3779b1
mov ecx, 0x18
sub ecx, dword [esp + 0x20]
mov dword [edi + 0x1c], eax
xor edx, dword [esp + 0x38]
shr edx, cl
mov dword [esp + 0x20], edx
mov ecx, dword [esp + 0x3c]
mov eax, edx
add dword [edi + 0x58], edx
shr eax, 3
and eax, 0x1fffffe0
mov dword [esp + 0x28], 0
lea ecx, [ecx + eax*4]
add eax, dword [esp + 0x40]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
movzx esi, byte [eax]
movsx eax, dl
and esi, 0x1f
mov edx, dword [esp + 0x38]
xor ecx, ecx
mov dword [esp + 0x40], esi
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x60], xmm0
movups xmm0, xmmword [edx]
lea edx, [edx + 0x10]
pcmpeqb xmm0, xmm1
pmovmskb eax, xmm0
mov dword [esp + ecx*4 + 0x60], eax
inc ecx
cmp ecx, 2
jl 0x4d8410
mov eax, dword [esp + 0x64]
mov ecx, esi
shl eax, 0x10
neg ecx
or eax, dword [esp + 0x60]
and ecx, 0x1f
mov esi, eax
shl esi, cl
mov ecx, dword [esp + 0x40]
shr eax, cl
xor edx, edx
or esi, eax
mov dword [esp + 0x3c], edx
je 0x4d84a6
xor edi, edi
cmp dword [esp + 0x4c], 0
jbe 0x4d849e
push edx
push esi
call fcn.004d6c70
add eax, dword [esp + 0x48]
add esp, 8
and eax, 0x1f
je 0x4d8480
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + eax*4]
cmp eax, dword [esp + 0x48]
jb 0x4d849e
mov dword [esp + edi*4 + 0x78], eax
inc edi
dec dword [esp + 0x4c]
mov edx, dword [esp + 0x3c]
mov ecx, esi
add ecx, 0xffffffff
mov eax, edx
adc eax, 0xffffffff
and esi, ecx
and edx, eax
mov dword [esp + 0x3c], edx
ja 0x4d8450
jb 0x4d849e
test esi, esi
jne 0x4d8450
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x58]
mov edx, dword [esp + 0x38]
mov eax, 0
mov esi, 0x1f
movzx ecx, byte [edx]
dec ecx
and ecx, 0x1f
cmove eax, esi
add ecx, eax
mov eax, dword [esp + 0x20]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [esp + 0x34]
mov eax, dword [edi + 0x1c]
mov dword [edx + ecx*4], eax
inc dword [edi + 0x1c]
cmp dword [esp + 0x28], 0
jbe 0x4d8554
mov ecx, dword [esp + 0x18]
xor esi, esi
mov edi, 3
nop dword [eax + eax]
mov edx, dword [esp + 0x30]
add edx, dword [esp + esi*4 + 0x78]
mov eax, dword [edx + edi - 3]
cmp eax, dword [edi + ecx - 3]
jne 0x4d8537
push dword [esp + 0x54]
call fcn.004d6d00
mov ecx, eax
add esp, 4
cmp ecx, edi
jbe 0x4d8533
mov eax, dword [esp + 0x14]
mov edi, ecx
sub eax, dword [esp + esi*4 + 0x78]
mov edx, dword [esp + 0x5c]
add eax, 3
mov dword [edx], eax
mov eax, dword [esp + 0x18]
add eax, ecx
cmp eax, dword [esp + 0x54]
je 0x4d853e
mov ecx, dword [esp + 0x18]
inc esi
cmp esi, dword [esp + 0x28]
jb 0x4d84f0
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x174]
xor ecx, esp
call fcn.00519459
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x17c]
mov eax, 3
pop edi
pop esi
xor ecx, esp
call fcn.00519459
mov esp, ebp
pop ebp
ret