joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1057d60
Capabilities:
Set current directory

Disassembly:
call fcn.01021457
test eax, eax
jne 0x1057d6e
call fcn.0105552f
push ebx
push esi
push edi
call fcn.01021a52
call fcn.0105543a
mov ebx, 0x100
push ebx
push 0x10e4230
mov edi, 0x100205c
push edi
xor eax, eax
push 0x100bc08
mov esi, 0x100b458
push esi
mov word [0x10e4afc], ax
mov word [0x10e4b00], ax
mov word [0x10e4b02], ax
call fcn.010215f5
call fcn.01021478
push eax
call fcn.01021810
push ebx
push 0x10e4430
push edi
push 0x100bbec
push esi
call fcn.010215f5
call fcn.010214cb
push eax
call fcn.01021926
push 1
push 0x100ba08
push esi
call fcn.01021516
movzx eax, ax
mov dword [0x10e4b14], eax
call fcn.01092890
push 0
call fcn.0108cc38
test eax, eax
pop edi
pop esi
mov dword [0x10e4b08], eax
mov dword [0x10e3d70], eax
pop ebx
je 0x1057e4b
mov word [eax + 0x66], 1
mov eax, dword [0x10e3d70]
or dword [eax + 0x9c], 2
call fcn.01055600
call fcn.010579c1
call fcn.01055b51
call fcn.01055c94
and dword [0x10e25c8], 0
call fcn.01055dd0
call fcn.01055e12
call fcn.01032e62
jmp fcn.01021505
ret

Function at 0x1058081
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x10de03c]
push esi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x30]
push eax
xor esi, esi
push esi
push 0x2000000
push esi
push esi
push esi
push 0x100a0f0
xor edi, edi
push 0x80000001
inc edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10580f5
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push esi
push 0x100c278
push dword [ebp - 0x30]
mov dword [ebp - 0x38], 0x28
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10580ec
cmp dword [ebp - 0x34], 4
jne 0x10580ec
mov edi, dword [ebp - 0x2c]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
call fcn.01075aef
leave
ret

Function at 0x1058108
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10de03c]
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
xor esi, esi
push esi
push 0x2000000
push esi
push esi
push esi
push 0x100a0f0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1058160
push 4
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x100c278
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
call fcn.01075aef
leave
ret 4
Function at 0x105865b
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10cee1c
call fcn.01077798
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 0x10], ebx
call edi
mov esi, dword [ebp + 0xc]
push eax
mov ecx, esi
mov dword [ebp - 0x14], eax
call sub.MFC42u.DLL_CString::GetBufferSetLength
cmp eax, ebx
je 0x105873f
push dword [ebp - 0x14]
push eax
call edi
push 0xffffffffffffffff
mov ecx, esi
call sub.MFC42u.DLL_CString::ReleaseBuffer
push dword [esi]
call fcn.010337cd
mov edi, eax
cmp edi, ebx
je 0x105873f
mov eax, dword [esi]
push edi
push eax
lea ecx, [ebp + 0xc]
call fcn.01076ca0
lea eax, [ebp - 0x18]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [0x10e25b0]
call fcn.01084401
test ax, ax
jne 0x1058733
push dword [ebp - 0x18]
push dword [0x10e25b4]
call fcn.0108ee4e
cmp eax, ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
je 0x1058733
mov eax, dword [esi]
mov ax, word [eax + edi*2]
cmp ax, 0x5c
mov ecx, esi
lea eax, [ebp + 8]
jne 0x105870e
inc edi
push edi
push eax
call sub.MFC42u.DLL_CString::Mid_1
mov byte [ebp - 4], 1
jmp 0x1058719
push edi
push eax
call sub.MFC42u.DLL_CString::Mid_1
mov byte [ebp - 4], 2
mov ecx, esi
push eax
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
mov dword [ebp - 0x10], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x1058758
Capabilities:
Set registry value

Disassembly:
mov eax, 0x10cee36
call fcn.01077798
sub esp, 0x124
mov eax, dword [0x10de03c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov ecx, ebx
mov dword [ebp - 0x10], eax
call fcn.010748bb
mov ecx, esi
call sub.MFC42u.DLL_CCmdTarget::BeginWaitCursor
mov ecx, esi
call sub.MFC42u.DLL_CCmdTarget::EndWaitCursor
push 1
call fcn.0102e27e
mov edi, eax
cmp edi, 1
je 0x105887f
cmp edi, 4
je 0x105886d
lea ecx, [ebp - 0x12c]
call sub.MFC42u.DLL_CString::CString_4
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x128]
xor edi, edi
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.0105865b
test eax, eax
je 0x105884a
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x128]
push eax
push edi
push 0x2000000
push edi
push edi
push edi
push 0x100c2c0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x105884a
push 0x45
pop ecx
lea edi, [ebp - 0x124]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x124]
mov esi, 0x114
push eax
mov dword [ebp - 0x124], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push esi
lea eax, [ebp - 0x124]
push eax
push 3
push 0
push 0x100c2a0
push dword [ebp - 0x128]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x128]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov ecx, ebx
call fcn.010744f8
test eax, eax
je 0x105885c
push 7
call fcn.01039acd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call sub.MFC42u.DLL_CString::CString
jmp 0x105887f
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
test edi, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
sete al
pop ebx
call fcn.01075aef
leave
ret 4
Function at 0x10591a5
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10de03c]
push ebx
push esi
push edi
mov esi, 0x100c378
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [0x1004ba0]
movsw word es:[edi], word [esi]
xor edi, edi
mov dword [ebp - 0xc], eax
mov eax, dword [0x1004ba4]
push 0x41
mov dword [ebp - 8], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x2c], edi
pop esi
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xc], si
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x105929d
push edi
push edi
push 3
push edi
push edi
push edi
lea eax, [ebp - 0x1c]
push eax
mov word [ebp - 0x14], si
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10592bb
push edi
lea eax, [ebp - 0x28]
push eax
push 0x1e0
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push 0x70c00
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1059288
mov eax, dword [ebp - 0x28]
xor edx, edx
push 0x18
pop ecx
div ecx
xor edx, edx
cmp eax, edi
jbe 0x105928e
xor ecx, ecx
lea ecx, [ecx + ecx*2]
mov ecx, dword [ebp + ecx*8 - 0x204]
cmp ecx, edi
je 0x1059276
cmp ecx, 0xb
je 0x105927b
cmp ecx, 0xc
je 0x1059276
mov dword [ebp - 0x2c], 1
jmp 0x105927e
cmp ecx, 0xb
jne 0x105927e
mov dword [ebp - 0x20], esi
inc edx
movzx ecx, dx
cmp ecx, eax
jb 0x1059255
jmp 0x105928e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], 1
je 0x10592c6
jmp 0x10592bb
cmp eax, 4
jne 0x10592ad
cmp word [ebp - 0x20], di
jne 0x10592bb
mov dword [ebp - 0x20], esi
jmp 0x10592bb
cmp eax, 3
jne 0x10592bb
cmp word [ebp - 0x24], di
jne 0x10592bb
mov dword [ebp - 0x24], esi
inc esi
cmp si, 0x5a
jbe 0x10591e9
mov ecx, dword [ebp - 4]
xor eax, eax
mov ax, 0x5a
cmp ax, si
pop edi
sbb eax, eax
not eax
and eax, esi
pop esi
pop ebx
call fcn.01075aef
leave
ret
Function at 0x10596c4
Capabilities:
Get common file path
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa24
mov eax, dword [0x10de03c]
push ebx
push edi
push 4
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0105946e
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0xa18], eax
je 0x105984b
xor eax, eax
mov ecx, 0x200
lea edi, [ebp - 0xa10]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xa10]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jge 0x1059723
xor eax, eax
jmp 0x1059851
cmp word [ebp - 0xa10], bx
mov dword [ebp - 0xa1c], ebx
je 0x105984b
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [ebp - 0xa10]
mov dword [ebp - 0xa14], eax
push dword [ebp - 0xa14]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x105981c
push 0x104
push dword [ebp - 0xa14]
lea eax, [ebp - 0x210]
push eax
mov word [ebp - 8], bx
call dword [sym.imp.msvcrt.dll_wcsncpy]
lea eax, [ebp - 0x210]
push eax
call edi
mov ecx, 0x104
sub ecx, eax
push ecx
lea eax, [ebp - 0x210]
push 0x10054a8
push eax
call dword [sym.imp.msvcrt.dll_wcsncat]
add esp, 0x1c
push ebx
push ebx
mov dword [ebp - 0xa20], 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 - 0xa24], eax
je 0x10597ed
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, dword [ebp - 0xa24]
cmp word [eax + 2], 0x3a
jne 0x10597e6
mov cx, word [eax]
mov word [ebp - 0xa20], cx
push eax
call sub.MFC42u.DLL_operatordelete
pop ecx
mov ax, word [ebp - 0xa20]
cmp word [ebp - 0x210], ax
je 0x1059811
push 1
lea eax, [ebp - 0x210]
push eax
call fcn.01059363
mov dword [ebp - 0xa18], eax
cmp dword [ebp - 0xa18], 0
je 0x105984b
xor ebx, ebx
push dword [ebp - 0xa14]
call edi
pop ecx
mov ecx, dword [ebp - 0xa1c]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0xa1c], eax
lea eax, [ebp + eax*2 - 0xa10]
cmp word [eax], bx
mov dword [ebp - 0xa14], eax
jne 0x1059748
mov eax, dword [ebp - 0xa18]
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.01075aef
leave
ret 8

Function at 0x1059864
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10de03c]
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x100c388
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 2
push 1
lea eax, [ebp - 0x20c]
push eax
call fcn.0105946e
mov ecx, dword [ebp - 4]
call fcn.01075aef
leave
ret
Function at 0x105993b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10de03c]
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x210]
push eax
push 0x100c3f4
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x210]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
je 0x105997e
and word [eax], 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
mov ecx, 0x104
sub ecx, eax
push ecx
lea eax, [ebp - 0x210]
push 0x100c3e8
push eax
call dword [sym.imp.msvcrt.dll_wcsncat]
and word [ebp - 8], 0
add esp, 0x10
push 1
lea eax, [ebp - 0x210]
push eax
call fcn.01059363
mov ecx, dword [ebp - 4]
call fcn.01075aef
leave
ret

Function at 0x1059bfb
Capabilities:
Create thread

Disassembly:
mov edi, edi
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 0x1059c19
mov dword [ebp - 8], esi
jmp 0x1059c1f
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 0x1059b6a
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, esi
je 0x1059c67
call fcn.01075a13
push 0x32
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1059c55
inc esi
cmp esi, 0x64
jl 0x1059c3b
jmp 0x1059c60
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 0x1059e9b
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
lea eax, [ebp - 0xc]
push eax
push 0x100c510
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1059f10
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 0x1059f10
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 0x1059f10
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x1059f21
push esi
push esi
push 0x30
push esi
push 0xb3
push 0x17
call fcn.01054be3
pop esi
leave
ret
Function at 0x105d3ba
Capabilities:
Get disk information

Disassembly:
mov eax, 0x10cf313
call fcn.01077798
sub esp, 0x14
push ebx
push esi
mov ebx, ecx
push edi
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_4
mov esi, dword [ebp + 8]
lea eax, [esi + 0x74]
xor edi, edi
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call sub.MFC42u.DLL_CString::operator_2
push esi
mov ecx, ebx
call fcn.01058758
cmp eax, edi
mov dword [ebp - 0x1c], eax
je 0x105d589
push esi
mov ecx, ebx
call fcn.0105d1a9
cmp eax, edi
mov dword [ebp - 0x1c], eax
je 0x105d52f
push dword [0x10e25b4]
call fcn.01081da5
mov ecx, esi
call fcn.01074258
cmp dword [esi + 0x5c], edi
jne 0x105d544
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_4
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], edi
call fcn.0104e8e8
test eax, eax
je 0x105d4fd
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString_4
mov byte [ebp - 4], 2
call fcn.01021462
add eax, 0xa2
push eax
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::operator_1
push dword [ebp + 8]
call fcn.010337cd
cmp eax, edi
je 0x105d4d6
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 sub.MFC42u.DLL_CString::operator_2
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
push 0x1004204
lea ecx, [ebp - 0x20]
call sub.MFC42u.DLL_CString::CString_5
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.010761d8
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 0x105d4d6
cmp eax, 5
je 0x105d4d6
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 0x105d4fd
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push 0xa3
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
jmp 0x105d511
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push 0xf
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
push 1
push edi
push 0x40
push edi
push dword [ebp - 0x14]
push 0x17
call fcn.01054b83
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
jmp 0x105d544
push 1
push edi
push 0x30
push edi
push 0x80f5
push 0xfa6
call fcn.01054be3
mov ecx, dword [ebx + 0x20]
push 0x1005368
call fcn.01052e48
push dword [0x10e25b4]
mov edi, eax
call fcn.01081da5
mov ecx, esi
call fcn.01074258
push 3
mov ecx, ebx
call fcn.010584f7
test eax, eax
je 0x105d579
mov ecx, eax
call fcn.0107374f
push 1
mov ecx, esi
call fcn.010741f7
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 0x105fefb
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x10de03c]
push ebx
mov ebx, ecx
mov dword [ebp - 4], eax
mov ax, word [ebx]
cmp ax, 0x40
mov dword [ebp - 0x65c], edx
jne 0x105ff27
xor eax, eax
jmp 0x10600ad
mov cx, word [ebx + 2]
cmp cx, 0x3a
push esi
push edi
jne 0x105ff70
and word [ebp - 0x3fe], 0
mov word [ebp - 0x404], ax
mov word [ebp - 0x402], cx
lea eax, [ebx + 4]
cmp word [eax], 0x5c
lea ecx, [ebp - 0x3fe]
mov word [ebp - 0x400], 0x5c
mov dword [ebp - 0x658], ecx
jne 0x105ff6c
add ebx, 6
jmp 0x105ffe6
mov ebx, eax
jmp 0x105ffe6
push 0x5c
pop edi
cmp ax, di
jne 0x10600a9
cmp cx, di
jne 0x10600a9
mov esi, dword [sym.imp.msvcrt.dll_wcschr]
lea eax, [ebx + 4]
push edi
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x10600a9
add eax, 2
push edi
push eax
call esi
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x10600a9
mov esi, edi
sub esi, ebx
sar esi, 1
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x404]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
mov edx, dword [ebp - 0x65c]
lea eax, [ebp + esi*2 - 0x402]
add esp, 0xc
and word [eax], 0
mov dword [ebp - 0x658], eax
lea ebx, [edi + 2]
mov ecx, eax
test edx, edx
je 0x105fff0
mov dword [edx], 1
mov ax, word [ebx]
test ax, ax
jne 0x1060006
xor eax, eax
inc eax
jmp 0x10600ab
mov ecx, dword [ebp - 0x658]
mov dword [ebp - 0x664], ecx
mov dword [ebp - 0x660], ebx
xor esi, esi
jmp 0x106002f
cmp ax, 0x5c
je 0x1060034
mov word [ecx], ax
inc ecx
inc ecx
inc ebx
inc ebx
inc esi
xor eax, eax
mov ax, word [ebx]
mov dword [ebp - 0x658], ecx
test ax, ax
jne 0x1060016
lea eax, [ebp - 0x654]
push eax
mov word [ecx], 0x2a
add ecx, 2
and word [ecx], 0
lea eax, [ebp - 0x404]
push eax
mov dword [ebp - 0x668], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10600a9
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
movzx ecx, si
cmp eax, ecx
jne 0x1060090
lea eax, [esi + esi]
push eax
push dword [ebp - 0x664]
lea eax, [ebp - 0x628]
push eax
call fcn.010829b3
test eax, eax
je 0x10600b8
lea eax, [ebp - 0x654]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1060061
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01075aef
leave
ret
mov eax, dword [ebp - 0x65c]
test eax, eax
je 0x10600d0
mov ecx, dword [ebp - 0x654]
shr ecx, 4
and ecx, 1
mov dword [eax], ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp - 0x660]
mov ecx, esi
lea esi, [ebp - 0x628]
rep movsw word es:[edi], word [esi]
mov ax, word [ebx]
mov ecx, dword [ebp - 0x658]
mov word [ecx], ax
cmp word [ebx], 0
je 0x105fff8
mov eax, dword [ebp - 0x668]
inc ebx
inc ebx
mov dword [ebp - 0x658], eax
mov ax, word [ebx]
test ax, ax
jne 0x1060000
jmp 0x105fff8
Function at 0x1061c38
Capabilities:
Access the windows event log
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ebx, ebx
cmp dword [0x10e5d88], ebx
push esi
jne 0x1061c7f
push 0x50
mov esi, 0x10e5ce8
push esi
push 0x17d4
call fcn.01067f86
push 0x10dd6e8
push 0x10e5b58
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
cmp eax, ebx
mov dword [0x10e5d88], eax
je 0x1061ce4
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 0x1061cc6
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 0x1061cbe
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
pop ecx
jne 0x1061cbe
push 0x100549c
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
inc edi
cmp edi, dword [ebp + 0x10]
jl 0x1061c94
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 [0x10e5d88]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1066a48
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x10d001c
call fcn.01077798
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_4
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_4
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 0x1066b1d
push 0x5c
mov ecx, edi
call sub.MFC42u.DLL_CString::ReverseFind
cmp eax, 0xffffffff
mov dword [ebp - 0x24], eax
je 0x1066b6f
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 sub.MFC42u.DLL_CString::operator_2
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 sub.MFC42u.DLL_CString::operator_2
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 0x1066b1d
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call sub.MFC42u.DLL_CString::operator_1
jmp 0x1066b74
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 0x1066b74
call sub.MFC42u.DLL_AfxThrowUserException
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
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