joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46bf90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x46bffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x46c035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.0046be00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x46bfc5
mov edi, 0x4868b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x46c035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0046be00
add edi, 4
add esp, 0xc
cmp edi, 0x4868c0
jb 0x46c000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x46c070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.00472082
mov esi, eax
add esp, 8
test esi, esi
je 0x46c107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x46c102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00471946
add esp, 8
test eax, eax
je 0x46c0e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x46c0e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00471946
add esp, 8
test eax, eax
jne 0x46c0c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x46c102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x46cf10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4819fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x46d002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00470dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x46d002
lea edx, [esp + 0x14]
push edx
push 0x487140
call fcn.004686e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0047120b
push 0x10
call fcn.004711d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x46cfc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.0045d1c0
jmp 0x46cfc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.0046cb80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x46cff0
mov ecx, edi
call fcn.0045d2c0
push edi
call fcn.004711c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x46d021
inc ebx
cmp ebx, 0x20
jb 0x46cf3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x46e250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482808
push 0x472288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x46e329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x46e329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004711d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x46e329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x46e329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x46e32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0046e351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46ed20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x46ed58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x46ed60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x46ed94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46ed94
push eax
push esi
call fcn.0047120b
add esp, 8
pop esi
ret 0x10

Function at 0x46eda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46ee22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x46ee15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x487320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00470dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x46edda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x46ee30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46eec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x46eeb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x487320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00470dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x46eeab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x46ee6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x46f000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x46f131
push esi
call fcn.00472145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00461080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x46f131
push 0
push ebp
call fcn.004613a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00461260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x46f08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.004612f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x46f121
push 0x487918
push edi
call fcn.004703f0
push eax
push ebx
push esi
call fcn.0046ef60
push 0x4878f8
push edi
call fcn.004703f0
push eax
push ebx
push esi
call fcn.0046ef60
push 0x4878d8
push edi
call fcn.004703f0
push eax
push ebx
push esi
call fcn.0046ef60
push 0x4878c0
push edi
call fcn.004703f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.0046ef60
push 0x4878a0
push edi
call fcn.004703f0
push eax
push ebx
push esi
call fcn.0046ef60
push 0x487888
push edi
call fcn.004703f0
push eax
push ebx
push esi
call fcn.0046ef60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4701b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00470140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00470140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00470140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00470140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x470230
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x20c
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x218]
push ebp
mov ebp, dword [esp + 0x218]
push esi
push eax
push 0xf003f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4702d6
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea ecx, [esp + 0x14]
push 0x104
push ecx
push eax
push edx
call edi
mov esi, eax
test esi, esi
jne 0x4702ae
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.00470230
mov esi, eax
add esp, 8
test esi, esi
jne 0x4702ae
lea edx, [esp + 0x14]
push 0x104
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call edi
mov esi, eax
test esi, esi
je 0x47027e
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
pop edi
je 0x4702ce
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret

Function at 0x470bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x470c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x48287c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x470c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x470c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x1022b17
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
jne 0x1022bd2
push 0x1004a34
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 4], eax
je 0x1022bcc
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1004a14
push eax
call edi
push 0x10049f4
push dword [esi + 4]
mov dword [esi + 8], eax
call edi
push 0x10049d4
push dword [esi + 4]
mov dword [esi + 0xc], eax
call edi
push 0x10049b4
push dword [esi + 4]
mov dword [esi + 0x10], eax
call edi
push 0x1004990
push dword [esi + 4]
mov dword [esi + 0x14], eax
call edi
push 0x1004968
push dword [esi + 4]
mov dword [esi + 0x18], eax
call edi
push 0x1004944
push dword [esi + 4]
mov dword [esi + 0x1c], eax
call edi
cmp dword [esi + 8], ebx
mov dword [esi + 0x20], eax
pop edi
je 0x1022bc0
cmp dword [esi + 0xc], ebx
je 0x1022bc0
cmp dword [esi + 0x10], ebx
je 0x1022bc0
cmp dword [esi + 0x14], ebx
je 0x1022bc0
cmp dword [esi + 0x18], ebx
je 0x1022bc0
cmp eax, ebx
je 0x1022bc0
cmp dword [esi + 0x1c], ebx
jne 0x1022bcc
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 4], ebx
mov dword [esi], 1
pop esi
pop ebx
ret

Function at 0x1023152
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x204
cmp dword [ebp + 0xc], 0
mov eax, dword [0x10de03c]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
mov edi, ecx
je 0x10231b8
push 0x100
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x1023199
lea eax, [ebp - 0x204]
push esi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x204]
push eax
mov ecx, edi
call fcn.0102309e
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01075bbb
leave
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10231e0
test ah, 4
je 0x10231e0
push 0x100
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x1023199
xor eax, eax
jmp 0x10231aa
Function at 0x1023425
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [0x10de03c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [ebp - 0x834], eax
lea eax, [ebp - 0x828]
push eax
push dword [0x10dc6f0]
push 0x80000002
call ebx
test eax, eax
je 0x1023467
xor eax, eax
jmp 0x10234f4
push esi
push edi
xor esi, esi
mov eax, dword [esi + 0x10046c0]
mov edi, dword [esi + 0x10046c4]
lea ecx, [ebp - 0x82c]
push ecx
push eax
push dword [ebp - 0x828]
mov dword [ebp - 0x830], 0x820
call ebx
test eax, eax
jne 0x10234db
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x838]
push eax
push 0
push edi
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10234cf
mov ecx, dword [ebp - 0x834]
lea eax, [ebp - 0x824]
push eax
call fcn.0102332e
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 8
cmp esi, 0x50
jb 0x102346b
push dword [ebp - 0x828]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01075bbb
leave
ret 4

Function at 0x1023506
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x10cc544
call fcn.01077868
sub esp, 0x22c
mov eax, dword [0x10de03c]
push ebx
push esi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x220]
push eax
push dword [0x10dc6cc]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x102358b
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x238]
push eax
push 0
push 0x1004a58
push dword [ebp - 0x220]
mov dword [ebp - 0x22c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10235a6
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.01075bbb
pop edi
pop esi
pop ebx
leave
ret 4
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
mov dword [ebp - 0x230], eax
lea eax, [eax + eax + 0x1e]
push eax
mov dword [ebp - 0x224], eax
call sub.MFC42u.DLL_operatornew
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 0x228], ebx
je 0x102358b
push 7
pop ecx
mov esi, str._GlobalRoot
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x230]
lea esi, [ebp - 0x21c]
lea edi, [ebx + 0x1c]
rep movsw word es:[edi], word [esi]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x234]
and word [eax + ebx - 2], 0
and dword [ebp - 4], 0
push ebx
call fcn.0102332e
or dword [ebp - 4], 0xffffffff
push ebx
call sub.MFC42u.DLL_operatordelete
xor eax, eax
pop ecx
inc eax
jmp 0x102358d
Function at 0x1023647
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10cc569
call fcn.01077868
sub esp, 0x884
mov eax, dword [0x10de03c]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], eax
push 0x410
lea eax, [ebp - 0x834]
push eax
push 0x1004ad4
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1023696
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1004a78
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
pop ecx
jmp 0x10236ed
lea ecx, [ebp - 0x860]
call fcn.01022f85
xor edi, edi
lea eax, [ebp - 0x860]
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0x838], edi
mov dword [ebp - 0x83c], edi
mov byte [ebp - 4], 1
call fcn.01023506
cmp eax, edi
jne 0x10236ce
lea ecx, [ebp - 0x860]
jmp 0x10236e4
lea eax, [ebp - 0x860]
push eax
call fcn.01023425
cmp eax, edi
lea ecx, [ebp - 0x860]
jne 0x10236f4
or dword [ebp - 4], 0xffffffff
call fcn.01022fa6
xor eax, eax
jmp 0x10237f6
lea eax, [ebp - 0x834]
push eax
call fcn.0102332e
lea ecx, [ebp - 0x890]
call fcn.01022af0
lea ecx, [ebp - 0x890]
mov byte [ebp - 4], 2
call fcn.01022b17
lea ecx, [ebp - 0x890]
call fcn.010232d2
lea eax, [ebp - 0x838]
push eax
push 1
lea ecx, [ebp - 0x890]
call fcn.01022bfa
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x83c], ebx
jne 0x1023761
lea ecx, [ebp - 0x890]
call fcn.01022e66
lea ecx, [ebp - 0x890]
mov byte [ebp - 4], 1
call fcn.010232ad
jmp 0x10237d5
push ebx
lea ecx, [ebp - 0x860]
call fcn.0102332e
mov esi, dword [ebp - 0x838]
cmp word [esi], di
je 0x1023791
push esi
lea ecx, [ebp - 0x860]
call fcn.0102332e
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea esi, [esi + eax*2]
jmp 0x1023773
push ebx
call sub.MFC42u.DLL_operatordelete
pop ecx
push dword [ebp - 0x838]
call sub.MFC42u.DLL_operatordelete
pop ecx
mov dword [ebp - 0x83c], edi
mov dword [ebp - 0x838], edi
jmp 0x1023725
lea ecx, [ebp - 0x860]
mov dword [ebp - 4], edi
call fcn.010231e9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x860]
mov esi, eax
call fcn.01022fa6
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.01075bbb
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10259fb
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10de03c]
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
call fcn.0103386b
mov esi, eax
test esi, esi
je 0x1025a5c
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
lea eax, [ebp + esi*2 - 0x20c]
push 0x1004204
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
cmp ecx, eax
sbb eax, eax
neg eax
jmp 0x1025a5e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01075bbb
leave
ret 4

Function at 0x1025a71
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10de03c]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
call fcn.0103386b
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x1025b02
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
mov dword [ebp - 0x210], ebx
call dword [sym.imp.msvcrt.dll_wcsncpy]
lea eax, [ebp + esi*2 - 0x20c]
push 0x1004204
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1025b02
cmp eax, 5
jne 0x1025afd
push ebx
push ebx
lea eax, [ebp - 0x210]
push eax
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test byte [ebp - 0x20e], 8
jne 0x1025b02
xor eax, eax
inc eax
jmp 0x1025b04
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075bbb
leave
ret 4

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

Disassembly:
mov eax, 0x10cc73a
call fcn.01077868
push esi
mov esi, dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1025b68
test al, 0x10
je 0x1025baf
mov eax, dword [esi]
mov ecx, dword [eax - 8]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x1025b50
push 0x1004204
mov ecx, esi
call fcn.010762bc
push 0x1004c50
mov ecx, esi
call fcn.010762bc
push dword [ebp + 0xc]
mov ecx, esi
call fcn.010762a4
jmp 0x1025baf
push 0x5c
mov ecx, esi
call sub.MFC42u.DLL_CString::ReverseFind
cmp eax, 0xffffffff
mov ecx, esi
je 0x1025ba5
push eax
lea eax, [ebp + 8]
push eax
call sub.MFC42u.DLL_CString::Left
and dword [ebp - 4], 0
push eax
mov ecx, esi
call sub.MFC42u.DLL_CString::operator_2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString
push dword [ebp + 0xc]
push esi
call fcn.01025b18
jmp 0x1025baf
push 0x100205c
call sub.MFC42u.DLL_CString::operator_1
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8