Function at 0x50c200
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], 0
mov eax, dword [edi + 0x6c]
mov dword [ebp - 0x34], eax
lea esi, [esi]
cmp dword [ebp - 0x34], 0x105
jbe 0x50c481
cmp dword [ebp - 0x34], 2
jbe 0x50c520
mov eax, dword [edi + 0x40]
mov ecx, dword [edi + 0x50]
mov esi, dword [edi + 0x64]
mov edx, dword [edi + 0x4c]
shl eax, cl
mov ecx, dword [edi + 0x30]
mov dword [ebp - 0x30], esi
movzx ebx, byte [ecx + esi + 2]
mov ecx, dword [edi + 0x2c]
and esi, ecx
mov ecx, dword [edi + 0x3c]
xor eax, ebx
and eax, edx
mov dword [edi + 0x40], eax
mov ebx, dword [edi + 0x38]
movzx edx, word [ecx + eax*2]
mov word [ebx + esi*2], dx
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x10], edx
mov word [ecx + eax*2], si
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x50c2b0
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [edi + 0x24]
sub edx, ecx
sub ebx, 0x106
cmp edx, ebx
ja 0x50c2b0
mov eax, dword [edi + 0x80]
cmp eax, 1
jle 0x50c687
cmp eax, 3
je 0x50c657
nop
lea esi, [esi]
mov eax, dword [edi + 0x58]
cmp eax, 2
jbe 0x50c530
mov edx, dword [edi + 0x68]
mov bl, al
mov ecx, dword [edi + 0x1698]
sub dword [ebp - 0x30], edx
sub bl, 3
mov eax, dword [edi + 0x169c]
mov esi, dword [edi + 0x1690]
movzx edx, word [ebp - 0x30]
mov word [eax + ecx*2], dx
dec edx
movzx eax, bl
mov byte [ecx + esi], bl
movzx ecx, dx
movzx edx, byte [eax + 0x55bdf0]
inc dword [edi + 0x1698]
movzx esi, word [edi + edx*4 + 0x490]
inc esi
cmp cx, 0xff
mov word [edi + edx*4 + 0x490], si
ja 0x50c5d0
movzx eax, byte [ecx + 0x55bef0]
cmp cx, 0xff
lea edx, [eax*4 + 0x980]
ja 0x50c5ee
movzx eax, byte [ecx + 0x55bef0]
lea esi, [eax*4 + 0x980]
movzx ebx, word [esi + edi]
inc ebx
mov word [edx + edi], bx
mov eax, dword [edi + 0x1694]
dec eax
cmp dword [edi + 0x1698], eax
mov eax, dword [edi + 0x58]
sete cl
movzx esi, cl
mov ecx, dword [edi + 0x6c]
mov dword [ebp - 0x14], esi
sub ecx, eax
cmp eax, dword [edi + 0x78]
mov dword [ebp - 0x34], ecx
mov dword [edi + 0x6c], ecx
ja 0x50c598
cmp ecx, 2
jbe 0x50c598
mov ecx, dword [edi + 0x40]
dec eax
mov edx, dword [edi + 0x50]
mov dword [edi + 0x58], eax
mov ebx, dword [edi + 0x30]
mov esi, dword [edi + 0x4c]
mov dword [ebp - 0x38], ecx
mov eax, dword [edi + 0x2c]
mov ecx, dword [edi + 0x38]
mov dword [ebp - 0x2c], edx
mov edx, dword [edi + 0x3c]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [edi + 0x64]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edx
nop
lea esi, [esi]
movzx ecx, byte [ebp - 0x2c]
lea eax, [ebx + 1]
mov edx, dword [ebp - 0x1c]
mov dword [edi + 0x64], eax
mov esi, ebx
mov ebx, eax
shl dword [ebp - 0x38], cl
mov ecx, dword [ebp - 0x38]
movzx eax, byte [edx + eax + 2]
mov edx, dword [ebp - 0x28]
xor eax, ecx
mov ecx, dword [ebp - 0x18]
and eax, edx
mov dword [ebp - 0x38], eax
mov dword [edi + 0x40], eax
and ecx, ebx
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x3c]
movzx eax, word [ecx + eax*2]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov word [ecx + edx*2], ax
mov eax, dword [edi + 0x58]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x24]
dec eax
test eax, eax
mov word [edx + ecx*2], bx
mov dword [edi + 0x58], eax
jne 0x50c3b0
lea ebx, [esi + 2]
lea esi, [esi]
mov dword [edi + 0x64], ebx
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x50c220
xor edx, edx
mov dword [esp + 0xc], edx
mov eax, dword [edi + 0x54]
xor edx, edx
sub ebx, eax
test eax, eax
mov dword [esp + 8], ebx
js 0x50c438
mov edx, dword [edi + 0x30]
add edx, eax
mov dword [esp + 4], edx
mov dword [esp], edi
call sym.__tr_flush_block
mov ebx, dword [edi]
mov eax, dword [edi + 0x64]
mov ecx, dword [ebx + 0x1c]
mov dword [edi + 0x54], eax
mov eax, dword [ebx + 0x10]
mov esi, dword [ecx + 0x14]
cmp eax, esi
jae 0x50c45b
mov esi, eax
test esi, esi
jne 0x50c600
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x50c646
mov edx, dword [edi + 0x6c]
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0x105
ja 0x50c22d
mov eax, edi
call sym._fill_window
mov ecx, dword [edi + 0x6c]
cmp ecx, 0x105
setbe bl
mov dword [ebp - 0x34], ecx
xor eax, eax
cmp dword [ebp + 0xc], 0
sete al
test ebx, eax
jne 0x50c646
test ecx, ecx
jne 0x50c22d
xor edx, edx
cmp dword [ebp + 0xc], 4
sete dl
xor eax, eax
mov dword [esp + 0xc], edx
mov edx, dword [edi + 0x54]
mov ebx, dword [edi + 0x64]
sub ebx, edx
test edx, edx
mov dword [esp + 8], ebx
js 0x50c4d4
mov eax, dword [edi + 0x30]
add eax, edx
mov dword [esp + 4], eax
mov dword [esp], edi
call sym.__tr_flush_block
mov ebx, dword [edi]
mov eax, dword [edi + 0x64]
mov ecx, dword [ebx + 0x1c]
mov dword [edi + 0x54], eax
mov eax, dword [ebx + 0x10]
mov esi, dword [ecx + 0x14]
cmp eax, esi
jae 0x50c4f7
mov esi, eax
test esi, esi
jne 0x50c749
mov edi, dword [ebx + 0x10]
test edi, edi
jne 0x50c730
xor eax, eax
cmp dword [ebp + 0xc], 4
sete al
add esp, 0x4c
pop ebx
add eax, eax
pop esi
pop edi
pop ebp
ret
mov eax, dword [edi + 0x64]
mov dword [ebp - 0x30], eax
jmp 0x50c274
mov ebx, dword [edi + 0x30]
mov esi, dword [ebp - 0x30]
mov edx, dword [edi + 0x1698]
mov eax, dword [edi + 0x169c]
movzx ecx, byte [esi + ebx]
mov esi, dword [edi + 0x1690]
mov word [eax + edx*2], 0
movzx ebx, cl
mov byte [edx + esi], cl
inc dword [edi + 0x1698]
movzx ecx, word [edi + ebx*4 + 0x8c]
inc ecx
mov word [edi + ebx*4 + 0x8c], cx
mov eax, dword [edi + 0x1694]
mov ebx, dword [edi + 0x6c]
dec eax
cmp dword [edi + 0x1698], eax
sete dl
dec ebx
mov dword [ebp - 0x34], ebx
movzx esi, dl
mov dword [edi + 0x6c], ebx
mov ebx, dword [edi + 0x64]
mov dword [ebp - 0x14], esi
inc ebx
jmp 0x50c410
mov dword [edi + 0x58], 0
mov ebx, dword [edi + 0x64]
mov ecx, dword [edi + 0x50]
mov edx, dword [edi + 0x4c]
add ebx, eax
mov eax, dword [edi + 0x30]
mov dword [edi + 0x64], ebx
movzx esi, byte [ebx + eax]
mov dword [edi + 0x40], esi
shl esi, cl
movzx ecx, byte [eax + ebx + 1]
xor esi, ecx
and esi, edx
mov dword [edi + 0x40], esi
jmp 0x50c413
mov ebx, ecx
shr ebx, 7
cmp cx, 0xff
movzx eax, byte [ebx + 0x55bff0]
lea edx, [eax*4 + 0x980]
jbe 0x50c32d
shr ecx, 7
movzx eax, byte [ecx + 0x55bff0]
jmp 0x50c334
mov edx, dword [ebx + 0xc]
mov eax, dword [ecx + 0x10]
mov dword [esp + 8], esi
mov dword [esp], edx
mov dword [esp + 4], eax
call sym._memcpy
sub dword [ebx + 0x10], esi
mov edx, dword [ebx + 0x1c]
add dword [ebx + 0xc], esi
add dword [ebx + 0x14], esi
mov ebx, dword [edx + 0x14]
mov ecx, dword [edx + 0x10]
sub ebx, esi
add ecx, esi
test ebx, ebx
mov dword [edx + 0x14], ebx
jne 0x50c650
mov esi, dword [edx + 8]
mov ebx, dword [edi]
mov dword [edx + 0x10], esi
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jne 0x50c46e
xor eax, eax
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [edx + 0x10], ecx
mov ebx, dword [edi]
jmp 0x50c63b
dec edx
jne 0x50c2b0
mov eax, dword [edi + 0x30]
mov ebx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x10]
lea edx, [eax + ebx]
lea ecx, [eax + esi]
movzx eax, byte [edx]
lea ebx, [edx + 0x102]
cmp byte [ecx], al
je 0x50c69f
mov eax, 2
mov dword [edi + 0x58], eax
jmp 0x50c2b0
mov edx, dword [ebp - 0x10]
mov eax, edi
call sym._longest_match
mov dword [edi + 0x58], eax
mov edx, dword [edi + 0x64]
mov dword [ebp - 0x30], edx
jmp 0x50c2b0
movzx eax, byte [edx + 1]
cmp byte [ecx + 1], al
jne 0x50c67a
add edx, 2
add ecx, 2
movzx eax, byte [ecx + 1]
inc edx
cmp byte [edx], al
jne 0x50c6fc
movzx eax, byte [ecx + 2]
inc edx
cmp byte [edx], al
jne 0x50c6fc
movzx eax, byte [ecx + 3]
inc edx
cmp byte [edx], al
jne 0x50c6fc
movzx eax, byte [ecx + 4]
inc edx
cmp byte [edx], al
jne 0x50c6fc
movzx eax, byte [ecx + 5]
inc edx
cmp byte [edx], al
jne 0x50c6fc
movzx eax, byte [ecx + 6]
inc edx
cmp byte [edx], al
jne 0x50c6fc
movzx eax, byte [ecx + 7]
inc edx
cmp byte [edx], al
jne 0x50c6fc
add ecx, 8
inc edx
movzx eax, byte [ecx]
cmp byte [edx], al
jne 0x50c6fc
cmp edx, ebx
jb 0x50c6ae
sub ebx, edx
mov edx, 0x102
sub edx, ebx
cmp edx, 2
mov eax, 2
jle 0x50c67f
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x10]
cmp eax, edx
mov dword [edi + 0x68], ecx
jbe 0x50c67f
mov eax, edx
mov dword [edi + 0x58], eax
jmp 0x50c2b0
cmp dword [ebp + 0xc], 4
mov eax, 3
je 0x50c648
mov eax, 1
jmp 0x50c648
mov edx, dword [ebx + 0xc]
mov eax, dword [ecx + 0x10]
mov dword [esp + 8], esi
mov dword [esp], edx
mov dword [esp + 4], eax
call sym._memcpy
sub dword [ebx + 0x10], esi
mov edx, dword [ebx + 0x1c]
add dword [ebx + 0xc], esi
add dword [ebx + 0x14], esi
mov ebx, dword [edx + 0x14]
mov ecx, dword [edx + 0x10]
sub ebx, esi
add ecx, esi
test ebx, ebx
mov dword [edx + 0x14], ebx
jne 0x50c789
mov esi, dword [edx + 8]
mov ebx, dword [edi]
mov dword [edx + 0x10], esi
jmp 0x50c4ff
mov dword [edx + 0x10], ecx
mov ebx, dword [edi]
jmp 0x50c4ff