Function at 0x407130
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49759d
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 0x4071f9
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 0x4076eb
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4071f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407708
push edx
push ecx
jmp 0x4076e3
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0
movq qword [ebp - 0x68], xmm0
lea eax, [ebp - 0x68]
mov word [ebp - 0x5c], 0
mov edx, 0x3441ff5f
mov dword [ebp - 0x70], 0x4b2304
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
shr eax, 7
add esi, 4
xor edx, eax
mov eax, edx
shl eax, 9
xor edx, eax
mov eax, edx
shr eax, 0xd
xor edx, eax
bswap edx
cmp esi, 0xc
jb 0x407222
lea eax, [ebp - 0x68]
mov dword [ebp - 0x74], 0x4b2304
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 0x407261
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 + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4072a0
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 0x4072c0
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 0x40765d
test eax, eax
jne 0x40730a
xor edi, edi
jmp 0x4073c3
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.00470950
mov edi, eax
add esp, 0xc
test edi, edi
je 0x40765a
mov edx, esi
mov ecx, edi
mov esi, dword [ebp - 0x18]
sub esi, 4
jb 0x407351
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x407356
add ecx, 4
add edx, 4
sub esi, 4
jae 0x407340
cmp esi, 0xfffffffc
je 0x40738a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x407383
cmp esi, 0xfffffffd
je 0x40738a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x407383
cmp esi, 0xfffffffe
je 0x40738a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x407383
cmp esi, 0xffffffff
je 0x40738a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x40738a
sbb eax, eax
or eax, 1
jmp 0x40738c
xor eax, eax
test eax, eax
je 0x4073b1
mov eax, dword [ebp - 0x74]
inc edi
sub eax, edi
push eax
push dword [ebp - 0x70]
push edi
call fcn.00470950
mov esi, dword [ebp - 0x78]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x407332
jmp 0x40765a
sub edi, dword [ebp - 0x7c]
cmp edi, 0xffffffff
je 0x40765a
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x80], 0xa
jae 0x407640
lea ecx, [eax + edi]
lea eax, [ecx + 4]
mov dword [ebp - 0x78], eax
cmp eax, edx
jae 0x407640
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 0x407717
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 0x407445
push edi
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x30], edi
push eax
call fcn.0046fcc0
mov byte [ebp + edi - 0x40], 0
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x40]
jmp 0x4074d4
cmp edi, 0x7fffffff
ja 0x407712
mov esi, edi
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x407468
mov esi, closesocket
lea ecx, [esi + 0x24]
jmp 0x407488
cmp esi, 0x16
mov eax, 0x16
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x1000
jb 0x4074a6
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x40770d
push ecx
call fcn.0046e356
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x407708
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x4074b7
test eax, eax
je 0x4074b5
push eax
call fcn.0046e356
add esp, 4
jmp 0x4074b7
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.0046fcc0
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 0x407526
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40751c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407708
push edx
push ecx
call fcn.0046e38b
add esp, 8
push 1
push 0x4b21f8
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 0x407640
mov eax, edx
sub eax, edi
mov edi, dword [ebp - 0x78]
cmp edi, eax
ja 0x407640
cmp dword [ebp - 0x18], 0
je 0x407637
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.00470950
mov edi, eax
add esp, 0xc
test edi, edi
je 0x407640
nop word [eax + eax]
mov eax, esi
mov edx, edi
mov esi, dword [ebp - 0x18]
sub esi, 4
jb 0x4075d1
nop dword [eax]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x4075d6
add edx, 4
add eax, 4
sub esi, 4
jae 0x4075c0
cmp esi, 0xfffffffc
je 0x40760a
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x407603
cmp esi, 0xfffffffd
je 0x40760a
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x407603
cmp esi, 0xfffffffe
je 0x40760a
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x407603
cmp esi, 0xffffffff
je 0x40760a
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x40760a
sbb eax, eax
or eax, 1
jmp 0x40760c
xor eax, eax
test eax, eax
je 0x40762e
mov eax, dword [ebp - 0x7c]
inc edi
sub eax, edi
push eax
push dword [ebp - 0x78]
push edi
call fcn.00470950
mov edi, eax
add esp, 0xc
test edi, edi
je 0x407640
mov esi, dword [ebp - 0x74]
jmp 0x4075b0
sub edi, dword [ebp - 0x70]
mov edx, dword [ebp - 0x84]
cmp edi, 0xffffffff
jne 0x4073c0
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x40765a
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 0x4076bc
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4076af
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407708
push ecx
push edx
call fcn.0046e38b
mov edi, dword [ebp + 8]
add esp, 8
mov eax, dword [ebp + 0x1c]
cmp eax, 0x10
jb 0x4076eb
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4076e1
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407708
push ecx
push edi
call fcn.0046e38b
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.0046e348
mov esp, ebp
pop ebp
ret
call fcn.00473154
call fcn.00401680
call fcn.00401750
call fcn.00404330
int3