Function at 0x4ccf70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push esi
push edi
mov ecx, 0x100
mov esi, edx
call fcn.004d88b0
mov ecx, dword [esi]
mov edi, eax
mov dword [ebp - 4], edi
sub ecx, 4
je 0x4cd390
sub ecx, 1
jne 0x4cd3a3
push ecx
push ecx
mov ecx, dword [0x4f8aa8]
mov edx, esi
call fcn.004cff10
mov eax, 0x4a
add esp, 8
mov word [ebp - 0x44], ax
mov eax, 0x6c
mov word [ebp - 0x42], ax
mov eax, 0x7d
mov word [ebp - 0x40], ax
mov eax, 0x72
mov word [ebp - 0x3e], ax
mov eax, 0x7f
mov word [ebp - 0x3c], ax
mov eax, 0x6e
mov word [ebp - 0x3a], ax
mov eax, 0x43
mov word [ebp - 0x38], ax
mov eax, 9
mov word [ebp - 0x36], ax
movzx eax, word [0x4049b4]
add eax, 9
mov word [ebp - 0x34], ax
movzx eax, word [0x4049b6]
add eax, 9
mov word [ebp - 0x32], ax
movzx eax, word [0x4049b8]
add eax, 9
mov word [ebp - 0x30], ax
movzx eax, word [0x4049ba]
add eax, 9
mov word [ebp - 0x2e], ax
movzx eax, word [0x4049bc]
add eax, 9
mov word [ebp - 0x2c], ax
movzx eax, word [0x4049be]
add eax, 9
mov word [ebp - 0x2a], ax
movzx eax, word [0x4049c0]
add eax, 9
mov word [ebp - 0x28], ax
xor eax, eax
mov word [ebp - 0x26], ax
xor ecx, ecx
mov ax, word [ebp - 0x44]
mov ax, word [ebp + ecx*2 - 0x44]
movzx eax, ax
add eax, 0xfffffff7
mov word [ebp + ecx*2 - 0x44], ax
inc ecx
cmp ecx, 0xf
jb 0x4cd065
mov ecx, dword [0x4f8ab8]
lea eax, [ebp - 0x44]
push 0
push eax
mov edx, esi
call fcn.004cff10
mov dword [ebp - 0x24], 0x29
mov eax, 0xc
mov word [ebp - 0x20], ax
add esp, 8
mov eax, 0x4d
mov word [ebp - 0x1e], ax
mov eax, 0x29
mov word [ebp - 0x1c], ax
movzx eax, word [0x4049ba]
xor eax, 0x29
mov word [ebp - 0x1a], ax
movzx eax, word [0x4049bc]
xor eax, 0x29
mov word [ebp - 0x18], ax
xor eax, eax
mov word [ebp - 0x16], ax
xor edx, edx
mov ax, word [ebp - 0x20]
nop dword [eax + eax]
mov ax, word [ebp + edx*2 - 0x20]
movzx ecx, ax
movzx eax, word [ebp - 0x24]
xor ecx, eax
mov word [ebp + edx*2 - 0x20], cx
inc edx
cmp edx, 5
jb 0x4cd0e0
xor eax, eax
mov word [ebp - 0x16], ax
mov eax, dword [0x4f8c64]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 4]
push pe_nt_image_headers32
push eax
call fcn.004cdf30
mov ecx, dword [0x4f8ad4]
mov edx, esi
push 1
push dword [ebp - 4]
call fcn.004cff10
mov dword [ebp - 0x74], 0x44
add esp, 0x18
mov eax, dword [ebp - 0x74]
xor eax, 0x43
mov word [ebp - 0x70], ax
mov eax, dword [ebp - 0x74]
inc eax
xor eax, 0x6f
mov word [ebp - 0x6e], ax
mov eax, dword [ebp - 0x74]
add eax, 2
xor eax, 0x6d
mov word [ebp - 0x6c], ax
mov eax, dword [ebp - 0x74]
add eax, 3
xor eax, 0x70
mov word [ebp - 0x6a], ax
mov eax, dword [ebp - 0x74]
add eax, 4
xor eax, 0x6c
mov word [ebp - 0x68], ax
mov eax, dword [ebp - 0x74]
add eax, 5
xor eax, 0x65
mov word [ebp - 0x66], ax
mov eax, dword [ebp - 0x74]
add eax, 6
xor eax, 0x74
mov word [ebp - 0x64], ax
mov eax, dword [ebp - 0x74]
add eax, 7
xor eax, 0x65
mov word [ebp - 0x62], ax
mov eax, dword [ebp - 0x74]
add eax, 8
xor eax, 0x64
mov word [ebp - 0x60], ax
mov eax, dword [ebp - 0x74]
add eax, 9
xor eax, 0x3a
mov word [ebp - 0x5e], ax
mov eax, dword [ebp - 0x74]
add eax, 0xa
mov word [ebp - 0x5c], ax
mov eax, dword [ebp - 0x74]
movzx ecx, word [0x4049d2]
add eax, 0xb
movzx eax, ax
xor ecx, eax
mov word [ebp - 0x5a], cx
mov eax, dword [ebp - 0x74]
movzx ecx, word [0x4049d4]
add eax, 0xc
movzx eax, ax
xor ecx, eax
mov word [ebp - 0x58], cx
mov eax, dword [ebp - 0x74]
movzx ecx, word [0x4049d6]
add eax, 0xd
movzx eax, ax
xor ecx, eax
mov word [ebp - 0x56], cx
mov eax, dword [ebp - 0x74]
movzx ecx, word [0x4049d8]
add eax, 0xe
movzx eax, ax
xor ecx, eax
mov word [ebp - 0x54], cx
mov eax, dword [ebp - 0x74]
movzx ecx, word [0x4049da]
add eax, 0xf
movzx eax, ax
xor ecx, eax
mov word [ebp - 0x52], cx
mov eax, dword [ebp - 0x74]
movzx ecx, word [0x4049dc]
add eax, 0x10
movzx eax, ax
xor ecx, eax
mov word [ebp - 0x50], cx
mov eax, dword [ebp - 0x74]
movzx ecx, word [0x4049de]
add eax, 0x11
movzx eax, ax
xor ecx, eax
mov word [ebp - 0x4e], cx
mov eax, dword [ebp - 0x74]
movzx ecx, word [0x4049e0]
add eax, 0x12
movzx eax, ax
xor ecx, eax
mov word [ebp - 0x4c], cx
mov eax, dword [ebp - 0x74]
movzx ecx, word [0x4049e2]
add eax, 0x13
movzx eax, ax
xor ecx, eax
mov word [ebp - 0x4a], cx
mov eax, dword [ebp - 0x74]
movzx ecx, word [0x4049e4]
add eax, 0x14
movzx eax, ax
xor ecx, eax
xor eax, eax
mov word [ebp - 0x48], cx
xor edx, edx
mov word [ebp - 0x46], ax
mov ax, word [ebp - 0x70]
mov ax, word [ebp + edx*2 - 0x70]
mov ecx, dword [ebp - 0x74]
add ecx, edx
movzx eax, ax
xor ecx, eax
mov word [ebp + edx*2 - 0x70], cx
inc edx
cmp edx, 0x15
jb 0x4cd2a2
mov ecx, dword [0x4f8afc]
xor eax, eax
push eax
mov word [ebp - 0x46], ax
mov edx, esi
lea eax, [ebp - 0x70]
push eax
call fcn.004cff10
mov dword [ebp - 0x14], 0x57
add esp, 8
mov eax, dword [ebp - 0x14]
xor eax, 0x25
mov word [ebp - 0x10], ax
mov eax, dword [ebp - 0x14]
inc eax
xor eax, 0x64
mov word [ebp - 0xe], ax
mov eax, dword [ebp - 0x14]
add eax, 2
mov word [ebp - 0xc], ax
mov eax, dword [ebp - 0x14]
movzx ecx, word [0x4049ba]
add eax, 3
movzx eax, ax
xor ecx, eax
mov word [ebp - 0xa], cx
mov eax, dword [ebp - 0x14]
movzx ecx, word [0x4049bc]
add eax, 4
movzx eax, ax
xor ecx, eax
xor eax, eax
mov word [ebp - 6], ax
mov word [ebp - 8], cx
mov ax, word [ebp - 0x10]
xor eax, eax
mov cx, word [ebp + eax*2 - 0x10]
mov edx, dword [ebp - 0x14]
add edx, eax
movzx ecx, cx
xor edx, ecx
mov word [ebp + eax*2 - 0x10], dx
inc eax
cmp eax, 5
jb 0x4cd335
xor eax, eax
mov word [ebp - 6], ax
mov eax, dword [0x4f8ca0]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push pe_nt_image_headers32
push eax
call fcn.004cdf30
mov edi, dword [ebp - 4]
mov edx, esi
mov ecx, dword [0x4f8adc]
push 1
push edi
call fcn.004cff10
add esp, 0x18
mov ecx, edi
call fcn.004d87a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.004db8b0
cmp dword [esi], 4
jne 0x4cd3a3
mov ecx, esi
call fcn.004db8b0
mov ecx, edi
call fcn.004d87a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret