Function at 0x415ad0
Capabilities:
Access peb ldr_data
Check if file exists
Encode data using xor
Get file attributes
Get number of processors
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52515c
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x10568
call fcn.004f99a0
mov eax, dword [0x592830]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x104a8], edi
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
mov esi, dword [ebx + 0x10]
mov dword [ebp - 0x104b4], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x104b0], edx
mov dword [ebp - 0x104a4], esi
mov dword [ebp - 0x104a0], eax
mov dword [ebp - 4], 0
mov eax, 0x4bda12f7
mov dword [edi + 8], 0
mov ecx, dword [edx + 4]
sub ecx, dword [edx]
imul ecx
push 0
sar edx, 5
lea ecx, [edi + 0x30]
mov eax, edx
mov dword [edi + 0x10], 0
shr eax, 0x1f
add eax, edx
mov dword [edi + 0x98], 5
push 0x5868d4
mov dword [edi + 0xc], eax
call fcn.0040eb10
mov eax, dword [ebp - 0x104b4]
mov dword [eax], 0
mov eax, dword [ebp - 0x104a0]
mov dword [esi], 0
mov dword [eax], 0
mov eax, dword fs:[0x2c]
movups xmm0, xmmword [0x5878bc]
mov ecx, dword [eax]
mov eax, dword [0x597d9c]
movups xmmword [ebp - 0x10488], xmm0
cmp eax, dword [ecx + 4]
jle 0x415bf6
push 0x597d9c
call fcn.004f967c
add esp, 4
cmp dword [0x597d9c], 0xffffffff
jne 0x415bf6
push 0x597d9c
mov dword [0x597da0], 0
call fcn.004f9632
add esp, 4
mov byte [ebp - 0x10489], 0
nop dword [eax]
push ecx
lea eax, [ebp - 0x10488]
push eax
lea ecx, [ebp - 0x10489]
call fcn.0041e720
mov dl, byte [ebp - 0x10489]
add esp, 8
movzx ecx, dl
add dl, 1
mov byte [ebp - 0x10489], dl
mov dword [ebp + ecx*4 - 0x10478], eax
jne 0x415c00
xor ecx, ecx
mov dword [ebp - 0x104ac], ecx
cmp dword [edi + 0xc], ecx
jle 0x416350
nop dword [eax]
nop word [eax + eax]
imul eax, ecx, 0x6c
mov ecx, dword [ebp - 0x104b0]
mov dword [edi], 0
mov dword [edi + 4], 0x64
add eax, dword [ecx]
lea ecx, [ebp - 0x10060]
mov edx, eax
mov dword [ebp - 0x10498], eax
call fcn.004050f0
mov esi, eax
lea eax, [edi + 0x18]
cmp eax, esi
je 0x415cf2
mov ecx, dword [eax + 0x14]
cmp ecx, 8
jb 0x415cc0
mov eax, dword [eax]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x415cb3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4163a6
mov eax, edx
push ecx
push eax
call fcn.004f92ad
add esp, 8
lea eax, [edi + 0x18]
mov dword [eax + 0x10], 0
xor ecx, ecx
mov dword [eax + 0x14], 7
mov word [eax], cx
movups xmm0, xmmword [esi]
movups xmmword [eax], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [eax + 0x10], xmm0
xor eax, eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x1004c]
cmp ecx, 8
jb 0x415d32
mov edx, dword [ebp - 0x10060]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x415d28
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4163a6
push ecx
push edx
call fcn.004f92ad
add esp, 8
mov edx, dword [ebp - 0x10498]
lea ecx, [ebp - 0x10078]
call fcn.004050f0
mov esi, eax
mov byte [ebp - 4], 1
mov ecx, bind
mov edx, dword [ebx + 0x28]
sub ecx, edx
cmp ecx, 1
jb 0x4163ab
cmp dword [ebx + 0x2c], 8
lea ecx, [ebx + 0x18]
push 1
cmovae ecx, dword [ebx + 0x18]
push 0x586a80
push edx
push ecx
push ecx
push dword [ebp - 0x104b0]
lea ecx, [ebp - 0x10060]
call fcn.00410d70
push esi
lea eax, [ebp - 0x10060]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x104b0]
lea ecx, [ebp - 0x10048]
call fcn.00406720
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x1004c]
cmp ecx, 8
jb 0x415de3
mov edx, dword [ebp - 0x10060]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x415dd9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4163a6
push ecx
push edx
call fcn.004f92ad
add esp, 8
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10064]
cmp ecx, 8
jb 0x415e27
mov edx, dword [ebp - 0x10078]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x415e1d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4163a6
push ecx
push edx
call fcn.004f92ad
add esp, 8
xor eax, eax
mov dword [ebp - 0x10068], 0
mov word [ebp - 0x10078], ax
lea ecx, [ebp - 0x10060]
lea eax, [ebp - 0x10048]
mov dword [ebp - 0x10064], 7
push eax
call fcn.00405620
cmp dword [ebp - 0x1004c], 8
lea eax, [ebp - 0x10060]
cmovae eax, dword [ebp - 0x10060]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x415e81
mov byte [ebp - 0x10489], 1
test al, 0x10
je 0x415e88
mov byte [ebp - 0x10489], 0
mov ecx, dword [ebp - 0x1004c]
cmp ecx, 8
jb 0x415ec8
mov edx, dword [ebp - 0x10060]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x415ebe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4163a6
push ecx
push edx
call fcn.004f92ad
add esp, 8
cmp byte [ebp - 0x10489], 0
jne 0x415ef9
mov eax, dword [ebp - 0x10498]
mov edx, dword [ebp - 0x104a4]
mov byte [eax + 0x50], 1
inc dword [edx]
mov edx, dword [ebp - 0x104a0]
mov eax, dword [eax + 0x1c]
add dword [edx], eax
mov dword [edi], 0x64
jmp 0x4162fa
cmp dword [ebp - 0x10034], 8
lea eax, [ebp - 0x10048]
push 0x5876c8
cmovae eax, dword [ebp - 0x10048]
push eax
lea eax, [ebp - 0x10490]
mov dword [ebp - 0x10490], 0
push eax
call fcn.004fedc4
mov eax, dword [ebp - 0x10490]
add esp, 0xc
test eax, eax
jne 0x415f5e
mov eax, dword [ebp - 0x10498]
push 0x26
push str.Deschiderea_a_esuat_pentru_verificare.
lea ecx, [eax + 0x54]
mov word [eax + 0x50], 0x100
call fcn.0040eb10
mov eax, dword [ebp - 0x104b4]
inc dword [eax]
jmp 0x4162fa
push 2
push 0
push eax
call fcn.00506018
add esp, 0xc
push dword [ebp - 0x10490]
call fcn.00506730
add esp, 4
mov esi, eax
push dword [ebp - 0x10490]
call fcn.00506846
mov eax, dword [ebp - 0x10498]
add esp, 4
push dword [ebp - 0x10490]
cmp esi, dword [eax + 0x18]
je 0x415fca
call fcn.004fef52
mov eax, dword [ebp - 0x10498]
add esp, 4
mov ecx, dword [ebp - 0x104a4]
mov byte [eax + 0x50], 1
inc dword [ecx]
mov ecx, dword [ebp - 0x104a0]
mov eax, dword [eax + 0x1c]
add dword [ecx], eax
mov dword [edi], 0x64
jmp 0x4162fa
push 0x10000
lea eax, [ebp - 0x10018]
mov dword [edi + 4], esi
push 1
push eax
xor esi, esi
call fcn.00506a56
mov ecx, eax
add esp, 0x10
mov dword [ebp - 0x1049c], ecx
test ecx, ecx
je 0x4160f5
nop word [eax + eax]
mov eax, dword [ebp - 0x10480]
mov dl, byte [ebp - 0x1047c]
xor eax, esi
mov dword [ebp - 0x10494], eax
cmp dl, byte [ebp - 0x1047b]
je 0x416045
mov edx, eax
xor eax, eax
lea esi, [eax + 0x20]
mov ecx, edx
add eax, eax
and ecx, 1
shr edx, 1
or eax, ecx
sub esi, 1
jne 0x416023
mov ecx, dword [ebp - 0x1049c]
mov dl, byte [ebp - 0x1047c]
mov dword [ebp - 0x10494], eax
lea edi, [ebp - 0x10018]
mov esi, ecx
test dl, dl
je 0x416196
test ecx, ecx
je 0x41607f
nop dword [eax]
mov cl, byte [edi]
lea edi, [edi + 1]
xor cl, al
shr eax, 8
movzx ecx, cl
xor eax, dword [ebp + ecx*4 - 0x10478]
sub esi, 1
jne 0x416060
mov dword [ebp - 0x10494], eax
mov eax, dword [ebp - 0x10494]
mov cl, byte [ebp - 0x1047b]
cmp byte [ebp - 0x1047c], cl
je 0x4160b0
mov edx, eax
xor eax, eax
lea esi, [eax + 0x20]
nop word [eax + eax]
mov ecx, edx
add eax, eax
and ecx, 1
shr edx, 1
or eax, ecx
sub esi, 1
jne 0x4160a0
push dword [ebp - 0x10490]
mov edi, dword [ebp - 0x104a8]
mov esi, dword [ebp - 0x10480]
xor esi, eax
mov eax, dword [ebp - 0x1049c]
push 0x10000
add dword [edi], eax
add dword [edi + 0x10], eax
lea eax, [ebp - 0x10018]
push 1
push eax
call fcn.00506a56
mov ecx, eax
mov dword [ebp - 0x1049c], eax
add esp, 0x10
test ecx, ecx
jne 0x416000
push ecx
lea ecx, [ebp - 0x10578]
call fcn.004064e0
push 0
lea eax, [ebp - 0x104c8]
mov byte [ebp - 4], 6
push 8
push eax
call fcn.004f8df9
add esp, 0xc
lea ecx, [ebp - 0x10568]
mov edx, eax
call fcn.0041cc00
mov edx, eax
push esi
mov ecx, dword [edx]
mov ecx, dword [ecx + 4]
mov byte [ecx + edx + 0x40], 0x30
mov ecx, dword [edx]
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + edx + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + edx + 0x14], eax
mov ecx, edx
call fcn.004193d0
lea eax, [ebp - 0x10030]
push eax
lea ecx, [ebp - 0x10560]
call fcn.0041b4f0
cmp dword [ebp - 0x1001c], 0x10
lea edx, [ebp - 0x10030]
mov esi, dword [ebp - 0x10030]
lea edi, [ebp - 0x10030]
setae cl
cmovae edx, esi
test cl, cl
je 0x416217
mov edi, dword [ebp - 0x10020]
add edi, esi
jmp 0x416223
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x597db0]
cmp eax, dword [ecx + 4]
jle 0x4161d8
push 0x597db0
call fcn.004f967c
add esp, 4
cmp dword [0x597db0], 0xffffffff
jne 0x4161d8
push 0x597db0
mov dword [0x597db4], 0x18
call fcn.004f9632
add esp, 4
cmp dword [ebp - 0x1049c], 0
je 0x41607f
mov eax, dword [ebp - 0x10494]
nop dword [eax + eax]
mov ecx, dword [0x597db4]
lea edi, [edi + 1]
mov edx, eax
shl eax, 8
shr edx, cl
xor dl, byte [edi - 1]
movzx ecx, dl
xor eax, dword [ebp + ecx*4 - 0x10478]
sub esi, 1
jne 0x4161f0
jmp 0x416085
add edi, dword [ebp - 0x10020]
lea esi, [ebp - 0x10030]
cmp esi, edi
je 0x41624a
sub edx, esi
mov dword [ebp - 0x1049c], edx
nop
movsx eax, byte [esi]
push eax
call fcn.00505cd3
mov ecx, dword [ebp - 0x1049c]
add esp, 4
mov byte [esi + ecx], al
inc esi
cmp esi, edi
jne 0x416230
mov esi, dword [ebp - 0x10498]
lea edx, [ebp - 0x10030]
lea ecx, [esi + 0x20]
call fcn.0041cb80
mov edi, dword [ebp - 0x104a8]
test al, al
jne 0x416285
mov eax, dword [ebp - 0x104a4]
mov ecx, dword [ebp - 0x104a0]
mov byte [esi + 0x50], 1
inc dword [eax]
mov eax, dword [esi + 0x1c]
add dword [ecx], eax
mov dword [edi], 0x64
push dword [ebp - 0x10490]
call fcn.004fef52
mov byte [esi + 0x50], 0
add esp, 4
inc dword [edi + 8]
mov ecx, dword [ebp - 0x1001c]
cmp ecx, 0x10
jb 0x4162d4
mov edx, dword [ebp - 0x10030]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4162ca
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4163a6
push ecx
push edx
call fcn.004f92ad
add esp, 8
lea ecx, [ebp - 0x10578]
mov dword [ebp - 0x10020], 0
mov dword [ebp - 0x1001c], 0xf
mov byte [ebp - 0x10030], 0
call fcn.00405bb0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10034]
cmp ecx, 8
jb 0x41633a
mov edx, dword [ebp - 0x10048]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x416330
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4163a6
push ecx
push edx
call fcn.004f92ad
add esp, 8
mov ecx, dword [ebp - 0x104ac]
inc ecx
mov dword [ebp - 0x104ac], ecx
cmp ecx, dword [edi + 0xc]
jl 0x415c50
mov ecx, dword [ebx + 0x2c]
cmp ecx, 8
jb 0x416386
mov edx, dword [ebx + 0x18]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41637c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4163a6
push ecx
push edx
call fcn.004f92ad
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f929f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x28
call fcn.004febef
call fcn.00402f70
int3