Function at 0x4d1d90
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x14f8]
mov eax, 0x14f8
call fcn.00502fa0
push 0xffffffffffffffff
push 0x520f23
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5513d4]
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.004ae560
test eax, eax
jne 0x4d1ef3
push 0x100
push eax
lea eax, [ebp + 0x10c0]
push eax
call fcn.00505530
add esp, 0xc
lea eax, [ebp + 0x10c0]
push 0x100
push 0
push eax
push str.PasswordWide
push ebx
call fcn.004ae560
mov edx, eax
test edx, edx
jne 0x4d1eaf
push 0x100
push eax
mov byte [ebp + 0x10c0], al
lea eax, [ebp + 0x10c0]
push eax
push str.Password
push ebx
call fcn.004ae560
xor edx, edx
test eax, eax
jle 0x4d1e81
lea esp, [esp]
lea ecx, [edx + 0x49]
xor byte [ebp + edx + 0x10c0], cl
je 0x4d1e81
inc edx
cmp edx, eax
jl 0x4d1e70
push 0x80
lea eax, [ebp + 0x13c4]
push eax
lea eax, [ebp + 0x10c0]
push eax
call fcn.0049ff80
push 0x100
lea eax, [ebp + 0x10c0]
push eax
call fcn.0049a3e0
jmp 0x4d215e
xor ecx, ecx
test edx, edx
jle 0x4d1ec5
mov al, cl
add al, 0x49
xor byte [ebp + ecx + 0x10c0], al
inc ecx
cmp ecx, edx
jl 0x4d1eb5
push 0x80
lea eax, [ebp + 0x13c4]
push eax
lea eax, [ebp + 0x10c0]
push eax
call fcn.004a0050
push 0x100
lea eax, [ebp + 0x10c0]
push eax
call fcn.0049a3e0
jmp 0x4d215e
lea ecx, [ebp - 0x30]
call fcn.00489000
mov dword [ebp - 4], 0
lea eax, [ebp + 0x11c4]
push 0x200
push eax
lea ecx, [ebp - 0x30]
call fcn.00489580
lea ecx, [ebp - 0x30]
call fcn.00489090
cmp al, 1
jne 0x4d2135
lea ecx, [ebp - 0x30]
call fcn.004890f0
shr eax, 0x18
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x3c], eax
lea eax, [ebp + 0x14c4]
push 0x10
push eax
call fcn.00489240
push 0x10
lea eax, [ebp + 0x14d4]
push eax
lea ecx, [ebp - 0x30]
call fcn.00489240
push 8
lea eax, [ebp + 0x14ec]
push eax
lea ecx, [ebp - 0x30]
call fcn.00489240
lea ecx, [ebp]
call fcn.00469660
mov byte [ebp - 4], 1
xor bl, bl
lea ecx, [ebp + 0x10c0]
call fcn.00499f80
mov byte [ebp - 4], 2
cmp byte [0x5ae1f0], 0
je 0x4d1fa9
mov ecx, 0x40
lea edi, [ebp + 0x10c0]
mov esi, 0x5ae0f0
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp - 0x38]
jmp 0x4d1fb9
push 0x526978
lea ecx, [ebp + 0x10c0]
call fcn.0049a360
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.0046a030
lea ecx, [ebp + 0x14ec]
mov eax, dword [ecx]
lea edx, [ebp + 0x14e4]
cmp eax, dword [edx]
jne 0x4d2004
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 4]
jne 0x4d2004
xor al, al
jmp 0x4d2006
mov al, 1
test al, al
je 0x4d2071
test bl, bl
je 0x4d202e
push 0
push 0x66
call fcn.00496b20
push eax
push 0x606
call fcn.00496b20
push eax
push dword [0x558ab4]
call fcn.004d6c50
push edi
push 0
push 0x5ae0f0
push esi
call fcn.0044eac0
test al, al
je 0x4d2056
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10c0]
call fcn.00499fa0
mov bl, 1
jmp 0x4d1f75
mov byte [0x56eab6], 1
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10c0]
call fcn.00499fa0
jmp 0x4d211b
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10c0]
call fcn.00499fa0
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.00469d80
lea ecx, [ebp - 0x30]
call fcn.004890b0
movzx esi, ax
mov eax, esi
cmp esi, 0x80
jb 0x4d20b0
mov eax, 0x80
push eax
lea eax, [ebp + 0x13c4]
push eax
lea ecx, [ebp - 0x30]
call fcn.00489390
cmp esi, 0x7f
jb 0x4d20ca
mov esi, 0x7f
add esi, esi
cmp esi, 0x100
jae 0x4d21f5
push dword [ebp - 0x14]
xor eax, eax
push dword [ebp - 0x30]
mov word [ebp + esi + 0x13c4], ax
push 0xffffffffffffffff
call fcn.00468fb0
mov esi, eax
lea ecx, [ebp - 0x30]
not esi
call fcn.004890f0
cmp esi, eax
je 0x4d211b
xor eax, eax
push 0x5d0
mov word [ebp + 0x13c4], ax
call fcn.00496b20
push eax
call fcn.004db310
add esp, 4
push dword [ebp - 0x18]
push dword [ebp - 0x30]
call fcn.0049a3e0
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00469790
mov ebx, dword [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4d215e
cmp byte [ebp - 0x20], 0
je 0x4d2155
push dword [ebp - 0x28]
push eax
call fcn.0049a3e0
mov eax, dword [ebp - 0x30]
push eax
call fcn.005097b2
add esp, 4
cmp byte [ebp + 0x1508], 0
je 0x4d2182
cmp byte [0x5696d0], 0
jne 0x4d21bf
cmp byte [0x5696d2], 0
jne 0x4d21bf
cmp byte [0x56eac8], 0
jne 0x4d21bf
lea eax, [ebp + 0x13c4]
mov ecx, 0x5695d0
push eax
call fcn.0049a360
push 0
push str.EncryptHeaders
push ebx
call fcn.004ae540
push 0
test eax, eax
push str.ZipLegacyEncrypt
push ebx
setne byte [0x5696d2]
call fcn.004ae540
test eax, eax
setne byte [0x56eac8]
push 0x100
lea eax, [ebp + 0x13c4]
push eax
call fcn.0049a3e0
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.00502f8e
lea esp, [ebp + 0x14f8]
pop ebp
ret 0x10
call fcn.00502eb2
int3