Function at 0x4d8390
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50ed9b
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x5894dc]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push esi
push edi
mov eax, dword [0x5894dc]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x1c]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x24]
push 0x4bcb40
push 0x4bcb30
push 1
push 0xb0
lea edx, [esp + 0xec]
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], ecx
call fcn.004ec8df
push 0x4bcb40
push 0x4bcb30
push 1
push 0xb0
lea eax, [esp + 0x19c]
push eax
mov dword [esp + 0x28c], 0
call fcn.004ec8df
push 0x4bcb40
push 0x4bcb30
push 1
push 0xb0
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0x28c], 1
call fcn.004ec8df
cmp byte [ebp + 0x28], 0
mov edi, dword [ebp + 0xc]
mov byte [esp + 0x278], 2
je 0x4d84ce
mov edx, dword [ebx]
mov eax, dword [edx + 0x20]
push 1
push str.ZipAes_derive_key
mov ecx, ebx
call eax
push edi
push esi
push 0x547eb0
mov ecx, ebx
call fcn.00424300
mov edx, dword [ebx]
mov eax, dword [edx + 0x2c]
push edi
push str.pwd_len
mov ecx, ebx
call eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [esp + 0x14]
push ecx
push edx
push str.salt
mov ecx, ebx
call fcn.00424300
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebx]
mov edx, dword [eax + 0x2c]
push ecx
push str.salt_len
mov ecx, ebx
call edx
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebx]
mov edx, dword [eax + 0x2c]
push ecx
push str.key_len
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x24]
mov ecx, ebx
call edx
lea eax, [esp + 0xdc]
push eax
call fcn.004d81a0
lea ecx, [esp + 0xe0]
push ecx
push edi
push esi
call fcn.004d81c0
mov eax, dword [ebp + 0x14]
lea edx, [esp + 0x19c]
push edx
mov ecx, 0x2c
lea esi, [esp + 0xf0]
lea edi, [esp + 0x1a0]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call fcn.004d8240
mov esi, dword [ebp + 0x20]
lea edx, [esi - 1]
mov eax, 0xcccccccd
mul edx
shr edx, 4
add esp, 0x1c
add edx, 1
mov dword [esp + 0x28], edx
je 0x4d86c6
mov edx, 1
lea eax, [esp + 0x240]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
xor eax, eax
mov ecx, 0x2c
lea esi, [esp + 0x18c]
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
shr ecx, 0x18
mov byte [esp + 0x254], cl
mov dword [esp + 0x240], eax
mov dword [esp + 0x244], eax
mov dword [esp + 0x248], eax
mov dword [esp + 0x24c], eax
mov dword [esp + 0x250], eax
mov ecx, edx
shr ecx, 8
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x256], cl
mov ecx, dword [ebp + 0x18]
test ecx, ecx
mov byte [esp + 0x255], al
mov byte [esp + 0x257], dl
mov eax, 4
jbe 0x4d8674
mov dword [esp + 0x20], ecx
lea edx, [esp + 0x2c]
push edx
push eax
lea eax, [esp + 0x25c]
push eax
call fcn.004d8240
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x264]
push 0x14
push edx
call fcn.004d82e0
add esp, 0x18
xor eax, eax
jmp 0x4d8600
movzx ecx, byte [esp + eax + 0x254]
xor byte [esp + eax + 0x240], cl
movzx edx, byte [esp + eax + 0x255]
movzx ecx, byte [esp + eax + 0x256]
xor byte [esp + eax + 0x241], dl
xor byte [esp + eax + 0x242], cl
movzx edx, byte [esp + eax + 0x257]
movzx ecx, byte [esp + eax + 0x258]
xor byte [esp + eax + 0x243], dl
xor byte [esp + eax + 0x244], cl
add eax, 5
cmp eax, 0x14
jb 0x4d8600
sub dword [esp + 0x20], 1
mov ecx, 0x2c
lea esi, [esp + 0xdc]
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
jne 0x4d85c7
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
xor ecx, ecx
lea ebx, [ebx]
cmp eax, dword [ebp + 0x20]
jae 0x4d86a2
mov edx, dword [esp + 0x14]
mov dl, byte [edx + eax]
mov esi, dword [esp + 0x24]
mov byte [eax + esi], dl
mov edx, dword [esp + 0x18]
add ecx, 1
add eax, 1
cmp ecx, 0x14
jb 0x4d8680
mov eax, 0x14
add dword [esp + 0x1c], eax
sub dword [esp + 0x14], eax
add edx, 1
lea eax, [edx - 1]
cmp eax, dword [esp + 0x28]
mov dword [esp + 0x18], edx
jb 0x4d8551
mov esi, dword [ebp + 0x20]
cmp byte [ebp + 0x28], 0
je 0x4d86f6
mov edx, dword [ebx]
mov eax, dword [edx + 0x2c]
push esi
push str.key_len
mov ecx, ebx
call eax
mov ecx, dword [esp + 0x24]
push esi
push ecx
push 0x551778
mov ecx, ebx
call fcn.00424300
mov edx, dword [ebx]
mov eax, dword [edx + 0x24]
mov ecx, ebx
call eax
push 0x4bcb40
push 1
push 0xb0
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x288], 1
call fcn.004ecde4
push 0x4bcb40
push 1
push 0xb0
lea edx, [esp + 0x198]
push edx
mov byte [esp + 0x288], 0
call fcn.004ecde4
push 0x4bcb40
push 1
push 0xb0
lea eax, [esp + 0xe8]
push eax
mov dword [esp + 0x288], 0xffffffff
call fcn.004ecde4
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.004ec47e
mov esp, ebp
pop ebp
ret