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

Disassembly:
call fcn.010214f7
test eax, eax
jne 0x1057d81
call fcn.01055542
push ebx
push esi
push edi
call fcn.01021af2
call fcn.0105544d
mov ebx, CompareStringW
push ebx
push 0x10e4230
mov edi, 0x100205c
push edi
xor eax, eax
push 0x100bc10
mov esi, 0x100b460
push esi
mov word [reloc.ADVAPI32.dll_RegDeleteValueW], ax
mov word [reloc.ADVAPI32.dll_RegDeleteValueW], ax
mov word [reloc.ADVAPI32.dll_RegDeleteValueW], ax
call fcn.01021695
call fcn.01021518
push eax
call fcn.010218b0
push ebx
push 0x10e4430
push edi
push 0x100bbf4
push esi
call fcn.01021695
call fcn.0102156b
push eax
call fcn.010219c6
push 1
push 0x100ba10
push esi
call fcn.010215b6
movzx eax, ax
mov dword [0x10e4b14], eax
call fcn.01092a1e
push 0
call fcn.0108cdc6
test eax, eax
pop edi
pop esi
mov dword [0x10e4b08], eax
mov dword [0x10e3d70], eax
pop ebx
je 0x1057e5e
mov word [eax + 0x66], 1
mov eax, dword [0x10e3d70]
or dword [eax + 0x9c], 2
call fcn.01055613
call fcn.010579d4
call fcn.01055b64
call fcn.01055ca7
and dword [0x10e25c8], 0
call fcn.01055de3
call fcn.01055e25
call fcn.01032f00
jmp fcn.010215a5
ret

Function at 0x1058094
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 0x100a0f8
xor edi, edi
push WaitForSingleObject
inc edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1058108
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push esi
push 0x100c280
push dword [ebp - 0x30]
mov dword [ebp - 0x38], 0x28
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10580ff
cmp dword [ebp - 0x34], 4
jne 0x10580ff
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.01075bbb
leave
ret

Function at 0x105811b
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 0x100a0f8
push WaitForSingleObject
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1058173
push 4
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x100c280
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.01075bbb
leave
ret 4
Function at 0x105866e
Capabilities:
Get common file path

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077868
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 fcn.010762c8
cmp eax, ebx
je 0x1058752
push dword [ebp - 0x14]
push eax
call edi
push 0xffffffffffffffff
mov ecx, esi
call fcn.010763c4
push dword [esi]
call fcn.0103386b
mov edi, eax
cmp edi, ebx
je 0x1058752
mov eax, dword [esi]
push edi
push eax
lea ecx, [ebp + 0xc]
call fcn.01076d6c
lea eax, [ebp - 0x18]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [0x10e25b0]
call fcn.010844f3
test ax, ax
jne 0x1058746
push dword [ebp - 0x18]
push dword [0x10e25b4]
call fcn.0108efdc
cmp eax, ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
je 0x1058746
mov eax, dword [esi]
mov ax, word [eax + edi*2]
cmp ax, 0x5c
mov ecx, esi
lea eax, [ebp + 8]
jne 0x1058721
inc edi
push edi
push eax
call fcn.01076694
mov byte [ebp - 4], 1
jmp 0x105872c
push edi
push eax
call fcn.01076694
mov byte [ebp - 4], 2
mov ecx, esi
push eax
call fcn.01075efc
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.01075ef0
mov dword [ebp - 0x10], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.01075ef0
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 0x105876b
Capabilities:
Set registry value

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077868
sub esp, reloc.KERNEL32.dll_GetTapeStatus
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.01074987
mov ecx, esi
call fcn.010760a0
mov ecx, esi
call fcn.01076094
push 1
call fcn.0102e3b7
mov edi, eax
cmp edi, 1
je 0x1058892
cmp edi, 4
je 0x1058880
lea ecx, [ebp - 0x12c]
call fcn.01075f2c
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.0105866e
test eax, eax
je 0x105885d
lea eax, reloc.KERNEL32.dll_PrepareTape
push eax
lea eax, [ebp - 0x128]
push eax
push edi
push 0x2000000
push edi
push edi
push edi
push 0x100c2c8
push reloc.KERNEL32.dll_WaitForSingleObject
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x105885d
push 0x45
pop ecx
lea edi, reloc.KERNEL32.dll_GetTapeStatus
rep stosd dword es:[edi], eax
lea eax, reloc.KERNEL32.dll_GetTapeStatus
mov esi, EraseTape
push eax
mov dword [ebp - reloc.KERNEL32.dll_GetTapeStatus], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push esi
lea eax, reloc.KERNEL32.dll_GetTapeStatus
push eax
push 3
push 0
push 0x100c2a8
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.010745c4
test eax, eax
je 0x105886f
push 7
call fcn.01039b13
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.01075ef0
jmp 0x1058892
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0xd4]
push 1
call fcn.0107607c
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.01075bbb
leave
ret 4
Function at 0x10591b8
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, 0x100c380
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 0x10592b0
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 0x10592ce
push edi
lea eax, [ebp - 0x28]
push eax
push reloc.KERNEL32.dll_ExpandEnvironmentStringsW
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 0x105929b
mov eax, dword [ebp - 0x28]
xor edx, edx
push 0x18
pop ecx
div ecx
xor edx, edx
cmp eax, edi
jbe 0x10592a1
xor ecx, ecx
lea ecx, [ecx + ecx*2]
mov ecx, dword [ebp + ecx*8 - 0x204]
cmp ecx, edi
je 0x1059289
cmp ecx, 0xb
je 0x105928e
cmp ecx, 0xc
je 0x1059289
mov dword [ebp - 0x2c], 1
jmp 0x1059291
cmp ecx, 0xb
jne 0x1059291
mov dword [ebp - 0x20], esi
inc edx
movzx ecx, dx
cmp ecx, eax
jb 0x1059268
jmp 0x10592a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], 1
je 0x10592d9
jmp 0x10592ce
cmp eax, 4
jne 0x10592c0
cmp word [ebp - 0x20], di
jne 0x10592ce
mov dword [ebp - 0x20], esi
jmp 0x10592ce
cmp eax, 3
jne 0x10592ce
cmp word [ebp - 0x24], di
jne 0x10592ce
mov dword [ebp - 0x24], esi
inc esi
cmp si, 0x5a
jbe 0x10591fc
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.01075bbb
leave
ret
Function at 0x10596d7
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.01059481
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0xa18], eax
je 0x105985e
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 0x1059736
xor eax, eax
jmp 0x1059864
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], bx
mov dword [ebp - 0xa1c], ebx
je 0x105985e
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 0x105982f
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], CView::OnEndPrintPreview
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebx, eax
lea eax, [ebx + ebx]
push eax
call fcn.010760ac
test eax, eax
pop ecx
mov dword [ebp - 0xa24], eax
je 0x1059800
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, dword [ebp - 0xa24]
cmp word [eax + 2], 0x3a
jne 0x10597f9
mov cx, word [eax]
mov word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], cx
push eax
call fcn.01075f8c
pop ecx
mov ax, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], ax
je 0x1059824
push 1
lea eax, [ebp - 0x210]
push eax
call fcn.01059376
mov dword [ebp - 0xa18], eax
cmp dword [ebp - 0xa18], 0
je 0x105985e
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 0x105975b
mov eax, dword [ebp - 0xa18]
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.01075bbb
leave
ret 8

Function at 0x1059877
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 0x100c390
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 2
push 1
lea eax, [ebp - 0x20c]
push eax
call fcn.01059481
mov ecx, dword [ebp - 4]
call fcn.01075bbb
leave
ret
Function at 0x105994e
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 0x100c3fc
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 0x1059991
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 0x100c3f0
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.01059376
mov ecx, dword [ebp - 4]
call fcn.01075bbb
leave
ret

Function at 0x1059c0e
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 0x1059c2c
mov dword [ebp - 8], esi
jmp 0x1059c32
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 0x1059b7d
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, esi
je 0x1059c7a
call fcn.01075adf
push 0x32
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1059c68
inc esi
cmp esi, 0x64
jl 0x1059c4e
jmp 0x1059c73
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 0x1059eae
Capabilities:
Shutdown system

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

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077868
sub esp, 0x14
push ebx
push esi
mov ebx, ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.01075f2c
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.01075efc
push esi
mov ecx, ebx
call fcn.0105876b
cmp eax, edi
mov dword [ebp - 0x1c], eax
je 0x105d59c
push esi
mov ecx, ebx
call fcn.0105d1bc
cmp eax, edi
mov dword [ebp - 0x1c], eax
je 0x105d542
push dword [0x10e25b4]
call fcn.01081e97
mov ecx, esi
call fcn.01074324
cmp dword [esi + 0x5c], edi
jne 0x105d557
lea ecx, [ebp - 0x14]
call fcn.01075f2c
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], edi
call fcn.0104e929
test eax, eax
je 0x105d510
lea ecx, [ebp + 8]
call fcn.01075f2c
mov byte [ebp - 4], 2
call fcn.0102150d
add eax, 0xa2
push eax
lea ecx, [ebp + 8]
call fcn.01075f20
push dword [ebp + 8]
call fcn.0103386b
cmp eax, edi
je 0x105d4e9
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 8]
call fcn.010762ec
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.01075efc
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.01075ef0
push 0x1004204
lea ecx, [ebp - 0x20]
call fcn.01075f08
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.010762a4
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.01075ef0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x105d4e9
cmp eax, 5
je 0x105d4e9
mov dword [ebp - 0x18], 1
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.01075ef0
cmp dword [ebp - 0x18], edi
je 0x105d510
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push 0xa3
push eax
call fcn.010762e0
add esp, 0xc
jmp 0x105d524
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push LoadLibraryW
push eax
call fcn.010762e0
add esp, 0x10
push 1
push edi
push reloc.ADVAPI32.dll_ReadEncryptedFileRaw
push edi
push dword [ebp - 0x14]
push 0x17
call fcn.01054b96
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.01075ef0
jmp 0x105d557
push 1
push edi
push 0x30
push edi
push 0x80f5
push 0xfa6
call fcn.01054bf6
mov ecx, dword [ebx + 0x20]
push 0x1005368
call fcn.01052e5b
push dword [0x10e25b4]
mov edi, eax
call fcn.01081e97
mov ecx, esi
call fcn.01074324
push 3
mov ecx, ebx
call fcn.0105850a
test eax, eax
je 0x105d58c
mov ecx, eax
call fcn.0107381b
push 1
mov ecx, esi
call fcn.010742c3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x78]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.01075ef0
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 0x10606a5
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x10de03c]
push ebx
push esi
mov ebx, ecx
mov si, word [ebx]
cmp si, 0x40
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov dword [ebp - 0x65c], edi
je 0x1060883
and dword [ebp - 0x658], 0
lea eax, [ebp - 0x658]
push eax
push 0x104
push ebx
call fcn.010600e6
test eax, eax
jl 0x1060883
cmp dword [ebp - 0x658], 0x3fe
ja 0x1060883
mov ax, word [ebx + 2]
cmp ax, 0x3a
jne 0x106074a
and word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0
mov word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], ax
lea eax, [ebx + 4]
cmp word [eax], 0x5c
lea ecx, [ebp - 0x3fe]
mov word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], si
mov word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0x5c
mov dword [ebp - 0x658], ecx
jne 0x1060746
add ebx, 6
jmp 0x10607c0
mov ebx, eax
jmp 0x10607c0
push 0x5c
pop edi
cmp si, di
jne 0x1060883
cmp ax, di
jne 0x1060883
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 0x1060883
add eax, 2
push edi
push eax
call esi
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x1060883
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]
lea eax, [ebp + esi*2 - 0x402]
add esp, 0xc
and word [eax], 0
lea ebx, [edi + 2]
mov edi, dword [ebp - 0x65c]
mov dword [ebp - 0x658], eax
mov ecx, eax
test edi, edi
je 0x10607ca
mov dword [edi], 1
mov ax, word [ebx]
test ax, ax
jne 0x10607e0
xor eax, eax
inc eax
jmp 0x1060885
mov ecx, dword [ebp - 0x658]
mov dword [ebp - 0x664], ecx
mov dword [ebp - 0x660], ebx
xor esi, esi
jmp 0x1060809
cmp ax, 0x5c
je 0x106080e
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 0x10607f0
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 0x1060883
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
movzx ecx, si
cmp eax, ecx
jne 0x106086a
lea eax, [esi + esi]
push eax
push dword [ebp - 0x664]
lea eax, [ebp - 0x628]
push eax
call fcn.01082aa5
test eax, eax
je 0x1060892
lea eax, [ebp - 0x654]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x106083b
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075bbb
leave
ret
mov eax, dword [ebp - 0x65c]
test eax, eax
je 0x10608aa
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 0x10607d2
mov eax, dword [ebp - 0x668]
inc ebx
inc ebx
mov dword [ebp - 0x658], eax
mov ax, word [ebx]
test ax, ax
jne 0x10607da
jmp 0x10607d2
Function at 0x1061d43
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 0x1061d8a
push 0x50
mov esi, 0x10e5ce8
push esi
push 0x17d4
call fcn.01068091
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 0x1061def
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 0x1061dd1
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 0x1061dc9
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
pop ecx
jne 0x1061dc9
push 0x100549c
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
inc edi
cmp edi, dword [ebp + 0x10]
jl 0x1061d9f
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 0x1066b53
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077868
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x14]
call fcn.01075f2c
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.01075f2c
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 0x1066c28
push 0x5c
mov ecx, edi
call fcn.01076304
cmp eax, 0xffffffff
mov dword [ebp - 0x24], eax
je 0x1066c7a
push eax
push 1
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.01076748
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.01075efc
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.01075ef0
mov eax, dword [ebp - 0x24]
inc eax
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call fcn.01076694
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.01075efc
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.01075ef0
lea eax, [ebp - 0x18]
push eax
push 0x2000000
push 0
push dword [ebp - 0x14]
push dword [esi]
call ebx
test eax, eax
je 0x1066c28
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.01075f20
jmp 0x1066c7f
mov ecx, dword [ebp + 8]
mov eax, 0x200
push eax
mov dword [ebp - 0x1c], eax
call fcn.010763d0
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 fcn.010763c4
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1066c7f
call fcn.01077444
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.01075ef0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.01075ef0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8