Function at 0x4df5b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573238
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x5f2100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x20], ebx
call fcn.00550e80
mov dword [ebp - 4], 0
call fcn.0055057e
mov eax, dword [eax + 4]
add eax, 0x220
push 0x598f18
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004092e0
add esp, 0xc
push 0
push 2
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call dword [case.0x493226.0]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00550e7a
test eax, eax
jne 0x4df6a8
push eax
push 0x1002
lea ecx, [ebp - 0x1c]
call dword [case.0x493226.0]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00550e7a
test eax, eax
jne 0x4df6a8
lea ecx, [ebp - 0x20]
call dword [0x5854fc]
push 0xf7b6
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call dword [0x585434]
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.00409100
add esp, 0xc
push 0x10
mov ecx, eax
mov byte [ebp - 4], 3
call dword [case.0x493226.0]
push eax
call fcn.004aa310
add esp, 8
lea ecx, [ebp - 0x24]
call dword [0x585524]
lea ecx, [ebp - 0x20]
call dword [0x585524]
jmp 0x4dfac1
push 0
push 0x1000
push 0
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x88]
call fcn.00550938
mov edx, dword [ebx + 0xb8a0]
mov edx, dword [edx + 8]
lea ecx, [ebx + 0xb8a0]
lea eax, [ebp - 0x88]
push eax
mov byte [ebp - 4], 4
call edx
lea ecx, [ebp - 0x88]
call fcn.0055092c
lea ecx, [ebp - 0x3c]
call fcn.00550e6e
lea ecx, [ebx + 0xb85c]
call dword [0x58552c]
mov edi, eax
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0055053c
mov esi, eax
lea eax, [edi + edi]
mov dword [ebp - 0x24], eax
add eax, 2
push eax
push 0
push esi
call fcn.00553048
add esp, 0x10
lea ecx, [ebx + 0xb85c]
call dword [case.0x493226.0]
mov ecx, esi
sub ecx, eax
lea ecx, [ecx]
movzx edx, word [eax]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x4df740
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.0055057e
mov eax, dword [eax + 4]
cmp dword [eax + 0x218], 0
jne 0x4df79f
call fcn.0055057e
mov ecx, dword [eax + 4]
lea ecx, [ecx + 0xfc]
call fcn.00553e50
mov dword [ebp - 0x18], eax
xor edx, edx
xor eax, eax
test edi, edi
jle 0x4df799
movzx ecx, word [ebp + edx*2 - 0x18]
jmp 0x4df790
xor word [esi + eax*2], cx
inc eax
cmp eax, edi
jl 0x4df790
inc edx
cmp edx, 4
jl 0x4df780
mov edi, dword [ebp - 0x20]
lea ecx, [edi + 0xb85c]
call dword [0x5854d0]
test al, al
jne 0x4df81d
lea ecx, [edi + 0xb85c]
call dword [0x5854d0]
test al, al
jne 0x4df986
mov eax, dword [ebp - 0x24]
mov ecx, 0x5f730c
mov edi, esi
cmp eax, 4
jb 0x4df7ed
mov edx, dword [edi]
cmp edx, dword [ecx]
jne 0x4df986
sub eax, 4
add ecx, 4
add edi, 4
cmp eax, 4
jae 0x4df7d5
test eax, eax
je 0x4df81d
mov dl, byte [ecx]
cmp dl, byte [edi]
jne 0x4df986
cmp eax, 1
jbe 0x4df81d
mov dl, byte [ecx + 1]
cmp dl, byte [edi + 1]
jne 0x4df986
cmp eax, 2
jbe 0x4df81d
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x4df986
call fcn.0055057e
mov eax, dword [eax + 4]
push 0x598f3c
add eax, 0x220
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.004092e0
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call dword [0x585548]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call dword [0x585524]
push 0
push 0x1002
lea ecx, [ebp - 0x1c]
call dword [case.0x493226.0]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00550e7a
test eax, eax
jne 0x4df8d1
lea ecx, [ebp - 0x20]
call dword [0x5854fc]
push 0xf7b6
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call dword [0x585434]
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00409100
add esp, 0xc
push 0x10
mov ecx, eax
mov byte [ebp - 4], 7
call dword [case.0x493226.0]
push eax
call fcn.004aa310
add esp, 8
lea ecx, [ebp - 0x24]
call dword [0x585524]
lea ecx, [ebp - 0x20]
call dword [0x585524]
jmp 0x4dfab2
push 0
push 0x1000
push 0
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0xd0]
call fcn.00550938
mov edi, dword [ebp - 0x20]
mov eax, dword [edi + 0xb9a4]
mov eax, dword [eax + 8]
lea ecx, [edi + 0xb9a4]
lea edx, [ebp - 0xd0]
mov bl, 8
push edx
mov byte [ebp - 4], bl
call eax
lea ecx, [ebp - 0xd0]
call fcn.0055092c
lea ecx, [ebp - 0x3c]
call fcn.00550e6e
push ecx
lea eax, [edi + 0xb85c]
mov ecx, esp
mov dword [ebp - 0x40], esp
push eax
call dword [0x585510]
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x5f730c
mov byte [ebp - 4], 9
call dword [0x585518]
push ecx
lea edx, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x28], esp
push edx
mov byte [ebp - 4], 0xa
call dword [0x585510]
push ecx
lea eax, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
mov byte [ebp - 4], 0xb
call dword [0x585510]
mov byte [ebp - 4], bl
call fcn.004de9d0
add esp, 0x10
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 4
call fcn.00550926
push esi
call fcn.00550530
add esp, 4
call fcn.0055057e
mov eax, dword [eax + 4]
push 0x598f60
add eax, 0x220
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.004092e0
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xc
call dword [0x585548]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call dword [0x585524]
push 0
push 2
lea ecx, [ebp - 0x1c]
call dword [case.0x493226.0]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00550e7a
test eax, eax
jne 0x4dfa59
push eax
push 0x1002
lea ecx, [ebp - 0x1c]
call dword [case.0x493226.0]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00550e7a
test eax, eax
jne 0x4dfa59
lea ecx, [ebp - 0x28]
call dword [0x5854fc]
push 0xf7b6
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xd
call dword [0x585434]
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.00409100
add esp, 0xc
push 0x10
mov ecx, eax
mov byte [ebp - 4], 0xe
call dword [case.0x493226.0]
push eax
call fcn.004aa310
add esp, 8
lea ecx, [ebp - 0x40]
call dword [0x585524]
lea ecx, [ebp - 0x28]
call dword [0x585524]
jmp 0x4dfab2
push 0
push 0x1000
push 0
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x118]
call fcn.00550938
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 0xb8c0]
mov eax, dword [eax + 8]
add ecx, 0xb8c0
lea edx, [ebp - 0x118]
push edx
mov byte [ebp - 4], 0xf
call eax
lea ecx, [ebp - 0x118]
call fcn.0055092c
lea ecx, [ebp - 0x3c]
call fcn.00550e6e
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.00550926
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 1
call fcn.00550926
lea ecx, [ebp - 0x1c]
call dword [0x585524]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.00550e56
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00553038
mov esp, ebp
pop ebp
ret