Function at 0x5fe7a7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x5fe7b0
mov eax, dword [ebp - 4]
add esp, 0xfffffb24
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, 0xdea
call fcn.005e4f8b
push eax
call fcn.006013ab
pop ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.005dffd3
test al, al
je 0x5fe81d
mov edx, dword [ebp - 4]
cmp byte [edx + 0x660f], 0
jne 0x5fe81d
push 0
push 0
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.005d9e13
mov eax, 0xdec
call fcn.005e4f8b
push eax
call fcn.006013ab
pop ecx
xor eax, eax
jmp 0x5ff1b6
lea eax, [ebp - 0x90]
mov edx, dword [ebp - 4]
call fcn.005d95ef
mov edx, 0x444074
mov eax, dword [ebp - 4]
call fcn.005e065b
test eax, eax
je 0x5fe8ae
lea eax, [ebp - 0xac]
xor edx, edx
call fcn.005e485b
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + reloc.MSVCRT.dll___dllonexit]
lea eax, [ebp - 0xac]
mov ecx, dword [ecx + reloc.MSVCRT.dll___dllonexit]
call fcn.005e491b
lea edx, [ebp - 0x20]
lea eax, [ebp - 0xac]
mov ecx, 8
call fcn.005e4a3f
lea edx, [ebp - 0xc]
lea eax, [ebp - 0xac]
call fcn.005e49a3
lea edx, [ebp - 0x14]
lea eax, [ebp - 0xac]
call fcn.005e49f7
mov byte [ebp - 0x15], 1
lea eax, [ebp - 0xac]
mov edx, 2
call fcn.005d8e8f
jmp 0x5feb9e
mov ecx, dword [ebp - 4]
xor edx, edx
mov eax, dword [ecx + reloc.MSVCRT.dll___dllonexit]
push edx
push eax
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.005d9e13
mov edx, 0x78
mov eax, dword [ebp - 4]
call fcn.005e0603
test eax, eax
je 0x5fe913
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov ax, word [ecx + 0x661a]
cmp ax, word [edx + 0x5938]
jne 0x5fe913
mov ecx, dword [ebp - 4]
movzx eax, word [ecx + 0x594a]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + reloc.MSVCRT.dll___dllonexit]
xor edx, edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov byte [ebp - 0x15], 0
jmp 0x5feb9e
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + reloc.MSVCRT.dll___dllonexit], 0
mov dword [ecx + reloc.MSVCRT.dll___dllonexit], 0
push dword [ebp - 0x24]
push dword [ebp - 0x28]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.005d9e13
lea edx, reloc.MSVCRT.dll___dllonexit
mov ecx, 0x2000
mov eax, dword [ebp - 4]
call fcn.005d9ca7
mov edi, eax
test edi, edi
je 0x5feb51
xor esi, esi
jmp 0x5feb36
lea ebx, reloc.MSVCRT.dll___dllonexit
add ebx, esi
cmp byte [ebx + 2], 0x7a
jne 0x5fea82
push 8
push 0x444077
lea eax, [ebx + 0x22]
push eax
call fcn.0061137f
add esp, 0xc
test eax, eax
jne 0x5fea82
xor ecx, ecx
xor edx, edx
mov cl, byte [ebx + 1]
mov dl, byte [ebx]
shl ecx, 8
add dx, cx
mov ecx, 0x34
not dx
and dx, 0xffff
or eax, reloc.MSVCRT.dll___dllonexit
mov word [ebp - 0x2a], dx
lea edx, [ebx + 2]
call fcn.005e27df
and eax, 0xffff
movzx edx, word [ebp - 0x2a]
cmp eax, edx
jne 0x5feb35
xor ecx, ecx
xor eax, eax
mov cl, byte [ebx + 0x2b]
mov al, byte [ebx + 0x2a]
shl ecx, 8
xor edx, edx
add eax, ecx
mov dl, byte [ebx + 0x2c]
xor ecx, ecx
mov cl, byte [ebx + 0x2d]
shl edx, 0x10
shl ecx, 0x18
add eax, edx
add eax, ecx
xor edx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov dl, byte [ebx + 0x2f]
mov al, byte [ebx + 0x2e]
shl edx, 8
xor ecx, ecx
add eax, edx
mov cl, byte [ebx + 0x30]
xor edx, edx
mov dl, byte [ebx + 0x31]
shl ecx, 0x10
shl edx, 0x18
add eax, ecx
add eax, edx
xor edx, edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
xor edx, edx
xor eax, eax
mov dl, byte [ebx + 0x33]
mov al, byte [ebx + 0x32]
shl edx, 8
xor ecx, ecx
add eax, edx
mov cl, byte [ebx + 0x34]
xor edx, edx
mov dl, byte [ebx + 0x35]
shl ecx, 0x10
shl edx, 0x18
add eax, ecx
add eax, edx
xor edx, edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x34]
xor eax, eax
add dword [ebp - 0x14], eax
adc dword [ebp - 0x10], edx
mov eax, esi
cdq
add eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 4]
adc edx, dword [ebp - 0x24]
mov dword [ecx + reloc.MSVCRT.dll___dllonexit], eax
mov dword [ecx + reloc.MSVCRT.dll___dllonexit], edx
mov byte [ebp - 0x15], 1
jmp 0x5feb41
cmp byte [ebx + 2], 0x78
jne 0x5feb35
push 8
push 0x444080
lea eax, [ebx + 0x12]
push eax
call fcn.0061137f
add esp, 0xc
test eax, eax
jne 0x5feb35
xor ecx, ecx
xor edx, edx
mov cl, byte [ebx + 1]
mov dl, byte [ebx]
shl ecx, 8
add edx, ecx
mov ecx, 0x18
not edx
and edx, 0xffff
or eax, reloc.MSVCRT.dll___dllonexit
mov dword [ebp - 0x38], edx
lea edx, [ebx + 2]
call fcn.005e27df
and eax, 0xffff
cmp eax, dword [ebp - 0x38]
jne 0x5feb35
xor edx, edx
xor eax, eax
mov dl, byte [ebx + 0xd]
mov al, byte [ebx + 0xc]
shl edx, 8
xor ecx, ecx
add eax, edx
xor edx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov dl, byte [ebx + 0xf]
mov al, byte [ebx + 0xe]
shl edx, 8
mov cl, byte [ebx + 0x10]
add eax, edx
xor edx, edx
mov dl, byte [ebx + 0x11]
shl ecx, 0x10
shl edx, 0x18
add eax, ecx
add eax, edx
xor edx, edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov eax, esi
mov ecx, dword [ebp - 4]
cdq
add eax, dword [ebp - 0x28]
adc edx, dword [ebp - 0x24]
mov dword [ecx + reloc.MSVCRT.dll___dllonexit], eax
mov dword [ecx + reloc.MSVCRT.dll___dllonexit], edx
mov byte [ebp - 0x15], 0
jmp 0x5feb41
inc esi
lea eax, [edi - 0x32]
cmp esi, eax
jl 0x5fe96c
add dword [ebp - 0x28], reloc.MSVCRT.dll___dllonexit
adc dword [ebp - 0x24], 0
jmp 0x5fe938
mov edx, dword [ebp - 4]
cmp dword [edx + reloc.MSVCRT.dll___dllonexit], 0
jne 0x5feb9e
cmp dword [edx + reloc.MSVCRT.dll___dllonexit], 0
jne 0x5feb9e
push 0
push 0
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.005d9e13
mov eax, 0xdec
call fcn.005e4f8b
push eax
call fcn.006013ab
pop ecx
xor eax, eax
push eax
lea eax, [ebp - 0x90]
mov edx, 2
call fcn.005d9613
pop eax
jmp 0x5ff1b6
mov eax, 0xdee
call fcn.005e4f8b
push eax
call fcn.006013ab
pop ecx
push 0
push 0
push 0
push 0
or edx, reloc.MSVCRT.dll___dllonexit
mov eax, dword [ebp - 4]
call fcn.005ff727
mov edx, dword [ebp - 4]
mov ecx, dword [edx + reloc.MSVCRT.dll___dllonexit]
mov dword [ebp - 0x40], ecx
mov ecx, dword [edx + reloc.MSVCRT.dll___dllonexit]
mov dword [ebp - 0x3c], ecx
xor ecx, ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax + reloc.MSVCRT.dll___dllonexit]
mov dword [ebp - 0x48], edx
mov edx, dword [eax + reloc.MSVCRT.dll___dllonexit]
mov eax, 0x36
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x4c], ecx
cmp byte [ebp - 0x15], 0
jne 0x5febff
add eax, 0xffffffe4
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 4]
cmp byte [edx + 0x6610], 0
je 0x5fec1d
mov ecx, dword [ebp - 0x54]
not ecx
inc ecx
and ecx, 0xf
add ecx, 8
add dword [ebp - 0x54], ecx
mov eax, dword [ebp - 0x54]
cdq
add eax, dword [ebp - 0x48]
adc edx, dword [ebp - 0x44]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], edx
lea eax, reloc.MSVCRT.dll___dllonexit
call fcn.00600537
lea eax, reloc.MSVCRT.dll___dllonexit
call fcn.005d777b
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
lea ecx, reloc.MSVCRT.dll___dllonexit
lea edx, reloc.MSVCRT.dll___dllonexit
mov eax, dword [ebp - 4]
call fcn.005ff223
mov edx, dword [ebp - 0xc]
lea eax, reloc.MSVCRT.dll___dllonexit
shl edx, 9
call fcn.005da2bb
push dword [ebp - 0x22cc]
push 0
push dword [ebp - 0x22d0]
call fcn.00611107
add esp, 0xc
xor edx, edx
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.005d9e13
xor edx, edx
mov dword [ebp - 0x60], edx
jmp 0x5fed77
call fcn.005e23b3
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
sub eax, dword [ebp - 0x40]
sbb edx, dword [ebp - 0x3c]
push edx
push eax
push dword [ebp - 0x44]
push dword [ebp - 0x48]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.005ff727
mov ecx, dword [ebp - 0x60]
cmp ecx, dword [ebp - reloc.MSVCRT.dll___dllonexit]
jge 0x5fed2e
mov eax, dword [ebp - 4]
call fcn.005d9ecb
mov ecx, dword [ebp - reloc.MSVCRT.dll___dllonexit]
mov ebx, dword [ebp - 0x60]
cmp edx, dword [ecx + ebx*8 + 4]
jne 0x5fecfa
cmp eax, dword [ecx + ebx*8]
jb 0x5fed2e
jmp 0x5fecfc
jl 0x5fed2e
mov eax, dword [ebp - reloc.MSVCRT.dll___dllonexit]
mov edx, dword [ebp - 0x60]
mov eax, dword [eax + edx*4]
cdq
push edx
push eax
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.005d9e13
mov ecx, dword [ebp - reloc.MSVCRT.dll___dllonexit]
mov eax, dword [ebp - 0x60]
mov eax, dword [ecx + eax*4]
cdq
sub dword [ebp - 0x40], eax
sbb dword [ebp - 0x3c], edx
inc dword [ebp - 0x60]
lea ecx, [ebp - 0x40]
push ecx
push 1
lea edx, reloc.MSVCRT.dll___dllonexit
mov ecx, 0x200
mov eax, dword [ebp - 4]
call fcn.005ff6b5
mov edx, dword [ebp - 0x4c]
shl edx, 9
add edx, dword [ebp - reloc.MSVCRT.dll___dllonexit]
xor eax, eax
mov cl, byte [ebp + eax - 0x22ac]
xor byte [edx + eax], cl
inc eax
cmp eax, 0x200
jl 0x5fed55
inc dword [ebp - 0x4c]
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0xc]
jb 0x5fed77
xor edx, edx
mov dword [ebp - 0x4c], edx
cmp dword [ebp - 0x3c], 0
jne 0x5fed89
cmp dword [ebp - 0x40], 0
ja 0x5fecab
jmp 0x5fed8f
jg 0x5fecab
push 0
push 0x64
push 0
push 0x64
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.005ff727
push 0
push 2
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.00613da7
add eax, dword [ebp - 0x5c]
adc edx, dword [ebp - 0x58]
push edx
push eax
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.005d9e13
xor ebx, ebx
jmp 0x5fedfc
lea edx, reloc.MSVCRT.dll___dllonexit
mov ecx, 0x200
mov eax, dword [ebp - 4]
call fcn.005d9ca7
mov edx, ebx
shl edx, 9
add edx, dword [ebp - reloc.MSVCRT.dll___dllonexit]
xor eax, eax
mov cl, byte [ebp + eax - 0x22ac]
xor byte [edx + eax], cl
inc eax
cmp eax, 0x200
jl 0x5fede9
inc ebx
cmp ebx, dword [ebp - 0xc]
jb 0x5fedc9
push 0
push 0
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.005d9e13
mov ecx, dword [ebp - 0x5c]
xor edx, edx
mov dword [ebp - 0x68], ecx
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x64], ecx
xor ecx, ecx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x70], ecx
xor eax, eax
mov dword [ebp - 0x74], reloc.MSVCRT.dll___dllonexit
mov dword [ebp - 0x4c], eax
xor edx, edx
mov dword [ebp - 0x60], edx
jmp 0x5ff110
call fcn.005e23b3
mov ecx, dword [ebp - 0x60]
cmp ecx, dword [ebp - reloc.MSVCRT.dll___dllonexit]
jge 0x5feea9
mov eax, dword [ebp - 4]
call fcn.005d9ecb
mov ecx, dword [ebp - reloc.MSVCRT.dll___dllonexit]
mov ebx, dword [ebp - 0x60]
cmp edx, dword [ecx + ebx*8 + 4]
jne 0x5fee75
cmp eax, dword [ecx + ebx*8]
jb 0x5feea9
jmp 0x5fee77
jl 0x5feea9
mov eax, dword [ebp - reloc.MSVCRT.dll___dllonexit]
mov edx, dword [ebp - 0x60]
mov eax, dword [eax + edx*4]
cdq
push edx
push eax
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.005d9e13
mov ecx, dword [ebp - reloc.MSVCRT.dll___dllonexit]
mov eax, dword [ebp - 0x60]
mov eax, dword [ecx + eax*4]
cdq
sub dword [ebp - 0x40], eax
sbb dword [ebp - 0x3c], edx
inc dword [ebp - 0x60]
lea ecx, [ebp - 0x40]
push ecx
push 1
lea edx, reloc.MSVCRT.dll___dllonexit
mov ecx, 0x200
mov eax, dword [ebp - 4]
call fcn.005ff6b5
mov dword [ebp - 0x78], eax
lea edx, reloc.MSVCRT.dll___dllonexit
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 8]
call fcn.005d9aeb
lea edx, reloc.MSVCRT.dll___dllonexit
mov ecx, 0x200
or eax, reloc.MSVCRT.dll___dllonexit
call fcn.005e27df
mov edi, eax
and edi, 0xffff
lea eax, reloc.MSVCRT.dll___dllonexit
mov edx, dword [ebp - 4]
call fcn.005d95ef
push dword [ebp - 0x64]
push dword [ebp - 0x68]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.005d9e13
mov eax, dword [ebp - 4]
call fcn.005d9f67
xor ebx, ebx
mov bl, al
mov eax, dword [ebp - 4]
call fcn.005d9f67
xor edx, edx
mov dl, al
lea eax, reloc.MSVCRT.dll___dllonexit
shl edx, 8
add ebx, edx
mov edx, 2
mov dword [ebp - 0x7c], ebx
add dword [ebp - 0x68], 2
adc dword [ebp - 0x64], 0
call fcn.005d9613
cmp edi, dword [ebp - 0x7c]
jne 0x5fef61
push 1
lea ecx, [ebp - 0x74]
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x74]
call fcn.005ff1bd
jmp 0x5ff0fd
push 0x200
lea ecx, reloc.MSVCRT.dll___dllonexit
push ecx
lea eax, reloc.MSVCRT.dll___dllonexit
push eax
call fcn.00611097
add esp, 0xc
mov ebx, dword [ebp - 0x4c]
shl ebx, 9
add ebx, dword [ebp - reloc.MSVCRT.dll___dllonexit]
mov byte [ebp - 0x7d], 0
xor eax, eax
mov dl, byte [ebx + eax]
xor byte [ebp + eax - 0x22ac], dl
inc eax
cmp eax, 0x200
jl 0x5fef8e
lea edx, reloc.MSVCRT.dll___dllonexit
mov ecx, 0x200
or eax, reloc.MSVCRT.dll___dllonexit
call fcn.005e27df
mov edi, eax
and edi, 0xffff
cmp edi, dword [ebp - 0x7c]
jne 0x5fefc9
mov byte [ebp - 0x7d], 1
jmp 0x5ff090
mov esi, 1
push 0x200
lea eax, reloc.MSVCRT.dll___dllonexit
push eax
lea edx, reloc.MSVCRT.dll___dllonexit
push edx
call fcn.00611097
add esp, 0xc
xor eax, eax
jmp 0x5feff8
mov dl, byte [ebx + eax]
xor byte [ebp + eax - 0x22ac], dl
inc eax
mov ecx, esi
shl ecx, 6
cmp eax, ecx
jl 0x5fefed
lea edx, reloc.MSVCRT.dll___dllonexit
mov ecx, 0x200
or eax, reloc.MSVCRT.dll___dllonexit
call fcn.005e27df
mov edi, eax
and edi, 0xffff
cmp edi, dword [ebp - 0x7c]
jne 0x5ff027
mov byte [ebp - 0x7d], 1
jmp 0x5ff090
push 0x200
lea eax, reloc.MSVCRT.dll___dllonexit
push eax
lea edx, reloc.MSVCRT.dll___dllonexit
push edx
call fcn.00611097
add esp, 0xc
mov eax, esi
shl eax, 6
cmp eax, 0x200
jge 0x5ff060
mov dl, byte [ebx + eax]
xor byte [ebp + eax - 0x22ac], dl
inc eax
cmp eax, 0x200
jl 0x5ff04e
lea edx, reloc.MSVCRT.dll___dllonexit
mov ecx, 0x200
or eax, reloc.MSVCRT.dll___dllonexit
call fcn.005e27df
mov edi, eax
and edi, 0xffff
cmp edi, dword [ebp - 0x7c]
jne 0x5ff086
mov byte [ebp - 0x7d], 1
jmp 0x5ff090
inc esi
cmp esi, 4
jl 0x5fefce
cmp byte [ebp - 0x7d], 0
je 0x5ff0ee
push 1
lea ecx, [ebp - 0x74]
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x74]
call fcn.005ff1bd
push 0
lea ecx, [ebp - 0x74]
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x6c]
inc edx
call fcn.005ff1bd
mov eax, dword [ebp - 8]
call fcn.005d9ecb
push edx
push eax
mov eax, dword [ebp - 0x78]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.005d9e13
lea edx, reloc.MSVCRT.dll___dllonexit
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 8]
call fcn.005d9aeb
jmp 0x5ff0fd
inc dword [ebp - 0x70]
cmp dword [ebp - 0x74], 0xffffffff
jne 0x5ff0fd
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x74], eax
inc dword [ebp - 0x6c]
inc dword [ebp - 0x4c]
mov edx, dword [ebp - 0x4c]
cmp edx, dword [ebp - 0xc]
jb 0x5ff110
xor ecx, ecx
mov dword [ebp - 0x4c], ecx
cmp dword [ebp - 0x3c], 0
jne 0x5ff122
cmp dword [ebp - 0x40], 0
ja 0x5fee47
jmp 0x5ff128
jg 0x5fee47
push 1
lea ecx, [ebp - 0x74]
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x74]
call fcn.005ff1bd
push dword [ebp - 0x44]
push dword [ebp - 0x48]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.005d9e13
push closesocket
push 0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.005da207
push 0
push 0
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.005d9e13
cmp dword [ebp - 0x70], 0
mov eax, 1
jne 0x5ff174
inc eax
push eax
lea eax, reloc.MSVCRT.dll___dllonexit
mov edx, 2
call fcn.005d7827
lea eax, reloc.MSVCRT.dll___dllonexit
mov edx, 2
call fcn.005d77cf
lea eax, reloc.MSVCRT.dll___dllonexit
mov edx, 2
call fcn.00600547
lea eax, [ebp - 0x90]
mov edx, 2
call fcn.005d9613
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret