joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410e52
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
xor esi, esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExW]
cmp dword [ebp + 0x10], esi
je 0x410e8a
cdq
jmp 0x410e9d
cmp dword [ebp + 0xc], esi
je 0x410e97
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
jmp 0x410e9d
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
leave
ret

Function at 0x410ec8
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [0x4dabdc]
mov edi, 0x4dacf0
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
xor ebx, ebx
cmp eax, ebx
je 0x410ef2
cmp dword [eax], ebx
je 0x410ef2
mov dword [ebp - 4], eax
mov edi, eax
cmp dword [edi], ebx
lea esi, [edi + 4]
je 0x410fb6
push 0x4dbd30
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [edi], ebx
je 0x410fab
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
sub ecx, eax
cmp ecx, 0xc96
jge 0x410f30
add eax, 0x10c96
push eax
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00444a55
mov eax, dword [esi + 4]
mov ecx, dword [esi]
lea eax, [ecx + eax*2 + 0x1000]
mov word [eax], bx
mov edi, dword [ebp + 0xc]
cmp edi, 0xffff
ja 0x410f61
push 0x400
push eax
push dword [ebp + 0xc]
mov edi, eax
push dword [0x4dac7c]
call dword [sym.imp.user32.dll_LoadStringW]
mov ecx, dword [esi]
mov eax, dword [esi + 4]
lea eax, [ecx + eax*2]
lea ecx, [ebp + 0x10]
push ecx
push edi
push 0x7fd
push eax
call fcn.004ad2d1
add esp, 0x10
cmp eax, ebx
jge 0x410f82
xor eax, eax
add dword [esi + 4], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov word [ecx + eax*2], bx
cmp dword [esi + 4], 0x10000
jg 0x410f9f
cmp byte [0x4dad09], bl
je 0x410fab
push dword [ebp - 4]
push 1
call fcn.004109dd
pop ecx
pop ecx
push 0x4dbd30
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410fbb
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
push dword [0x4dabdc]
mov edi, 0x4dacf0
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
xor ebx, ebx
cmp eax, ebx
je 0x410fdb
cmp dword [eax], ebx
je 0x410fdb
mov edi, eax
cmp dword [edi], ebx
lea esi, [edi + 4]
je 0x41106c
push 0x4dbd30
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [edi], ebx
je 0x411061
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
sub ecx, eax
cmp ecx, 0x896
jge 0x411015
add eax, 0x10896
push eax
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00444a55
mov ecx, dword [esi]
mov eax, dword [esi + 4]
lea eax, [ecx + eax*2]
lea ecx, [esp + 0x18]
push ecx
push dword [esp + 0x18]
push 0x7fd
push eax
call fcn.004ad2d1
add esp, 0x10
cmp eax, ebx
jge 0x41103a
xor eax, eax
add dword [esi + 4], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov word [ecx + eax*2], bx
cmp dword [esi + 4], 0x10000
jg 0x411057
cmp byte [0x4dad09], bl
je 0x411061
push edi
push 1
call fcn.004109dd
pop ecx
pop ecx
push 0x4dbd30
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret
Function at 0x4111e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0xffffffffffffffec
push ebx
call dword [sym.imp.user32.dll_GetWindowLongW]
push ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.user32.dll_GetParent]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
xor edi, edi
push eax
push ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
call dword [sym.imp.user32.dll_GetWindowRect]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.user32.dll_ScreenToClient]
push dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
push dword [ebp - 0x20]
push eax
call dword [sym.imp.user32.dll_OffsetRect]
push ebx
call dword [sym.imp.user32.dll_GetWindowTextLengthW]
mov esi, eax
lea eax, [esi + 0x1b]
push eax
lea ecx, [ebp + 8]
call fcn.00444a2e
mov eax, dword [ebp + 8]
lea ecx, [esi + 0xb]
push ecx
push eax
push ebx
mov dword [ebp - 0x18], eax
mov word [eax], di
call dword [sym.imp.user32.dll_GetWindowTextW]
mov eax, dword [ebp + 8]
push edi
push edi
push 0x31
mov word [eax + esi*2 + 0x14], di
mov esi, dword [sym.imp.user32.dll_SendMessageW]
push ebx
call esi
or dword [ebp - 0xc], 0xffffffff
or dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xb0
push ebx
call esi
push edi
push ebx
call dword [sym.imp.user32.dll_ShowWindow]
cmp dword [ebp + 0x10], edi
jge 0x4112ac
push ebx
call dword [sym.imp.user32.dll_DestroyWindow]
movzx edx, word [ebp + 0x10]
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x30]
push edi
push dword [0x4daf98]
push edx
push dword [ebp - 4]
push eax
push ecx
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp + 0xc]
push edi
push str.EDIT
push dword [ebp - 0x10]
call dword [sym.imp.user32.dll_CreateWindowExW]
push 1
push dword [ebp - 0x14]
mov edi, eax
push 0x30
push edi
call esi
push dword [ebp - 0x18]
push edi
call dword [sym.imp.user32.dll_SetWindowTextW]
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0xb1
push edi
call esi
lea ecx, [ebp + 8]
call fcn.0043e48d
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4115c9
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
push esi
push edi
push 0x325
lea ecx, [ebp - 8]
call fcn.00444a2e
mov esi, dword [ebp - 8]
push esi
push 0x324
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.user32.dll_CharUpperW]
push ebx
call edi
push esi
call edi
cmp word [esi], 0
je 0x41165d
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
add eax, 0x10
mov dword [ebp - 0xc], eax
push esi
call fcn.00410ea0
cmp eax, dword [ebp - 0xc]
pop ecx
jb 0x41164c
push esi
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
dec eax
dec eax
je 0x411646
dec eax
jne 0x41164c
mov ax, word [esi]
mov word [edi + 2], ax
mov cx, word [esi]
xor eax, eax
inc eax
cmp cx, word [ebx]
mov dword [ebp - 4], eax
jb 0x41164c
mov esi, eax
jmp 0x411660
mov ax, word [esi]
mov word [edi], ax
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x411613
mov esi, dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0043e48d
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x411bf7
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x411c28
xor eax, eax
jmp 0x411c97
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push 0x40
lea eax, [ebp - 0x48]
push eax
push ebx
mov dword [ebp - 8], edi
call esi
cmp dword [ebp - 4], 0x40
jne 0x411c8c
cmp word [ebp - 0x48], 0x5a4d
jne 0x411c8c
push edi
push edi
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
je 0x411c8c
push edi
lea eax, [ebp - 4]
push eax
mov edi, 0xf8
push edi
lea eax, [ebp - 0x140]
push eax
push ebx
call esi
cmp dword [ebp - 4], edi
jne 0x411c8c
cmp dword [ebp - 0x140], 0x4550
jne 0x411c8c
mov dword [ebp - 8], 1
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 8]
pop esi
pop edi
pop ebx
leave
ret

Function at 0x411ea0
Capabilities:
Terminate process

Disassembly:
push esi
push dword [esp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
je 0x411ed6
push dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
test eax, eax
je 0x411ecf
mov eax, dword [esp + 0x10]
test eax, eax
je 0x411ecf
and dword [eax], 0
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
ret
Function at 0x411f88
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi], 1
jne 0x411fcb
push 0x5c
push 0
push dword [ebp + 0xc]
call dword [sym.imp.shlwapi.dll_StrRChrW]
test eax, eax
je 0x411fcb
sub eax, dword [ebp + 0xc]
lea ecx, [ebp + 8]
sar eax, 1
inc eax
push eax
push dword [ebp + 0xc]
call fcn.0044df97
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
lea ecx, [ebp + 8]
mov byte [esi], 2
call fcn.0043e48d
mov al, byte [esi]
pop esi
pop ebp
ret

Function at 0x411fd0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
mov esi, 0x4c1f8c
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.user32.dll_wsprintfW]
mov byte [ebp - 1], 0
mov byte [ebp - 2], 0
mov edi, 0x4db0e0
movsx ax, byte [ebp - 2]
add eax, 0x41
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 5
jne 0x41206a
movsx ebx, byte [ebp - 1]
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x218]
push str.HKLMSYSTEMCurrentControlSetControlSession_ManagerEnvironmentCDROM_u_s
push eax
call esi
add esp, 0x10
push 0
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.0045fb94
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x218]
push str.CDROM_u
push eax
call esi
add esp, 0x10
inc byte [ebp - 1]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.0044414b
inc byte [ebp - 2]
cmp byte [ebp - 2], 0x1a
jl 0x411ffa
cmp byte [ebp - 1], 0
pop edi
pop esi
pop ebx
jle 0x41208e
mov ecx, dword [ebp + 8]
xor eax, eax
push eax
push eax
push eax
push str.THREAD_Envi
call fcn.00433da9
leave
ret
Function at 0x412485
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
add dword [ebp + 8], 2
push esi
push edi
lea ecx, [ebp - 8]
call fcn.00444a10
lea ecx, [ebp - 4]
call fcn.00444a10
push 0x2c
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.shlwapi.dll_StrRChrW]
mov edi, eax
cmp edi, esi
je 0x412567
push ebx
push 1
push esi
lea eax, [ebp - 8]
mov word [edi], si
push eax
push dword [ebp + 8]
mov esi, 0x4db0e0
mov ecx, esi
call fcn.00455dfb
mov ebx, dword [ebp - 8]
push 1
push 0
lea eax, [ebp - 4]
push eax
add edi, 2
push edi
mov ecx, esi
mov dword [ebp + 8], ebx
call fcn.00455dfb
cmp byte [ebp + 0xc], 0
mov esi, dword [ebp - 4]
mov dword [ebp - 0xc], esi
je 0x41251e
lea ecx, [ebp + 8]
call fcn.0040f813
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
add eax, eax
push eax
push dword [ebp + 8]
push 1
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
jmp 0x41255a
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
push ebx
call esi
add eax, eax
push eax
push ebx
push 1
push str.RegisteredOwner
mov edi, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push edi
mov ebx, 0x80000002
push ebx
call fcn.0043f6e8
add esp, 0x18
push dword [ebp - 0xc]
call esi
shl eax, 1
push eax
push dword [ebp - 0xc]
push 1
push str.RegisteredOrganization
push edi
push ebx
call fcn.0043f6e8
add esp, 0x18
xor esi, esi
pop ebx
jmp 0x41256a
xor esi, esi
inc esi
lea ecx, [ebp - 4]
call fcn.0043e48d
lea ecx, [ebp - 8]
call fcn.0043e48d
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x412aa4
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jge 0x412ab5
call fcn.00412a49
mov edi, eax
mov eax, dword [esp + 0x14]
test eax, eax
mov esi, dword [esp + 0xc]
jg 0x412ac9
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
inc eax
dec eax
js 0x412ad5
inc eax
xor word [esi], di
inc esi
inc esi
dec eax
jne 0x412acd
mov eax, edi
pop edi
shl eax, 0x10
pop esi
ret

Function at 0x412c66
Capabilities:
Log keystrokes via application hook

Disassembly:
cmp dword [0x4daf88], 0
jne 0x412c89
push 0
push dword [0x4daf98]
push 0x412b65
push 0xd
call dword [sym.imp.user32.dll_SetWindowsHookExW]
mov dword [0x4daf88], eax
ret

Function at 0x412dfa
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
jne 0x412e15
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov esi, eax
push esi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x22c], 0x22c
mov dword [ebp - 0x228], ebx
mov ecx, 0x89
lea edi, [ebp - 0x224]
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [ebp - 0x22c]
push eax
push edi
call sub.KERNEL32.DLL_Process32FirstW
jmp 0x412e64
cmp dword [ebp - 0x224], esi
je 0x412e6a
lea eax, [ebp - 0x22c]
push eax
push edi
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x412e4f
jmp 0x412e70
mov ebx, dword [ebp - 0x214]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
dec dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0
mov esi, ebx
jg 0x412e15
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x413112
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
push edi
je 0x413136
cmp dword [ebp + 0xc], 2
jne 0x413165
mov edi, dword [ebp + 0x14]
push 0x104
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
jmp 0x413139
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x18], 0
je 0x413149
push dword [ebp + 0x18]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [esi + 2]
push eax
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
push edi
push esi
mov ecx, 0x4db0e0
call fcn.0044414b
pop esi
pop edi
pop ebp
ret

Function at 0x413168
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0xc11
lea ecx, [ebp - 4]
call fcn.00444a2e
push 0x822
push 0
push dword [ebp - 4]
call fcn.004acf60
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 8]
lea esi, [eax + 0x410]
and word [esi], 0
add esp, 0xc
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x10], eax
lea edi, [ebx + 2]
je 0x4131af
mov edi, dword [ebp + 0xc]
and dword [ebp - 8], 0
push 0x104
push esi
push edi
mov dword [ebp - 0xc], 0x410
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
cmp word [esi], 0
je 0x4131db
push esi
push ebx
mov ecx, 0x4db0e0
call fcn.0044414b
jmp 0x41320e
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
push 0x80000001
call fcn.0043f684
add esp, 0x18
test eax, eax
jne 0x41320e
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push esi
push dword [ebp - 8]
push ebx
call fcn.00413112
add esp, 0x14
lea ecx, [ebp - 4]
call fcn.0043e48d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41321b
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x411
lea ecx, [ebp - 4]
mov byte [0x4db0eb], 1
call fcn.00444a2e
push 0x822
push 0
push dword [ebp - 4]
call fcn.004acf60
mov edi, dword [ebp - 4]
add esp, 0xc
push 0x104
add edi, 0x410
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push str.PE_IDBASE
push 0x1000
mov esi, 0x4db0e0
push esi
call fcn.004470b2
push str.WM_PE_BASE
push 0x5000
push esi
call fcn.004470b2
push str.PE_MENU_IDBASE
push 0x100
push esi
call fcn.004470b2
mov esi, dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
add esp, 0x24
push edi
push 0x4c2412
call esi
push edi
mov ebx, 0x4db0e0
push str.MyName
mov ecx, ebx
call fcn.0044414b
push 0x5c
push 0
push edi
call dword [sym.imp.shlwapi.dll_StrRChrW]
xor edi, edi
cmp eax, edi
je 0x4132e2
lea edi, [eax + 2]
push edi
push 0x4c23fe
call esi
push edi
push str.MyName0
mov ecx, ebx
call fcn.0044414b
xor edi, edi
push edi
push edi
push str.Desktop
call fcn.00413168
push edi
push edi
push str.Favorites
call fcn.00413168
push edi
push edi
push str.Programs
call fcn.00413168
push edi
push edi
push str.SendTo
call fcn.00413168
push edi
push edi
push str.Personal
call fcn.00413168
push edi
push str.Start_Menu
push 0x4c19b8
call fcn.00413168
add esp, 0x48
push edi
push str.Cache
push str.IECache
call fcn.00413168
push edi
push edi
push str.Startup
call fcn.00413168
push str.MicrosoftInternet_ExplorerQuick_Launch
push str.AppData
push str.QuickLaunch
call fcn.00413168
add esp, 0x24
lea ecx, [ebp - 4]
call fcn.0043e48d
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4133cd
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14b8
call fcn.004ad340
push esi
mov esi, 0x4d92d8
and word [ebp - 0x14b8], 0
mov edx, dword [esi]
mov word [ebp - 0x64], 0x26
lea ecx, [ebp - 0x62]
movsx ax, byte [edx]
mov word [ecx], ax
inc ecx
inc ecx
inc edx
test ax, ax
jne 0x4133f3
push 0xa28
lea eax, [ebp - 0x14b8]
push eax
lea eax, [ebp - 0x62]
push eax
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
lea eax, [ebp - 0x14b8]
push eax
lea eax, [ebp - 0x64]
push eax
mov ecx, 0x4db0e0
call fcn.0044414b
add esi, 4
cmp esi, 0x4d92ec
jl 0x4133e0
pop esi
leave
ret
Function at 0x413ed2
Capabilities:
Check if file exists
Unmount volume via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp ebx, edi
je 0x413fd2
cmp dword [ebp + 8], 0xffffffff
jne 0x413fd2
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
push ebx
call esi
cmp eax, 2
jne 0x413f0c
xor eax, eax
cmp word [ebx + 2], 0x3a
sete al
jmp 0x413f2d
push ebx
call esi
cmp eax, 3
jne 0x413f2b
lea eax, [ebx + 2]
push 0x4c2990
push eax
call fcn.004ad37d
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x413f2d
xor eax, eax
cmp eax, edi
je 0x413f87
mov ax, word [ebx]
mov esi, str.._:
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0
movsd dword es:[edi], dword [esi]
mov ebx, 0x20000000
push ebx
push 3
push 0
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.DLL_CreateFileW]
push 3
mov word [ebp - 0x10], ax
push 0xc0000000
lea eax, [ebp - 0x18]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x414012
push 0
push ebx
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x18]
push eax
call edi
xor edi, edi
jmp 0x413ff5
push 0xc0000000
push ebx
call dword [0x4db06c]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414014
push 0x80000000
push ebx
call dword [0x4db06c]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414014
call dword [sym.imp.KERNEL32.DLL_GetLastError]
dec eax
je 0x413fca
sub eax, 0x56
je 0x413fca
sub eax, 0x3a
je 0x413fca
sub eax, 0x7a
je 0x413fca
sub eax, 0x101b
push 9
pop eax
jmp 0x4140a2
push 0xc0000000
push dword [ebp + 8]
call dword [0x4db068]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414014
push 0x80000000
push dword [ebp + 8]
call dword [0x4db068]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414014
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor ecx, ecx
cmp eax, 2
setne cl
inc ecx
mov eax, ecx
jmp 0x4140a2
xor edi, edi
push esi
call fcn.0041390e
test eax, eax
pop ecx
jne 0x41402d
push 5
pop edi
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
jmp 0x4140a2
test byte [ebp + 0x10], 3
mov ebx, dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
je 0x41406e
push esi
call dword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
push edi
lea eax, [ebp + 0xc]
push eax
push edi
push edi
push edi
push edi
push 0x90018
push esi
call ebx
test eax, eax
jne 0x414059
push 2
jmp 0x414021
push edi
lea eax, [ebp + 0xc]
push eax
push edi
push edi
push edi
push edi
push 0x90020
push esi
call ebx
test eax, eax
je 0x414055
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push 8
lea eax, [ebp - 8]
push eax
push 8
push eax
push 0x83722014
push esi
call ebx
cmp dword [ebp - 8], edi
je 0x414099
push 3
jmp 0x414021
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4140a7
Capabilities:
Check if file exists
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
xor eax, eax
cmp esi, ebx
mov dword [ebp - 0x34], ebx
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jne 0x41410b
push 0xc0000000
push dword [ebp + 8]
call dword [0x4db068]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4141ea
push 0x80000000
push dword [ebp + 8]
call dword [0x4db068]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4141ea
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor ecx, ecx
cmp eax, 2
setne cl
inc ecx
mov eax, ecx
jmp 0x41428a
mov edi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
push esi
call edi
cmp eax, 2
jne 0x414125
xor eax, eax
cmp word [esi + 2], 0x3a
sete al
jmp 0x414146
push esi
call edi
cmp eax, 3
jne 0x414144
lea eax, [esi + 2]
push 0x4c2990
push eax
call fcn.004ad37d
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x414146
xor eax, eax
cmp eax, ebx
je 0x41419f
mov eax, dword [ebp + 0xc]
mov ax, word [eax]
mov esi, str.._:
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
push 0x20000000
movsd dword es:[edi], dword [esi]
push 3
push ebx
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.DLL_CreateFileW]
push 3
mov word [ebp - 0x1c], ax
push 0xc0000000
lea eax, [ebp - 0x24]
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x4141ea
push ebx
push 0x20000000
push 3
push ebx
push 3
push 0x80000000
lea eax, [ebp - 0x24]
push eax
call esi
jmp 0x4140ea
push 0xc0000000
push esi
call dword [0x4db06c]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4141ea
push 0x80000000
push esi
call dword [0x4db06c]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4141ea
call dword [sym.imp.KERNEL32.DLL_GetLastError]
dec eax
je 0x4141e2
sub eax, 0x56
je 0x4141e2
sub eax, 0x3a
je 0x4141e2
sub eax, 0x7a
je 0x4141e2
sub eax, 0x101b
push 9
pop eax
jmp 0x41428a
mov eax, dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0x10
lea eax, [ebp - 0x34]
push eax
push 0x7c0d0
push edi
mov dword [ebp - 0x34], 1
call esi
test eax, eax
jne 0x414221
push 3
pop ebx
jmp 0x414281
push ebx
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x7405c
push edi
call esi
test eax, eax
je 0x414253
push ebx
lea eax, [ebp - 4]
push eax
push 0x18
lea eax, [ebp - 0x4c]
push eax
push ebx
push ebx
push 0x70000
push edi
call esi
test eax, eax
jne 0x414257
push 2
jmp 0x41421e
push ebx
push dword [ebp - 0x38]
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.004acfc0
push ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 8
lea eax, [ebp - 0x14]
push eax
push 0x900f0
push edi
mov dword [ebp - 0x10], edx
call esi
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret