Function at 0x41ecb0
Capabilities:
Access peb ldr_data
Encode data using xor
Get number of processors
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5262e9
mov eax, dword fs:[0]
push eax
mov eax, 0x10560
call fcn.004f9d30
mov eax, dword [0x593a34]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10498], edi
mov eax, dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
mov esi, dword [ebp + 0x28]
mov dword [ebp - 0x104a4], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x104ac], edx
mov dword [ebp - 0x104a0], esi
mov dword [ebp - 0x10494], eax
mov dword [edi + 8], 0
mov eax, 0x4bda12f7
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 [ebp - 4], 0
shr eax, 0x1f
add eax, edx
mov dword [edi + 0x10], 0
push 0x52ac20
mov dword [edi + 0xc], eax
mov dword [edi + 0x98], 5
call fcn.004142a0
mov eax, dword [ebp - 0x104a4]
lea ecx, [ebp - 0x10480]
mov dword [eax], 0
mov eax, dword [ebp - 0x10494]
mov dword [esi], 0
mov dword [eax], 0
movups xmm0, xmmword [0x52b1ec]
movups xmmword [ebp - 0x10480], xmm0
call fcn.0041d760
xor edx, edx
mov dword [ebp - 0x104a8], edx
cmp dword [edi + 0xc], edx
jle 0x41f499
mov ecx, dword [0x5981c8]
mov eax, dword fs:[0x2c]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x1049c], eax
mov ecx, dword [ebp - 0x104ac]
imul eax, edx, 0x6c
mov dword [edi], 0
mov dword [edi + 4], 0x64
add eax, dword [ecx]
push eax
mov dword [ebp - 0x10490], eax
lea eax, [ebp - 0x10058]
push eax
call fcn.0040f9d0
mov esi, eax
add esp, 8
lea eax, [edi + 0x18]
cmp eax, esi
je 0x41ee13
mov ecx, eax
call fcn.0040af00
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi + 0x18], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x28], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x10044]
cmp ecx, 8
jb 0x41ee53
mov edx, dword [ebp - 0x10058]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41ee49
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f522
push ecx
push edx
call fcn.004f9acf
add esp, 8
push dword [ebp - 0x10490]
lea eax, [ebp - 0x10070]
push eax
call fcn.0040f9d0
add esp, 8
mov esi, eax
mov edx, dword [ebp + 0x18]
mov ecx, bind
sub ecx, edx
mov byte [ebp - 4], 1
cmp ecx, 1
jb 0x41f527
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
push 1
cmovae ecx, dword [ebp + 8]
lea eax, [ebp + 8]
push 0x52aeb8
push edx
push ecx
push eax
push dword [ebp - 0x1049c]
lea ecx, [ebp - 0x10058]
call fcn.0041c210
push esi
lea eax, [ebp - 0x10058]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x1049c]
lea ecx, [ebp - 0x10028]
call fcn.0040cd80
mov ecx, dword [ebp - 0x10044]
mov byte [ebp - 4], 4
cmp ecx, 8
jb 0x41ef0b
mov edx, dword [ebp - 0x10058]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41ef01
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f522
push ecx
push edx
call fcn.004f9acf
add esp, 8
mov ecx, dword [ebp - 0x1005c]
mov byte [ebp - 4], 5
cmp ecx, 8
jb 0x41ef4f
mov edx, dword [ebp - 0x10070]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41ef45
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f522
push ecx
push edx
call fcn.004f9acf
add esp, 8
sub esp, 0x18
mov dword [ebp - 0x10060], 0
mov esi, esp
mov dword [ebp - 0x1005c], 7
xor eax, eax
lea ecx, [ebp - 0x10028]
xorps xmm0, xmm0
mov word [ebp - 0x10070], ax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
cmp dword [ebp - 0x10014], 8
mov eax, dword [ebp - 0x10018]
cmovae ecx, dword [ebp - 0x10028]
mov dword [ebp - 0x1048c], ecx
mov dword [ebp - 0x10484], eax
cmp eax, 0x7ffffffe
ja 0x41f527
mov dword [esi + 0x14], 7
cmp eax, 8
jae 0x41efc8
push 0x10
push ecx
push esi
mov dword [esi + 0x10], eax
call fcn.004fb4c0
jmp 0x41f01a
mov edi, eax
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x41efdc
mov edi, bind
jmp 0x41efe7
cmp edi, 0xa
mov eax, 0xa
cmovb edi, eax
lea eax, [edi + 1]
mov ecx, esi
push eax
call fcn.0040ac70
mov ecx, dword [ebp - 0x10484]
mov dword [esi + 0x10], ecx
mov dword [esi], eax
mov dword [esi + 0x14], edi
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x1048c]
push eax
call fcn.004fb4c0
mov edi, dword [ebp - 0x10498]
add esp, 0xc
call fcn.0040ec20
add esp, 0x18
test al, al
jne 0x41f051
mov eax, dword [ebp - 0x10490]
mov edx, dword [ebp - 0x104a0]
mov byte [eax + 0x50], 1
inc dword [edx]
mov edx, dword [ebp - 0x10494]
mov eax, dword [eax + 0x1c]
add dword [edx], eax
mov dword [edi], 0x64
jmp 0x41f43f
cmp dword [ebp - 0x10014], 8
lea eax, [ebp - 0x10028]
push 0x52bc38
cmovae eax, dword [ebp - 0x10028]
push eax
lea eax, [ebp - 0x10488]
mov dword [ebp - 0x10488], 0
push eax
call fcn.004ff694
mov eax, dword [ebp - 0x10488]
add esp, 0xc
test eax, eax
jne 0x41f0b6
mov eax, dword [ebp - 0x10490]
push 0x26
push str.Deschiderea_a_esuat_pentru_verificare.
lea ecx, [eax + 0x54]
mov word [eax + 0x50], 0x100
call fcn.004142a0
mov eax, dword [ebp - 0x104a4]
inc dword [eax]
jmp 0x41f43f
push 2
push 0
push eax
call fcn.00507537
push dword [ebp - 0x10488]
call fcn.00507c5b
push dword [ebp - 0x10488]
mov esi, eax
call fcn.00507d71
mov eax, dword [ebp - 0x10490]
add esp, 0x14
push dword [ebp - 0x10488]
cmp esi, dword [eax + 0x18]
je 0x41f11c
call fcn.004ff822
mov eax, dword [ebp - 0x10490]
add esp, 4
mov ecx, dword [ebp - 0x104a0]
mov byte [eax + 0x50], 1
inc dword [ecx]
mov ecx, dword [ebp - 0x10494]
mov eax, dword [eax + 0x1c]
add dword [ecx], eax
mov dword [edi], 0x64
jmp 0x41f43f
push 0x10000
lea eax, [ebp - 0x10010]
mov dword [edi + 4], esi
push 1
push eax
xor esi, esi
call fcn.0050709e
mov ecx, eax
add esp, 0x10
mov dword [ebp - 0x10484], ecx
test ecx, ecx
je 0x41f245
nop word [eax + eax]
mov eax, dword [ebp - 0x10478]
mov dl, byte [ebp - 0x10474]
xor eax, esi
mov dword [ebp - 0x1048c], eax
cmp dl, byte [ebp - 0x10473]
je 0x41f195
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 0x41f173
mov ecx, dword [ebp - 0x10484]
mov dl, byte [ebp - 0x10474]
mov dword [ebp - 0x1048c], eax
lea edi, [ebp - 0x10010]
mov esi, ecx
test dl, dl
je 0x41f2fe
test ecx, ecx
je 0x41f1cf
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 - 0x10470]
sub esi, 1
jne 0x41f1b0
mov dword [ebp - 0x1048c], eax
mov eax, dword [ebp - 0x1048c]
mov cl, byte [ebp - 0x10473]
cmp byte [ebp - 0x10474], cl
je 0x41f200
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 0x41f1f0
push dword [ebp - 0x10488]
mov edi, dword [ebp - 0x10498]
mov esi, dword [ebp - 0x10478]
xor esi, eax
mov eax, dword [ebp - 0x10484]
push 0x10000
add dword [edi], eax
add dword [edi + 0x10], eax
lea eax, [ebp - 0x10010]
push 1
push eax
call fcn.0050709e
mov ecx, eax
mov dword [ebp - 0x10484], eax
add esp, 0x10
test ecx, ecx
jne 0x41f150
push 1
lea ecx, [ebp - 0x1056c]
call fcn.0041c2b0
push 0
lea eax, [ebp - 0x104bc]
mov byte [ebp - 4], 6
push 8
push eax
call fcn.004f957f
mov ecx, dword [ebp - 0x1055c]
lea edx, [ebp - 0x1055c]
push dword [eax + 0xc]
mov ecx, dword [ecx + 4]
push dword [eax + 8]
mov eax, dword [eax]
add ecx, edx
push ecx
call eax
mov eax, dword [ebp - 0x1055c]
lea ecx, [ebp - 0x10548]
add esp, 0x18
mov eax, dword [eax + 4]
push esi
mov byte [ebp + eax - 0x1051c], 0x30
mov eax, dword [ebp - 0x1055c]
add ecx, dword [eax + 4]
mov eax, dword [ecx]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx], eax
lea ecx, [ebp - 0x1055c]
call fcn.0041cff0
lea eax, [ebp - 0x10040]
push eax
lea ecx, [ebp - 0x10554]
call fcn.004248c0
cmp dword [ebp - 0x1002c], 0x10
lea edx, [ebp - 0x10040]
mov esi, dword [ebp - 0x10040]
lea edi, [ebp - 0x10040]
setae cl
cmovae edx, esi
test cl, cl
je 0x41f357
mov edi, dword [ebp - 0x10030]
add edi, esi
jmp 0x41f363
mov eax, dword [ebp - 0x1049c]
mov ecx, dword [eax]
mov eax, dword [0x595388]
cmp eax, dword [ecx + 4]
jg 0x41f4ec
cmp dword [ebp - 0x10484], 0
je 0x41f1cf
mov eax, dword [ebp - 0x1048c]
nop word [eax + eax]
mov ecx, dword [0x595384]
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 - 0x10470]
sub esi, 1
jne 0x41f330
jmp 0x41f1d5
add edi, dword [ebp - 0x10030]
lea esi, [ebp - 0x10040]
cmp esi, edi
je 0x41f38a
sub edx, esi
mov dword [ebp - 0x10484], edx
nop
movsx eax, byte [esi]
push eax
call fcn.005065fb
mov ecx, dword [ebp - 0x10484]
add esp, 4
mov byte [esi + ecx], al
inc esi
cmp esi, edi
jne 0x41f370
mov esi, dword [ebp - 0x10490]
lea eax, [ebp - 0x10040]
push eax
lea eax, [esi + 0x20]
push eax
call fcn.0041a790
mov edi, dword [ebp - 0x10498]
add esp, 8
test al, al
jne 0x41f3ca
mov eax, dword [ebp - 0x104a0]
mov ecx, dword [ebp - 0x10494]
mov byte [esi + 0x50], 1
inc dword [eax]
mov eax, dword [esi + 0x1c]
add dword [ecx], eax
mov dword [edi], 0x64
push dword [ebp - 0x10488]
call fcn.004ff822
mov byte [esi + 0x50], 0
add esp, 4
inc dword [edi + 8]
mov ecx, dword [ebp - 0x1002c]
cmp ecx, 0x10
jb 0x41f419
mov edx, dword [ebp - 0x10040]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41f40f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f522
push ecx
push edx
call fcn.004f9acf
add esp, 8
lea ecx, [ebp - 0x1056c]
mov dword [ebp - 0x10030], 0
mov dword [ebp - 0x1002c], 0xf
mov byte [ebp - 0x10040], 0
call fcn.0040d720
mov ecx, dword [ebp - 0x10014]
mov byte [ebp - 4], 0
cmp ecx, 8
jb 0x41f483
mov edx, dword [ebp - 0x10028]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41f479
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f522
push ecx
push edx
call fcn.004f9acf
add esp, 8
mov edx, dword [ebp - 0x104a8]
inc edx
mov dword [ebp - 0x104a8], edx
cmp edx, dword [edi + 0xc]
jl 0x41edb1
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x41f4cf
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41f4c5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f522
push ecx
push edx
call fcn.004f9acf
add esp, 8
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.004f9a6e
mov esp, ebp
pop ebp
ret 0x28
push 0x595388
call fcn.004fa030
add esp, 4
cmp dword [0x595388], 0xffffffff
jne 0x41f317
push 0x595388
mov dword [0x595384], 0x18
call fcn.004f9fe6
add esp, 4
jmp 0x41f317
call fcn.004ff4bf
call fcn.0040ac00
int3