joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100dca90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f34e4
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1012eb00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x78
call fcn.100e524f
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.boost::locale::util::gregorian_calendar.0
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [edi + 8], ecx
lea ecx, [edi + 0x60]
mov dword [edi + 0xc], edx
movups xmm0, xmmword [esi + 0x10]
mov dword [ebp - 4], 0
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [edi + 0x20], xmm0
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
movups xmm0, xmmword [esi + 0x34]
movups xmmword [edi + 0x34], xmm0
movups xmm0, xmmword [esi + 0x44]
movups xmmword [edi + 0x44], xmm0
mov eax, dword [esi + 0x54]
mov dword [edi + 0x54], eax
movzx eax, byte [esi + 0x58]
mov byte [edi + 0x58], al
movzx eax, byte [esi + 0x59]
mov byte [edi + 0x59], al
mov eax, dword [esi + 0x5c]
mov dword [edi + 0x5c], eax
lea eax, [esi + 0x60]
push eax
call fcn.1004a270
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100dce70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f359d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1012eb00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x5c]
mov edi, dword [ebp + 8]
cdq
add eax, edi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
adc edx, dword [ebp + 0xc]
cmp byte [esi + 0x59], 0
mov dword [ebp - 0x2c], edx
push eax
je 0x100dcec0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
jmp 0x100dcec6
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__gmtime64]
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x100dcf23
movups xmm0, xmmword [ecx]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [ecx + 0x10]
movups xmmword [esi + 0x20], xmm0
mov eax, dword [ecx + 0x20]
mov dword [esi + 0x30], eax
movups xmm0, xmmword [ecx]
movups xmmword [esi + 0x34], xmm0
movups xmm0, xmmword [ecx + 0x10]
movups xmmword [esi + 0x44], xmm0
mov eax, dword [ecx + 0x20]
mov dword [esi + 0x54], eax
mov eax, dword [ebp + 0xc]
mov byte [esi + 0x58], 1
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
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.100e4fca
mov esp, ebp
pop ebp
ret 8
push str.boost::locale::gregorian_calendar:_invalid_time_point
lea ecx, [ebp - 0x28]
call fcn.1004a230
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x3c]
call fcn.100dc460
push 0x10124ed8
lea eax, [ebp - 0x3c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x100e7144
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x100e716b
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x100e716e
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.100e7120
pop esi
leave
ret 8
Function at 0x44d79d
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, ecx
shr edi, 0x10
and ecx, 0xffff
cmp ebx, 1
jne 0x44d7e9
mov eax, dword [ebp + 0xc]
movzx edx, byte [eax]
add ecx, edx
cmp ecx, 0xfff1
jb 0x44d7ce
sub ecx, 0xfff1
add edi, ecx
cmp edi, 0xfff1
jb 0x44d7de
sub edi, 0xfff1
mov eax, edi
shl eax, 0x10
pop edi
or eax, ecx
pop ebx
pop ebp
ret
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x44d7f9
lea eax, [esi + 1]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp ebx, 0x10
jae 0x44d838
test ebx, ebx
je 0x44d80d
movzx eax, byte [esi]
add ecx, eax
inc esi
add edi, ecx
dec ebx
jne 0x44d802
cmp ecx, 0xfff1
jb 0x44d81b
sub ecx, 0xfff1
mov eax, 0x80078071
mul edi
shr edx, 0xf
mov eax, edx
shl eax, 4
sub eax, edx
add eax, edi
pop esi
shl eax, 0x10
pop edi
or eax, ecx
pop ebx
pop ebp
ret
cmp ebx, 0x15b0
jb 0x44d923
mov eax, 0x5e6ea9af
mul ebx
shr edx, 0xb
mov dword [ebp + 8], edx
jmp 0x44d85d
Function at 0x4e27dd
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, ecx
shr edi, 0x10
and ecx, 0xffff
cmp ebx, 1
jne 0x4e2829
mov eax, dword [ebp + 0xc]
movzx edx, byte [eax]
add ecx, edx
cmp ecx, 0xfff1
jb 0x4e280e
sub ecx, 0xfff1
add edi, ecx
cmp edi, 0xfff1
jb 0x4e281e
sub edi, 0xfff1
mov eax, edi
shl eax, 0x10
pop edi
or eax, ecx
pop ebx
pop ebp
ret
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x4e2839
lea eax, [esi + 1]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp ebx, 0x10
jae 0x4e2878
test ebx, ebx
je 0x4e284d
movzx eax, byte [esi]
add ecx, eax
inc esi
add edi, ecx
dec ebx
jne 0x4e2842
cmp ecx, 0xfff1
jb 0x4e285b
sub ecx, 0xfff1
mov eax, 0x80078071
mul edi
shr edx, 0xf
mov eax, edx
shl eax, 4
sub eax, edx
add eax, edi
pop esi
shl eax, 0x10
pop edi
or eax, ecx
pop ebx
pop ebp
ret
cmp ebx, 0x15b0
jb 0x4e2963
mov eax, 0x5e6ea9af
mul ebx
shr edx, 0xb
mov dword [ebp + 8], edx
jmp 0x4e289d
Function at 0x402762
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov al, byte [0x46a9b4]
push esi
push edi
push 0x40
mov byte [ebp - 0x104], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push 0
mov esi, 0x104
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov edi, eax
test edi, edi
je 0x4027c8
cmp edi, esi
ja 0x4027c8
push dword [ebp + 8]
call fcn.0042cc10
cmp edi, eax
pop ecx
jae 0x4027c8
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call fcn.0042cc90
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop edi
mov eax, ecx
pop esi
leave
ret

Function at 0x402af4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov al, byte [0x46a9b4]
push edi
push 0x40
mov byte [ebp - 0x104], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
leave
ret

Function at 0x403633
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov al, byte [0x46a9b4]
push esi
push edi
push 0x40
mov byte [ebp - 0x104], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
mov esi, dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 4]
test eax, eax
jne 0x403668
mov eax, 0x44f48c
lea ecx, [ebp - 0x104]
push 0
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [ebp - 0x104]
push eax
call fcn.0042cc10
pop ecx
push eax
lea eax, [ebp - 0x104]
push eax
mov ecx, esi
call fcn.00401879
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop edi
mov eax, ecx
pop esi
leave
ret
Function at 0x403c88
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
push str.Looking_for_setup_window
mov edi, 0x46abb8
push 1
mov dword [esp + 0x18], ecx
push edi
call fcn.0040121a
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
add esp, 0xc
push 0
call ebx
mov ecx, dword [esp + 0x14]
push eax
call fcn.00403a3b
mov ebp, dword [0x46a90c]
push eax
push 0xffff
call ebp
test eax, eax
je 0x403d9a
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [esp + 0x1c], eax
call esi
mov dword [esp + 0x14], eax
call esi
mov dword [esp + 0x18], eax
cmp dword [esp + 0x40], 0xffffffff
je 0x403d03
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x40]
jae 0x403d9a
xor eax, eax
push 1
push eax
push eax
push eax
lea eax, [esp + 0x30]
push eax
call dword [0x46a900]
test eax, eax
je 0x403d3e
mov ecx, dword [esp + 0x10]
call fcn.00403a5b
cmp dword [esp + 0x24], eax
je 0x403d80
lea eax, [esp + 0x20]
push eax
call dword [0x46a904]
lea eax, [esp + 0x20]
push eax
call dword [0x46a908]
call esi
mov dword [esp + 0x14], eax
sub eax, dword [esp + 0x18]
cmp eax, 0x1388
jbe 0x403cea
push str.Didnt_get_message_from_setup.__Rebroadcasting_message
push 1
push edi
call fcn.0040121a
add esp, 0xc
call esi
push 0
mov dword [esp + 0x1c], eax
call ebx
mov ecx, dword [esp + 0x14]
push eax
call fcn.00403a3b
push eax
push 0xffff
call ebp
jmp 0x403cea
push dword [esp + 0x28]
push str.Found_setup_window:__d
push 1
push edi
call fcn.0040121a
mov eax, dword [esp + 0x38]
add esp, 0x10
jmp 0x403d9c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4
Function at 0x4088db
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x4088f8
xor eax, eax
jmp 0x408952
mov al, byte [esi]
push edi
mov byte [ebp + 8], al
mov al, byte [esi + 1]
mov byte [ebp + 9], al
mov al, byte [0x46a9b4]
push 0x40
mov byte [ebp - 0x104], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
and byte [ebp + 0xa], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push 0x104
push eax
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
lea eax, [ebp - 0x104]
push 0x460948
push eax
call fcn.0042d7f4
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
pop edi
pop esi
leave
ret

Function at 0x409658
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov eax, 0x44be94
call fcn.0042c4cc
sub esp, 0x28
mov al, byte [ebp - 0xd]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
push ebx
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x34], al
call fcn.004151e3
mov eax, dword [esi + 0x600]
mov dword [ebp - 4], ebx
cmp eax, ebx
mov edi, 0x44f48c
jne 0x40967e
mov eax, edi
push eax
push 0x14
push ebx
lea ecx, [ebp - 0x34]
call fcn.0042342a
mov eax, dword [0x46640c]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x628]
mov byte [ebp - 4], 1
add eax, 0x150
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x4096aa
mov eax, edi
mov ecx, dword [ebp - 0x30]
cmp ecx, ebx
jne 0x4096b3
mov ecx, edi
push eax
lea eax, [ebp - 0x14]
push ecx
push eax
call fcn.0043ed51
mov al, byte [ebp - 0xd]
add esp, 0xc
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], al
push ebx
call fcn.004151e3
mov eax, dword [esi + 0x600]
mov byte [ebp - 4], 2
cmp eax, ebx
jne 0x4096e0
mov eax, edi
push eax
push 0x15
push ebx
lea ecx, [ebp - 0x24]
call fcn.0042342a
mov eax, dword [esi + 0x650]
cmp eax, ebx
je 0x4096ff
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp dword [ebp - 0x20], ebx
je 0x409707
mov edi, dword [ebp - 0x20]
push 0x1010
push edi
push dword [ebp - 0x14]
mov ecx, esi
call fcn.0040690c
mov esi, dword [esi + 0x650]
cmp esi, ebx
je 0x40972a
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.004151e3
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004435ed
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x34]
call fcn.004151e3
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40a048
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov ebx, ecx
xor edi, edi
cmp dword [ebx + 0x5e0], edi
je 0x40a0fe
lea eax, [ebx + 0x4f8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x40a0fe
push edi
push edi
push 3
push edi
add ebx, 0x4f4
push 1
push SysReAllocStringLen
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, edi
mov dword [ebp - 8], eax
je 0x40a0fe
cmp eax, 0xffffffff
je 0x40a0fe
push esi
push ebx
push str.Open_CDROM__s
mov esi, 0x46abb8
push 1
push esi
call fcn.0040121a
mov al, byte [ebp + 8]
add esp, 0x10
mov byte [ebp - 1], al
lea eax, [ebp - 0xc]
push edi
push eax
push edi
push edi
lea eax, [ebp - 1]
push 1
push eax
push 0x24804
push dword [ebp - 8]
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push dword [ebp - 8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push ebx
push dword [ebp + 8]
push str.Lock__d__CDROM__s__returns__d_error_d
push 1
push esi
call fcn.0040121a
add esp, 0x1c
pop esi
pop edi
pop ebx
leave
ret 4

Function at 0x40bdae
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
mov ebx, str.IsFirstInstance_n
push edi
push ebx
mov edi, 0x46abb8
push 2
mov esi, ecx
push edi
call fcn.0040121a
add esp, 0xc
cmp dword [esi + 0x480], 0
je 0x40bdd7
push 1
pop eax
jmp 0x40be46
push str.setup_exe_D792B2E6_6A2B_44f6_B75D_C3380A402898
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [esi + 0x480], eax
je 0x40be28
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40be21
push dword [esi + 0x480]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x480], 0
push str.CreateMutex__ERROR_ALREADY_EXISTS_n
push edi
call fcn.00414b92
pop ecx
xor esi, esi
pop ecx
jmp 0x40be38
push str.SETUP_MUTEX_was_created_n
jmp 0x40be2d
push str.SETUP_MUTEX_was_not_created_n
push edi
call fcn.00414b92
pop ecx
pop ecx
push 1
pop esi
push ebx
push 4
push edi
call fcn.0040121a
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x40c697
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
push str.GetInfrastructureDestinationDirectory_n
mov esi, 0x46abb8
push 2
mov ebx, ecx
push esi
call fcn.0040121a
add esp, 0xc
call fcn.0041d2a1
test eax, eax
je 0x40c734
mov al, byte [0x46a9b4]
push 0x40
mov byte [ebp - 0x104], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x104]
push eax
call fcn.0040283d
lea eax, [ebp - 0x104]
push eax
call fcn.0042cc10
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebx + 0x48c]
call fcn.00401879
lea eax, [ebp - 0x104]
push eax
push str.GetInfrastructureDestinationDirectory___s_n
push esi
call fcn.00414b92
add esp, 0xc
jmp 0x40c788
mov edi, str._temp_
lea esi, [ebx + 0x48c]
push edi
call fcn.0042cc10
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00401879
push 0x800
push 0
push esi
lea ecx, [ebx + 0x1fc]
call fcn.0041a897
mov esi, dword [esi + 4]
test esi, esi
jne 0x40c76e
mov esi, 0x44f48c
push esi
push str.User_is_not_admin.__Using__s_as_InfrastructureDestinationDirectory.
push 1
push 0x46abb8
call fcn.0040121a
add esp, 0x10
mov esi, 0x46abb8
push str.GetInfrastructureDestinationDirectory_n
push 4
push esi
call fcn.0040121a
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f814
Capabilities:
Delete file

Disassembly:
mov eax, 0x44c4c4
call fcn.0042c4cc
push ebx
push ebp
push esi
push edi
mov edi, ecx
and dword [esp + 0x18], 0
mov ebp, str.DeleteInfrastructureFiles_n
push ebp
mov ebx, 0x46abb8
push 2
push ebx
call fcn.0040121a
mov eax, dword [edi + 0x4b0]
add esp, 0xc
mov esi, dword [eax]
cmp eax, esi
je 0x40f885
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x40f857
mov eax, 0x44f48c
push eax
push str.DeleteFile_s_n
push 1
push ebx
call fcn.0040121a
mov eax, dword [esi + 0xc]
add esp, 0x10
test eax, eax
jne 0x40f874
mov eax, 0x44f48c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [esi]
cmp dword [edi + 0x4b0], esi
jne 0x40f84b
push ebp
push 4
push ebx
call fcn.0040121a
or dword [esp + 0x24], 0xffffffff
add esp, 0xc
lea ecx, [esp + 0x24]
call fcn.0040496f
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x4154ea
Capabilities:
Check os version

Disassembly:
cmp dword [0x47af00], 0
jne 0x41557e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov edi, 0x47af00
push edi
mov dword [0x47af00], 0x9c
call esi
test eax, eax
jne 0x415522
push edi
mov dword [0x47af00], 0x94
call esi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x41555a
push str.IsWow64Process
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x415553
push 0x47af9c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x47af04], 5
pop edi
pop esi
jne 0x41557e
cmp dword [0x47af08], 2
jne 0x41557e
push 1
pop eax
cmp byte [0x47af9a], al
jne 0x41557e
mov dword [0x47af08], eax
ret

Function at 0x415b79
Capabilities:
Identify system language via api

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x415bca
call fcn.00416794
mov eax, dword [edi + 0x114]
mov ecx, dword [edi + 0x108]
mov esi, dword [eax]
mov ebx, dword [ecx]
cmp esi, eax
je 0x415bca
push dword [esp + 0x10]
call fcn.0042cc10
pop ecx
push eax
lea ecx, [esi + 8]
push dword [esp + 0x14]
push dword [ecx + 8]
push 0
call fcn.00404c35
test eax, eax
je 0x415bd6
mov esi, dword [esi]
mov ebx, dword [ebx]
cmp esi, dword [edi + 0x114]
jne 0x415b9e
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
pop edi
pop esi
pop ebx
ret 4
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x415be2
mov ebx, 0x44f48c
push 0x10
push 0
push ebx
call fcn.0042eb1c
add esp, 0xc
jmp 0x415bd0
Function at 0x41daa8
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 4]
push eax
push 0x452b0c
push 1
push 0
push 0x452b1c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x41db5c
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x452b70
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x41db4f
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 4]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x210]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
jge 0x41db7d
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.CreateShortcut__s__s__s__s__failed_with__d_n
push 8
push 0x46abb8
call fcn.0040121a
add esp, 0x20
mov eax, esi
pop esi
leave
ret

Function at 0x41db82
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov al, byte [0x46a9b4]
push edi
push 0x40
mov byte [ebp - 0x104], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
call fcn.0042cc90
lea eax, [ebp - 0x104]
push 0x45f5a8
push eax
call fcn.0042cca0
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call fcn.0042cca0
add esp, 0x18
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop edi
je 0x41dc0e
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x41dc0e
push str.Hpzinst:_DeleteShortcut_failed_n
push 0x46abb8
call fcn.00414b92
pop ecx
pop ecx
leave
ret
Function at 0x41dc10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x41dc28
push str.Trying_to_create_folder_with_pFolder__NULL___
jmp 0x41dc38
push esi
call fcn.0042cc10
test eax, eax
pop ecx
jne 0x41dc4c
push str.Trying_to_create_folder_with_pFolder_______
push 8
push 0x46abb8
call fcn.0040121a
add esp, 0xc
jmp 0x41dcfe
push esi
call fcn.00402af4
test eax, eax
pop ecx
je 0x41dc5f
push 1
pop eax
jmp 0x41dd00
mov al, byte [0x46a9b4]
push edi
push 0x40
mov byte [ebp - 0x104], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.0041dd03
lea eax, [ebp - 0x104]
push eax
call fcn.0041dc10
add esp, 0x10
test eax, eax
pop edi
je 0x41dce3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x41dcc5
push esi
push str.Created_folder__s
push 0x20
push 0x46abb8
call fcn.0040121a
add esp, 0x10
jmp 0x41dc57
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.CreateDirectory___s__failed.__error0x_x_n
push 8
push 0x46abb8
call fcn.0040121a
add esp, 0x14
jmp 0x41dcfe
lea eax, [ebp - 0x104]
push eax
push str.CreateDirectory___s__failed.
push 8
push 0x46abb8
call fcn.0040121a
add esp, 0x10
xor eax, eax
pop esi
leave
ret

Function at 0x41dd8a
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
stosd dword es:[edi], eax
lea edi, [ebp - 0x20]
mov dword [ebp - 0x24], ebx
stosd dword es:[edi], eax
lea edi, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x41ddbd
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
jmp 0x41de55
mov al, byte [eax]
lea edi, [ebp - 0x2e]
mov byte [ebp - 0x30], al
xor eax, eax
mov byte [ebp - 0x2f], bl
push 0x460948
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x30]
push eax
call fcn.0042cca0
pop ecx
lea eax, [ebp - 0x30]
pop ecx
push eax
push str.Checking_space_of_drive_:__s_n
push 0x80
push 0x46abb8
call fcn.0040121a
add esp, 0x10
call fcn.00415689
test eax, eax
jne 0x41de22
call fcn.00422632
mov eax, dword [0x47b268]
cmp eax, ebx
je 0x41ddb2
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x30]
push ecx
call eax
jmp 0x41ddb2
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [ebp + 8]
imul eax, dword [ebp - 4]
imul eax, dword [ebp - 8]
xor edx, edx
pop edi
pop ebx
leave
ret