joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f270
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1a3c
call fcn.004f7350
mov eax, dword [0x639ac0]
xor eax, esp
mov dword [esp + 0x1a38], eax
push ebx
push esi
push edi
push 0x1a30
mov esi, ecx
push 0
push esi
call fcn.004ff750
mov ecx, 0x1b8ead8
add esp, 0xc
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f2b0
sub ecx, edx
sar ecx, 1
jne 0x42f2dd
push str.DiskCheckup.cfg
push 0x1b8ede8
push 0x5be5d4
push 0x1b8ead8
call fcn.00424a70
add esp, 0x10
push 0
push 0x1b8ead8
call fcn.0052ad4b
add esp, 8
test eax, eax
je 0x42f38f
mov eax, dword [str.PMDC]
movss xmm0, dword [0x5c4c30]
mov dword [esi], eax
mov dword [esi + 4], 1
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0x42700000
call fcn.0042f510
movss dword [esi + 0x10], xmm0
lea eax, [esi + 0x21]
mov byte [esi + 0x18], 0
mov ecx, 0x64
mov dword [esi + 0x1c], 0xa
mov dword [esi + 0x1a2c], 2
mov byte [esi + 0x1921], 0
mov byte [esi + 0x1961], 0
mov dword [esi + 0x19a4], 0x19
mov byte [esi + 0x1a29], 0
nop
mov byte [eax], 0
lea eax, [eax + 0x40]
sub ecx, 1
jne 0x42f360
mov word [esi + 0x19a8], cx
xor eax, eax
mov byte [esi + 0x19e9], cl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a38]
xor ecx, esp
call fcn.004f66cd
mov esp, ebp
pop ebp
ret
push 0x5bf29c
push 0x1b8ead8
call fcn.0052e599
mov edi, eax
add esp, 8
test edi, edi
jne 0x42f3e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Failed_to_open_configuration_file_for_reading.
push 0x200
push 0x1b9eff8
mov esi, eax
call fcn.00424aa0
add esp, 0xc
mov ecx, 0x1b9eff8
call fcn.00437fc0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a38]
xor ecx, esp
call fcn.004f66cd
mov esp, ebp
pop ebp
ret
push 0x1a30
lea eax, [esp + 0x14]
push 0
push eax
call fcn.004ff750
add esp, 0xc
lea eax, [esp + 0x10]
push edi
push 1
push 0x1a30
push eax
call fcn.0052fa66
mov edx, 0x7b005f
lea ecx, [esp + 0x19c9]
mov ebx, eax
call fcn.00431920
mov edx, 0x19f7c8
lea ecx, [esp + 0x1a09]
call fcn.00431920
push 0x1a30
lea eax, [esp + 0x24]
push eax
push esi
call fcn.004fec50
add esp, 0x1c
cmp ebx, 1
je 0x42f4e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.Failed_to_read_from_configuration_file__default_settings_will_be_used_instead.
push 0x200
push 0x1b9eff8
mov ebx, eax
call fcn.00424aa0
add esp, 0xc
mov ecx, 0x1b9eff8
call fcn.00437fc0
push 0x1a30
push 0
push esi
call fcn.004ff750
mov eax, dword [str.PMDC]
add esp, 0xc
movss xmm0, dword [0x5c4c30]
mov dword [esi], eax
mov dword [esi + 4], 1
mov dword [esi + 0xc], 0x42700000
call fcn.0042f510
movss dword [esi + 0x10], xmm0
lea eax, [esi + 0x21]
mov dword [esi + 0x1c], 0xa
mov ecx, 0x64
mov dword [esi + 0x1a2c], 2
mov dword [esi + 0x19a4], 0x19
mov byte [eax], 0
lea eax, [eax + 0x40]
sub ecx, 1
jne 0x42f4d0
mov word [esi + 0x19a8], cx
mov byte [esi + 0x19e9], cl
push edi
call fcn.0052767d
mov ecx, dword [esp + 0x1a48]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f66cd
mov esp, ebp
pop ebp
ret
Function at 0x42fc40
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x639ac0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 1
push eax
mov ebx, ecx
mov esi, edx
push 0x8004667e
push ebx
or edi, 0xffffffff
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0x10
push esi
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, edi
jne 0x42fce8
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
jne 0x42fcea
lea eax, [ebp - 0x420]
mov dword [ebp - 0x414], 1
push eax
push 0
lea eax, [ebp - 0x414]
mov dword [ebp - 0x410], ebx
push eax
push 0
push 0
mov dword [ebp - 0x420], 5
mov dword [ebp - 0x41c], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x42fce8
jne 0x42fce2
mov edi, 0x274c
jmp 0x42fcea
call esi
mov edi, eax
jmp 0x42fcea
xor edi, edi
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 0
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f66cd
mov esp, ebp
pop ebp
ret
Function at 0x438a70
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565300
mov eax, dword fs:[0]
push eax
mov eax, 0x2118
call fcn.004f7350
mov eax, dword [0x639ac0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edx, edx
mov dword [ecx], vtable.CSMARTInfo.0
mov dword [ebp - 0x2124], edx
lea esi, [ecx + 0xf3324]
lea edi, [ecx + 0x1c]
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x438ad2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x2124]
mov dword [edi], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x438bbb
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x438bad
push dword [ebp - 0x2124]
lea eax, [ebp - 0x2110]
push str.Terminating_GetSMARTInfoThread_for_Device__d
push eax
call fcn.00438870
add esp, 0xc
lea eax, [ebp - 0x2120]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x40
lea eax, [ebp - 0x90]
push eax
push str.dd_MMM_yyyy
lea eax, [ebp - 0x2120]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
push 0x40
lea eax, [ebp - 0x110]
push eax
push str.HH:mm:ss
lea eax, [ebp - 0x2120]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
call fcn.00455b90
test al, al
je 0x438ba3
push 0x1000
lea eax, [ebp - 0x1110]
push 0
push eax
call fcn.004ff750
lea eax, [ebp - 0x2110]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x1110]
push str.SysInfoDll:__s__s____s
push eax
call fcn.00438870
lea eax, [ebp - 0x1110]
push eax
call fcn.00455a00
add esp, 0x24
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x2124]
xorps xmm0, xmm0
inc edx
movups xmmword [esi], xmm0
add edi, 4
mov dword [ebp - 0x2124], edx
movq qword [esi + 0x10], xmm0
mov dword [esi + 0x18], 0
add esi, 0x1c
cmp edx, 0x64
jl 0x438ab8
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.004f66cd
mov esp, ebp
pop ebp
ret
Function at 0x43db40
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20ac
call fcn.004f7350
mov eax, dword [0x639ac0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x18]
or ebx, 0xffffffff
push edi
mov edi, dword [ebp + 8]
push 0x1030
mov dword [ebp - 0x20a0], eax
lea eax, [ebp - 0x2098]
push 0
push eax
mov dword [ebp - 0x209c], 0
call fcn.004ff750
push str.Enter_DoStorageQueryCmd_NVMe
call fcn.004397c0
movzx eax, byte [ebp + 0x10]
add esp, 0x10
mov ecx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x2090], 3
sub eax, 0xd0
je 0x43dbd3
sub eax, 0x1c
jne 0x43dc97
mov dword [ebp - 0x208c], 1
mov dword [ebp - 0x2088], 1
jmp 0x43dc8d
push 0
lea eax, [ebp - 0x209c]
push eax
push 8
lea eax, [ebp - 0x20ac]
push eax
push 0
push 0
push 0x41018
push edi
call ecx
test eax, eax
jne 0x43dc15
push str.Exit_DoStorageQueryCmd_NVMe__IOCTL_SCSI_GET_ADDRESS_failed_
call fcn.004397c0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f66cd
mov esp, ebp
pop ebp
ret
movzx eax, byte [ebp - 0x20a8]
push eax
lea eax, [ebp - 0x68]
push str..SCSI_d:
push eax
call fcn.004387e0
add esp, 0xc
lea eax, [ebp - 0x68]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x43dc71
push str.Exit_DoStorageQueryCmd_NVMe__CreateFile_failed_
call fcn.004397c0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f66cd
mov esp, ebp
pop ebp
ret
mov ecx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, ebx
mov dword [ebp - 0x208c], 2
mov dword [ebp - 0x2088], 2
mov dword [ebp - 0x2084], 0
push 0
lea eax, [ebp - 0x209c]
mov dword [ebp - 0x2080], 0x28
push eax
push 0x1030
lea eax, [ebp - 0x2098]
mov dword [ebp - 0x207c], 0x1000
push eax
push 0x1030
push eax
push 0x2d1400
push edi
mov dword [ebp - 0x2098], 0x31
mov dword [ebp - 0x2094], 0
mov dword [ebp - 0x209c], 0
call ecx
mov edi, eax
mov dword [ebp - 0x20a4], edi
test edi, edi
jne 0x43dd1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1068]
push str.DoStorageQueryCmd_NVMe__1___Err_d_
push eax
call fcn.00438870
lea eax, [ebp - 0x1068]
push eax
call fcn.004397c0
add esp, 0x10
test esi, esi
je 0x43dd52
mov eax, dword [ebp - 0x20a0]
test eax, eax
je 0x43dd4c
cmp dword [esi], 0x200
jb 0x43dd4c
mov ecx, 0x80
lea esi, [ebp - 0x2068]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x20a4]
jmp 0x43dd52
mov dword [esi], 0
push str.Exit_DoStorageQueryCmd_NVMe
call fcn.004397c0
add esp, 4
cmp ebx, 0xffffffff
je 0x43dd6b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f66cd
mov esp, ebp
pop ebp
ret
Function at 0x442db0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004f7350
mov eax, dword [0x639ac0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
movsx esi, byte [ebp + 8]
mov dword [ebp - 0x1008], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x100c], eax
lea ebx, [esi - 0x41]
call fcn.00455b90
test al, al
je 0x442e0d
push esi
lea eax, [ebp - 0x1004]
push str.Enter_GetPhysicalDeviceID__c:
push eax
call fcn.00438870
lea eax, [ebp - 0x1004]
push eax
call fcn.004397c0
add esp, 0x10
imul esi, ebx, 0x1a0
mov eax, dword [esi + 0x63c698]
lea edi, [esi + 0x63c698]
test eax, eax
je 0x442e63
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x442e5b
push ebx
lea eax, [ebp - 0x1004]
push str.Terminating_GetPhysicalDeviceIDThread_for_Drive__d
push eax
call fcn.00438870
lea eax, [ebp - 0x1004]
push eax
call fcn.004397c0
add esp, 0x10
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1a0
push 0
push edi
call fcn.004ff750
mov al, byte [ebp + 8]
add esp, 0xc
mov byte [esi + 0x63c69c], al
mov dword [esi + 0x63c6a0], 0x64
push 0
push 0
push edi
push 0x443150
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi], eax
test eax, eax
je 0x442f30
push dword [0x5d1004]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x442f29
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x63c6a0]
mov dword [edi], 0
test eax, eax
js 0x442eda
cmp eax, 0x64
jge 0x442eda
mov ecx, dword [ebp - 0x1008]
mov dword [ecx], eax
cmp dword [esi + 0x63c834], 0
jne 0x442f12
xor ecx, ecx
cmp dword [esi + 0x63c6a0], ecx
jle 0x442f12
mov edx, dword [ebp + 0x14]
mov edi, dword [ebp - 0x100c]
cmp ecx, edx
jae 0x442f12
imul eax, ebx, 0x68
add eax, ecx
mov eax, dword [eax*4 + 0x63c6a4]
mov dword [edi + ecx*4], eax
inc ecx
cmp ecx, dword [esi + 0x63c6a0]
jl 0x442ef6
mov eax, dword [esi + 0x63c834]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f66cd
mov esp, ebp
pop ebp
ret
push str.GetPhysicalDeviceIDThread_timed_out.
jmp 0x442f35
push str.CreateThread_GetPhysicalDeviceIDThread__failed.
call fcn.004397c0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
or eax, 0xffffffff
pop edi
pop esi
pop ebx
call fcn.004f66cd
mov esp, ebp
pop ebp
ret
Function at 0x44d2d0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x109c
call fcn.004f7350
mov eax, dword [0x639ac0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [section..data]
push edi
mov edi, dword [ebp + 8]
test ecx, ecx
jne 0x44d3e7
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x84]
push esi
add ebx, 0x41
xor esi, esi
push ebx
push str._c:_
push eax
call fcn.00438810
add esp, 0xc
lea eax, [ebp - 0x1094]
push eax
lea eax, [ebp - 0x108c]
push eax
lea eax, [ebp - 0x109c]
push eax
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x44d398
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 0xc]
call esi
push eax
call fcn.0043ddd0
add esp, 4
push eax
call esi
push eax
lea eax, [ebp - 0x1084]
push str.GetDiskFreeSpaceEx_failed_with:__d___s.__iDriveNum___d____s_
push eax
call fcn.00438870
lea eax, [ebp - 0x1084]
push eax
call fcn.004397c0
add esp, 0x1c
mov dword [edi], 0xffffffff
call esi
mov esi, eax
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f66cd
mov esp, ebp
pop ebp
ret
push 0
push 0x100000
push dword [ebp - 0x1088]
push dword [ebp - 0x108c]
call fcn.004f7260
push eax
push ebx
mov dword [edi], eax
lea eax, [ebp - 0x1084]
push str.GetDiskFreeSpaceEx_succeeded.__Volume___c:__capacity:__u_MB
push eax
call fcn.00438870
lea eax, [ebp - 0x1084]
push eax
call fcn.004397c0
add esp, 0x14
mov eax, esi
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f66cd
mov esp, ebp
pop ebp
ret
cmp ecx, 0xffffd8ef
mov edx, str.SysInfoDll_Smart_Init_has_error
mov eax, str.SysInfoDll_Smart_Init_not_called
cmovne eax, edx
push eax
push 0x571838
lea eax, [ebp - 0x1084]
push str._s_error.__Error:___s_
push eax
call fcn.00438870
lea eax, [ebp - 0x1084]
push eax
call fcn.004397c0
mov ecx, dword [ebp - 4]
add esp, 0x14
mov eax, dword [section..data]
xor ecx, ebp
pop edi
call fcn.004f66cd
mov esp, ebp
pop ebp
ret
Function at 0x4556a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call fcn.00455b90
test al, al
je 0x4556bc
push str.Enter_SysInfoDll_GetAll_async
call fcn.00455a00
add esp, 4
push esi
call fcn.00455ba0
mov esi, dword [ebp + 0x24]
push 0x4bf28
push 0
push esi
mov dword [0x63f0e4], 0
call fcn.004ff750
lea eax, [ebp - 4]
mov byte [0x5d19a8], 0
push eax
push dword [ebp + 8]
mov dword [0x63f0e8], esi
mov dword [ebp - 4], 0x400
call sym.DiskCheckup.exe_SysInfoDll_GetComputerName
add esp, 0x14
test eax, eax
je 0x455772
push 0x400
push dword [ebp + 0xc]
call sym.DiskCheckup.exe_SysInfoDll_GetOS
add esp, 8
test eax, eax
je 0x455772
push dword [ebp + 0x10]
call sym.DiskCheckup.exe_SysInfoDll_GetCPUInfo
add esp, 4
test eax, eax
jne 0x455772
push dword [ebp + 0x14]
call sym.DiskCheckup.exe_SysInfoDll_GetMemoryInfo
add esp, 4
test eax, eax
je 0x455772
push 0x400
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call sym.DiskCheckup.exe_SysInfoDll_GetGraphicsInfo
add esp, 0x10
test eax, eax
je 0x455772
push dword [ebp + 0x2c]
call sym.DiskCheckup.exe_SysInfoDll_GetUSBInfo
add esp, 4
test eax, eax
je 0x455772
push dword [ebp + 0x28]
call sym.DiskCheckup.exe_SysInfoDll_GetSystemInfo_SMBIOS
add esp, 4
test eax, eax
jne 0x455772
lea esi, [eax + 1]
jmp 0x455774
xor esi, esi
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x453860
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.00455b90
test al, al
je 0x4557a1
push str.Leave_SysInfoDll_GetAll_async
call fcn.00455a00
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x455840
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.00455ba0
mov esi, dword [ebp + 8]
push 0x4bf28
push 0
push esi
mov dword [0x63f0e4], 0
call fcn.004ff750
add esp, 0xc
mov byte [0x5d19a8], 0
lea eax, [ebp - 4]
mov dword [0x63f0e8], esi
push eax
push 0
push 0
push 0x453860
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x63f0ec], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x456220
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x639ac0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x108]
cmp eax, 2
jne 0x45626e
cmp dword [ebp - 0x114], 6
jb 0x456270
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f66cd
mov esp, ebp
pop ebp
ret
ja 0x45625e
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.004f66cd
mov esp, ebp
pop ebp
ret
Function at 0x4562f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x639ac0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.004ff750
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x456365
cmp dword [ebp - 0x110], 2
jne 0x456365
cmp dword [ebp - 0x11c], 6
jne 0x456365
cmp dword [ebp - 0x118], 1
ja 0x456365
cmp byte [ebp - 6], 1
je 0x456365
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f66cd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.004f66cd
mov esp, ebp
pop ebp
ret

Function at 0x4564f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x639ac0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x456545
cmp dword [ebp - 0x114], 5
jne 0x456545
cmp dword [ebp - 0x110], 1
jb 0x456545
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f66cd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.004f66cd
mov esp, ebp
pop ebp
ret
Function at 0x456980
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x1aab138
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x456990
sub ecx, edx
sar ecx, 1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x4569e2
push 0x1aab138
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [0x1aab338], eax
test eax, eax
jne 0x456a27
call esi
push eax
push str.SysInfo_IsAppCountMapped:_Could_not_open_file_mapping_object___d_._n
push 0x6411e0
call fcn.00432fe0
push 0x6411e0
call fcn.00455a00
add esp, 0x10
push 0x1aab138
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [0x1aab338], eax
test eax, eax
jne 0x456a92
call esi
push eax
push str.Sysinfo_MapAppCount:_Could_not_create_file_mapping_object___d_._n
push 0x6411e0
call fcn.00432fe0
add esp, 0xc
pop esi
mov dword [ebp + 8], 0x6411e0
pop ebp
jmp fcn.00455a00
push 4
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x1aab33c], eax
test eax, eax
jne 0x456a72
call esi
push eax
push str.SysInfo_IsAppCountMapped:_Could_not_map_view_of_file___d_._n
push 0x6411e0
call fcn.00432fe0
push 0x6411e0
call fcn.00455a00
add esp, 0x10
push dword [0x1aab338]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4569e2
push dword [eax]
push str.SysInfo_IsAppCountMapped:_g_pSharedAppCount___d._n
push 0x6411e0
call fcn.00432fe0
push 0x6411e0
call fcn.00455a00
add esp, 0x10
jmp 0x456ae1
push 4
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x1aab33c], eax
test eax, eax
jne 0x456adb
call esi
push eax
push str.Sysinfo_MapAppCount:_Could_not_map_view_of_file___d_._n
push 0x6411e0
call fcn.00432fe0
push 0x6411e0
call fcn.00455a00
add esp, 0x10
push dword [0x1aab338]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
ret
mov dword [eax], 0
cmp dword [ebp + 8], 0
mov eax, dword [0x1aab33c]
je 0x456b00
inc dword [eax]
mov eax, dword [0x1aab33c]
mov eax, dword [eax]
push eax
push str.Sysinfo_AppCountUpdate:_g_pSharedAppCount___i_n
jmp 0x456a0c
dec dword [eax]
mov eax, dword [0x1aab33c]
mov eax, dword [eax]
push eax
push str.Sysinfo_AppCountUpdate:_g_pSharedAppCount___i_n
jmp 0x456a0c
Function at 0x456b20
Capabilities:
Read file via mapping

Disassembly:
mov ecx, 0x1aab138
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x456b30
sub ecx, edx
sar ecx, 1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x456b82
push 0x1aab138
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [0x1aab338], eax
test eax, eax
jne 0x456bc7
call esi
push eax
push str.SysInfo_IsAppCountMapped:_Could_not_open_file_mapping_object___d_._n
push 0x6411e0
call fcn.00432fe0
push 0x6411e0
call fcn.00455a00
add esp, 0x10
push 0x1aab138
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [0x1aab338], eax
test eax, eax
jne 0x456c34
call esi
push eax
push str.Sysinfo_MapAppCount:_Could_not_create_file_mapping_object___d_._n
push 0x6411e0
call fcn.00432fe0
push 0x6411e0
call fcn.00455a00
add esp, 0x10
xor al, al
pop esi
ret
push 4
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x1aab33c], eax
test eax, eax
jne 0x456c12
call esi
push eax
push str.SysInfo_IsAppCountMapped:_Could_not_map_view_of_file___d_._n
push 0x6411e0
call fcn.00432fe0
push 0x6411e0
call fcn.00455a00
add esp, 0x10
push dword [0x1aab338]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x456b82
push dword [eax]
push str.SysInfo_IsAppCountMapped:_g_pSharedAppCount___d._n
push 0x6411e0
call fcn.00432fe0
push 0x6411e0
call fcn.00455a00
add esp, 0x10
mov al, 1
pop esi
ret
push 4
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x1aab33c], eax
test eax, eax
jne 0x456c7e
call esi
push eax
push str.Sysinfo_MapAppCount:_Could_not_map_view_of_file___d_._n
push 0x6411e0
call fcn.00432fe0
push 0x6411e0
call fcn.00455a00
add esp, 0x10
push dword [0x1aab338]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
ret
mov dword [eax], 0
mov al, 1
pop esi
ret
Function at 0x45b100
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0x18]
push esi
push eax
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x45b11d
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, 0xa
push ebx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, closesocket
mov bx, 0xfa0
bsf ecx, eax
dec bx
jne 0x45b137
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
cmp eax, esi
cmovae eax, esi
mov esi, eax
sub edi, 1
jne 0x45b124
mov edi, dword [ebp - 0x18]
mov eax, 0xcccccccd
mul edi
imul esi, esi, 0x186a0
pop ebx
mov ecx, edx
xor edx, edx
shr ecx, 3
mov eax, esi
div ecx
xor edx, edx
mov ecx, eax
div edi
mov eax, dword [ebp + 8]
lea esi, [ecx + 1]
shr edi, 1
cmp edx, edi
pop edi
cmovbe esi, ecx
xor edx, edx
div esi
shr esi, 1
cmp edx, esi
jbe 0x45b195
inc eax
pop esi
mov esp, ebp
pop ebp
ret