joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102595b
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.010337cd
mov esi, eax
test esi, esi
je 0x10259bc
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 0x10259be
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01075aef
leave
ret 4

Function at 0x10259d1
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.010337cd
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x1025a62
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 0x1025a62
cmp eax, 5
jne 0x1025a5d
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 0x1025a62
xor eax, eax
inc eax
jmp 0x1025a64
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075aef
leave
ret 4

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

Disassembly:
mov eax, 0x10cc5ac
call fcn.01077798
push esi
mov esi, dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1025ac8
test al, 0x10
je 0x1025b0f
mov eax, dword [esi]
mov ecx, dword [eax - 8]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x1025ab0
push 0x1004204
mov ecx, esi
call fcn.010761f0
push 0x1004c50
mov ecx, esi
call fcn.010761f0
push dword [ebp + 0xc]
mov ecx, esi
call fcn.010761d8
jmp 0x1025b0f
push 0x5c
mov ecx, esi
call sub.MFC42u.DLL_CString::ReverseFind
cmp eax, 0xffffffff
mov ecx, esi
je 0x1025b05
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.01025a78
jmp 0x1025b0f
push 0x100205c
call sub.MFC42u.DLL_CString::operator_1
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x10268dd
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10de03c]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push 0x20
push 2
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp dword [ebp - 0x10], ebx
je 0x1026946
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push ebx
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
jne 0x102693d
mov dword [ebp - 0x14], ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
pop ebx
call fcn.01075aef
leave
ret 4

Function at 0x1026dfe
Capabilities:
Terminate thread

Disassembly:
mov eax, 0x10cc67f
call fcn.01077798
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x1004f7c
cmp dword [esi + 0x11c], 0
mov dword [ebp - 4], 5
jne 0x1026e40
push 0x3e8
push dword [esi + 0x168]
mov dword [esi + 0x118], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x168]
test eax, eax
je 0x1026e5c
cmp dword [esi + 0x11c], 0
jne 0x1026e5c
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
push dword [esi + 0x108]
mov edi, dword [sym.imp.msvcrt.dll_free]
call edi
push dword [esi + 0x10c]
call edi
push dword [esi + 0x110]
call edi
add esp, 0xc
lea eax, [esi + 0xe8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esi + 0x168]
test eax, eax
pop edi
je 0x1026e9d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi + 0x170]
call fcn.01026d50
lea ecx, [esi + 0x124]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CAnimateCtrl::CAnimateCtrl
lea ecx, [esi + 0xe4]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0xe0]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esi + 0xa0]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CButton::CButton
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CButton::CButton
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call sub.MFC42u.DLL_CDialog::CDialog
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x102811d
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x10cc917
call fcn.01077798
sub esp, 0x688
mov eax, dword [0x10de03c]
push ebx
push esi
push edi
push 0xd
mov edx, ecx
pop ecx
xor ebx, ebx
push ebx
push 1
mov dword [ebp - 0x10], eax
xor eax, eax
push 0x2001
lea edi, [ebp - 0x694]
rep stosd dword es:[edi], eax
lea edi, [edx + 0x150]
push 0x10
lea eax, [ebp - 0x420]
mov esi, 0x104
push 0x10
mov ecx, edi
mov dword [ebp - 0x62c], edx
mov dword [ebp - 0x634], ebx
mov dword [ebp - 0x630], esi
mov dword [ebp - 0x680], eax
call sub.MFC42u.DLL_CImageList::Create
test eax, eax
je 0x10282bb
mov ecx, dword [ebp - 0x62c]
push 1
add ecx, 0xe8
push edi
mov dword [ebp - 0x62c], ecx
call fcn.010280ed
lea eax, [ebp - 0x640]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
jmp 0x10282a8
inc dword [ebp - 0x634]
cmp word [ebp - 0x218], 0x2e
mov dword [ebp - 0x694], 0xb
mov dword [ebp - 0x630], esi
jne 0x102828a
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x660]
call fcn.0103c247
push esi
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x660]
mov dword [ebp - 4], ebx
call fcn.0103bb2d
lea ecx, [ebp - 0x660]
mov dword [ebp - 0x68c], ebx
call fcn.0103bade
push eax
mov ecx, edi
call fcn.01027a61
mov ecx, dword [ebp - 0x62c]
mov dword [ebp - 0x678], eax
lea eax, [ebp - 0x694]
push eax
call fcn.010279be
mov dword [ebp - 0x638], eax
push esi
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x660]
call fcn.0103bb5a
mov ecx, dword [ebp - 0x62c]
lea eax, [ebp - 0x628]
push eax
push 1
push dword [ebp - 0x638]
call sub.MFC42u.DLL_CListCtrl::SetItemText
inc dword [ebp - 0x690]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x660]
call fcn.0103ba5d
lea eax, [ebp - 0x640]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x634]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x10281c5
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01075aef
leave
ret
Function at 0x102a4e1
Capabilities:
Check if file exists
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x10de03c]
and word [ebp - 0x20c], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x20c]
push 0x10054a8
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x102a56e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.01087e03
test ax, ax
je 0x102a569
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
dec eax
neg eax
sbb eax, eax
add eax, 7
mov dword [esi], eax
mov ax, 1
jmp 0x102a5cc
xor ax, ax
jmp 0x102a5cc
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 2
je 0x102a5c8
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
test eax, eax
je 0x102a5bd
cmp eax, 2
je 0x102a5ac
jbe 0x102a5c8
cmp eax, 4
ja 0x102a5c8
xor eax, eax
cmp ebx, 0x6f9
setne al
dec eax
and eax, 0xfffffffd
add eax, 5
mov dword [esi], eax
jmp 0x102a5c3
cmp ebx, 0x15
jne 0x102a5b9
mov dword [esi], 3
jmp 0x102a5c3
mov dword [esi], ecx
jmp 0x102a5c3
mov dword [esi], 4
mov ax, cx
jmp 0x102a5cb
xor ax, ax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01075aef
leave
ret 8
Function at 0x102a700
Capabilities:
Get disk information

Disassembly:
mov eax, 0x10ccd36
call fcn.01077798
sub esp, 0x20c
mov eax, dword [0x10de03c]
push ebx
push esi
mov dword [ebp - 0x10], eax
call fcn.0104e8e8
xor ebx, ebx
test eax, eax
je 0x102a7de
call fcn.01021462
add eax, 0xa2
push eax
lea ecx, [ebp - 0x214]
call sub.MFC42u.DLL_CString::CString_5
mov esi, 0x1004204
push esi
lea ecx, [ebp - 0x214]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::Find_1
cmp eax, 0xffffffff
lea ecx, [ebp - 0x214]
je 0x102a78c
inc eax
push eax
lea eax, [ebp - 0x218]
push eax
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [ebp - 0x214]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
jmp 0x102a792
push esi
call fcn.010761f0
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x102a7c0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x214]
mov word [0x10e0110], 1
call sub.MFC42u.DLL_CString::CString
jmp 0x102a85e
push dword [ebp - 0x214]
push edi
call dword [sym.imp.msvcrt.dll_wcscpy]
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0x214]
call sub.MFC42u.DLL_CString::CString
call fcn.01021462
cmp word [eax + 0xb88], 2
push 0xff
lea eax, [ebp - 0x210]
push eax
je 0x102a800
push 0xfa3
jmp 0x102a805
push 0xe000
call fcn.01067f86
push 1
push ebx
push 0x40
push 4
push 0xbd2
lea eax, [ebp - 0x210]
push eax
call fcn.01054b23
cmp eax, 6
jne 0x102a855
push edi
push 0xbc5
call fcn.01088826
pop ecx
pop ecx
push 1
push ebx
push 0x30
push ebx
mov esi, eax
push esi
push 0xfa0
call fcn.01054b83
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov ax, 0x8008
jmp 0x102a862
mov word [0x10e0110], 1
mov ax, 0x8007
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01075aef
leave
ret
Function at 0x1039f0e
Capabilities:
Create directory
Delete file
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x10de03c]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x214], eax
mov ebx, ecx
xor eax, eax
mov ecx, 0x82
lea edi, [ebp - 0x20c]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x1005d44
xor esi, esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x5c
push dword [ebp - 0x214]
call dword [sym.imp.msvcrt.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
je 0x1039fc2
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
mov edi, dword [sym.imp.msvcrt.dll_wcschr]
push 0x5c
add ebx, 2
push ebx
call edi
add esp, 0x10
test eax, eax
je 0x1039fc2
push 7
lea ebx, [eax + 2]
push 0x1005d34
push ebx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x1039fb5
inc esi
push 0x5c
push ebx
call edi
xor edi, edi
cmp eax, edi
pop ecx
pop ecx
jne 0x1039fc6
xor eax, eax
jmp 0x103a02a
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x210]
push ecx
push edi
push 0x2000000
add eax, 2
neg si
push 4
push edi
push edi
push eax
sbb esi, esi
add esi, 0x80000003
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x103a027
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyW]
push dword [ebp - 0x210]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075aef
leave
ret 4
Function at 0x103aa7f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x10de03c]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, 0x104
push eax
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x414]
push eax
push 0x1005d9c
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x428], esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x103ab0a
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.0108f239
test ax, ax
je 0x103ab13
mov ax, 1
jmp 0x103abc6
cmp dword [ebp + 0x18], 0
jne 0x103ab2b
and word [ebp - 0x20c], 0
mov dword [ebp - 0x41c], 2
cmp dword [ebp + 0x18], 2
mov esi, 0x10054a8
je 0x103ab5e
push edi
push esi
push dword [ebp - 0x41c]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x418]
push dword [ebp - 0x424]
push ebx
call fcn.0103a17c
mov ebx, eax
test bx, bx
jne 0x103abc3
inc dword [edi + 4]
and dword [ebp - 0x418], 0
lea eax, [ebp - 0x418]
push eax
push 6
push 0
push dword [ebp - 0x428]
call fcn.01084401
mov ebx, eax
test bx, bx
jne 0x103abc3
push edi
push esi
push 2
push 0x100205c
push dword [ebp - 0x418]
push dword [ebp - 0x424]
push dword [ebp - 0x420]
call fcn.0103a17c
push dword [ebp - 0x418]
push dword [ebp - 0x420]
mov ebx, eax
call fcn.0108ee4e
test eax, eax
je 0x103abc3
mov byte [eax + 0xcc], 0x23
mov ax, bx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075aef
leave
ret 0x14

Function at 0x103abda
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
xor edi, edi
mov esi, 0x10e1990
xor ebx, ebx
push esi
mov dword [0x10e1bac], edi
mov dword [0x10e1ba8], edi
mov word [0x10e1ba4], di
mov dword [0x10e1ba0], edi
inc ebx
call dword [sym.imp.msvcrt.dll_wcscpy]
mov ax, word [ebp + 0xc]
pop ecx
mov word [0x10e1b98], ax
mov eax, dword [ebp + 0x10]
pop ecx
mov dword [0x10e1b9c], eax
call sub.MFC42u.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42u.DLL_CCmdTarget::BeginWaitCursor
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x103a5ec
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, edi
je 0x103ac7a
call fcn.01075a13
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x103ac49
lea eax, [ebp + 0xc]
push eax
push esi
mov dword [ebp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp + 0xc], edi
jne 0x103ac73
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call sub.MFC42u.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42u.DLL_CCmdTarget::EndWaitCursor
pop edi
pop esi
mov ax, bx
pop ebx
pop ebp
ret 0xc
Function at 0x1046347
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x10cdee2
call fcn.01077798
sub esp, 0x2c0
mov eax, dword [0x10de03c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2cc], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
test eax, eax
mov eax, dword [esi]
mov ecx, esi
je 0x104638a
call dword [eax + 0x28]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
jmp 0x10464a3
call dword [eax + 0x44]
test eax, eax
mov eax, dword [esi]
mov ecx, esi
je 0x10463a5
push 0x23
call dword [eax + 0x2c]
mov eax, dword [esi]
push 0x22
mov ecx, esi
call dword [eax + 0x30]
jmp 0x10463aa
push 0x26
call dword [eax + 0x2c]
push ebx
push edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x2c4], ebx
mov ecx, 0xac
lea edi, [ebp - 0x2c0]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x2c8]
call sub.MFC42u.DLL_CString::CString_4
mov eax, dword [esi]
lea ecx, [ebp - 0x2c8]
push ecx
mov ecx, esi
mov dword [ebp - 4], ebx
call dword [eax + 0x78]
test eax, eax
je 0x1046492
mov eax, dword [ebp - 0x2c8]
cmp dword [eax - 8], 0x104
jg 0x1046492
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push 0x4501
push 0x2b4
lea ecx, [ebp - 0x2c4]
push ecx
push ebx
push eax
call edi
cmp eax, ebx
je 0x1046492
push dword [ebp - 0x2c0]
mov ebx, dword [esi]
push eax
push dword [ebp - 0x2cc]
call fcn.01046308
push eax
mov ecx, esi
call dword [ebx + 0x2c]
lea eax, [ebp - 0xb0]
push eax
lea ecx, [esi + 0x20]
call sub.MFC42u.DLL_CString::operator_1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
cmp eax, 0x22
jne 0x1046492
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x44]
test eax, eax
je 0x1046492
push 0x4003
push 0x2b4
lea eax, [ebp - 0x2c4]
push eax
push 0
push dword [ebp - 0x2c8]
call edi
test eax, eax
je 0x1046492
push dword [ebp - 0x2c0]
mov edi, dword [esi]
push eax
push dword [ebp - 0x2cc]
call fcn.01046308
push eax
mov ecx, esi
call dword [edi + 0x30]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c8]
call sub.MFC42u.DLL_CString::CString
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.01075aef
leave
ret 8
Function at 0x1048851
Capabilities:
Get disk information

Disassembly:
mov eax, 0x10ce26a
call fcn.01077798
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
movzx eax, word [esi]
push eax
call dword [sym.imp.msvcrt.dll_isalpha]
test eax, eax
pop ecx
je 0x104894d
cmp word [esi + 2], 0x3a
jne 0x104894d
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
cmp eax, 3
pop ecx
jbe 0x10488c8
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_4
and dword [ebp - 4], 0
push 0x13
lea eax, [ebp - 0x10]
push eax
call fcn.0104689d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x10488c1
push eax
push esi
push ecx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x10488c1
push 0x25
jmp 0x10488c3
push 6
lea ecx, [ebp - 0x10]
jmp 0x104892f
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString_4
push esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], 1
call sub.MFC42u.DLL_CString::operator_1
push 2
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
push 0x1004204
lea ecx, [ebp + 8]
call fcn.010761f0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
dec eax
je 0x1048949
dec eax
je 0x1048945
dec eax
je 0x1048941
dec eax
je 0x104893d
push 0x29
lea ecx, [ebp + 8]
or dword [ebp - 4], 0xffffffff
pop esi
call sub.MFC42u.DLL_CString::CString
mov eax, esi
jmp 0x1048976
push 4
jmp 0x104892c
push 5
jmp 0x104892c
push 3
jmp 0x104892c
push 2
jmp 0x104892c
cmp word [esi], 0x5c
jne 0x1048973
cmp word [esi + 2], 0x5c
jne 0x1048973
push 0x5c
add esi, 4
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
neg eax
sbb eax, eax
pop ecx
neg eax
pop ecx
add eax, 0x10
jmp 0x1048976
push 0x29
pop eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x1048dbe
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push edi
push 0x31
mov esi, ecx
pop ecx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
xor edi, edi
push edi
push edi
push edi
push edi
call ebx
push edi
push edi
push edi
push edi
mov dword [esi], eax
call ebx
mov dword [esi + 4], eax
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x1047034
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x104bd5b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x20e0
call fcn.01077950
mov eax, dword [0x10de03c]
and dword [ebp - 0x20e0], 0
mov dword [ebp - 4], eax
mov eax, dword [0x10e25d8]
test eax, eax
push ebx
mov ebx, dword [ebp + 0xc]
je 0x104be57
cmp eax, 0xffffffff
je 0x104be57
push esi
mov esi, dword [ebp + 8]
cmp esi, 2
je 0x104bda5
cmp esi, 1
jne 0x104be56
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x20dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
cmp esi, 2
jne 0x104bdcb
mov eax, 0x100982c
jmp 0x104bdda
cmp esi, 1
mov eax, 0x10097fc
je 0x104bdda
mov eax, 0x100205c
push ebx
push eax
movzx eax, word [ebp - 0x20ce]
push eax
movzx eax, word [ebp - 0x20d0]
push eax
movzx eax, word [ebp - 0x20d2]
push eax
movzx eax, word [ebp - 0x20d4]
push eax
movzx eax, word [ebp - 0x20d6]
push eax
movzx eax, word [ebp - 0x20da]
push eax
movzx eax, word [ebp - 0x20dc]
push eax
lea eax, [ebp - 0x20cc]
push 0x1009790
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x2c
push 0
lea eax, [ebp - 0x20e0]
push eax
lea eax, [ebp - 0x20cc]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
shl eax, 1
push eax
lea eax, [ebp - 0x20cc]
push eax
push dword [0x10e25d8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01075aef
leave
ret 8

Function at 0x104c87c
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10ce645
call fcn.01077798
sub esp, 0x214
mov eax, dword [0x10de03c]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x10], eax
call sub.MFC42u.DLL_CString::CString_4
and dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x10099d8
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp dword [ebp + 8], 0
je 0x104c8d2
push 0xd4e
lea ecx, [ebp - 0x21c]
call sub.MFC42u.DLL_CString::LoadStringW
jmp 0x104c91c
lea ecx, [ebp - 0x220]
call sub.MFC42u.DLL_CString::CString_4
push 0xd4d
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::LoadStringW
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
lea eax, [ebp - 0x21c]
push eax
call sub.MFC42u.DLL_CString::Format_1
add esp, 0xc
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
call fcn.0104bcd7
push dword [ebp - 0x21c]
push 2
call fcn.0104bd5b
call fcn.0104bd39
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.01075aef
leave
ret 4