joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1053046
Capabilities:
Set registry value

Disassembly:
mov eax, 0x10bf780
call fcn.0106f6c0
sub esp, 0x120
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
call fcn.0106d7e2
mov ecx, esi
call sub.MFC42u.DLL_CCmdTarget::BeginWaitCursor
mov ecx, esi
call sub.MFC42u.DLL_CCmdTarget::EndWaitCursor
push 1
call fcn.0102c1d2
mov edi, eax
xor ebx, ebx
cmp edi, 1
je 0x105314b
cmp edi, 4
je 0x1053139
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_3
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.01052f4e
test eax, eax
je 0x1053116
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x2000000
push ebx
push ebx
push ebx
push 0x100c340
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1053116
push 0x45
pop ecx
lea edi, [ebp - 0x12c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x12c]
mov esi, 0x114
push eax
mov dword [ebp - 0x12c], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push esi
lea eax, [ebp - 0x12c]
push eax
push 3
push ebx
push 0x100c320
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
call fcn.0106d442
test eax, eax
je 0x1053129
push 7
call fcn.01036ea7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
xor edi, edi
call sub.MFC42u.DLL_CString::CString
jmp 0x105314b
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0xd4]
push 1
call sub.MFC42u.DLL_CWnd::EnableWindow
xor edi, edi
mov ecx, dword [ebp - 0xc]
xor eax, eax
cmp edi, ebx
pop edi
pop esi
sete al
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x105396f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x1004c20]
push ebx
push esi
push edi
mov esi, 0x100c3f8
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor edi, edi
mov dword [ebp - 0x18], eax
mov eax, dword [0x1004c24]
push 0x41
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
pop esi
lea eax, [ebp - 0x18]
push eax
mov word [ebp - 0x18], si
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x1053a5d
push edi
push edi
push 3
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
mov word [ebp - 0x20], si
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1053a7b
push edi
lea eax, [ebp - 0x10]
push eax
push 0x1e0
lea eax, [ebp - 0x208]
push eax
push edi
push edi
push 0x70c00
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1053a48
mov eax, dword [ebp - 0x10]
xor edx, edx
push 0x18
pop ecx
div ecx
xor edx, edx
cmp eax, edi
jbe 0x1053a4e
xor ecx, ecx
lea ecx, [ecx + ecx*2]
mov ecx, dword [ebp + ecx*8 - 0x200]
cmp ecx, edi
je 0x1053a36
cmp ecx, 0xb
je 0x1053a3b
cmp ecx, 0xc
je 0x1053a36
mov dword [ebp - 0xc], 1
jmp 0x1053a3e
cmp ecx, 0xb
jne 0x1053a3e
mov dword [ebp - 4], esi
inc edx
movzx ecx, dx
cmp ecx, eax
jb 0x1053a15
jmp 0x1053a4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 1
je 0x1053a86
jmp 0x1053a7b
cmp eax, 4
jne 0x1053a6d
cmp word [ebp - 4], di
jne 0x1053a7b
mov dword [ebp - 4], esi
jmp 0x1053a7b
cmp eax, 3
jne 0x1053a7b
cmp word [ebp - 8], di
jne 0x1053a7b
mov dword [ebp - 8], esi
inc esi
cmp si, 0x5a
jbe 0x10539a9
xor eax, eax
mov ax, 0x5a
cmp ax, si
pop edi
sbb eax, eax
not eax
and eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1053e62
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa18
push ebx
push edi
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01053c13
xor ebx, ebx
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x1053fae
xor eax, eax
mov ecx, 0x200
lea edi, [ebp - 0xa18]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xa18]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jge 0x1053eb3
xor eax, eax
jmp 0x1053fb1
cmp word [ebp - 0xa18], bx
mov dword [ebp - 8], ebx
je 0x1053fae
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [ebp - 0xa18]
mov dword [ebp + 0xc], eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x1053f8b
push 0x104
push dword [ebp + 0xc]
lea eax, [ebp - 0x218]
push eax
mov word [ebp - 0x10], bx
call dword [sym.imp.msvcrt.dll_wcsncpy]
lea eax, [ebp - 0x218]
push eax
call edi
mov ecx, 0x104
sub ecx, eax
push ecx
lea eax, [ebp - 0x218]
push 0x1005528
push eax
call dword [sym.imp.msvcrt.dll_wcsncat]
add esp, 0x1c
push ebx
push ebx
mov dword [ebp - 4], 0x43
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebx, eax
lea eax, [ebx + ebx]
push eax
call sub.MFC42u.DLL_operatornew
test eax, eax
pop ecx
mov dword [ebp - 0xc], eax
je 0x1053f65
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, dword [ebp - 0xc]
cmp word [eax + 2], 0x3a
jne 0x1053f5e
mov cx, word [eax]
mov word [ebp - 4], cx
push eax
call sub.MFC42u.DLL_operatordelete
pop ecx
mov ax, word [ebp - 4]
cmp word [ebp - 0x218], ax
je 0x1053f83
push 1
lea eax, [ebp - 0x218]
push eax
call fcn.01053b0f
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
je 0x1053fae
xor ebx, ebx
push dword [ebp + 0xc]
call edi
pop ecx
mov ecx, dword [ebp - 8]
lea eax, [ecx + eax + 1]
mov dword [ebp - 8], eax
lea eax, [ebp + eax*2 - 0xa18]
cmp word [eax], bx
mov dword [ebp + 0xc], eax
jne 0x1053ed2
mov eax, dword [ebp + 8]
pop edi
pop ebx
leave
ret 8

Function at 0x1053fb7
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push 0x104
lea eax, [ebp - 0x208]
push eax
push 0x100c408
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 2
push 1
lea eax, [ebp - 0x208]
push eax
call fcn.01053c13
leave
ret

Function at 0x1054049
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
mov esi, 0x105
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x100c474
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
je 0x1054084
and word [eax], 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
sub esi, eax
push esi
lea eax, [ebp - 0x20c]
push 0x100c468
push eax
call dword [sym.imp.msvcrt.dll_wcsncat]
add esp, 0x10
push 1
lea eax, [ebp - 0x20c]
push eax
call fcn.01053b0f
pop esi
leave
ret
Function at 0x10542b6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push esi
xor esi, esi
cmp ecx, esi
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], eax
jne 0x10542d2
mov dword [ebp - 8], esi
jmp 0x10542d8
mov eax, dword [ecx + 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0x105422c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, esi
je 0x1054320
call fcn.0106e781
push 0x32
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x105430e
inc esi
cmp esi, 0x64
jl 0x10542f4
jmp 0x1054319
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 4

Function at 0x1054501
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
lea eax, [ebp - 0xc]
push eax
push 0x100c590
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1054574
lea eax, [ebp - 4]
push eax
push 0x2000000
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1054574
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push esi
push esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1054574
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x1054585
push esi
push esi
push 0x30
push esi
push 0xb3
push 0x17
call fcn.0104f905
pop esi
leave
ret
Function at 0x1057666
Capabilities:
Get disk size

Disassembly:
mov eax, 0x10bf780
call fcn.0106f6c0
sub esp, 0x44
push esi
mov dword [ebp - 0x18], ecx
xor esi, esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], esi
call sub.MFC42u.DLL_CString::CString_3
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xac]
cmp dword [eax - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], 0x41
jne 0x10576c2
call fcn.0105396f
cmp ax, si
mov dword [ebp - 0x10], eax
je 0x10576d6
movzx eax, ax
push eax
push 0x100ca78
push 0x10d5f10
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
jmp 0x10576d0
push eax
push 0x10d5f10
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
cmp word [ebp - 0x10], si
jne 0x10576f0
push 1
push esi
push 0x30
push esi
push 0x1212
push 0xfa6
call fcn.0104f905
jmp 0x1057841
push edi
mov eax, dword [ebp + 8]
cmp dword [eax + 0x5c], esi
jne 0x1057783
mov edi, dword [ebp - 0x10]
movzx eax, di
push eax
lea eax, [ebp - 0x14]
push 0x11
push eax
call sub.MFC42u.DLL_CString::Format_1
add esp, 0xc
push 1
push esi
push 0x40
push esi
push dword [ebp - 0x14]
push 0x17
call fcn.0104f8aa
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov word [ebp - 0x50], di
mov word [ebp - 0x4e], 0x3a
mov word [ebp - 0x4c], 0x5c
mov word [ebp - 0x4a], si
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1057783
mov eax, dword [ebp - 0x2c]
or eax, dword [ebp - 0x28]
je 0x105776c
cmp dword [ebp - 0x28], esi
ja 0x105776c
cmp dword [ebp - 0x2c], 0xe4e1c0
jbe 0x1057783
push 1
push esi
push 0x40
push esi
push 0x4e85
push 0x17
call fcn.0104f905
jmp 0x10576f1
lea eax, [ebp - 0x24]
push eax
push esi
call sub.MFC42u.DLL_CWnd::GetSafeOwner
mov edi, eax
cmp edi, esi
je 0x1057840
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x20]
cmp ecx, esi
je 0x1057840
push esi
call sub.MFC42u.DLL_CWnd::EnableWindow
mov edi, dword [edi + 0x20]
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push esi
push 0x1053a9a
push edi
push 0x8de4
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov edi, eax
push edi
call fcn.01054748
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push 1
push 0x10d5f10
call fcn.01037cdd
push edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x20]
xor edi, edi
inc edi
push edi
call sub.MFC42u.DLL_CWnd::EnableWindow
cmp word [ebp - 0x20], si
je 0x105783a
call fcn.010371fe
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x5c], esi
jne 0x105782c
push esi
push esi
push 0x10
push 5
push eax
push 0x17
call fcn.0104f905
cmp eax, 2
jne 0x10576f1
jmp 0x105783d
push eax
push edi
push edi
push esi
call fcn.0104beb8
add esp, 0x10
jmp 0x105783d
mov dword [ebp - 0x1c], edi
mov esi, dword [ebp - 0x1c]
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x105785e
Capabilities:
Get disk information

Disassembly:
mov eax, 0x10bfbe3
call fcn.0106f6c0
sub esp, 0x14
push ebx
push esi
mov ebx, ecx
push edi
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_3
mov esi, dword [ebp + 8]
lea eax, [esi + 0x74]
xor edi, edi
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.0106e8f8
push esi
mov ecx, ebx
call fcn.01053046
cmp eax, edi
mov dword [ebp - 0x1c], eax
je 0x1057a2d
push esi
mov ecx, ebx
call fcn.01057666
cmp eax, edi
mov dword [ebp - 0x1c], eax
je 0x10579d3
push dword [0x10d3570]
call fcn.010784ad
mov ecx, esi
call fcn.0106d1bb
cmp dword [esi + 0x5c], edi
jne 0x10579e8
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_3
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], edi
call fcn.01049db5
test eax, eax
je 0x10579a1
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString_3
mov byte [ebp - 4], 2
call fcn.010207aa
add eax, 0xa2
push eax
lea ecx, [ebp + 8]
call fcn.0106e90a
push dword [ebp + 8]
call fcn.01031045
cmp eax, edi
je 0x105797a
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.0106e8f8
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
push 0x1004284
lea ecx, [ebp - 0x20]
call sub.MFC42u.DLL_CString::CString_4
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x105797a
cmp eax, 5
je 0x105797a
mov dword [ebp - 0x18], 1
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
cmp dword [ebp - 0x18], edi
je 0x10579a1
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push 0xa3
push eax
call sub.MFC42u.DLL_CString::Format_1
add esp, 0xc
jmp 0x10579b5
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push 0xf
push eax
call sub.MFC42u.DLL_CString::Format_1
add esp, 0x10
push 1
push edi
push 0x40
push edi
push dword [ebp - 0x14]
push 0x17
call fcn.0104f8aa
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
jmp 0x10579e8
push 1
push edi
push 0x30
push edi
push 0x80f5
push 0xfa6
call fcn.0104f905
mov ecx, dword [ebx + 0x20]
push 0x10053e8
call fcn.0104dca2
push dword [0x10d3570]
mov edi, eax
call fcn.010784ad
mov ecx, esi
call fcn.0106d1bb
push 3
mov ecx, ebx
call fcn.01052e07
test eax, eax
je 0x1057a1d
mov ecx, eax
call fcn.0106c68e
push 1
mov ecx, esi
call fcn.0106d16e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x78]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x105a250
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
push edi
mov edi, eax
mov ax, word [edi]
cmp ax, 0x40
jne 0x105a26c
xor eax, eax
jmp 0x105a3d3
mov cx, word [edi + 2]
cmp cx, 0x3a
push ebx
push esi
jne 0x105a2ae
and word [ebp - 0x65a], 0
mov word [ebp - 0x65e], cx
lea ebx, [edi + 4]
cmp word [ebx], 0x5c
lea ecx, [ebp - 0x65a]
mov word [ebp - 0x660], ax
mov word [ebp - 0x65c], 0x5c
mov dword [ebp - 4], ecx
jne 0x105a31b
lea ebx, [edi + 6]
jmp 0x105a31b
push 0x5c
pop ebx
cmp ax, bx
jne 0x105a3cf
cmp cx, bx
jne 0x105a3cf
mov esi, dword [sym.imp.msvcrt.dll_wcschr]
lea eax, [edi + 4]
push ebx
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x105a3cf
add eax, 2
push ebx
push eax
call esi
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x105a3cf
mov esi, ebx
sub esi, edi
sar esi, 1
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x660]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
lea eax, [ebp + esi*2 - 0x65e]
and word [eax], 0
add esp, 0xc
mov dword [ebp - 4], eax
add ebx, 2
mov ecx, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x105a328
mov dword [eax], 1
mov ax, word [ebx]
test ax, ax
jne 0x105a33b
xor eax, eax
inc eax
jmp 0x105a3d1
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ebx
xor esi, esi
jmp 0x105a35b
cmp ax, 0x5c
je 0x105a360
mov word [ecx], ax
inc ecx
inc ecx
inc ebx
inc ebx
inc esi
xor eax, eax
mov ax, word [ebx]
mov dword [ebp - 4], ecx
test ax, ax
jne 0x105a345
lea eax, [ebp - 0x260]
push eax
mov word [ecx], 0x2a
add ecx, 2
and word [ecx], 0
lea eax, [ebp - 0x660]
push eax
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x105a3cf
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
movzx ecx, si
cmp eax, ecx
jne 0x105a3b6
lea eax, [esi + esi]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x234]
push eax
call fcn.01078f2c
test eax, eax
je 0x105a3d8
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x105a38a
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret 4
mov eax, dword [ebp + 8]
test eax, eax
je 0x105a3ed
mov ecx, dword [ebp - 0x260]
shr ecx, 4
and ecx, 1
mov dword [eax], ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp - 8]
mov ecx, esi
lea esi, [ebp - 0x234]
rep movsw word es:[edi], word [esi]
mov ax, word [ebx]
mov ecx, dword [ebp - 4]
mov word [ecx], ax
cmp word [ebx], 0
je 0x105a330
mov eax, dword [ebp - 0xc]
inc ebx
inc ebx
mov dword [ebp - 4], eax
mov ax, word [ebx]
test ax, ax
jne 0x105a338
jmp 0x105a330
Function at 0x105beaa
Capabilities:
Access the windows event log
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ebx, ebx
cmp dword [0x10d6540], ebx
push esi
jne 0x105beef
push 0x50
mov esi, 0x10d64a0
push esi
push 0x17d4
call fcn.01061a93
push 0x10ce698
push 0x10d6310
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
cmp eax, ebx
mov dword [0x10d6540], eax
je 0x105bf54
push edi
push 0xa
xor eax, eax
pop ecx
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
xor edi, edi
cmp dword [ebp + 0x10], ebx
jle 0x105bf36
lea ebx, [ebp + 0x10]
add ebx, 4
mov eax, dword [ebx]
test eax, eax
lea esi, [ebp + edi*4 - 0x28]
mov dword [esi], eax
je 0x105bf2e
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
pop ecx
jne 0x105bf2e
push 0x100551c
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
inc edi
cmp edi, dword [ebp + 0x10]
jl 0x105bf04
xor ebx, ebx
push ebx
lea eax, [ebp - 0x28]
push eax
push ebx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push ebx
push dword [ebp + 0xc]
push dword [0x10d6540]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10608af
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x10c07c2
call fcn.0106f6c0
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_3
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_3
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x18]
push ecx
push 0x2000000
lea edi, [esi + 4]
mov eax, dword [edi]
push 0
push eax
push dword [esi]
mov byte [ebp - 4], 1
call ebx
test eax, eax
je 0x1060984
push 0x5c
mov ecx, edi
call sub.MFC42u.DLL_CString::ReverseFind
cmp eax, 0xffffffff
mov dword [ebp - 0x24], eax
je 0x10609d6
push eax
push 1
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call sub.MFC42u.DLL_CString::Mid
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0106e8f8
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
mov eax, dword [ebp - 0x24]
inc eax
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call sub.MFC42u.DLL_CString::Mid_1
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0106e8f8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
lea eax, [ebp - 0x18]
push eax
push 0x2000000
push 0
push dword [ebp - 0x14]
push dword [esi]
call ebx
test eax, eax
je 0x1060984
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.0106e90a
jmp 0x10609db
mov ecx, dword [ebp + 8]
mov eax, 0x200
push eax
mov dword [ebp - 0x1c], eax
call sub.MFC42u.DLL_CString::GetBuffer
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x28]
push eax
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 8]
mov esi, eax
mov eax, dword [ebp - 0x1c]
neg esi
sbb esi, esi
shr eax, 1
and word [edi + eax*2], 0
push 0xffffffffffffffff
inc esi
call sub.MFC42u.DLL_CString::ReleaseBuffer
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10609db
call sub.MFC42u.DLL_AfxThrowUserException
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x1060a04
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x10c07dc
call fcn.0106f6c0
sub esp, 0x58
push ebx
push esi
push edi
xor ebx, ebx
push 0x100437c
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::CString_4
push 0x100d58c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::operator_1
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::operator_2
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x64], 0x44
push ebx
mov word [ebp - 0x34], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x1060ab5
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x10c07dc
call fcn.0106f6c0
sub esp, 0x58
push ebx
push esi
push edi
xor ebx, ebx
push 0x100437c
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::CString_4
push 0x100551c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::operator_1
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::operator_2
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x64], 0x44
push ebx
mov word [ebp - 0x34], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4