Function at 0x1003c4e0
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10120130
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x1016e750]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov esi, dword [0x101726dc]
test esi, esi
jne 0x1003c539
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x101726c0
call edi
mov esi, dword [0x101726dc]
test esi, esi
jne 0x1003c539
push 0x101726c0
call edi
mov esi, dword [0x101726dc]
xor edx, edx
mov edi, dword [ebp + 0x14]
mov eax, 0x400000
mov dword [ebp - 0x18], edi
div esi
mov ebx, eax
xor eax, eax
imul ebx, esi
xor ecx, ecx
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
lea ebx, [ebx]
xor edx, edx
cmp edx, edi
jg 0x1003c570
jl 0x1003c56c
cmp ebx, esi
jae 0x1003c570
mov edi, ebx
jmp 0x1003c572
mov edi, esi
push edi
push eax
push ecx
push 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1003c66c
push edi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 6
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x1003c634
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x20]
push edi
push dword [ebp - 0x14]
mov edx, dword [ecx]
push dword [ebp - 0x10]
mov dword [ebp - 0x28], 0
push eax
push dword [ebp - 0x1c]
call dword [edx]
mov edi, dword [ebp - 0x18]
xor eax, eax
cmp edi, eax
jl 0x1003c5dd
jg 0x1003c5d7
cmp esi, ebx
jbe 0x1003c5dd
sub esi, ebx
sbb edi, eax
jmp 0x1003c5eb
xorps xmm0, xmm0
movlpd qword [ebp - 0x30], xmm0
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
add dword [ebp - 0x10], ebx
push dword [ebp - 0x1c]
adc dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test edi, edi
jl 0x1003c61b
jg 0x1003c610
test esi, esi
je 0x1003c61b
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
jmp 0x1003c560
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp + 8]
push str._CVfcEncDec::EncryptFile:_Dest_mapping_failed__LE_d
push eax
call fcn.10044f30
add esp, 0xc
mov dword [ebp - 4], 1
mov ecx, 0x1013c5ac
mov edx, dword [ebp + 8]
call fcn.10043b30
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
jmp 0x1003c6a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp + 0xc]
push str._CVfcEncDec::EncryptFile:_Src_mapping_failed__LE_d
push eax
call fcn.10044f30
add esp, 0xc
mov dword [ebp - 4], 0
mov ecx, 0x1013c5ac
mov edx, dword [ebp + 0xc]
call fcn.10043b30
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1003c6bc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10