Function at 0x407110
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49758d
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4bd0c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x84], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x58], 0
mov byte [ebp - 4], 1
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp dword [ebp + 0x18], 0
mov dword [ebp - 0x80], 0
jne 0x4071d9
movups xmm0, xmmword [ebp - 0x58]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x48]
movq qword [esi + 0x10], xmm0
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x4076cb
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4071d2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4076e8
push edx
push ecx
jmp 0x4076c3
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0
movq qword [ebp - 0x68], xmm0
lea eax, [ebp - 0x68]
mov word [ebp - 0x5c], 0
mov edx, 0xdd5e4a3d
mov dword [ebp - 0x70], 0x4b22fc
xor esi, esi
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + esi]
mov eax, dword [ebp - 0x74]
xor ecx, edx
mov dword [eax + esi], ecx
mov eax, edx
shl eax, 0xd
add esi, 4
xor edx, eax
mov eax, edx
shr eax, 0x11
xor edx, eax
mov eax, edx
shl eax, 5
xor edx, eax
rol edx, 2
cmp esi, 0xc
jb 0x407202
lea eax, [ebp - 0x68]
mov dword [ebp - 0x74], 0x4b22fc
mov dword [ebp - 0x70], eax
mov esi, 0xc
mov eax, dword [ebp - 0x74]
mov cl, byte [eax + esi]
mov eax, dword [ebp - 0x70]
xor cl, dl
shr edx, 8
mov byte [eax + esi], cl
inc esi
cmp esi, 0xe
jb 0x407242
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 5
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407280
sub ecx, edx
lea eax, [ebp - 0x68]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00403e10
mov ecx, 0xe
lea eax, [ebp - 0x68]
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4072a0
cmp dword [ebp - 0x14], 0x10
lea esi, [ebp - 0x28]
mov edi, dword [ebp + 8]
lea ecx, [ebp + 8]
cmovae esi, dword [ebp - 0x28]
setae byte [ebp - 0x6a]
cmp dword [ebp + 0x1c], 0x10
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x18]
cmovae ecx, edi
setae byte [ebp - 0x69]
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x7c], ecx
cmp eax, edx
ja 0x40763d
test eax, eax
jne 0x4072ea
xor edi, edi
jmp 0x4073a3
mov eax, ecx
inc edx
sub eax, dword [ebp - 0x18]
add eax, edx
movsx edx, byte [esi]
mov dword [ebp - 0x74], eax
sub eax, ecx
push eax
push edx
push ecx
mov dword [ebp - 0x70], edx
call fcn.00470940
mov edi, eax
add esp, 0xc
test edi, edi
je 0x40763a
mov edx, esi
mov ecx, edi
mov esi, dword [ebp - 0x18]
sub esi, 4
jb 0x407331
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x407336
add ecx, 4
add edx, 4
sub esi, 4
jae 0x407320
cmp esi, 0xfffffffc
je 0x40736a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x407363
cmp esi, 0xfffffffd
je 0x40736a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x407363
cmp esi, 0xfffffffe
je 0x40736a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x407363
cmp esi, 0xffffffff
je 0x40736a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x40736a
sbb eax, eax
or eax, 1
jmp 0x40736c
xor eax, eax
test eax, eax
je 0x407391
mov eax, dword [ebp - 0x74]
inc edi
sub eax, edi
push eax
push dword [ebp - 0x70]
push edi
call fcn.00470940
mov esi, dword [ebp - 0x78]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x407312
jmp 0x40763a
sub edi, dword [ebp - 0x7c]
cmp edi, 0xffffffff
je 0x40763a
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x80], 0xa
jae 0x407620
lea ecx, [eax + edi]
lea eax, [ecx + 4]
mov dword [ebp - 0x78], eax
cmp eax, edx
jae 0x407620
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 8
cmp edx, ecx
jb 0x4076f7
sub edx, ecx
lea eax, [ebp + 8]
mov edi, 4
cmp edx, edi
cmovb edi, edx
cmp byte [ebp - 0x69], 0
cmovne eax, dword [ebp + 8]
add eax, ecx
mov dword [ebp - 0x7c], eax
cmp edi, 0xf
ja 0x407425
push edi
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x30], edi
push eax
call fcn.0046fcb0
mov byte [ebp + edi - 0x40], 0
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x40]
jmp 0x4074b4
cmp edi, 0x7fffffff
ja 0x4076f2
mov esi, edi
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x407448
mov esi, closesocket
lea ecx, [esi + 0x24]
jmp 0x407468
cmp esi, 0x16
mov eax, 0x16
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x1000
jb 0x407486
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4076ed
push ecx
call fcn.0046e346
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4076e8
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x407497
test eax, eax
je 0x407495
push eax
call fcn.0046e346
add esp, 4
jmp 0x407497
xor eax, eax
push edi
push dword [ebp - 0x7c]
mov dword [ebp - 0x70], eax
push eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], esi
call fcn.0046fcb0
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x40], ecx
mov byte [ecx + edi], 0
add esp, 0xc
cmp esi, 0x10
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x40]
cmovae eax, ecx
lea ecx, [ebp - 0x58]
push edi
push eax
call fcn.00403f00
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x407506
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4074fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4076e8
push edx
push ecx
call fcn.0046e37b
add esp, 8
push 1
push 0x4b21fc
lea ecx, [ebp - 0x58]
call fcn.00403f00
inc dword [ebp - 0x80]
lea esi, [ebp - 0x28]
cmp byte [ebp - 0x6a], 0
lea ecx, [ebp + 8]
mov edx, dword [ebp + 0x18]
cmovne esi, dword [ebp - 0x28]
cmp dword [ebp + 0x1c], 0x10
mov edi, dword [ebp - 0x18]
cmovae ecx, dword [ebp + 8]
setae byte [ebp - 0x69]
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x84], edx
cmp edi, edx
ja 0x407620
mov eax, edx
sub eax, edi
mov edi, dword [ebp - 0x78]
cmp edi, eax
ja 0x407620
cmp dword [ebp - 0x18], 0
je 0x407617
movsx edx, byte [esi]
inc eax
add eax, ecx
mov dword [ebp - 0x78], edx
add ecx, edi
mov dword [ebp - 0x7c], eax
sub eax, ecx
push eax
push edx
push ecx
call fcn.00470940
mov edi, eax
add esp, 0xc
test edi, edi
je 0x407620
nop word [eax + eax]
mov eax, esi
mov edx, edi
mov esi, dword [ebp - 0x18]
sub esi, 4
jb 0x4075b1
nop dword [eax]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x4075b6
add edx, 4
add eax, 4
sub esi, 4
jae 0x4075a0
cmp esi, 0xfffffffc
je 0x4075ea
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x4075e3
cmp esi, 0xfffffffd
je 0x4075ea
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x4075e3
cmp esi, 0xfffffffe
je 0x4075ea
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x4075e3
cmp esi, 0xffffffff
je 0x4075ea
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x4075ea
sbb eax, eax
or eax, 1
jmp 0x4075ec
xor eax, eax
test eax, eax
je 0x40760e
mov eax, dword [ebp - 0x7c]
inc edi
sub eax, edi
push eax
push dword [ebp - 0x78]
push edi
call fcn.00470940
mov edi, eax
add esp, 0xc
test edi, edi
je 0x407620
mov esi, dword [ebp - 0x74]
jmp 0x407590
sub edi, dword [ebp - 0x70]
mov edx, dword [ebp - 0x84]
cmp edi, 0xffffffff
jne 0x4073a0
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x40763a
dec ecx
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 0x10
mov dword [ebp - 0x48], ecx
cmovae eax, dword [ebp - 0x58]
mov byte [eax + ecx], 0
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x88]
movups xmm0, xmmword [ebp - 0x58]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x48]
movq qword [esi + 0x10], xmm0
cmp byte [ebp - 0x6a], 0
je 0x40769c
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40768f
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4076e8
push ecx
push edx
call fcn.0046e37b
mov edi, dword [ebp + 8]
add esp, 8
mov eax, dword [ebp + 0x1c]
cmp eax, 0x10
jb 0x4076cb
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4076c1
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4076e8
push ecx
push edi
call fcn.0046e37b
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046e338
mov esp, ebp
pop ebp
ret
call fcn.00473144
call fcn.00401680
call fcn.00401750
call fcn.00404330
int3