joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1024685
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
push edi
push dword [ebp + 8]
call fcn.01031045
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x1024703
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.msvcrt.dll_wcsncpy]
lea eax, [ebp + esi*2 - 0x20c]
push 0x1004284
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 0x1024703
cmp eax, 5
jne 0x10246fe
push edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test byte [ebp - 2], 8
jne 0x1024703
xor eax, eax
inc eax
jmp 0x1024705
xor eax, eax
pop edi
pop esi
leave
ret 4

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

Disassembly:
mov eax, 0x10bd498
call fcn.0106f6c0
push esi
mov esi, dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x102475b
test al, 0x10
je 0x10247a2
mov eax, dword [esi]
mov ecx, dword [eax - 8]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x1024743
push 0x1004284
mov ecx, esi
call sub.MFC42u.DLL_CString::operator_1
push 0x1004cd0
mov ecx, esi
call sub.MFC42u.DLL_CString::operator_1
push dword [ebp + 0xc]
mov ecx, esi
call sub.MFC42u.DLL_CString::operator_2
jmp 0x10247a2
push 0x5c
mov ecx, esi
call sub.MFC42u.DLL_CString::ReverseFind
cmp eax, 0xffffffff
mov ecx, esi
je 0x1024798
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 fcn.0106e8f8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString
push dword [ebp + 0xc]
push esi
call fcn.0102470b
jmp 0x10247a2
push 0x10020dc
call fcn.0106e90a
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x102539a
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0x20
push 2
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp dword [ebp - 4], ebx
je 0x10253f9
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
jne 0x10253f0
mov dword [ebp - 8], ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
pop ebx
leave
ret 4
Function at 0x1025818
Capabilities:
Terminate thread

Disassembly:
mov eax, 0x10bd552
call fcn.0106f6c0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x1004ffc
cmp dword [esi + 0x11c], 0
mov dword [ebp - 4], 5
jne 0x102585a
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 0x1025876
cmp dword [esi + 0x11c], 0
jne 0x1025876
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 0x10258b7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi + 0x170]
call fcn.01025792
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
and byte [ebp - 4], 0
lea ecx, [esi + 0x60]
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 0x10264b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push ebx
push esi
push edi
push 2
push 0x10053d8
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x1026548
lea ecx, [esi + 0xe8]
call fcn.0102629b
xor ebx, ebx
test eax, eax
mov dword [ebp - 4], eax
jle 0x1026548
push 0xd
pop ecx
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x238]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x38]
push eax
push 0
push 0x104b
push dword [esi + 0x108]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x20], pe_nt_image_headers32
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x1026542
lea eax, [ebp - 0x238]
push eax
mov eax, dword [ebp + 8]
add eax, 2
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x1026552
inc ebx
cmp ebx, dword [ebp - 4]
jl 0x10264e9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, ebx
jmp 0x102654b
Function at 0x1028974
Capabilities:
Check if file exists
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
push dword [ebp + 8]
and word [ebp - 0x208], 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x208]
push 0x1005528
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x10289f6
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.0107de41
test ax, ax
je 0x10289f1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, dword [ebp + 0xc]
dec eax
dec eax
neg eax
sbb eax, eax
add eax, 7
mov dword [ecx], eax
mov ax, 1
jmp 0x1028a5f
xor ax, ax
jmp 0x1028a5f
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x1028a5b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
test eax, eax
je 0x1028a4d
cmp eax, 2
je 0x1028a39
jbe 0x1028a5b
cmp eax, 4
ja 0x1028a5b
mov edx, dword [ebp + 0xc]
xor eax, eax
cmp esi, 0x6f9
setne al
dec eax
and eax, 0xfffffffd
add eax, 5
mov dword [edx], eax
jmp 0x1028a56
cmp esi, 0x15
mov eax, dword [ebp + 0xc]
jne 0x1028a49
mov dword [eax], 3
jmp 0x1028a56
mov dword [eax], ecx
jmp 0x1028a56
mov eax, dword [ebp + 0xc]
mov dword [eax], 4
mov ax, cx
jmp 0x1028a5e
xor ax, ax
pop esi
leave
ret 8
Function at 0x1028b7f
Capabilities:
Get disk information

Disassembly:
mov eax, 0x10bdaf1
call fcn.0106f6c0
sub esp, 0x208
push ebx
push esi
call fcn.01049db5
xor ebx, ebx
test eax, eax
je 0x1028c39
call fcn.010207aa
add eax, 0xa2
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_4
mov esi, 0x1004284
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::Find_1
cmp eax, 0xffffffff
lea ecx, [ebp - 0x10]
je 0x1028bf1
inc eax
push eax
lea eax, [ebp - 0x14]
push eax
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0106e8f8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
jmp 0x1028bf7
push esi
call sub.MFC42u.DLL_CString::operator_1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x1028c1f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov word [0x10d10d0], 1
call sub.MFC42u.DLL_CString::CString
jmp 0x1028cbb
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_wcscpy]
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
call fcn.010207aa
cmp word [eax + 0xb88], 2
push 0xff
lea eax, [ebp - 0x214]
push eax
je 0x1028c5b
push 0xfa3
jmp 0x1028c60
push 0xe000
call fcn.01061a93
push 1
push ebx
push 0x40
push 4
push 0xbd2
lea eax, [ebp - 0x214]
push eax
call fcn.0104f84f
cmp eax, 6
jne 0x1028cb2
push dword [ebp + 8]
push 0xbc5
call fcn.0107e7cd
pop ecx
pop ecx
push 1
push ebx
push 0x30
push ebx
mov esi, eax
push esi
push 0xfa0
call fcn.0104f8aa
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov ax, 0x8008
jmp 0x1028cbf
mov word [0x10d10d0], 1
mov ax, 0x8007
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x103131b
Capabilities:
Create directory

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
mov edi, dword [esp + 0xc]
push 0
push edi
call ebx
test eax, eax
je 0x1031335
xor eax, eax
inc eax
jmp 0x1031364
push esi
push 0x5c
push edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1031361
and word [esi], 0
push edi
call fcn.0103131b
test eax, eax
mov word [esi], 0x5c
je 0x1031361
push 0
push edi
call ebx
jmp 0x1031363
xor eax, eax
pop esi
pop edi
pop ebx
ret 4
Function at 0x1037248
Capabilities:
Create directory
Delete file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
push edi
xor eax, eax
mov ecx, 0x82
lea edi, [ebp - 0x210]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0x1005dc4
xor esi, esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x5c
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_wcsrchr]
cmp eax, esi
pop ecx
pop ecx
je 0x10372e8
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
mov eax, dword [ebp + 0xc]
mov edi, dword [sym.imp.msvcrt.dll_wcschr]
add eax, 2
push 0x5c
push eax
call edi
add esp, 0x10
cmp eax, esi
je 0x10372e8
push ebx
push 7
lea ebx, [eax + 2]
push 0x1005db4
push ebx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x10372da
inc esi
push 0x5c
push ebx
call edi
pop ecx
xor edi, edi
cmp eax, edi
pop ecx
pop ebx
jne 0x10372ec
xor eax, eax
jmp 0x1037344
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
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 0x1037341
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 8
Function at 0x1037be3
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, 0x104
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x420]
push eax
push 0x1005e1c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1037c36
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x420]
push eax
push dword [ebp + 0x10]
call fcn.010847b1
test ax, ax
je 0x1037c3f
mov ax, 1
jmp 0x1037cd9
cmp dword [ebp + 0x18], 0
jne 0x1037c54
and word [ebp - 0x218], 0
mov dword [ebp - 8], 2
cmp dword [ebp + 0x18], 2
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x1005528
je 0x1037c86
push edi
push esi
push dword [ebp - 8]
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 4]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call fcn.0103746f
mov ebx, eax
test bx, bx
jne 0x1037cd3
inc dword [edi + 4]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 6
push 0
push dword [ebp + 0x10]
call fcn.0107a960
mov ebx, eax
test bx, bx
jne 0x1037cd3
push edi
push esi
push 2
push 0x10020dc
push dword [ebp - 4]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call fcn.0103746f
push dword [ebp - 4]
push dword [ebp + 0xc]
mov ebx, eax
call fcn.01084496
test eax, eax
je 0x1037cd3
mov byte [eax + 0xcc], 0x23
pop edi
pop esi
mov ax, bx
pop ebx
leave
ret 0x14

Function at 0x1037cdd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
xor edi, edi
mov esi, 0x10d2950
xor ebx, ebx
push esi
mov dword [0x10d2b6c], edi
mov dword [0x10d2b68], edi
mov word [0x10d2b64], di
mov dword [0x10d2b60], edi
inc ebx
call dword [sym.imp.msvcrt.dll_wcscpy]
mov ax, word [ebp + 0xc]
pop ecx
mov word [0x10d2b58], ax
mov eax, dword [ebp + 0x10]
pop ecx
mov dword [0x10d2b5c], 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 0x1037833
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, edi
je 0x1037d7b
call fcn.0106e781
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1037d4a
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 0x1037d74
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 0x10425cc
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x10bea1d
call fcn.0106f6c0
sub esp, 0x2b4
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
test eax, eax
mov eax, dword [esi]
mov ecx, esi
je 0x10425fe
call dword [eax + 0x28]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
jmp 0x1042702
call dword [eax + 0x44]
test eax, eax
mov eax, dword [esi]
mov ecx, esi
je 0x1042619
push 0x23
call dword [eax + 0x2c]
mov eax, dword [esi]
push 0x22
mov ecx, esi
call dword [eax + 0x30]
jmp 0x104261e
push 0x26
call dword [eax + 0x2c]
push ebx
push edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x2c0], ebx
mov ecx, 0xac
lea edi, [ebp - 0x2bc]
rep stosd dword es:[edi], eax
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString_3
mov eax, dword [esi]
lea ecx, [ebp + 8]
push ecx
mov ecx, esi
mov dword [ebp - 4], ebx
call dword [eax + 0x78]
test eax, eax
je 0x10426f4
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0x104
jg 0x10426f4
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push 0x4501
push 0x2b4
lea ecx, [ebp - 0x2c0]
push ecx
push ebx
push eax
call edi
cmp eax, ebx
je 0x10426f4
push dword [ebp - 0x2bc]
mov ebx, dword [esi]
push eax
push dword [ebp + 0xc]
call fcn.01042595
push eax
mov ecx, esi
call dword [ebx + 0x2c]
lea eax, [ebp - 0xac]
push eax
lea ecx, [esi + 0x20]
call fcn.0106e90a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
cmp eax, 0x22
jne 0x10426f4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x44]
test eax, eax
je 0x10426f4
push 0x4003
push 0x2b4
lea eax, [ebp - 0x2c0]
push eax
push 0
push dword [ebp + 8]
call edi
test eax, eax
je 0x10426f4
push dword [ebp - 0x2bc]
mov edi, dword [esi]
push eax
push dword [ebp + 0xc]
call fcn.01042595
push eax
mov ecx, esi
call dword [edi + 0x30]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x1044687
Capabilities:
Get disk information

Disassembly:
mov eax, 0x10bed81
call fcn.0106f6c0
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 0x1044783
cmp word [esi + 2], 0x3a
jne 0x1044783
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
cmp eax, 3
pop ecx
jbe 0x10446fe
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_3
and dword [ebp - 4], 0
push 0x13
lea eax, [ebp - 0x10]
push eax
call fcn.01042ace
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x10446f7
push eax
push esi
push ecx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x10446f7
push 0x25
jmp 0x10446f9
push 6
lea ecx, [ebp - 0x10]
jmp 0x1044765
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString_3
push esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], 1
call fcn.0106e90a
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 fcn.0106e8f8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
push 0x1004284
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::operator_1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
dec eax
je 0x104477f
dec eax
je 0x104477b
dec eax
je 0x1044777
dec eax
je 0x1044773
push 0x29
lea ecx, [ebp + 8]
or dword [ebp - 4], 0xffffffff
pop esi
call sub.MFC42u.DLL_CString::CString
mov eax, esi
jmp 0x10447ac
push 4
jmp 0x1044762
push 5
jmp 0x1044762
push 3
jmp 0x1044762
push 2
jmp 0x1044762
cmp word [esi], 0x5c
jne 0x10447a9
cmp word [esi + 2], 0x5c
jne 0x10447a9
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 0x10447ac
push 0x29
pop eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x10476f8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20dc
call fcn.0106f850
mov eax, dword [0x10d3594]
and dword [ebp - 0x14], 0
test eax, eax
je 0x10477ca
cmp eax, 0xffffffff
je 0x10477ca
push esi
mov esi, dword [ebp + 8]
cmp esi, 2
je 0x1047731
cmp esi, 1
jne 0x10477c9
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
cmp esi, 2
jne 0x1047754
mov eax, 0x10098ac
jmp 0x1047763
cmp esi, 1
mov eax, 0x100987c
je 0x1047763
mov eax, 0x10020dc
push dword [ebp + 0xc]
push eax
movzx eax, word [ebp - 2]
push eax
movzx eax, word [ebp - 4]
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
lea eax, [ebp - 0x20dc]
push 0x1009810
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x2c
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20dc]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
shl eax, 1
push eax
lea eax, [ebp - 0x20dc]
push eax
push dword [0x10d3594]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret 8

Function at 0x1048160
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10bf087
call fcn.0106f6c0
sub esp, 0x20c
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_3
and dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x1009a58
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp dword [ebp + 8], 0
je 0x10481a8
push 0xd4e
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::LoadStringW
jmp 0x10481e3
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString_3
push 0xd4d
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::LoadStringW
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call sub.MFC42u.DLL_CString::Format
and byte [ebp - 4], 0
add esp, 0xc
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString
call fcn.01047680
push dword [ebp - 0x10]
push 2
call fcn.010476f8
call fcn.010476db
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x104a586
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xa70
push edi
lea eax, [ebp + 0x60]
push eax
push 1
xor edi, edi
push edi
push dword [ebp + 0x78]
mov dword [ebp + 0x64], edi
push 0x80000002
mov dword [ebp + 0x68], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x104a5bb
xor eax, eax
inc eax
jmp 0x104a721
push ebx
mov ebx, dword [sym.imp.msvcrt.dll__wcsicmp]
push esi
mov esi, dword [sym.imp.msvcrt.dll_wcscpy]
mov word [ebp - 0x600], di
mov word [ebp - 0xa00], di
mov dword [ebp + 0x6c], edi
lea eax, [ebp + 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push edi
push edi
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp - 0x138]
push eax
push dword [ebp + 0x6c]
mov dword [ebp + 0x58], 0x64
push dword [ebp + 0x60]
mov dword [ebp + 0x78], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, edi
mov dword [ebp + 0x5c], eax
jne 0x104a6a8
shr dword [ebp + 0x78], 1
mov eax, dword [ebp + 0x78]
mov word [ebp + eax*2 - 0x70], di
lea eax, [ebp - 0x138]
push 0x100a01c
push eax
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x104a662
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x200]
push eax
call esi
push 0x100a010
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [ebp + eax*2 - 0x70]
push eax
call fcn.01078d24
add esp, 0x10
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x68], 1
lea eax, [ebp - 0x138]
push 0x1009ffc
push eax
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x104a685
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x600]
push eax
call esi
pop ecx
pop ecx
lea eax, [ebp - 0x138]
push 0x1009fe4
push eax
call ebx
test eax, eax
pop ecx
pop ecx
jne 0x104a6a8
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0xa00]
push eax
call esi
pop ecx
pop ecx
inc dword [ebp + 0x6c]
cmp dword [ebp + 0x5c], edi
je 0x104a5da
cmp dword [ebp + 0x68], edi
je 0x104a714
cmp word [ebp - 0x600], di
jne 0x104a6d4
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x600]
push eax
call esi
pop ecx
pop ecx
mov esi, dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x600]
push 0x1009fdc
push eax
call esi
lea eax, [ebp - 0xa00]
push eax
lea eax, [ebp - 0x600]
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x600]
push eax
push edi
push dword [ebp + 0x64]
push dword [ebp + 0x7c]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.01049eb0
push dword [ebp + 0x60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop ebx
pop edi
add ebp, 0x70
leave
ret 8