joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008529
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push ebx
push esi
lea esi, [eax + 0x30]
push esi
push 0x40
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x100ee98
push edi
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push 2
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryKey]
mov esi, eax
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test esi, esi
mov dword [ebp - 0xc], eax
jne 0x100eecb
push dword [ebp + 0x30]
mov edi, dword [sym.imp.ntdll.dll_NtQuerySecurityObject]
push esi
push esi
push 7
push dword [ebp + 8]
call edi
mov esi, 0xc0000023
cmp eax, esi
jne 0x100eea0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0xf
push dword [ebp + 8]
call edi
cmp eax, esi
je 0x100eeab
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebp + 0x24]
mov dword [ecx], eax
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebp + 0x28]
mov dword [ecx], eax
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebp + 0x2c]
mov dword [ecx], eax
mov ecx, dword [ebx]
mov eax, dword [ebp + 0x34]
mov dword [eax], ecx
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [ebx + 0x10]
cmp ecx, dword [ebp - 8]
ja 0x100eeb8
mov eax, dword [ebp + 0xc]
mov edx, ecx
shr ecx, 2
lea esi, [ebx + 0x2c]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x10]
shr ecx, 1
and word [eax + ecx*2], 0
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x30
push 8
pop eax
jmp 0x1008629
mov eax, dword [ebp + 0x30]
and dword [eax], 0
jmp 0x10085ad
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x30]
mov dword [ecx], eax
jmp 0x10085ad
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
jmp 0x1008628
push eax
push 0x100eee0
push 1
call fcn.0100d30d
add esp, 0xc
jmp 0x100861e
Function at 0x100879e
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
lea esi, [edi + 0x18]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x100ee86
lea eax, [ebp + 0x14]
push eax
push esi
push ebx
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtEnumerateKey]
mov esi, eax
test esi, esi
jl 0x1008818
mov ecx, dword [ebx + 0xc]
lea eax, [ecx + 2]
cmp edi, eax
jb 0x100ee8e
mov eax, dword [ebp + 0x10]
mov edx, ecx
shr ecx, 2
lea esi, [ebx + 0x10]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0xc]
shr ecx, 1
xor esi, esi
mov word [eax + ecx*2], si
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
jmp 0x1008811
push 8
pop eax
jmp 0x1008811
mov esi, 0xea
jmp 0x1008808
Function at 0x1008e81
Capabilities:
Delete file
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push edi
push 0x1008f90
lea eax, [ebp - 0xc]
push eax
call esi
push 0x1008f18
lea eax, [ebp - 0x14]
push eax
call esi
xor esi, esi
push esi
push 0x100921c
push 0xf
lea eax, [ebp - 0xc]
push eax
call fcn.01008fc7
push 0x18
pop ebx
push 0x40
lea eax, [ebp - 0xc]
pop edi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ntdll.dll_NtDeleteFile]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
push 0xf003f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
pop edi
pop esi
pop ebx
jge 0x1009191
xor eax, eax
leave
ret
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtDeleteKey]
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x1008f13

Function at 0x10092aa
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 8]
push edi
push 0x204022
mov dword [ebp - 0x18], eax
push 3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push eax
xor edi, edi
push 0x100180
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], 0x40
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.ntdll.dll_NtOpenFile]
cmp eax, edi
jl 0x1009355
push esi
push 4
push 0x28
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov esi, eax
cmp esi, edi
jl 0x1009349
mov eax, dword [ebp + 0xc]
test dword [ebp - 0x28], eax
je 0x1009349
not eax
and eax, dword [ebp - 0x28]
mov edx, eax
je 0x100f505
push 0xa
pop ecx
xor eax, eax
push 4
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
push 0x28
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x28], edx
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
pop esi
pop edi
leave
ret 8
mov edx, 0x80
jmp 0x1009325
Function at 0x1009a44
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov eax, dword [0x101a4d8]
mov dword [0x101a560], eax
mov eax, dword [0x101a4dc]
mov dword [0x101a564], eax
mov eax, dword [0x101a4e0]
mov dword [0x101a568], eax
mov eax, dword [0x101a4e4]
mov dword [0x101a56c], eax
mov eax, dword [0x101a4e8]
mov dword [0x101a570], eax
mov eax, dword [0x101a4ec]
mov dword [0x101a574], eax
mov eax, dword [0x101a4f0]
mov dword [0x101a578], eax
mov eax, dword [0x101a4f4]
mov dword [0x101a57c], eax
mov eax, dword [0x101a4f8]
mov dword [0x101a580], eax
mov eax, dword [0x101a5f8]
mov dword [0x101a584], eax
mov eax, dword [0x101a5fc]
mov dword [0x101a588], eax
mov eax, dword [0x101a600]
mov dword [0x101a58c], eax
mov eax, dword [0x101a604]
mov dword [0x101a590], eax
mov eax, dword [0x101a608]
mov dword [0x101a594], eax
mov eax, dword [0x101a60c]
mov dword [0x101a598], eax
mov eax, dword [0x101a610]
xor esi, esi
mov dword [0x101a59c], eax
mov eax, dword [0x101a614]
push esi
push esi
mov dword [ebp - 4], esi
mov dword [0x101a5a0], eax
mov dword [0x101a5a4], 0x100aa0d
mov dword [0x101a5a8], 0x1016840
mov dword [0x101a5ac], 0x10098ac
call fcn.01009835
mov dword [0x101a5b0], eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push 0x100963b
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, esi
je 0x100fd14
push 0x64
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100fd1f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1009b61
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
jmp 0x1009b57
Function at 0x100acc6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push 0x101a2a8
mov dword [ebp - 8], 4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x1009868
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100ad25
lea eax, [ebp - 8]
push eax
push 0x101a2c0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x100ad28
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x100b5cc
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x100b6e8
call fcn.01006682
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x100b6df
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100b6df
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
jne 0x100f7d9
cmp dword [ecx + 0x74], 0xe
jbe 0x100b6df
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x101a7dc], 0xffffffff
or dword [0x101a7e0], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x101a7d4]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x101a7d0]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x101a7d8], eax
call fcn.0100bc7d
cmp dword [0x101a788], edi
je 0x100f7fe
call fcn.0100c712
push 0x101a780
push 0x101a77c
call sub.msvcrt.dll__initterm
mov eax, dword [0x101a7cc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x101a7c8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x101a778
push 0x101a770
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0100c6de
jmp 0x100f80f
mov dword [ebp - 0x1c], edi
jmp 0x100b624
cmp eax, 0x20b
jne 0x100b6df
cmp dword [ecx + 0x84], 0xe
jbe 0x100b6df
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x100b61e
push fcn.0100bc7d
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
jmp 0x100b677
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x100f823
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100f862
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010066c2
ret
Function at 0x100bb80
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push 0x20
xor esi, esi
push 0x40
mov dword [ebp - 4], 0x10
mov dword [0x101a340], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, esi
mov dword [0x101a340], eax
je 0x100f337
mov ecx, dword [ebp - 4]
add ecx, ecx
mov word [0x101a33e], cx
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
push dword [0x101a340]
je 0x100f33e
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
push esi
push esi
shl eax, 1
push esi
mov word [0x101a33c], ax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
xor ecx, ecx
cmp eax, esi
setne cl
mov dword [0x101a7c0], eax
mov eax, ecx
pop esi
leave
ret
xor eax, eax
jmp 0x100bbf8
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x101a340], esi
jmp 0x100f337

Function at 0x100ca4f
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1c]
push edi
xor edi, edi
cmp eax, edi
jne 0x100db6f
push edi
push edi
push edi
push 0x20
push dword [esi + 0x14]
mov eax, 0x100d20c
push eax
push eax
call fcn.0100d061
test eax, eax
jne 0x100db9c
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, 0x4e20
push ebx
push dword [esi + 0x18]
call edi
cmp eax, 0x102
je 0x100db86
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
push eax
call dword [sym.imp.ntdll.dll_RtlDeregisterWait]
test eax, eax
jl 0x100ca67
mov dword [esi + 0x1c], edi
jmp 0x100ca67
push 0
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
push dword [esi + 0x18]
call edi
jmp 0x100ca9f
push edi
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x4e20
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x100ca9f
Function at 0x10103b1
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x101a10c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24c]
push eax
mov ebx, 0x238
push ebx
lea eax, [ebp - 0x23c]
push eax
push 2
push esi
call dword [sym.imp.ntdll.dll_NtQueryKey]
test eax, eax
jne 0x1010478
mov eax, dword [ebp - 0x228]
and dword [ebp - 0x240], 0
test eax, eax
mov dword [ebp - 0x248], eax
jbe 0x1010478
push edi
push ebx
lea eax, [ebp - 0x23c]
push eax
push 0
push esi
call fcn.0100879e
test eax, eax
jne 0x1010477
lea eax, [ebp - 0x244]
push eax
push 0x30019
push 0
lea eax, [ebp - 0x23c]
push eax
push esi
call fcn.01002ccf
test eax, eax
jne 0x1010477
push dword [ebp - 0x244]
call fcn.010103b1
lea eax, [ebp - 0x23c]
push eax
push esi
call fcn.010152d1
push dword [ebp - 0x244]
mov edi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test edi, edi
jne 0x1010477
inc dword [ebp - 0x240]
mov eax, dword [ebp - 0x240]
cmp eax, dword [ebp - 0x248]
jb 0x1010406
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0100155d
leave
ret 4

Function at 0x101072d
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push 0
push fcn.01010659
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x1010755
call fcn.01010659
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret
Function at 0x1012e80
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x101a10c]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], edi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0x64
lea eax, [ebp - 0x68]
push eax
push esi
mov dword [ebp - 0x70], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
jne 0x1012ee9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1012ef0
push 0x1e
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1012ee9
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
cmp eax, 0xea
je 0x1012ea9
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0100155d
leave
ret 4

Function at 0x1012f03
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea ecx, [ebp - 0xc]
xor edi, edi
call fcn.01001475
call fcn.010107cc
mov ebx, eax
shl eax, 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x1012f40
push 0x101a05c
call dword [sym.imp.ntdll.dll_RtlReleaseResource]
jmp 0x101301a
push esi
call fcn.0100d23c
mov esi, eax
jmp 0x1012f92
test byte [esi + 0x28], 0x30
je 0x1012f8f
mov eax, dword [esi + 0x2c]
cmp eax, 1
je 0x1012f8f
cmp eax, 3
je 0x1012f8f
test byte [esi + 0x30], 4
je 0x1012f8f
mov eax, dword [esi + 0x24]
test eax, eax
je 0x1012f8f
push 0
push 0
push 0
push 5
push dword [eax + 0x14]
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.0100d061
test eax, eax
jne 0x1012f8f
cmp edi, ebx
jae 0x1012f8f
mov eax, dword [ebp - 4]
mov dword [eax + edi*4], esi
inc edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x1012f4a
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
test edi, edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edi
je 0x1013004
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
xor esi, esi
xor edi, edi
cmp dword [ebp - 8], edx
jbe 0x1013004
mov eax, dword [ebp - 4]
mov eax, dword [eax + edx*4]
mov ecx, dword [eax + 0x2c]
sub ecx, 3
je 0x1012fd6
dec ecx
jne 0x1012feb
mov eax, 0x7530
jmp 0x1012fe2
mov eax, dword [eax + 0x40]
test eax, eax
jne 0x1012fe2
mov eax, 0x4e20
cmp edi, eax
jae 0x1012fe8
mov edi, eax
xor esi, esi
inc esi
inc edx
cmp edx, dword [ebp - 8]
jb 0x1012fbe
test esi, esi
je 0x1013004
call ebx
sub eax, dword [ebp - 0xc]
cmp eax, edi
jbe 0x1013000
xor esi, esi
test esi, esi
jne 0x1012fa8
push 0x1016840
call sub.SCESRV.dll_ScesrvTerminateServer
push 0x101a05c
call dword [sym.imp.ntdll.dll_RtlReleaseResource]
pop esi
pop edi
pop ebx
leave
ret
Function at 0x1013ded
Capabilities:
Unload driver

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
push dword [edi + 8]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 0x6c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x1013e1b
push 8
pop eax
jmp 0x1013e98
push 0x10065b8
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
push dword [edi + 8]
push esi
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
push esi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp + 8]
push eax
push 1
mov dword [ebp + 8], 0xa
call fcn.01001596
mov edi, eax
test edi, edi
je 0x1013e62
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
jmp 0x1013e98
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_NtUnloadDriver]
mov edi, eax
call fcn.010016a6
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
jge 0x1013e96
cmp edi, 0xc0000010
jne 0x1013e8d
mov eax, 0x41c
jmp 0x1013e98
push edi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
jmp 0x1013e98
xor eax, eax
pop edi
pop esi
leave
ret 4
Function at 0x1015c59
Capabilities:
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x101a10c]
and dword [ebp - 0x30], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x28], eax
call esi
pop ecx
lea eax, [eax + eax + 2]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [edi], eax
jne 0x1015ca1
push 8
pop eax
jmp 0x1015dc9
push dword [ebp - 0x28]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
push 0x5c
push dword [edi]
call dword [sym.imp.msvcrt.dll_wcschr]
add esp, 0x10
test eax, eax
mov dword [ebp - 0x28], eax
jne 0x1015cce
push eax
call fcn.0100d30d
pop ecx
push 0x1f
pop ebx
jmp 0x1015db1
add eax, 2
push 0x1005f48
mov dword [ebx], eax
call esi
push eax
push 0x1005f48
push dword [edi]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0x10
test eax, eax
jne 0x1015d41
lea eax, [ebp - 0x24]
push eax
call fcn.01015a92
test eax, eax
je 0x1015cc6
push dword [ebx]
call esi
mov ebx, eax
lea eax, [ebp - 0x24]
push eax
call esi
pop ecx
add ebx, eax
pop ecx
lea eax, [ebx + ebx + 4]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
mov dword [ebp - 0x30], esi
jne 0x1015d26
push 8
jmp 0x1015cc8
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
push dword [ebp - 0x28]
push esi
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
push esi
jmp 0x1015d43
push dword [edi]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x2c]
push eax
push 0x801
call fcn.0100ac81
test eax, eax
je 0x1015d66
mov ebx, 0x421
jmp 0x1015db1
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
push eax
push 1
push dword [ebp - 0x2c]
call sub.ADVAPI32.dll_LsaLookupNames
test eax, eax
push dword [ebp - 0x2c]
jge 0x1015d8a
call sub.ADVAPI32.dll_LsaClose
jmp 0x1015d5f
call sub.ADVAPI32.dll_LsaClose
xor ebx, ebx
cmp dword [ebp - 0x34], ebx
je 0x1015d9e
push dword [ebp - 0x34]
call sub.ADVAPI32.dll_LsaFreeMemory
cmp dword [ebp - 0x38], ebx
je 0x1015d5f
push dword [ebp - 0x38]
call sub.ADVAPI32.dll_LsaFreeMemory
mov eax, dword [ebp - 0x28]
mov word [eax], bx
push dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
test ebx, ebx
je 0x1015dc7
push dword [edi]
call esi
and dword [edi], 0
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100155d
leave
ret 0xc
Function at 0x40ddb0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47596b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00469f54
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40de32
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00467d3d
mov eax, dword [eax]
push 0x572200
push eax
call fcn.0045a944
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046a1df
test bl, bl
je 0x40de32
push 0x572200
lea ecx, [esp + 0xc]
call fcn.0046a56f
push 0x575d90
lea ecx, [esp + 0xc]
call fcn.0046a56f
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40de6e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046a1df
jmp 0x40df39
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40def2
lea edx, [esp + 0x7c]
push 0x575d8c
push edx
call fcn.0045a944
add esp, 8
test eax, eax
je 0x40def2
lea eax, [esp + 0x7c]
push 0x575d88
push eax
call fcn.0045a944
add esp, 8
test eax, eax
je 0x40def2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40de82
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046a1df
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40e730
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40e792
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc