Function at 0x4cb060
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6445
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x258
mov eax, dword [0x4fb614]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1b4], esi
mov eax, dword [ebx + 0xc]
mov edi, dword [ebx + 8]
mov dword [ebp - 0x1c8], eax
mov dword [ebp - 0x1ac], edi
call fcn.004cafe0
mov eax, dword [edi + 0x38]
cmp eax, dword [edi + 0x3c]
je 0x4cb0ef
mov ecx, dword [eax]
mov edi, dword [ecx + 0x10]
test edi, edi
jne 0x4cb0d4
mov edi, dword [ecx + 0x18]
mov edx, dword [ebp - 0x1c8]
sub edx, dword [ecx + 0x14]
cmp edx, edi
jb 0x4cb111
mov ecx, dword [ebp - 0x1ac]
add eax, 4
cmp eax, dword [ecx + 0x3c]
jne 0x4cb0c8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004cf4aa
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
cmp edx, dword [ecx + 0x18]
jb 0x4cb11a
xor edi, edi
jmp 0x4cb120
mov eax, dword [ecx + 0x40]
lea edi, [eax + edx]
test edi, edi
je 0x4cb0ef
mov eax, dword [ebp - 0x1ac]
cmp byte [eax + 0x24], 0
je 0x4cb465
push pe_nt_image_headers32
lea eax, [ebp - 0x1a8]
push 0
push eax
call fcn.004d0920
add esp, 0xc
mov eax, pe_nt_image_headers32
cmp dword [edi], eax
cmovb eax, dword [edi]
push eax
lea eax, [ebp - 0x1a8]
push edi
push eax
call fcn.004d1d90
add esp, 0xc
lea eax, [ebp - 0x1a8]
mov edx, esi
lea ecx, [ebp - 0x1be]
push eax
call fcn.004ccbb0
add esp, 4
mov ecx, dword [eax]
mov ax, word [eax + 4]
mov word [ebp - 0x1ae], ax
mov eax, dword [esi + 0x68]
or eax, dword [esi + 0x6c]
mov dword [ebp - 0x1cc], ecx
jne 0x4cb1a3
mov eax, dword [esi + 0x60]
or eax, dword [esi + 0x64]
je 0x4cb674
mov eax, dword [0x4fdaa8]
mov dword [ebp - 0x1bc], eax
mov dword [ebp - 0x2c], 0
push 0x30
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
call fcn.004aa4a0
push 0x2a
mov edi, eax
mov dword [ebp - 0x1c], 0x2a
push 0
push edi
mov dword [ebp - 0x18], 0x2f
call fcn.004d0920
mov byte [edi + 0x2a], 0
lea eax, [ebp - 0x2c]
add esp, 0xc
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x18], 0x10
jb 0x4cb207
movsx ecx, byte [edi]
jmp 0x4cb20d
movsx ecx, byte [eax]
lea edi, [ebp - 0x2c]
mov eax, 0x4f6210
add ecx, 0x9f7ea6
sub eax, edi
mov edx, 0x2a
mov dword [ebp - 0x1b8], eax
mov esi, eax
nop word [eax + eax]
mov eax, ecx
lea edi, [edi + 1]
imul ecx, ecx, 0xe2f5
shr eax, 5
xor al, byte [esi + edi - 1]
mov byte [edi - 1], al
add ecx, 0x819c207
sub edx, 1
jne 0x4cb230
mov dword [ebp - 4], 1
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x1f4], 0x4efc60
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1d4], eax
mov eax, 0x4f45fc
inc eax
cmp byte [eax], 0
jne 0x4cb277
sub eax, 0x4f45fc
mov dword [ebp - 0x1e8], eax
lea ecx, [eax + 1]
mov dword [ebp - 0x1ec], ecx
test ecx, ecx
jne 0x4cb299
xor eax, eax
jmp 0x4cb2a2
push ecx
call fcn.004d4296
add esp, 4
mov dword [ebp - 0x1b8], eax
mov ecx, 0x4f45fc
mov dword [ebp - 0x1f0], eax
inc ecx
cmp byte [ecx], 0
jne 0x4cb2b3
sub ecx, 0x4f45fc
inc ecx
push ecx
push 0x4f45fc
push eax
call fcn.004d1d90
add esp, 0xc
push 0x30
mov byte [ebp - 4], 2
call fcn.004aa4a0
mov ecx, eax
mov dword [ebp - 0x64], 0x21
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0x2f
mov dword [ebp - 0x74], ecx
mov eax, 0x4f6450
mov edi, 0x21
movups xmmword [ecx], xmm0
movups xmmword [ecx + 0x10], xmm0
mov word [ecx + 0x20], 0
movsx edx, byte [ecx]
add edx, 0x9f7ea6
sub eax, ecx
mov dword [ebp - 0x1d0], eax
mov esi, eax
nop word [eax + eax]
mov eax, edx
lea ecx, [ecx + 1]
imul edx, edx, 0xd9f5
shr eax, 5
xor al, byte [esi + ecx - 1]
mov byte [ecx - 1], al
add edx, 0x819c207
sub edi, 1
jne 0x4cb320
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x1e4]
call fcn.004b7340
lea ecx, [ebp - 0x1f4]
push ecx
push eax
lea ecx, [ebp - 0x204]
call fcn.004b65c0
push ecx
push edi
push 0x68
push dword [ebp - 0x1d4]
mov byte [ebp - 4], 6
push dword [eax + 4]
mov ecx, dword [ebp - 0x1bc]
call fcn.004c3d30
mov eax, dword [ebp - 0x200]
mov esi, dword [ebp - 0x1b4]
mov dword [ebp - 0x204], 0x4efc60
test eax, eax
je 0x4cb3a1
push eax
call fcn.004d427b
add esp, 4
mov eax, dword [ebp - 0x1e0]
mov dword [ebp - 0x1e4], 0x4efc60
test eax, eax
je 0x4cb3be
push eax
call fcn.004d427b
add esp, 4
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x60]
cmp edx, 0x10
jb 0x4cb3f6
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4cb3ec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cba14
push edx
push ecx
call fcn.004cf4f2
add esp, 8
mov eax, dword [ebp - 0x1b8]
test eax, eax
je 0x4cb409
push eax
call fcn.004d427b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x4cb444
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4cb43a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cba14
push edx
push ecx
call fcn.004cf4f2
add esp, 8
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
jmp 0x4cb674
push 0xac
lea eax, [ebp - 0x140]
push 0
push eax
call fcn.004d0920
add esp, 0xc
mov eax, 0xac
cmp dword [edi], eax
cmovb eax, dword [edi]
push eax
lea eax, [ebp - 0x140]
push edi
push eax
call fcn.004d1d90
add esp, 0xc
lea eax, [ebp - 0x140]
mov edx, esi
lea ecx, [ebp - 0x1be]
push eax
call fcn.004cc8a0
add esp, 4
mov dword [ebp - 0x2c], 0
mov ecx, dword [eax]
mov ax, word [eax + 4]
mov dword [ebp - 0x1cc], ecx
mov word [ebp - 0x1ae], ax
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 9
lea edx, [ebp - 0x2c]
mov word [ebp - 0x24], 0
mov eax, 0xf
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
movq qword [ebp - 0x2c], xmm0
movsx ecx, byte [ecx]
add ecx, 0xb04791
mov eax, ecx
imul ecx, ecx, 0xc1f5
shr eax, 9
xor al, 0x70
mov byte [edx], al
add ecx, 0x8f3f5f6
mov eax, ecx
imul ecx, ecx, 0xc1f5
shr eax, 9
xor al, 0x27
mov byte [edx + 1], al
add ecx, 0x8f3f5f6
mov eax, ecx
imul ecx, ecx, 0xc1f5
shr eax, 9
xor al, 0xd3
mov byte [edx + 2], al
add ecx, 0x8f3f5f6
mov eax, ecx
imul ecx, ecx, 0xc1f5
shr eax, 9
xor al, 0x75
mov byte [edx + 3], al
add ecx, 0x8f3f5f6
mov eax, ecx
imul ecx, ecx, 0xc1f5
shr eax, 9
xor al, 0xef
mov byte [edx + 4], al
add ecx, 0x8f3f5f6
mov eax, ecx
imul ecx, ecx, 0xc1f5
shr eax, 9
xor al, 0x55
mov byte [edx + 5], al
add ecx, 0x8f3f5f6
mov eax, ecx
imul ecx, ecx, 0xc1f5
shr eax, 9
xor al, 0x1c
mov byte [edx + 6], al
add ecx, 0x8f3f5f6
mov eax, ecx
shr eax, 9
xor al, 0x6f
mov byte [edx + 7], al
imul eax, ecx, 0xc1f5
add eax, 0x8f3f5f6
shr eax, 9
xor al, 0x95
mov byte [edx + 8], al
mov eax, edx
mov dword [ebp - 4], 8
push eax
lea ecx, [ebp - 0x1e4]
call fcn.004b7340
push 1
push eax
mov byte [ebp - 4], 9
lea eax, [ebp - 0x1c4]
push dword [esi + 0x68]
push dword [esi + 0x64]
push dword [esi + 0x60]
push dword [ebp - 0x1ac]
push eax
call fcn.004cba30
push eax
lea ecx, [esi + 0x124]
call fcn.004cc750
lea ecx, [ebp - 0x1c4]
call fcn.004ac070
mov eax, dword [ebp - 0x1e0]
mov dword [ebp - 0x1e4], 0x4efc60
test eax, eax
je 0x4cb618
push eax
call fcn.004d427b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x4cb653
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4cb649
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cba19
push edx
push ecx
call fcn.004cf4f2
add esp, 8
mov eax, dword [esi + 0x128]
xor ecx, ecx
sub eax, dword [esi + 0x124]
sar eax, 2
cmp eax, dword [esi + 0x68]
jne 0x4cb66e
cmp ecx, dword [esi + 0x6c]
je 0x4cb674
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], ecx
push dword [esi + 0x90]
lea eax, [ebp - 0x240]
push dword [esi + 0x88]
push dword [esi + 0x84]
push dword [esi + 0x80]
push dword [ebp - 0x1ac]
push eax
call fcn.004cc250
mov edi, eax
lea eax, [esi + 0x130]
cmp eax, edi
je 0x4cb6df
mov ecx, eax
call fcn.004cc7e0
mov ecx, dword [edi]
mov dword [esi + 0x130], ecx
mov eax, dword [edi + 4]
mov dword [esi + 0x134], eax
mov eax, dword [edi + 8]
mov dword [esi + 0x138], eax
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
lea ecx, [ebp - 0x240]
call fcn.004cc7e0
push 0x20
mov dword [ebp - 4], 0xffffffff
call fcn.004aa4a0
mov ecx, eax
mov dword [ebp - 0x7c], 0x19
xorps xmm0, xmm0
mov dword [ebp - 0x78], 0x1f
mov dword [ebp - 0x8c], ecx
mov eax, 0x4f63e0
mov edi, 0x19
movups xmmword [ecx], xmm0
movq qword [ecx + 0x10], xmm0
mov word [ecx + 0x18], 0
movsx edx, byte [ecx]
add edx, 0xb96f57
sub eax, ecx
mov dword [ebp - 0x1bc], eax
mov esi, eax
nop dword [eax]
mov eax, edx
lea ecx, [ecx + 1]
imul edx, edx, 0xd1f5
shr eax, 0xc
xor al, byte [esi + ecx - 1]
mov byte [ecx - 1], al
add edx, 0x96afb04
sub edi, 1
jne 0x4cb740
lea eax, [ebp - 0x8c]
mov dword [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x214]
call fcn.004b7340
mov esi, dword [ebp - 0x1b4]
push edi
push eax
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x24c]
push dword [esi + 0xa8]
push dword [esi + 0xa4]
push dword [esi + 0xa0]
push dword [ebp - 0x1ac]
push eax
call fcn.004cba30
push eax
lea ecx, [esi + 0x13c]
call fcn.004cc750
lea ecx, [ebp - 0x24c]
call fcn.004ac070
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x214], 0x4efc60
test eax, eax
je 0x4cb7dd
push eax
call fcn.004d427b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x78]
cmp edx, 0x10
jb 0x4cb81b
mov ecx, dword [ebp - 0x8c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4cb811
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4cba1e
push edx
push ecx
call fcn.004cf4f2
add esp, 8
push ecx
push 0x13
lea ecx, [ebp - 0x44]
call fcn.004aa330
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
jb 0x4cb837
mov edx, dword [ebp - 0x44]
movsx ecx, byte [edx]
jmp 0x4cb83d
movsx ecx, byte [eax]
lea edx, [ebp - 0x44]
mov eax, 0x4f63c0
add ecx, 0xbaf5f8
sub eax, edx
mov edi, 0x13
mov dword [ebp - 0x1bc], eax
mov esi, eax
nop word [eax + eax]
mov eax, ecx
lea edx, [edx + 1]
imul ecx, ecx, 0xcbf5
shr eax, 5
xor al, byte [esi + edx - 1]
mov byte [edx - 1], al
add ecx, 0x97ed131
sub edi, 1
jne 0x4cb860
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x224]
call fcn.004b7340
mov esi, dword [ebp - 0x1b4]
push edi
push eax
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x258]
push dword [esi + 0xb8]
push dword [esi + 0xb4]
push dword [esi + 0xb0]
push dword [ebp - 0x1ac]
push eax
call fcn.004cba30
push eax
lea ecx, [esi + 0x148]
call fcn.004cc750
lea ecx, [ebp - 0x258]
call fcn.004ac070
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x224], 0x4efc60
test eax, eax
je 0x4cb8fa
push eax
call fcn.004d427b
add esp, 4
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
call fcn.004aa2e0
push ecx
push 0x13
lea ecx, [ebp - 0x5c]
call fcn.004aa330
cmp dword [ebp - 0x48], 0x10
lea eax, [ebp - 0x5c]
jb 0x4cb925
mov edx, dword [ebp - 0x5c]
movsx ecx, byte [edx]
jmp 0x4cb92b
movsx ecx, byte [eax]
lea edx, [ebp - 0x5c]
mov eax, 0x4f6430
add ecx, 0xbc7c99
sub eax, edx
mov edi, 0x13
mov dword [ebp - 0x1bc], eax
mov esi, eax
mov eax, ecx
lea edx, [edx + 1]
imul ecx, ecx, 0xcbf5
shr eax, 7
xor al, byte [esi + edx - 1]
mov byte [edx - 1], al
add ecx, 0x992a75e
sub edi, 1
jne 0x4cb945
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x234]
call fcn.004b7340
mov esi, dword [ebp - 0x1b4]
push edi
push eax
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x264]
push dword [esi + 0x110]
push dword [esi + 0x10c]
push dword [esi + 0x108]
push dword [ebp - 0x1ac]
push eax
call fcn.004cba30
push eax
lea ecx, [esi + 0x154]
call fcn.004cc750
lea ecx, [ebp - 0x264]
call fcn.004ac070
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x234], 0x4efc60
test eax, eax
je 0x4cb9df
push eax
call fcn.004d427b
add esp, 4
lea ecx, [ebp - 0x5c]
call fcn.004aa2e0
mov eax, dword [ebp - 0x1c8]
mov dword [esi + 0x118], eax
mov eax, dword [ebp - 0x1cc]
mov dword [esi + 0x11c], eax
mov ax, word [ebp - 0x1ae]
mov word [esi + 0x120], ax
mov al, 1
jmp 0x4cb0f1
call fcn.004d4192
call fcn.004d4192
call fcn.004d4192
int3