Function at 0x404de0
Capabilities:
Encode data using xor
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4162bd
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x41f080]
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 ecx, dword [ebp + 8]
mov eax, dword [0x420170]
mov dword [ebp - 0x150], ecx
mov ecx, 0x420170
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x13c], esi
mov eax, dword [0x420170]
mov ecx, 0x420170
mov dword [ebp - 4], 0
call dword [eax + 0xc]
mov dword [ebp - 0x174], eax
add eax, 0x10
mov dword [ebp - 0x178], eax
mov eax, dword [0x420170]
mov ecx, 0x420170
mov byte [ebp - 4], 1
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x16c], edi
mov eax, dword [0x420170]
mov ecx, 0x420170
mov byte [ebp - 4], 2
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x170], ebx
mov ecx, dword [0x4201a0]
mov eax, ecx
imul eax, ecx
cdq
mov dword [ebp - 0x148], 0x13
idiv dword [ebp - 0x148]
mov byte [ebp - 4], 3
cmp edx, 2
jne 0x404f00
movsd xmm3, qword [0x418790]
movsd xmm6, qword [0x418798]
movsd xmm5, qword [0x418788]
movd xmm4, ecx
xorps xmm2, xmm2
cvtdq2pd xmm4, xmm4
lea esp, [esp]
addsd xmm2, xmm3
movapd xmm0, xmm2
mulsd xmm0, xmm2
comisd xmm0, xmm4
jbe 0x404eea
subsd xmm2, xmm3
divsd xmm3, xmm6
movapd xmm1, xmm2
mulsd xmm1, xmm2
movapd xmm0, xmm4
subsd xmm0, xmm1
comisd xmm0, xmm5
ja 0x404ed0
xor eax, eax
mov dword [ebp - 0x158], eax
call fcn.00407270
push eax
call fcn.00402fe0
push 0
push 2
mov dword [ebp - 0x144], eax
call fcn.00407270
push eax
call fcn.00402ef0
mov dword [ebp - 0x140], eax
mov eax, dword [0x4201a0]
imul eax, eax
cdq
mov ecx, 0x18
idiv ecx
cmp edx, 0xf
jne 0x404f53
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
cmp dword [ebp - 0x140], 0xffffffff
jne 0x404f6b
mov dword [ebp - 0x158], 0
jmp 0x405518
push 0x128
lea eax, [ebp - 0x138]
push 0
push eax
call fcn.00409350
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add esp, 0xc
mov dword [ebp - 0x138], 0x128
xor eax, eax
mov dword [ebp - 0x148], eax
call fcn.00407130
test al, al
jne 0x405033
mov edx, dword [0x4201a0]
xor edi, edi
mov edi, edi
mov ecx, edi
and ecx, 1
dec ecx
not ecx
and ecx, edx
mov eax, edi
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, edx
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, edx
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, edx
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, edx
sar ecx, 1
xor eax, ecx
inc edi
add edx, eax
cmp edi, 0x100
jl 0x404fb0
mov dword [0x4201a0], edx
mov eax, dword [0x4201b8]
test eax, eax
jne 0x405088
push 0x41f010
call ebx
cmp dword [0x4201b8], 0
jne 0x405078
push 0x5c
call fcn.00408057
add esp, 4
mov dword [ebp - 0x15c], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x40506d
mov ecx, eax
call fcn.00402360
jmp 0x40506f
xor eax, eax
mov byte [ebp - 4], 3
mov dword [0x4201b8], eax
push 0x41f010
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x4201b8]
mov edi, dword [ebp - 0x140]
lea ecx, [ebp - 0x138]
push ecx
push edi
push eax
call fcn.00403340
test eax, eax
je 0x40549d
mov ebx, dword [ebp - 0x144]
lea ebx, [ebx]
cmp ebx, dword [ebp - 0x130]
jne 0x40541b
mov eax, dword [0x420170]
mov ecx, 0x420170
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x154], eax
mov eax, dword [0x420170]
mov ecx, 0x420170
mov byte [ebp - 4], 5
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14c], eax
mov eax, dword [0x420170]
mov ecx, 0x420170
mov byte [ebp - 4], 6
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x164], eax
mov eax, dword [0x420170]
mov ecx, 0x420170
mov byte [ebp - 4], 7
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x154]
push eax
mov byte [ebp - 4], 8
call fcn.00406dd0
lea ecx, [ebp - 0x114]
add esp, 0x10
mov dword [ebp - 0x158], ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405157
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x13c]
call fcn.00405ef0
mov esi, dword [ebp - 0x13c]
mov edi, dword [esi - 0xc]
test edi, edi
js 0x4054e0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4051a7
push edi
lea ecx, [ebp - 0x13c]
call fcn.00405ad0
mov esi, dword [ebp - 0x13c]
lea eax, [edi + 1]
push eax
push esi
call fcn.004099de
push eax
call fcn.004043a0
add esp, 0xc
cmp edi, dword [esi - 8]
jg 0x4054e0
mov edx, dword [ebp - 0x150]
mov dword [esi - 0xc], edi
mov byte [edi + esi], 0
mov ebx, dword [edx]
cmp dword [ebx - 0xc], 0
jne 0x405289
lea edi, [esi - 0x10]
add ebx, 0xfffffff0
cmp edi, ebx
je 0x4052dd
cmp dword [ebx + 0xc], 0
jl 0x40527c
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x40527c
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
mov ecx, eax
jl 0x40521d
cmp ecx, dword [edi]
jne 0x40521d
mov eax, 1
lock xadd dword [edx], eax
jmp 0x405258
mov eax, dword [ecx]
push 1
push dword [edi + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0x15c], edx
test edx, edx
je 0x4054db
mov ecx, dword [edi + 4]
mov dword [edx + 4], ecx
mov ecx, dword [edi + 4]
inc ecx
push ecx
lea eax, [edi + 0x10]
push eax
push ecx
lea eax, [edx + 0x10]
push eax
call fcn.00409457
mov edi, dword [ebp - 0x15c]
add esp, 0x10
or eax, 0xffffffff
lea ecx, [ebx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40526f
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x150]
lea eax, [edi + 0x10]
mov dword [ecx], eax
jmp 0x4052dd
push dword [esi - 0xc]
mov ecx, edx
push esi
call fcn.00405ef0
jmp 0x4052dd
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x168]
push 0x41863c
push eax
call fcn.00404200
add esp, 0xc
mov eax, dword [eax]
mov ecx, dword [ebp - 0x150]
push dword [eax - 0xc]
mov byte [ebp - 4], 9
push eax
call fcn.004042d0
mov edx, dword [ebp - 0x168]
add edx, 0xfffffff0
mov byte [ebp - 4], 8
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4052dd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x154]
mov ebx, dword [ebp - 0x164]
mov edi, dword [ebp - 0x160]
test eax, eax
je 0x405312
cmp dword [esi - 0xc], 0
jl 0x405312
push eax
push esi
call fcn.00409b8e
add esp, 8
test eax, eax
je 0x405312
sub eax, esi
cmp eax, 0xffffffff
jne 0x40538b
mov eax, dword [ebp - 0x14c]
test eax, eax
je 0x405337
cmp dword [esi - 0xc], 0
jl 0x405337
push eax
push esi
call fcn.00409b8e
add esp, 8
test eax, eax
je 0x405337
sub eax, esi
cmp eax, 0xffffffff
jne 0x40538b
test ebx, ebx
je 0x405356
cmp dword [esi - 0xc], 0
jl 0x405356
push ebx
push esi
call fcn.00409b8e
add esp, 8
test eax, eax
je 0x405356
sub eax, esi
cmp eax, 0xffffffff
jne 0x40538b
test edi, edi
je 0x405375
cmp dword [esi - 0xc], 0
jl 0x405375
push edi
push esi
call fcn.00409b8e
add esp, 8
test eax, eax
je 0x405375
sub eax, esi
cmp eax, 0xffffffff
jne 0x40538b
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x148], 1
add edi, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4053a9
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 6
lea eax, [ebx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4053c9
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14c]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4053ec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x154]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40540f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x140]
mov ebx, dword [ebp - 0x144]
mov eax, dword [0x4201b8]
test eax, eax
jne 0x405474
push 0x41f010
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4201b8], 0
jne 0x405464
push 0x5c
call fcn.00408057
add esp, 4
mov dword [ebp - 0x15c], eax
mov byte [ebp - 4], 0xa
test eax, eax
je 0x405459
mov ecx, eax
call fcn.00402360
jmp 0x40545b
xor eax, eax
mov byte [ebp - 4], 3
mov dword [0x4201b8], eax
push 0x41f010
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x4201b8]
lea ecx, [ebp - 0x138]
push ecx
push edi
push eax
call fcn.00403450
test eax, eax
jne 0x4050b0
cmp dword [ebp - 0x148], 1
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
je 0x404f91
test edi, edi
je 0x40550c
mov eax, dword [0x4201b8]
test eax, eax
jne 0x405505
push 0x41f010
call ebx
cmp dword [0x4201b8], 0
jne 0x4054f5
push 0x5c
call fcn.00408057
add esp, 4
mov dword [ebp - 0x168], eax
mov byte [ebp - 4], 0xb
test eax, eax
je 0x4054ea
mov ecx, eax
call fcn.00402360
jmp 0x4054ec
call fcn.00405f90
push 0x80070057
call fcn.004044b0
xor eax, eax
mov byte [ebp - 4], 3
mov dword [0x4201b8], eax
push 0x41f010
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x4201b8]
push edi
push eax
call fcn.00402dc0
mov ebx, dword [ebp - 0x170]
mov edi, dword [ebp - 0x16c]
lea edx, [ebx - 0x10]
or ebx, 0xffffffff
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405538
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405555
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x174]
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405575
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x405593
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x158]
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.00408854
mov esp, ebp
pop ebp
ret