Function at 0x4c87f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x14f8]
mov eax, 0x14f8
call fcn.004f8350
push 0xffffffffffffffff
push 0x515a33
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x544354]
xor eax, ebp
mov dword [ebp + 0x14f4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x1504]
xor eax, eax
mov esi, dword [ebp + 0x1500]
mov edi, dword [ebp + 0x150c]
push 0x200
push eax
mov word [ebp + 0x13c4], ax
lea eax, [ebp + 0x11c4]
push eax
push str.PasswordData
push ebx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], edi
call fcn.004a5d70
test eax, eax
jne 0x4c8953
push 0x100
push eax
lea eax, [ebp + 0x10c0]
push eax
call fcn.004fa860
add esp, 0xc
lea eax, [ebp + 0x10c0]
push 0x100
push 0
push eax
push str.PasswordWide
push ebx
call fcn.004a5d70
mov edx, eax
test edx, edx
jne 0x4c890f
push 0x100
push eax
mov byte [ebp + 0x10c0], al
lea eax, [ebp + 0x10c0]
push eax
push str.Password
push ebx
call fcn.004a5d70
xor edx, edx
test eax, eax
jle 0x4c88e1
lea esp, [esp]
lea ecx, [edx + 0x49]
xor byte [ebp + edx + 0x10c0], cl
je 0x4c88e1
inc edx
cmp edx, eax
jl 0x4c88d0
push 0x80
lea eax, [ebp + 0x13c4]
push eax
lea eax, [ebp + 0x10c0]
push eax
call fcn.00497720
push 0x100
lea eax, [ebp + 0x10c0]
push eax
call fcn.00491e00
jmp 0x4c8bbe
xor ecx, ecx
test edx, edx
jle 0x4c8925
mov al, cl
add al, 0x49
xor byte [ebp + ecx + 0x10c0], al
inc ecx
cmp ecx, edx
jl 0x4c8915
push 0x80
lea eax, [ebp + 0x13c4]
push eax
lea eax, [ebp + 0x10c0]
push eax
call fcn.004977f0
push 0x100
lea eax, [ebp + 0x10c0]
push eax
call fcn.00491e00
jmp 0x4c8bbe
lea ecx, [ebp - 0x30]
call fcn.00481430
mov dword [ebp - 4], 0
lea eax, [ebp + 0x11c4]
push 0x200
push eax
lea ecx, [ebp - 0x30]
call fcn.00481950
lea ecx, [ebp - 0x30]
call fcn.004814c0
cmp al, 1
jne 0x4c8b95
lea ecx, [ebp - 0x30]
call fcn.00481520
shr eax, 0x18
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x3c], eax
lea eax, [ebp + 0x14c4]
push 0x10
push eax
call fcn.00481670
push 0x10
lea eax, [ebp + 0x14d4]
push eax
lea ecx, [ebp - 0x30]
call fcn.00481670
push 8
lea eax, [ebp + 0x14ec]
push eax
lea ecx, [ebp - 0x30]
call fcn.00481670
lea ecx, [ebp]
call fcn.00462250
mov byte [ebp - 4], 1
xor bl, bl
lea ecx, [ebp + 0x10c0]
call fcn.004919e0
mov byte [ebp - 4], 2
cmp byte [0x5a1308], 0
je 0x4c8a09
mov ecx, 0x40
lea edi, [ebp + 0x10c0]
mov esi, 0x5a1208
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp - 0x38]
jmp 0x4c8a19
push 0x519c00
lea ecx, [ebp + 0x10c0]
call fcn.00491d80
lea eax, [ebp + 0x14e4]
push eax
push 0
push dword [ebp - 0x3c]
lea eax, [ebp + 0x14d4]
push eax
lea eax, [ebp + 0x14c4]
push eax
lea eax, [ebp + 0x10c0]
push eax
push 5
push 0
lea ecx, [ebp]
call fcn.00462bd0
lea ecx, [ebp + 0x14ec]
mov eax, dword [ecx]
lea edx, [ebp + 0x14e4]
cmp eax, dword [edx]
jne 0x4c8a64
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 4]
jne 0x4c8a64
xor al, al
jmp 0x4c8a66
mov al, 1
test al, al
je 0x4c8ad1
test bl, bl
je 0x4c8a8e
push 0
push 0x66
call fcn.0048e4c0
push eax
push 0x606
call fcn.0048e4c0
push eax
push dword [0x54b9d4]
call fcn.004cd560
push edi
push 0
push 0x5a1208
push esi
call fcn.00447d30
test al, al
je 0x4c8ab6
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10c0]
call fcn.00491b40
mov bl, 1
jmp 0x4c89d5
mov byte [0x5619d6], 1
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10c0]
call fcn.00491b40
jmp 0x4c8b7b
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10c0]
call fcn.00491b40
mov eax, dword [ebp - 0x18]
lea ecx, [ebp]
sub eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x14]
push eax
call fcn.00462920
lea ecx, [ebp - 0x30]
call fcn.004814e0
movzx esi, ax
mov eax, esi
cmp esi, 0x80
jb 0x4c8b10
mov eax, 0x80
push eax
lea eax, [ebp + 0x13c4]
push eax
lea ecx, [ebp - 0x30]
call fcn.004817c0
cmp esi, 0x7f
jb 0x4c8b2a
mov esi, 0x7f
add esi, esi
cmp esi, 0x100
jae 0x4c8c55
push dword [ebp - 0x14]
xor eax, eax
push dword [ebp - 0x30]
mov word [ebp + esi + 0x13c4], ax
push 0xffffffffffffffff
call fcn.00461ba0
mov esi, eax
lea ecx, [ebp - 0x30]
not esi
call fcn.00481520
cmp esi, eax
je 0x4c8b7b
xor eax, eax
push 0x5d0
mov word [ebp + 0x13c4], ax
call fcn.0048e4c0
push eax
call fcn.004d1700
add esp, 4
push dword [ebp - 0x18]
push dword [ebp - 0x30]
call fcn.00491e00
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00462380
mov ebx, dword [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4c8bbe
cmp byte [ebp - 0x20], 0
je 0x4c8bb5
push dword [ebp - 0x28]
push eax
call fcn.00491e00
mov eax, dword [ebp - 0x30]
push eax
call fcn.004fe8b9
add esp, 4
cmp byte [ebp + 0x1508], 0
je 0x4c8be2
cmp byte [0x55c5f0], 0
jne 0x4c8c1f
cmp byte [0x55c5f2], 0
jne 0x4c8c1f
cmp byte [0x5619e8], 0
jne 0x4c8c1f
lea eax, [ebp + 0x13c4]
mov ecx, 0x55c4f0
push eax
call fcn.00491d80
push 0
push str.EncryptHeaders
push ebx
call fcn.004a5d50
push 0
test eax, eax
push str.ZipLegacyEncrypt
push ebx
setne byte [0x55c5f2]
call fcn.004a5d50
test eax, eax
setne byte [0x5619e8]
push 0x100
lea eax, [ebp + 0x13c4]
push eax
call fcn.00491e00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x14f4]
xor ecx, ebp
call fcn.004f833c
lea esp, [ebp + 0x14f8]
pop ebp
ret 0x10
call fcn.004f8260
int3