joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1012716
Capabilities:
Get local ipv4 addresses

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
push edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0x10]
xor ebx, ebx
push ebx
push ebx
push ebx
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
xor ecx, ecx
mov edi, 0xffff
cmp eax, ebx
je 0x1012750
jle 0x101274e
and eax, edi
or eax, 0x80070000
mov ecx, eax
mov eax, ecx
and eax, edi
mov dword [ebp - 4], ecx
cmp eax, 0x6f
jne 0x10127ab
push dword [esi + 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp - 0xc]
mov dword [esi + 0x14], ebx
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [esi + 0x10], eax
cmp eax, ebx
jne 0x1012784
mov dword [ebp - 4], 0x8007000e
jmp 0x101289d
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
push ebx
push ebx
push ebx
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
xor ecx, ecx
cmp eax, ebx
je 0x10127a8
jle 0x10127a6
and eax, edi
or eax, 0x80070000
mov ecx, eax
mov dword [ebp - 4], ecx
cmp ecx, ebx
jl 0x101289d
xor edi, edi
cmp dword [esi + 4], ebx
jbe 0x1012839
mov dword [ebp - 8], 1
mov eax, dword [esi + 0x10]
jmp 0x10127e4
cmp dword [eax + 0x40], 0x18
je 0x10127e1
cmp dword [eax + 0xd8], ebx
jne 0x10127e1
mov ecx, dword [esi]
mov ecx, dword [ecx + edi*4]
mov ecx, dword [ecx + 8]
cmp ecx, dword [eax + 4]
je 0x101283e
mov eax, dword [eax + 8]
cmp eax, ebx
jne 0x10127c6
mov eax, dword [esi]
push dword [eax + edi*4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esi + 4]
cmp eax, dword [ebp - 8]
jbe 0x1012820
mov ecx, dword [esi]
sub eax, edi
lea eax, [eax*4 - 4]
lea ecx, [ecx + edi*4]
push eax
lea eax, [ecx + 4]
push eax
push ecx
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [ecx + eax*4 - 4], ebx
dec dword [esi + 4]
dec edi
dec dword [ebp - 8]
inc edi
inc dword [ebp - 8]
cmp edi, dword [esi + 4]
jb 0x10127c1
mov edi, dword [esi + 0x10]
jmp 0x1012894
or dword [eax + 4], 0xffffffff
jmp 0x1012830
cmp dword [edi + 0x40], 0x18
je 0x1012891
cmp dword [edi + 0xd8], ebx
jne 0x1012891
cmp dword [edi + 4], 0xffffffff
je 0x1012891
mov eax, dword [esi + 4]
cmp eax, 0x20
jae 0x1012891
lea eax, [eax*4 + 4]
push eax
push esi
call fcn.01010308
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x101289d
mov eax, dword [esi + 4]
mov ecx, dword [esi]
lea ecx, [ecx + eax*4]
push edi
inc eax
push ecx
mov ecx, esi
mov dword [esi + 4], eax
call fcn.010116f4
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x101289d
mov edi, dword [edi + 8]
cmp edi, ebx
jne 0x1012844
cmp dword [ebp - 4], ebx
jge 0x10128a0
mov dword [esi + 4], ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10135ae
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push 0xd
push 1
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov byte [ebp - 1], 1
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
leave
ret 4
Function at 0x1013a1e
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov eax, 0x47e0
push eax
push 0
mov ebx, eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x1013a86
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 4]
push 5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
test ebx, ebx
je 0x1013a6a
push dword [ebp - 4]
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 4], 0
cmp ebx, 0xc0000004
jne 0x1013a94
mov eax, dword [ebp - 8]
mov ecx, eax
shr ecx, 4
lea ebx, [ecx + eax + 0x2000]
push ebx
push 0
call esi
push eax
call edi
mov dword [ebp - 4], eax
test eax, eax
jne 0x1013a42
xor eax, eax
jmp 0x1013a9b
test ebx, ebx
jl 0x1013a90
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10141f3
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x101e08c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.010140d7
mov esi, eax
test esi, esi
jl 0x1014293
push 0x38
lea eax, [ebp - 0x244]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x238], eax
mov eax, dword [0x101e098]
mov dword [ebp - 0x240], eax
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
mov dword [ebp - 0x248], 0x3c
mov dword [ebp - 0x244], 0x400c
mov dword [ebp - 0x23c], 0x10142a4
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0
push 0
push 0x86
push dword [0x101e098]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01001679
leave
ret 0xc
Function at 0x10142bf
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x101e08c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
push 0x38
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x24c]
push edi
push eax
mov dword [ebp - 0x250], edi
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
mov dword [ebp - 0x210], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, 0xffff
mov ebx, 0x80070000
test eax, eax
jne 0x101433b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x101432f
and eax, esi
or eax, ebx
mov edi, eax
test edi, edi
jl 0x1014438
xor edi, edi
mov dword [ebp - 0x250], 0x3c
mov dword [ebp - 0x24c], 0x400
mov dword [ebp - 0x244], 0x100d5e0
cmp dword [ebp + 0xc], edi
jne 0x1014368
mov dword [ebp - 0x244], 0x100d5ec
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x248], eax
mov eax, dword [0x101e094]
mov dword [ebp - 0x23c], 0x1014460
mov dword [ebp - 0x234], 1
cmp eax, edi
je 0x10143aa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x101e094], edi
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x1014438
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x10143c9
and eax, esi
or eax, ebx
mov edi, eax
test edi, edi
jge 0x1014438
push 0
call fcn.0100de95
mov ecx, edi
and ecx, esi
mov eax, 0x4ec
cmp ecx, eax
jne 0x1014438
xor edi, edi
push edi
push edi
lea ecx, [ebp - 0x210]
push ecx
push edi
push eax
push edi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
ja 0x101441d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x1014412
jle 0x1014417
and eax, esi
or eax, ebx
jmp 0x1014417
mov eax, 0x80004005
mov edi, eax
test eax, eax
jl 0x1014438
push 0x10
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
push dword [0x101e098]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [ebp - 0x210], 0
je 0x101444d
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001679
leave
ret 8
Function at 0x10156a3
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
cmp dword [ebp + 0x14], esi
jne 0x1015783
lea ebx, [edi + 0x260]
push ebx
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
push dword [ebp + 8]
push dword [edi + 0xc]
call fcn.01002e26
mov esi, eax
test esi, esi
je 0x1015717
mov ecx, esi
call fcn.0101336b
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x9c]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1015707
mov eax, dword [eax + 8]
jmp 0x101570a
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
movzx eax, word [esi + 0xa0]
mov dword [ebp - 0x14], eax
push ebx
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
xor ebx, ebx
cmp esi, ebx
jne 0x101572c
push 0x57
pop eax
jmp 0x10157fb
mov ecx, edi
cmp dword [ebp - 0xc], ebx
je 0x1015749
push 0x273b
push 0x273d
push 0x273a
push 0x273c
jmp 0x1015759
push ebx
push 0x2731
push 0x2730
push 0x272f
push 0x2713
call fcn.0101480a
cmp eax, 1
je 0x101576f
xor eax, eax
jmp 0x10157fb
cmp dword [ebp - 0x10], ebx
je 0x1015781
push dword [ebp - 0x14]
push dword [ebp - 8]
call sub.VDMDBG.dll_VDMTerminateTaskWOW
jmp 0x10157fb
xor esi, esi
push dword [ebp + 8]
push esi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
cmp ebx, esi
je 0x10157cf
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01014063
test eax, eax
jl 0x10157c6
cmp dword [ebp - 0x18], esi
je 0x10157c6
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x10157cf
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
jmp 0x10157d8
mov dword [ebp - 4], 6
jmp 0x10157d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp ebx, esi
je 0x10157e3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], esi
je 0x10157f8
push dword [ebp - 4]
push 0x2721
push dword [edi + 4]
call fcn.0100ed2d
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1015807
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x101e08c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push ebx
push 0x2739
push 0x2738
push 0x2737
mov esi, ecx
push 0x2713
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x418], ebx
call fcn.0101480a
cmp eax, 1
jne 0x101594b
push dword [ebp + 8]
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x420], eax
cmp eax, ebx
je 0x101594b
push edi
lea eax, [ebp - 0x418]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01014063
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jl 0x1015921
cmp dword [ebp - 0x418], ebx
je 0x1015921
push dword [ebp + 8]
lea eax, [ebp - 0x414]
push dword [esi + 0x3c]
push 0x1015960
push 0x208
push eax
call fcn.0100196b
mov esi, eax
add esp, 0x14
cmp esi, ebx
jne 0x1015926
push 0x40
lea eax, [ebp - 0x470]
push ebx
push eax
mov dword [ebp - 0x474], 0x44
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x474]
push eax
push ebx
push ebx
push 0x10
push ebx
push ebx
push ebx
lea eax, [ebp - 0x414]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x101590f
call fcn.0100dd74
mov esi, eax
jmp 0x1015926
push dword [ebp - 0x42c]
call edi
push dword [ebp - 0x430]
call edi
jmp 0x1015926
mov esi, 0x80070006
push dword [ebp - 0x420]
call edi
pop edi
cmp esi, ebx
je 0x101594b
mov eax, dword [ebp - 0x41c]
push esi
push 0x2722
push dword [eax + 4]
call fcn.0100ed2d
mov eax, esi
jmp 0x101594d
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.01001679
leave
ret 0xc
Function at 0x1016f66
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 0x10
push 0
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1017085
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
test dword [eax + 8], 0x20
jne 0x1016fae
add edi, 0x3080
mov dword [esi + 4], edi
jmp 0x1017083
push 1
mov dword [esi + 4], 0x1004bc4
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x1017083
lea ecx, [ebp - 8]
push ecx
push 0x2000
lea ecx, [edi + 0x40]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x101707a
push ebx
lea eax, [ebp - 4]
push eax
push dword [edi + 0x4c]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
test ebx, ebx
je 0x1017079
push 0x5c
push dword [ebx]
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
jne 0x1017011
mov eax, dword [ebx]
jmp 0x1017013
inc eax
inc eax
push eax
push 0x1017094
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x1017072
xor edi, edi
inc edi
cmp dword [ebp - 4], edi
jle 0x1017072
push dword [ebx + edi*4]
push 0x101708c
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1017049
inc edi
cmp edi, dword [ebp - 4]
jge 0x1017072
jmp 0x101702d
lea eax, [edi + 1]
cmp eax, dword [ebp - 4]
jge 0x1017072
mov edi, dword [ebx + edi*4 + 4]
xor eax, eax
cmp ax, word [edi]
je 0x1017072
push edi
call dword [sym.imp.msvcrt.dll__wcsdup]
pop ecx
mov dword [esi + 4], eax
test eax, eax
jne 0x1017072
mov dword [esi + 4], 0x1004bc4
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop esi
leave
ret 0xc

Function at 0x10171a0
Capabilities:
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
push 1
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, ebx
jne 0x10171c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1017212
push esi
push 0x20
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebx
jne 0x10171ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
jmp 0x1017211
lea eax, [ebp - 0x1c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1017203
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x1017d28
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x3c
push esi
mov esi, 0xdaf
cmp eax, esi
je 0x1017d69
cmp eax, 0xdb3
jbe 0x1017dc0
cmp eax, 0xdb7
ja 0x1017dc0
push 0x101fac0
push eax
push 0x1017d03
call dword [sym.imp.KERNEL32.dll_TrySubmitThreadpoolCallback]
test eax, eax
jne 0x1017dc0
push eax
call dword [sym.imp.USER32.dll_MessageBeep]
jmp 0x1017dc0
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [0x101e098]
mov dword [ebp - 0x34], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x600
mov dword [ebp - 0x30], 0x100d5ec
mov dword [ebp - 0x2c], 0x1017dc8
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0
push 0
push esi
push 2
call fcn.0100561e
push eax
call fcn.0101af5a
pop esi
leave
ret 4
Function at 0x10181c5
Capabilities:
Enumerate threads

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x11b4
call fcn.01009184
mov eax, dword [ebp + 0xc]
or dword [ebp - 4], 0xffffffff
push ebx
push esi
push edi
push 0
push 0
mov dword [eax], 1
call dword [sym.imp.ADVAPI32.dll_OpenThreadWaitChainSession]
mov dword [ebp - 0xc], eax
mov edi, 0xffff
mov esi, 0x80070000
test eax, eax
jne 0x1018217
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101820d
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jl 0x101835a
push dword [ebp + 8]
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
test eax, eax
je 0x101822d
cmp eax, 0xffffffff
jne 0x1018245
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101823b
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jl 0x1018336
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 8]
mov dword [ebp - 0x34], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1018260
xor ebx, ebx
jmp 0x1018278
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101826e
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jl 0x1018336
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x28], eax
jne 0x1018373
cmp dword [ebp - 4], 0
je 0x1018299
cmp dword [ebp - 4], 0xffffffff
je 0x1018299
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x2c]
push 0
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 4], eax
test eax, eax
je 0x1018363
cmp eax, 0xffffffff
je 0x1018363
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0x10], 0x103
jne 0x1018373
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x11b4]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x2c]
xor ebx, ebx
push 7
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.ADVAPI32.dll_GetThreadWaitChain]
test eax, eax
jne 0x1018315
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x101830b
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jge 0x1018315
xor ebx, ebx
jmp 0x1018373
cmp dword [ebp - 0x14], 0
je 0x1018373
mov eax, dword [ebp + 0xc]
and dword [eax], 0
cmp dword [ebp - 4], 0
je 0x1018336
cmp dword [ebp - 4], 0xffffffff
je 0x1018336
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
je 0x101834b
cmp dword [ebp - 8], 0xffffffff
je 0x101834b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
je 0x101835a
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseThreadWaitChainSession]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1018371
and eax, edi
or eax, esi
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 8]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
je 0x1018321
jmp 0x1018278
Function at 0x10194d5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
mov eax, 0xf0
mov word [esi + 4], ax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x1005150
push 0x80000001
mov dword [esi], 0x100d8c0
mov dword [esi + 8], 0x6a
mov dword [esi + 0xc], 2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1019588
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [0x101fd38]
mov dword [ebp - 4], ebx
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x1019552
cmp dword [ebp - 8], ebx
jne 0x1019552
mov eax, dword [ebp - 0xc]
mov dword [esi + 8], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [0x101fd3c]
mov dword [ebp - 4], ebx
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x101957d
cmp dword [ebp - 8], ebx
jne 0x101957d
mov eax, dword [ebp - 0xc]
mov dword [esi + 0xc], eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov eax, esi
pop esi
leave
ret

Function at 0x1019592
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push 0x1008a00
push esi
push 0x1005150
mov edi, ecx
push 0x80000001
mov dword [edi], 0x100d8c0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1019602
push 4
lea eax, [edi + 8]
push eax
push 4
push esi
push dword [0x101fd38]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call esi
push 4
add edi, 0xc
push edi
push 4
push 0
push dword [0x101fd3c]
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret
Function at 0x1019e6d
Capabilities:
Prompt user for credentials

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 0x140082
cmp dword [ebp + 0x1c], ebx
je 0x1019e9c
mov dword [ebp - 0xc], 0x140083
mov edi, 0x208
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call esi
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x1019ec5
mov dword [ebp + 0x1c], 0x8007000e
jmp 0x1019fef
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x1019ee3
mov dword [ebp + 0x1c], 0x8007000e
jmp 0x1019fcc
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
mov edi, 0x104
push edi
push dword [ebp - 8]
push 0x2713
push dword [0x101e0a4]
call esi
mov ebx, 0xffff
test eax, eax
jg 0x1019f2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1019f1d
jle 0x1019f22
and eax, ebx
or eax, 0x80070000
jmp 0x1019f22
mov eax, 0x80004005
mov dword [ebp + 0x1c], eax
test eax, eax
jl 0x1019fca
push edi
push dword [ebp - 4]
push 0x9cbc
push dword [0x101e0a4]
call esi
test eax, eax
jg 0x1019f63
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1019f57
jle 0x1019f5c
and eax, ebx
or eax, 0x80070000
jmp 0x1019f5c
mov eax, 0x80004005
mov dword [ebp + 0x1c], eax
test eax, eax
jl 0x1019fca
mov eax, dword [ebp + 8]
push dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x24]
push dword [ebp + 0x14]
mov dword [ebp - 0x24], 0x14
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x52e
push 0
push 0x1004bc4
push eax
call dword [sym.imp.credui.dll_CredUIPromptForCredentialsW]
xor ecx, ecx
test eax, eax
je 0x1019fb6
jle 0x1019fb4
and eax, ebx
or eax, 0x80070000
mov ecx, eax
mov dword [ebp + 0x1c], ecx
and ecx, ebx
cmp ecx, 0x4c7
jne 0x1019fca
mov dword [ebp + 0x1c], 1
xor ebx, ebx
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call esi
cmp dword [ebp - 4], ebx
je 0x1019fef
push dword [ebp - 4]
push ebx
call edi
push eax
call esi
mov eax, dword [ebp + 0x1c]
pop edi
pop esi
pop ebx
leave
ret 0x18