joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b903
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4595ec
push 0x4595e4
push str.FlsAlloc
push 0x1e
call fcn.0044b7e1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44b937
push dword [ebp + 8]
mov ecx, esi
call dword [0x455308]
call esi
jmp 0x44b93d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x44b981
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4595fc
push 0x4595f4
push str.FlsGetValue
push 0x20
call fcn.0044b7e1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44b9b8
push dword [ebp + 8]
mov ecx, esi
call dword [0x455308]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x44d24b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x44d2e8
push ebx
push esi
call fcn.0044d214
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0044b5b4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x44d295
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44d2e7
push edi
push eax
call fcn.0044b2a1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x44d2b5
call fcn.0044b267
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44d2e6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0044b5b4
add esp, 0x20
test eax, eax
jne 0x44d2d4
push edi
call fcn.0044b267
jmp 0x44d2dc
push ebx
call fcn.0044b267
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x41128f
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
mov ebx, ecx
push 0xfffffffffffffff5
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x411387
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov esi, eax
test esi, esi
jne 0x4112cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x411386
and esi, 0xffff7fff
cmp esi, 2
jne 0x411318
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jne 0x4112f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
je 0x411318
mov ecx, ebx
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4112f9
push esi
sub ecx, edx
lea eax, [ebp - 0x10]
push eax
sar ecx, 1
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x411386
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
xor esi, esi
mov dword [ebp - 0xc], eax
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 4], eax
test eax, eax
je 0x411386
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x411386
push esi
push esi
push dword [ebp - 4]
push ebx
push 0xffffffffffffffff
push dword [ebp - 8]
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x411377
push esi
lea ecx, [ebp - 0x10]
dec eax
push ecx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
pop ebx
leave
ret
Function at 0x411a56
Capabilities:
Check if file exists
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], edx
push ebx
push ebx
push 3
push ebx
push 1
mov edi, ecx
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0xc], esi
cmp esi, 0xffffffff
jne 0x411acb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x411ab6
cmp esi, 3
je 0x411ab6
mov edx, esi
mov ecx, edi
call fcn.00411e8e
push esi
push edi
push 0x402fa0
push 4
call fcn.0041944e
add esp, 0x10
jmp 0x411b9d
push edi
push 0x403008
push 2
call fcn.0041944e
add esp, 0xc
jmp 0x411b9d
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x411b01
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.00411e8e
push esi
push edi
push 0x403098
push 4
call fcn.0041944e
add esp, 0x10
jmp 0x411b94
cmp dword [ebp - 0x18], ebx
je 0x411b24
push 0x57
pop esi
mov edx, esi
mov ecx, edi
call fcn.00411e8e
push edi
push 0x4030fc
push 4
call fcn.0041944e
add esp, 0xc
jmp 0x411b94
push ebx
push dword [ebp - 0x1c]
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x411b54
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.00411e8e
push esi
push edi
push 0x403128
jmp 0x411af2
push dword [ebp - 0x1c]
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x411ba6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.00411e8e
push esi
push edi
push 0x403188
push 4
call fcn.0041944e
mov ecx, dword [ebp - 8]
add esp, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x411bbc
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [eax], esi
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x411f0e
Capabilities:
Acquire debug privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push edi
mov ebx, edx
mov dword [ebp - 8], 0x403660
push eax
xor edx, edx
push ecx
inc edx
lea ecx, [ebp - 8]
call fcn.004196d9
mov edi, eax
test edi, edi
je 0x411f46
mov ecx, dword [ebp - 4]
mov edx, ebx
call fcn.00419597
mov edi, eax
cmp dword [ebp - 4], 0
je 0x411f5e
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop ebx
leave
ret

Function at 0x412124
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x42c044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
test edi, edi
jne 0x41214f
mov dword [0x42c4f8], esi
jmp 0x4122db
push 0x5c
pop eax
cmp word [edi], ax
jne 0x4121a8
push 2
lea edx, [ecx + 2]
pop ebx
mov ax, word [ecx]
add ecx, ebx
cmp ax, si
jne 0x41215d
sub ecx, edx
sar ecx, 1
mov eax, ecx
mul ebx
cmp edx, esi
ja 0x4122d6
jb 0x412182
cmp eax, 0xffffffff
ja 0x4122d6
lea ebx, [eax + 2]
cmp ebx, eax
jb 0x4122d6
push edi
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_wcscpy_s]
add esp, 0xc
jmp 0x4122a3
push 0x104
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push 2
pop ebx
test eax, eax
jne 0x412276
push 0x104
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x4121e7
mov esi, 0xc000000d
jmp 0x4122db
push 0x32
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x4121dd
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_wcscpy_s]
lea ecx, [ebp - 0x210]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, ebx
cmp ax, si
jne 0x412226
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jbe 0x412276
push 0x5c
pop edx
cmp word [ebp - 0x20e], dx
jne 0x41224f
push 0x3f
pop eax
mov word [ebp - 0x20e], ax
cmp word [ebp + ecx*2 - 0x212], dx
jne 0x412276
lea ecx, [ecx*2 - 2]
cmp ecx, 0x208
jae 0x4122ec
xor eax, eax
mov word [ebp + ecx - 0x210], ax
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, ebx
cmp ax, si
jne 0x41227f
sub ecx, edx
sar ecx, 1
mov eax, ecx
mul ebx
cmp edx, esi
ja 0x4122d6
jb 0x41229c
cmp eax, 0xffffffff
ja 0x4122d6
lea ebx, [eax + 2]
cmp ebx, eax
jb 0x4122d6
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x42c4f8], eax
test eax, eax
jne 0x4122c3
mov esi, 0xc0000017
jmp 0x4122db
push ebx
lea ecx, [ebp - 0x210]
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x4122db
mov esi, 0xc0000095
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a860
leave
ret
call fcn.0042a9a8
int3
Function at 0x4122f2
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebx
push esi
push edi
xor eax, eax
mov ebx, ecx
push 0x208
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x412323
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4123b3
push 0x104
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
xor ebx, ebx
test eax, eax
je 0x4123a4
push 0x208
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x412359
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4123a4
push 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x412381
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x4123a4
mov esi, ebx
jmp 0x4123a4
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x412386
sub ecx, edx
sar ecx, 1
cmp word [esi + ecx*2 - 2], 0x5c
jne 0x4123a4
xor eax, eax
mov word [esi + ecx*2 - 2], ax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x413664
Capabilities:
Delete file
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x42c044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov ebx, ecx
push eax
mov edi, edx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.RPCRT4.dll_UuidCreate]
mov esi, edi
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x413691
sub esi, ecx
sar esi, 1
lea eax, [esi*2 + 0x50]
push eax
push 8
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x413756
movzx ecx, byte [ebp - 5]
movzx eax, byte [ebp - 8]
push ecx
movzx ecx, byte [ebp - 6]
push ecx
movzx ecx, byte [ebp - 7]
push ecx
push eax
movzx eax, byte [ebp - 9]
push eax
movzx eax, byte [ebp - 0xa]
push eax
movzx eax, byte [ebp - 0xb]
push eax
movzx eax, byte [ebp - 0xc]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push edi
push 0x404e68
push dword [ebp - 0x1c]
push esi
call fcn.004124e9
add esp, 0x3c
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x413746
mov ecx, esi
call fcn.0041b5fc
test eax, eax
jne 0x413746
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x404ed8
push 3
call fcn.0041944e
add esp, 0x10
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
inc esi
push ecx
push ecx
push 0
mov edx, edi
mov ecx, ebx
call fcn.0041af2a
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4137d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x18]
mov ebx, eax
mov edx, ebx
call fcn.00411e8e
mov edx, ebx
mov ecx, edi
call fcn.00411e8e
push ebx
push 0x3c
push esi
push edi
push dword [ebp - 0x18]
push 0x404f68
push 4
call fcn.0041944e
add esp, 0x1c
cmp esi, 0x3c
jae 0x4137b6
push 0xa
mov eax, esi
xor edx, edx
pop ecx
div ecx
mov eax, dword [eax*4 + 0x4037e4]
jmp 0x4137b8
xor eax, eax
test eax, eax
je 0x4137c3
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [ebp - 0x18]
inc esi
lea eax, [esi - 1]
cmp eax, 0x3c
jb 0x413759
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a860
leave
ret
Function at 0x4137e8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
xor edi, edi
mov dword [ebp - 0xc], ebx
test esi, esi
je 0x4138c1
test ebx, ebx
je 0x4138c1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4138c1
test al, 0x50
jne 0x4138c1
push 0x5c
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x41383b
add eax, 2
jmp 0x41383d
mov eax, esi
push 0x404fec
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x413856
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41386b
test al, 0x50
jne 0x41386b
mov ebx, dword [ebp + 8]
jmp 0x41386e
xor ebx, ebx
inc ebx
mov edx, dword [ebp - 4]
mov ecx, esi
call fcn.0041a013
mov ecx, edx
mov esi, eax
or eax, ecx
mov dword [ebp - 8], ecx
jne 0x413887
mov edi, ebx
jmp 0x4138c1
mov ebx, dword [0x42c4f4]
mov eax, dword [0x42c4f0]
cmp ecx, ebx
jb 0x4138a1
ja 0x41389c
cmp esi, eax
jbe 0x4138a1
mov ebx, dword [ebp - 8]
jmp 0x4138a3
mov esi, eax
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
call fcn.0041a013
mov ecx, eax
or eax, edx
je 0x4138be
cmp ebx, edx
jb 0x4138c1
ja 0x4138be
cmp esi, ecx
jb 0x4138c1
xor edi, edi
inc edi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x413ba6
Capabilities:
Access pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
call fcn.00413c32
cmp eax, 2
jne 0x413c2d
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
lea edx, [ebp - 4]
xor esi, esi
call fcn.00411a56
test eax, eax
je 0x413bea
push eax
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x413be2
movzx esi, word [eax + 4]
lea ecx, [ebp - 0x10]
call fcn.00411edc
sub esi, 0x14c
je 0x413c1c
sub esi, 0x76
je 0x413c15
sub esi, 0x84a2
je 0x413c0e
sub esi, 0x2400
jne 0x413c2d
push 0x405228
jmp 0x413c21
push 0x4051f8
jmp 0x413c21
push 0x405210
jmp 0x413c21
push 0x4051b8
mov edx, 0x4051e0
mov ecx, edi
call fcn.00419c9b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413d45
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, edx
mov ebx, 0x80
push edi
mov edi, ecx
cmp esi, ebx
je 0x413d79
test esi, 0xffffff78
je 0x413d79
push edi
push esi
push 0x405268
push 4
xor ebx, ebx
call fcn.0041944e
add esp, 0x10
push 0x57
jmp 0x413e04
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x413dbc
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.00411e8e
cmp esi, 2
je 0x413daa
push esi
push edi
push 0x4052c8
push 3
jmp 0x413dfb
push edi
push 0x405328
push 2
call fcn.0041944e
add esp, 0xc
jmp 0x413e03
and ecx, 0x3120
or ecx, esi
mov eax, ecx
or eax, ebx
cmp eax, ebx
je 0x413dd3
mov eax, ecx
and eax, 0xffffff7f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, eax
test ebx, ebx
jne 0x413e0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.00411e8e
push esi
push edi
push 0x405388
push 4
call fcn.0041944e
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x4175b3
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x42c044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x407fd8]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov ebx, edx
mov ax, word [0x407fdc]
mov edi, ecx
push 0x43
mov word [ebp - 8], ax
mov esi, 0xc000000e
pop eax
mov word [ebp - 0xc], ax
push 0x40
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x417618
lea eax, [ebp - 0x8c]
push eax
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x41762a
mov ax, word [ebp - 0xc]
inc ax
mov word [ebp - 0xc], ax
cmp ax, 0x5a
jbe 0x4175ed
jmp 0x41768c
lea ecx, [ebp - 0xc]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x417632
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
test edx, edx
jne 0x417665
mov esi, 0xc000009a
jmp 0x41768c
lea ecx, [ebp - 0xc]
mov dword [ebx], edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x41766d
sub ecx, edi
lea eax, [ebp - 0xc]
sar ecx, 1
push eax
inc ecx
push ecx
push edx
call dword [sym.imp.msvcrt.dll_wcscpy_s]
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a860
leave
ret
Function at 0x41769d
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x43
pop esi
mov edi, edx
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edx, eax
test edx, edx
jne 0x4176ef
push 0x407fe0
push 4
call fcn.0041944e
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x4176dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4177e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0xc0070000
jmp 0x4177e3
push 2
pop ecx
mov eax, edx
shr eax, cl
test al, 1
je 0x41770b
inc ecx
inc esi
cmp ecx, 0x1a
jl 0x4176f2
mov eax, 0xc0000225
jmp 0x4177e3
push ebx
push 6
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0x41773b
push 0x408028
push 4
call fcn.0041944e
pop ecx
pop ecx
mov eax, 0xc000009a
jmp 0x4177e2
movzx esi, si
push esi
push 0x408088
push 2
call fcn.0041944e
push esi
push 0x4080d4
push 3
push ebx
call dword [sym.imp.msvcrt.dll_swprintf_s]
push ebx
push 0x4080e0
push 2
mov dword [edi], ebx
call fcn.0041944e
mov ebx, dword [ebp - 4]
add esp, 0x28
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
test eax, eax
je 0x417792
push dword [edi]
push ebx
push 0x408124
push 2
call fcn.0041944e
add esp, 0x10
xor eax, eax
jmp 0x4177e2
cmp dword [edi], 0
je 0x4177a8
push dword [edi]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [edi], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x408150
push 4
call fcn.0041944e
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x4177d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4177e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
or eax, 0xc0070000
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4177e7
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x42c044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov ebx, ecx
mov dword [ebp - 0x41c], edx
push ebx
push 0x4081a8
push 2
mov edi, 0xc000000e
call fcn.0041944e
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov dword [ebp - 0x418], eax
test eax, eax
jne 0x41784f
push ebx
push 0x4081f0
push 2
add edi, 0xfffffff3
call fcn.0041944e
add esp, 0xc
jmp 0x417966
push esi
lea esi, [ebp - 0x20c]
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x41785b
sub esi, ecx
xor eax, eax
sar esi, 1
push 0x104
mov word [ebp + esi*2 - 0x20e], ax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push 0x5c
pop ecx
mov word [ebp + esi*2 - 0x20e], cx
test eax, eax
je 0x4178d3
lea ecx, [ebp - 0x414]
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4178ca
test dx, dx
je 0x4178c6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4178ca
add eax, 4
add ecx, 4
test dx, dx
jne 0x4178a4
xor eax, eax
jmp 0x4178cf
sbb eax, eax
or eax, 1
test eax, eax
je 0x4178f4
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
je 0x417959
jmp 0x417850
lea eax, [ebp - 0x20c]
push eax
push 0x408238
push 2
call fcn.0041944e
add esp, 0xc
push 0x20a
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
lea ecx, [ebp - 0x20c]
mov eax, dword [ebp - 0x41c]
lea esi, [ecx + 2]
xor ebx, ebx
mov dword [eax], edx
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x417933
sub ecx, esi
lea eax, [ebp - 0x20c]
sar ecx, 1
push eax
lea eax, [ecx + 1]
push eax
push edx
call dword [sym.imp.msvcrt.dll_wcscpy_s]
add esp, 0xc
mov edi, ebx
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
pop esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.0042a860
leave
ret