Function at 0x410060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579e80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov esi, dword [ebx]
lea edx, [eax - 0x10]
sub esi, 0x10
cmp edx, esi
je 0x4100ee
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4100e3
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x4100e3
push edx
call fcn.0040c100
add esp, 4
mov dword [ebp - 0x20], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x4100dc
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
add eax, 0x10
mov dword [ebx], eax
jmp 0x4100ee
push dword [eax - 0xc]
mov ecx, ebx
push eax
call fcn.0040c1e0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
call fcn.0043623f
mov ecx, eax
test ecx, ecx
je 0x4106ce
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x9c], eax
call fcn.0043623f
mov ecx, eax
test ecx, ecx
je 0x4106ce
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x98], eax
call fcn.0043623f
mov ecx, eax
test ecx, ecx
je 0x4106ce
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 1
call fcn.0043623f
mov ecx, eax
test ecx, ecx
je 0x4106ce
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 2
call fcn.0043623f
mov ecx, eax
test ecx, ecx
je 0x4106d8
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x40], edi
add ebx, 4
mov byte [ebp - 4], 3
push 0
push 0x40
push dword [ebp + 8]
mov eax, dword [ebx]
mov ecx, ebx
mov dword [ebp - 0x28], ebx
call dword [eax + 0x24]
test eax, eax
je 0x410606
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x34]
call eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x18], ecx
test ecx, ecx
jg 0x410226
jl 0x4101d4
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ebx
test ebx, ebx
jae 0x41022c
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx]
mov ecx, ebx
push 2
push 0xffffffffffffffff
push 0xfffffffffffffff0
call dword [eax + 0x2c]
mov eax, dword [ebx]
lea ecx, [ebp - 0x24]
push 8
xorps xmm0, xmm0
push ecx
mov ecx, ebx
movlpd qword [ebp - 0x24], xmm0
call dword [eax + 0x38]
mov eax, dword [ebx]
lea ecx, [ebp + 0xc]
not dword [ebp - 0x24]
not dword [ebp - 0x20]
push 8
push ecx
mov ecx, ebx
call dword [eax + 0x38]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
xor ebx, dword [ebp - 0x24]
xor ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp + 0x10], ecx
jmp 0x410229
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ebx
add eax, 0xffffffe8
mov dword [ebp - 0x38], eax
adc edx, 0xffffffff
mov dword [ebp - 0x34], edx
cmp ecx, edx
ja 0x4105f5
jb 0x410250
cmp ebx, eax
jae 0x4105f5
nop word [eax + eax]
mov edx, dword [ebp - 0x28]
push 0
push ecx
push ebx
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0x2c]
mov ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x90], eax
push 4
mov eax, dword [ecx]
push edx
mov dword [ebp - 0x94], ebx
call dword [eax + 0x38]
mov ecx, dword [ebp - 0x44]
mov eax, ecx
mov dword [ebp - 0x10], ecx
shr eax, 0x18
shr ecx, 0x10
xor al, cl
mov cl, byte [ebp - 0x10]
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xf]
xor byte [ebp - 0xe], al
xor al, cl
mov byte [ebp - 0xf], al
not cl
mov byte [ebp - 0x10], cl
mov eax, dword [ebp - 0x10]
add eax, 0xfffcea1c
push 1
push eax
mov dword [ebp - 0x10], eax
call fcn.0055ff89
push 1
push dword [ebp - 0x10]
mov ebx, eax
mov dword [ebp - 0x30], ebx
call fcn.0055ff89
mov ecx, eax
add esp, 0x10
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], ecx
push dword [ebp - 0x10]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0x38]
push dword [ebp - 0x10]
push dword [ebp - 0x20]
push ebx
call fcn.00559510
mov ecx, dword [ebp - 0x10]
add esp, 0xc
xor ebx, ebx
xor edx, edx
test ecx, ecx
je 0x410320
mov esi, dword [ebp - 0x30]
mov edi, ecx
nop dword [eax + eax]
mov al, byte [ebx + 0x5c04c8]
xor ecx, ecx
xor byte [edx + esi], al
inc edx
cmp ebx, 0x17
lea eax, [ebx + 1]
cmovne ecx, eax
mov ebx, ecx
cmp edx, edi
jb 0x410300
mov esi, dword [ebp - 0x2c]
mov ecx, edi
mov ebx, dword [ebp - 0x30]
xor eax, eax
add ecx, dword [ebp - 0x1c]
adc eax, dword [ebp - 0x18]
add ecx, 4
mov dword [ebp - 0x84], ecx
lea edx, [ebx + 0x44]
mov ecx, dword [ebx + 4]
adc eax, 0
mov dword [ebp - 0x80], eax
mov eax, dword [ebx]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0xac], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0xb0], ecx
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0xa8], ecx
mov ecx, dword [ebx + 0x38]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x78], ecx
mov ecx, dword [ebx + 0x40]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], ecx
test edx, edx
jne 0x410392
xor ecx, ecx
jmp 0x4103b0
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x18], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4103a0
sub ecx, dword [ebp - 0x18]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x9c]
call fcn.0040c1e0
mov eax, dword [ebp - 0x9c]
mov edx, dword [eax - 0xc]
add edx, 0x23
lea edx, [ebx + edx*2]
test edx, edx
jne 0x4103d4
xor ecx, ecx
jmp 0x4103ef
mov ecx, edx
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4103e0
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x98]
call fcn.0040c1e0
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xac]
mov edx, dword [ebp - 0xb0]
add dword [ecx + 0x38], eax
mov eax, dword [ebp - 0xa8]
adc dword [ecx + 0x3c], eax
mov eax, dword [ebp - 0xb4]
add eax, dword [ebp - 0x84]
mov dword [ebp - 0x1c], eax
adc edx, dword [ebp - 0x80]
sub eax, dword [ebp - 0x94]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x18], edx
sbb edx, dword [ebp - 0x90]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x88], edx
push eax
call fcn.0040b480
add esp, 0xc
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax - 0xc]
test ebx, ebx
js 0x4106e2
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, ebx
or ecx, edx
jge 0x41048d
push ebx
lea ecx, [ebp - 0x14]
call fcn.0040c170
mov eax, dword [ebp - 0x14]
lea ecx, [ebx + 1]
push ecx
push eax
call fcn.0055f605
mov eax, dword [ebp - 0x14]
add esp, 8
cmp ebx, dword [eax - 8]
jg 0x4106e2
mov dword [eax - 0xc], ebx
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov word [eax + ebx*2], cx
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 4], 1
mov eax, dword [ebx - 0xc]
mov dword [ebp - 0x10], eax
jle 0x4104cd
push eax
lea ecx, [ebp - 0x14]
call fcn.0040bf80
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
or edx, 0xffffffff
or eax, 0xffffffff
add ecx, ecx
je 0x410508
mov esi, ecx
nop dword [eax]
movzx ecx, byte [ebx]
lea ebx, [ebx + 1]
xor ecx, edx
shrd edx, eax, 8
movzx ecx, cl
shr eax, 8
xor edx, dword [ecx*8 + 0x5bfcc8]
xor eax, dword [ecx*8 + 0x5bfccc]
sub esi, 1
jne 0x4104e0
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x3c]
mov edi, dword [ebx + 0x68]
lea ecx, [ebx + 0x64]
cmp edi, dword [ecx + 8]
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], eax
je 0x410535
mov esi, dword [ebp - 0x10]
mov dword [esi], edx
mov edx, esi
mov esi, dword [ebp - 0x2c]
mov dword [edx + 4], eax
add dword [ecx + 4], 8
jmp 0x410541
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x10]
call fcn.00410e70
mov ecx, dword [ebx + 0x2c]
cmp ecx, dword [ebx + 0x30]
je 0x41055b
lea eax, [ebp - 0xb4]
push eax
call fcn.0040af70
add dword [ebx + 0x2c], 0x68
jmp 0x41056b
lea edx, [ebp - 0xb4]
push edx
push ecx
lea ecx, [ebx + 0x28]
call fcn.00410fd0
add dword [ebx + 0x18], 1
push dword [ebp - 0x30]
adc dword [ebx + 0x1c], 0
call fcn.0055bf43
push dword [ebp - 0x20]
call fcn.0055bf43
mov edx, dword [ebp + 0x14]
add esp, 8
mov ecx, dword [ebp + 0x18]
mov eax, edx
or eax, ecx
je 0x41059e
cmp dword [ebx + 0x1c], ecx
ja 0x4105d6
jb 0x41059e
cmp dword [ebx + 0x18], edx
jae 0x4105d6
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4105bd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x34]
ja 0x4105f5
mov ebx, dword [ebp - 0x1c]
jb 0x410250
cmp ebx, dword [ebp - 0x38]
jmp 0x410244
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4105f5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x28]
mov ecx, edx
mov eax, dword [edx]
call dword [eax + 0x50]
mov ebx, 1
jmp 0x410608
xor ebx, ebx
mov byte [ebp - 4], 2
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x410624
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
or edi, 0xffffffff
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x410642
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410660
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x98]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41067d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x9c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41069a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x4106b9
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x14
push 0x80004005
call fcn.00402c70
push 0x80004005
call fcn.00402c70
push 0x80070057
call fcn.00402c70
int3