joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10023e80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101e1fab
push eax
mov eax, dword [0x1027fba8]
mov dword fs:[0], esp
sub esp, 0x430
push ebp
xor ebp, ebp
cmp eax, ebp
je 0x10023ec2
mov eax, dword [0x1027fba4]
pop ebp
mov ecx, dword [esp + 0x430]
mov dword fs:[0], ecx
add esp, 0x43c
ret
push ebx
push esi
mov eax, 1
push edi
mov dword [0x1027fba8], eax
mov dword [0x1027fba4], eax
mov esi, 0x20019
call fcn.100e06d0
test eax, eax
je 0x10023ee7
mov esi, 0x20219
lea ecx, [esp + 0x10]
call fcn.10086ff0
push esi
push str.softwareTECOcular.3Agent
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x454], ebp
call fcn.10087110
test eax, eax
mov ebx, 2
je 0x10023f78
push 4
push str.RunAs
lea ecx, [esp + 0x18]
call fcn.10089610
push 0xffffffffffffffff
push str.RunAs
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.100872b0
and eax, 0xff
jne 0x10023f45
mov dword [0x1027fba4], ebp
jmp 0x10023f67
cmp eax, ebx
jne 0x10023f51
mov dword [0x1027fba4], ebx
jmp 0x10023f67
cmp eax, 3
jne 0x10023f5d
mov dword [0x1027fba4], eax
jmp 0x10023f67
cmp eax, 4
jne 0x10023f67
mov dword [0x1027fba4], eax
lea ecx, [esp + 0x10]
call fcn.10087160
cmp esi, ebp
jne 0x10024065
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x32]
mov word [esp + 0x30], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x23a]
mov word [esp + 0x238], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebp
lea eax, [esp + 0x23c]
push 0x104
push eax
call fcn.100ce570
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esp + 0x24], ebx
add esp, 0xc
mov dword [esp + 0x24], str.ingress_sdm.exe
mov dword [esp + 0x28], str.ist.exe
mov dword [esp + 0x2c], str.OGuard.exe
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], 4
lea ebx, [esp + 0x24]
mov ecx, dword [ebx]
lea edx, [esp + 0x238]
push ecx
push edx
push 0x10236e60
lea eax, [esp + 0x3c]
push 0x103
push eax
call esi
add esp, 0x14
lea ecx, [esp + 0x30]
push ecx
call edi
cmp eax, 0xffffffff
je 0x10024050
lea edx, [esp + 0x238]
push str.winrdlv3.exe
push edx
push 0x10236e60
lea eax, [esp + 0x3c]
push 0x103
push eax
call esi
add esp, 0x14
lea ecx, [esp + 0x30]
push ecx
call edi
cmp eax, 0xffffffff
je 0x1002405b
inc ebp
add ebx, 4
cmp ebp, 3
jb 0x10023ff8
jmp 0x10024065
mov edx, dword [esp + ebp*4 + 0x18]
mov dword [0x1027fba4], edx
mov esi, dword [0x1027fba4]
lea ecx, [esp + 0x10]
mov dword [esp + 0x448], 0xffffffff
call fcn.10087090
mov ecx, dword [esp + 0x440]
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
mov dword fs:[0], ecx
add esp, 0x43c
ret
Function at 0x10024d60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov ecx, 0x1027fbb0
jmp 0x10024d90
push 0xffffffffffffffff
push 0x101e2066
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 4], 0x101fa9b4
mov dword [esi + 8], ebx
mov dword [esi + 0xc], 0x11
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], 0xa
lea edi, [esi + 0x20]
push ebx
mov ecx, edi
mov dword [esp + 0x1c], ebx
call sub.MFC42u.DLL_CSyncObject::CSyncObject
mov dword [edi], 0x101f9dd8
add edi, 8
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [esi + 0x48]
mov byte [esp + 0x30], 1
mov dword [esi + 0x40], 0x101fa9ac
call fcn.10047740
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
push ebx
push ebx
push ebx
lea ecx, [esi + 0x60]
call fcn.10047440
mov ecx, dword [esp + 0x10]
mov dword [esi], 0x101fa9a8
mov dword [esi + 0x44], esi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x10024f70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x101e20a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [esi + 0x48]
lea ecx, [esi + 0x40]
push 0
push eax
mov dword [eax], ecx
push 2
push 1
lea ecx, [esp + 0x1c]
mov dword [esi + 0x4c], 0x100051f0
call fcn.10047440
push 0
lea edx, [esp + 8]
push 0
push edx
mov ecx, 0x10280390
mov dword [esp + 0x58], 0
call fcn.10048b80
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x14]
mov dword [esi + 0x68], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x64], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x70], edx
mov edx, dword [esp + 0x20]
mov dword [esi + 0x78], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x74], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x84], ecx
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x7c], edx
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x80], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x90], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x88], edx
mov edx, dword [esp + 0x38]
mov dword [esi + 0x8c], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x9c], ecx
lea ecx, [esp + 4]
mov dword [esi + 0x94], edx
mov dword [esi + 0x98], eax
mov dword [esp + 0x4c], 0xffffffff
call fcn.100474a0
mov ecx, dword [esp + 0x44]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x4c
ret
Function at 0x10024f88
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x101e20a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [esi + 0x48]
lea ecx, [esi + 0x40]
push 0
push eax
mov dword [eax], ecx
push 2
push 1
lea ecx, [esp + 0x1c]
mov dword [esi + 0x4c], 0x100051f0
call fcn.10047440
push 0
lea edx, [esp + 8]
push 0
push edx
mov ecx, 0x10280390
mov dword [esp + 0x58], 0
call fcn.10048b80
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x14]
mov dword [esi + 0x68], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x64], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x70], edx
mov edx, dword [esp + 0x20]
mov dword [esi + 0x78], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x74], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x84], ecx
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x7c], edx
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x80], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x90], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x88], edx
mov edx, dword [esp + 0x38]
mov dword [esi + 0x8c], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x9c], ecx
lea ecx, [esp + 4]
mov dword [esi + 0x94], edx
mov dword [esi + 0x98], eax
mov dword [esp + 0x4c], 0xffffffff
call fcn.100474a0
mov ecx, dword [esp + 0x44]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x4c
ret

Function at 0x1002ba20
Capabilities:
Get graphical window text

Disassembly:
call fcn.100e07b0
test eax, eax
je 0x1002ba3f
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
ret
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebp, ebp
test edi, edi
je 0x1002bac1
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x1002bac1
lea ecx, [esi + esi]
xor eax, eax
mov edx, ecx
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call sub.MFC42u.DLL_operatornew
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1002bac1
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebp, eax
test ebp, ebp
je 0x1002bac1
push esi
mov esi, dword [esp + 0x1c]
push esi
push 0xffffffffffffffff
push ebx
xor ebp, ebp
call fcn.1004ebd0
add esp, 0x10
test eax, eax
je 0x1002bac1
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret
Function at 0x1003a9a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x101e4788
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0x1388
lea eax, [esi + 0x10]
lea ecx, [esi + 4]
push 0
push eax
mov dword [eax], ecx
push 0
push 2
lea ecx, [esp + 0x1c]
mov dword [esi + 0x14], 0x100051f0
call fcn.10047440
push 0
lea edx, [esp + 8]
push 0
push edx
mov ecx, 0x10280390
mov dword [esp + 0x58], 0
call fcn.10048b80
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x14]
mov dword [esi + 0x30], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x38], edx
mov edx, dword [esp + 0x20]
mov dword [esi + 0x40], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x4c], ecx
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x44], edx
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x58], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x50], edx
mov edx, dword [esp + 0x38]
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x64], ecx
lea ecx, [esp + 4]
mov dword [esi + 0x5c], edx
mov dword [esi + 0x60], eax
mov dword [esp + 0x4c], 0xffffffff
call fcn.100474a0
mov ecx, dword [esp + 0x44]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x4c
ret

Function at 0x1003bab0
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 4], edi
jne 0x1003bafd
mov eax, dword [esi + 8]
cmp dword [eax - 8], edi
je 0x1003bafd
call fcn.100b2350
mov ecx, dword [esi + 8]
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, edi
mov dword [esi + 4], eax
je 0x1003bafd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1003baf0
pop edi
mov eax, 1
pop esi
ret
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], edi
mov eax, edi
pop edi
pop esi
ret
Function at 0x1003bc40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101e48e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
push edi
mov dword [esp + 0x1c], esi
lea edi, [esi + 4]
mov ecx, edi
call fcn.10077860
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0
mov dword [esi], 0x101fab98
call fcn.10077860
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.10077860
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 2
call fcn.10077860
lea ecx, [esp + 8]
mov byte [esp + 0x28], 3
call fcn.10077860
mov eax, dword [esp + 0x34]
mov byte [esp + 0x28], 4
test eax, eax
je 0x1003bcd0
call fcn.100e93d0
push eax
lea eax, [esp + 0x18]
push 0x10242bf0
push eax
call fcn.1007b320
add esp, 0xc
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1003bcf1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [esp + 0x14]
push 0x10242bf0
push ecx
call fcn.1007b320
add esp, 0xc
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x1003bd12
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea edx, [esp + 0x10]
push 0x10242bf0
push edx
call fcn.1007b320
add esp, 0xc
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1003bd33
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [esp + 0xc]
push str.__lu
push eax
call fcn.1007b320
add esp, 0xc
mov ecx, dword [esp + 0x30]
push ecx
lea ecx, [esp + 0x1c]
call fcn.10077a80
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
push str._s_s_s_s_s
push edi
mov byte [esp + 0x44], 5
call fcn.1007b320
add esp, 0x1c
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 4
call fcn.10078300
lea ecx, [esp + 8]
mov byte [esp + 0x28], 3
call fcn.10078300
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 2
call fcn.10078300
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.10078300
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0
call fcn.10078300
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 0x14

Function at 0x1003bff0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101e4977
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0
call fcn.10077860
lea ecx, [esp + 4]
mov dword [esp + 0x18], 1
call fcn.10077860
mov eax, dword [esp + 0x24]
mov byte [esp + 0x18], 2
test eax, eax
je 0x1003c041
push 0x10249ec0
jmp 0x1003c046
push 0x10249eb0
lea ecx, [esp + 8]
call fcn.100785e0
mov eax, dword [esi + 4]
mov ecx, dword [esp + 4]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x1023ddec
push edx
call fcn.1007b320
mov esi, dword [esp + 0x30]
add esp, 0x10
lea eax, [esp + 8]
mov ecx, esi
push eax
call fcn.10077870
mov dword [esp + 0xc], 1
lea ecx, [esp + 4]
mov byte [esp + 0x18], 1
call fcn.10078300
lea ecx, [esp + 8]
mov byte [esp + 0x18], 0
call fcn.10078300
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 8
Function at 0x1003c460
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, 0x10280268
jmp 0x1003c490
push 0xffffffffffffffff
push 0x101e4a31
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0x10], esi
mov dword [esi + 0x60], 0x101fabb8
mov dword [esi + 0x64], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x68], edi
lea ecx, [esi + 0x80]
mov dword [esp + 0x1c], edi
call fcn.1007f200
lea ecx, [esi + 0x90]
mov byte [esp + 0x1c], 1
call fcn.1007f200
lea ebx, [esi + 0xa0]
push edi
mov ecx, ebx
mov byte [esp + 0x20], 2
call sub.MFC42u.DLL_CSyncObject::CSyncObject
mov ebp, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebx], 0x101f9dd8
add ebx, 8
push ebx
call ebp
lea ebx, [esi + 0xc0]
push edi
mov ecx, ebx
mov byte [esp + 0x20], 3
call sub.MFC42u.DLL_CSyncObject::CSyncObject
mov dword [ebx], 0x101f9dd8
add ebx, 8
push ebx
call ebp
mov dword [esi + 0xe0], 0x101faba4
mov dword [esi + 0xe4], edi
mov dword [esi + 0xf0], edi
mov dword [esi + 0xec], edi
mov dword [esi + 0xe8], edi
mov ecx, esi
mov byte [esp + 0x1c], 5
mov dword [esi], 0x101faba0
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
call fcn.1003c6e0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0xc]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x1003c960
Capabilities:
Acquire debug privileges

Disassembly:
mov eax, dword [0x1028035c]
test eax, eax
jne 0x1003c97f
push 1
push str.SeDebugPrivilege
push 0xffffffffffffffff
call fcn.10124260
add esp, 0xc
mov dword [0x1028035c], eax
ret
Function at 0x1003d96f
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x310
push ebx
mov ebx, dword [esp + 0x318]
push ebp
push esi
mov esi, ecx
push edi
test ebx, ebx
mov dword [esp + 0x10], esi
je 0x1003db6f
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x1003db6f
mov ecx, 0x40
lea edi, [esp + 0x15]
mov byte [esp + 0x14], al
mov ebp, dword [sym.imp.MSVCRT.dll_strncpy]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x103
lea eax, [esp + 0x18]
push ebx
push eax
call ebp
mov al, byte [esp + 0x20]
add esp, 0xc
cmp al, 0x5c
jne 0x1003dad0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x118], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.MSVCRT.dll__strnicmp]
push 0xc
lea ecx, [esp + 0x18]
push 0x1024c9c4
push ecx
call edi
add esp, 0xc
test eax, eax
jne 0x1003da8a
mov edi, 0x1024c9b4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x118]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x125]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x104
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x128], 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x11c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x1003db6f
cmp eax, 0x104
jb 0x1003dacc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x310
ret 8
push 4
lea eax, [esp + 0x18]
push 0x1024a408
push eax
call edi
add esp, 0xc
test eax, eax
jne 0x1003dad0
lea ecx, [esp + 0x18]
push 0x103
lea edx, [esp + 0x11c]
push ecx
push edx
call ebp
lea eax, [esp + 0x124]
push 0x103
lea ecx, [esp + 0x24]
push eax
push ecx
call ebp
add esp, 0x18
jmp 0x1003dad0
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 0x104
push edx
mov ecx, esi
call fcn.1003e2e0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21d]
mov byte [esp + 0x21c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 4]
test eax, eax
je 0x1003db5b
lea eax, [esp + 0x14]
push 0x7e
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x1003db5b
lea ecx, [esp + 0x21c]
push 0x104
lea edx, [esp + 0x18]
push ecx
push edx
call dword [esi + 4]
test eax, eax
jbe 0x1003db5b
cmp eax, 0x104
jae 0x1003db5b
mov eax, dword [esp + 0x328]
lea ecx, [esp + 0x21c]
dec eax
push eax
push ecx
push ebx
call ebp
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x310
ret 8
mov edx, dword [esp + 0x328]
lea eax, [esp + 0x14]
dec edx
push edx
push eax
push ebx
call ebp
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x310
ret 8
Function at 0x1003db80
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x101e4b50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
push esi
push edi
mov esi, ecx
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.1007f2d0
mov ebp, dword [esp + 0x3c]
push 0xffffffffffffffff
push 0
mov ecx, ebp
call fcn.1007f2d0
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x3c], eax
test ecx, ecx
je 0x1003dbf6
cmp eax, ecx
jne 0x1003dbf6
mov edx, dword [esi + 0x78]
test edx, edx
je 0x1003dbf6
cmp edi, edx
jb 0x1003dbf6
add edx, 0x493e0
cmp edx, edi
jae 0x1003dbfe
mov dword [esp + 0x38], 1
mov edx, dword [0x10282758]
test edx, edx
je 0x1003dc31
mov edx, dword [esi + 0x7c]
push edx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esi + 0x78]
push edi
push edx
push eax
push ecx
push str.CProcMgr::EnumVolumesW___08x______08x____d______d____enum_:__d___loop_:__d_
push str.EnumVolumes
push 0xffffffffffffffff
push 0x10281ec4
call fcn.100de220
add esp, 0x28
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x1003dc84
mov ecx, dword [esi + 0x7c]
lea eax, [esi + 0xa0]
inc ecx
push 1
mov dword [esi + 0x7c], ecx
push eax
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CSingleLock::CSingleLock
lea ecx, [esi + 0x80]
mov dword [esp + 0x30], 0
push ecx
mov ecx, ebx
call fcn.1007f520
add esi, 0x90
mov ecx, ebp
push esi
call fcn.1007f520
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x1003dcf6
push ebp
push ebx
mov ecx, esi
mov dword [esi + 0x7c], 0
call fcn.1003dd20
lea edx, [esi + 0xa0]
push 1
push edx
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CSingleLock::CSingleLock
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x78], edi
lea edi, [esi + 0x80]
push 0xffffffffffffffff
push 0
mov ecx, edi
mov dword [esp + 0x38], 1
mov dword [esi + 0x74], eax
call fcn.1007f2d0
push ebx
mov ecx, edi
call fcn.1007f520
add esi, 0x90
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.1007f2d0
push ebp
mov ecx, esi
call fcn.1007f520
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CSingleLock::Unlock
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x1003dd20
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x101e4b76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push ebp
push esi
mov esi, dword [esp + 0x240]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.1007f2d0
mov ebp, dword [esp + 0x248]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.1007f2d0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
test ecx, edx
je 0x1003de58
mov edx, dword [0x102459a8]
mov cx, word [0x102459ac]
mov dword [esp + 0x18], edx
add word [esp + 0x18], ax
lea edx, [esp + 0x18]
mov word [esp + 0x1c], cx
push edx
lea ecx, [esp + 0x28]
mov word [esp + 0x22], bx
call fcn.10077a80
mov eax, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x244], ebx
call fcn.1007f960
lea ecx, [esp + 0x14]
call fcn.10077860
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x2c]
push 0x103
lea eax, [esp + 0x1c]
push edx
push eax
mov byte [esp + 0x248], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea ecx, [esp + 0x2c]
mov word [esp + 0x232], bx
push ecx
lea ecx, [esp + 0x18]
call fcn.100785e0
mov eax, dword [ebp + 4]
lea edx, [esp + 0x14]
push edx
push eax
mov ecx, ebp
call fcn.1007f960
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call fcn.10078300
lea ecx, [esp + 0x24]
mov dword [esp + 0x23c], 0xffffffff
call fcn.10078300
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
jb 0x1003dd7b
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret 8