joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800e642
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x181ce008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov ecx, esi
call fcn.18006eee
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.18148a10
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
jns 0x1800e6dc
movzx ecx, bl
cmp ecx, 0x26
jne 0x1800e6a0
mov edx, str.ProgramFiles
jmp 0x1800e6aa
cmp ecx, 0x1c
jne 0x1800e6cb
mov edx, str.LocalAppData
lea ecx, [ebp - 0x210]
call fcn.180052b8
push eax
mov ecx, esi
call fcn.18006dec
mov ecx, dword [ebp - 0x210]
lea ecx, [ecx - 0x10]
call fcn.18004715
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x1800e6d8
xor eax, eax
inc eax
jmp 0x1800e6fa
mov eax, edi
jmp 0x1800e6fa
lea eax, [ebp - 0x20c]
push eax
call fcn.1814c973
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.180070ff
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18145efd
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea esi, [ecx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x1800ed44
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x1800ed44
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jb 0x1800ed1f
xor al, al
jmp 0x1800ed46
mov al, 1
pop esi
leave
ret 4
Function at 0x1800ed9f
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x181ce008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x25c], ebx
push dword [ebx + 4]
mov esi, ecx
push dword [ebx]
call fcn.1800a1c1
mov eax, dword [ebx]
mov dword [ebx + 4], eax
mov ecx, dword [esi]
call fcn.18005162
test al, al
jne 0x1800ede6
mov eax, 0x80070003
jmp 0x1800ee9f
push edi
mov edx, esi
lea ecx, [ebp - 0x260]
call fcn.1800eeae
mov dword [esp], 0x250
lea eax, [ebp - 0x258]
xor ebx, ebx
push ebx
push eax
call fcn.18148a10
mov edi, dword [ebp - 0x260]
lea eax, [ebp - 0x258]
add esp, 0xc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1800ee31
call fcn.18013e1e
mov ebx, eax
jmp 0x1800ee95
mov edi, dword [ebp - 0x25c]
lea eax, [ebp - 0x258]
push eax
call fcn.18007ac4
pop ecx
test al, al
je 0x1800ee76
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x25c]
call fcn.18006e44
lea eax, [ebp - 0x25c]
mov ecx, edi
push eax
call fcn.18009ef8
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
call fcn.18004715
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800ee37
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp - 0x260]
lea ecx, [edi - 0x10]
call fcn.18004715
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18145efd
leave
ret

Function at 0x1800f8b8
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x181ce008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x234], ecx
push edi
push 2
mov dword [ebx], edi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x1800f954
push 0x22c
lea eax, [ebp - 0x230]
push edi
push eax
call fcn.18148a10
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1800f954
mov ecx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x228]
cmp eax, dword [ecx + 0x1c]
jne 0x1800f937
mov eax, dword [ebp - 0x218]
test eax, eax
jne 0x1800f950
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1800f91c
mov edi, 0x80004005
jmp 0x1800f95b
mov dword [ebx], eax
jmp 0x1800f95b
call fcn.18013e1e
mov edi, eax
cmp esi, 0xffffffff
je 0x1800f967
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18145efd
leave
ret 4
Function at 0x1800fe69
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1220
call fcn.1816d5c0
mov eax, dword [0x181ce008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ecx
xor ebx, ebx
mov edi, edx
push ebx
push 0x410
mov dword [ebp - 0x1210], edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1800fff9
push 0x5c
pop edx
mov ecx, edi
call fcn.1800d5d1
mov edi, eax
cmp edi, 0xffffffff
setne byte [ebp - 0x1220]
call fcn.180040b1
push eax
lea ecx, [ebp - 0x1218]
call fcn.1800717c
cmp edi, 0xffffffff
je 0x1800fef7
mov ecx, dword [ebp - 0x1210]
lea edx, [ebp - 0x1218]
call fcn.1801000a
test eax, eax
js 0x1800ffe4
mov edi, dword [ebp - 0x1218]
mov dword [ebp - 0x1210], edi
jmp 0x1800fefd
mov edi, dword [ebp - 0x1210]
push 0x1000
lea eax, [ebp - 0x120c]
push ebx
push eax
call fcn.18148a10
add esp, 0xc
mov dword [ebp - 0x121c], ebx
lea eax, [ebp - 0x121c]
push eax
push 4
lea eax, [ebp - 0x120c]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
jne 0x1800ff5f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.18010498
test al, al
je 0x1800ffe4
push dword [ebp - 0x1220]
mov edx, edi
mov ecx, esi
call fcn.1800fdc2
pop ecx
mov bl, al
jmp 0x1800ffe4
mov edi, dword [ebp - 0x121c]
shr edi, 2
cmp edi, 1
jbe 0x1800ff70
xor edi, edi
inc edi
mov dword [ebp - 0x1214], ebx
test edi, edi
je 0x1800ffe4
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.18148a10
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov eax, dword [ebp - 0x1214]
push dword [ebp + eax*4 - 0x120c]
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x1800ffcf
push dword [ebp - 0x1220]
mov edx, dword [ebp - 0x1210]
lea ecx, [ebp - 0x20c]
call fcn.1800fd2b
pop ecx
test al, al
jne 0x1800ffe2
mov eax, dword [ebp - 0x1214]
inc eax
mov dword [ebp - 0x1214], eax
cmp eax, edi
jl 0x1800ff7a
jmp 0x1800ffe4
mov bl, 1
mov ecx, dword [ebp - 0x1218]
add ecx, 0xfffffff0
call fcn.18004715
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18145efd
leave
ret
Function at 0x18010611
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
lea ecx, [ebp - 0x24]
mov ebx, edx
call fcn.1800834b
push 0x40
xor esi, esi
mov dword [ebp - 0x6c], 0x44
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.18148a10
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x6c]
add esp, 0xc
mov dword [ebp - 0x40], 0x80
push edi
push eax
push esi
cmp dword [ebp + 8], esi
jne 0x18010655
push esi
push esi
jmp 0x1801065d
push dword [ebp + 8]
push 0x400
push esi
push esi
push esi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x18010675
call fcn.18013e1e
mov esi, eax
jmp 0x180106b5
movzx ecx, byte [0x181d6aa2]
neg ecx
sbb ecx, ecx
and ecx, 0x181d5c50
je 0x180106b5
push 7
pop edx
xor eax, eax
mov dword [ebp - 0x14], ecx
inc eax
mov dword [ebp - 0x10], edx
push eax
push edx
mov dword [ebp - 0xc], eax
call fcn.18005e59
push dword [edi + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push str._Started_process___u_
push eax
call fcn.18004253
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.180083a5
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x180107cf
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
lea ecx, [ebp - 0x14]
call fcn.1800834b
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.180071f9
add eax, 0x10
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.1800f0bb
push 0x20
lea ecx, [ebp - 4]
call fcn.18006f23
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.18006f50
push 0x40
xor ebx, ebx
mov dword [ebp - 0x60], 0x44
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.18148a10
mov esi, dword [ebp - 4]
xor ecx, ecx
mov dword [ebp - 0x58], str.WinSta0Default
inc ecx
mov edx, 0x104
add esp, 0xc
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or ecx, eax
jge 0x18010859
push edx
lea ecx, [ebp - 4]
call fcn.18007252
mov esi, dword [ebp - 4]
push dword [ebp + 0x14]
lea eax, [ebp - 0x60]
push eax
push ebx
push dword [ebp + 0x10]
push 0x400
push ebx
push ebx
push ebx
push esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
mov edi, eax
call fcn.18006e9f
test edi, edi
jne 0x1801088c
call fcn.18013e1e
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.18004715
lea ecx, [ebp - 0x14]
call fcn.180083a5
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x18010a17
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x181ce008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x18]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x18010a8d
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], esi
push eax
push str.SeDebugPrivilege
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x18010a8d
mov eax, dword [ebp - 0x20]
push esi
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x18010a94
call fcn.18013e1e
mov esi, eax
cmp dword [ebp - 0x18], 0
je 0x18010aa3
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.18145efd
leave
ret

Function at 0x18010b2a
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
call fcn.18010ab2
mov ebx, eax
or edi, 0xffffffff
xor ecx, ecx
cmp ebx, edi
je 0x18010b81
lea eax, [ebp - 0x10]
mov dword [ebp - 8], ecx
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], ecx
push eax
push 8
push ebx
push ecx
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x18010b75
mov eax, dword [ebp - 8]
push esi
push eax
mov esi, dword [eax]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
test esi, esi
pop esi
sete al
xor ecx, ecx
jmp 0x18010b79
xor ecx, ecx
mov al, cl
test al, al
je 0x18010b81
mov eax, ebx
jmp 0x18010bc9
lea eax, [ebp - 4]
mov dword [ebp - 0xc], ecx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 4], ecx
push eax
push 1
push ecx
push ecx
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
je 0x18010bc7
mov ecx, dword [ebp - 0xc]
xor eax, eax
cmp dword [ebp - 4], eax
jbe 0x18010bc0
lea edx, [ecx + 8]
cmp dword [edx], 0
je 0x18010bba
inc eax
add edx, 0xc
cmp eax, dword [ebp - 4]
jb 0x18010baa
jmp 0x18010bc0
imul eax, eax, 0xc
mov edi, dword [eax + ecx]
push ecx
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov eax, edi
pop edi
pop ebx
leave
ret
Function at 0x18010bcd
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x181ce008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0xe8], 0x181a9b94
mov edi, ecx
mov dword [ebp - 0xcc], esi
push ecx
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0xd0], esi
mov ebx, edx
mov dword [ebp - 0xe4], esi
mov dword [ebp - 0xe0], esi
mov dword [ebp - 0xdc], esi
call fcn.180105dd
test al, al
jne 0x18010c2b
mov esi, 0x80004005
jmp 0x18010db5
lea ecx, [ebp - 0xc8]
call fcn.180075b4
push ecx
push ecx
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0xe8]
call fcn.1800a512
test al, al
jne 0x18010c58
mov esi, 0x80004005
jmp 0x18010daa
lea ecx, [ebp - 0x114]
mov dword [ebp - 0xd8], 0x181a97fc
mov dword [ebp - 0xd4], esi
call fcn.18004b7a
push 0x12
push 1
lea eax, [ebp - 0x68]
push 0x181a8e14
push eax
call fcn.180047c1
add esp, 0x10
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x114]
push esi
push 0xc0100000
push eax
call fcn.18004bf7
lea ecx, [ebp - 0x68]
call fcn.180048aa
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x68]
push 0x181a8e14
push eax
call fcn.180047c1
add esp, 0x14
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x114]
push esi
push 0xc0100000
push eax
call fcn.18004bf7
lea ecx, [ebp - 0x68]
call fcn.180048aa
push esi
push 0xc0100000
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x114]
call fcn.18004bf7
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0xd8]
call fcn.18007c7f
lea ecx, [ebp - 0xd8]
call fcn.18007d60
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0xf4]
push esi
push eax
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xf4], 0xc
push eax
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xec], 1
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x18010d83
push esi
push 1
push dword [ebp - 0xcc]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x18010d83
mov eax, dword [ebp - 0xcc]
mov dword [edi], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xcc], esi
mov dword [ebp - 0xd0], esi
mov dword [ebx], eax
jmp 0x18010d8a
call fcn.18013e1e
mov esi, eax
lea ecx, [ebp - 0x114]
call fcn.18004bc0
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xd8], 0x181a97fc
call fcn.18004f8f
lea ecx, [ebp - 0xc8]
call fcn.180048aa
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0xe8], 0x181a9b94
call fcn.18007fd8
cmp dword [ebp - 0xd0], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x18010de1
push dword [ebp - 0xd0]
call edi
cmp dword [ebp - 0xcc], 0
je 0x18010df2
push dword [ebp - 0xcc]
call edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18145efd
leave
ret
Function at 0x180115df
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x181ce008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x124]
push pe_nt_image_headers32
push ebx
mov dword [ebp - 0x12c], ebx
push eax
mov dword [ebp - 0x128], 0x11c
call fcn.18148a10
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je case.0x18011741.2
mov edi, dword [ebp - 0x124]
xor esi, esi
inc esi
cmp edi, 6
je 0x180116d2
cmp edi, 0xa
je 0x180116d2
cmp edi, 5
jne case.0x18011741.2
cmp dword [ebp - 0x120], 2
jne 0x180116bc
cmp byte [ebp - 0xe], 1
jne 0x18011682
lea ecx, [ebp - 0x130]
call fcn.18011345
push 0x181aa680
mov ecx, eax
mov dword [ebp - 0x12c], esi
call fcn.1800c345
test eax, eax
jne 0x18011682
mov bl, 1
inc eax
jmp 0x18011688
mov eax, dword [ebp - 0x12c]
test al, 1
je 0x1801169a
mov ecx, dword [ebp - 0x130]
lea ecx, [ecx - 0x10]
call fcn.18004715
test bl, bl
jne case.0x18011741.1
test dword [ebp - 0x10], 0x8000
je case.0x18011741.7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18145efd
leave
ret
cmp dword [ebp - 0x120], esi
jne case.0x18011741.2
test dword [ebp - 0x10], 0x200
jne case.0x18011741.2
xor eax, eax
inc eax
jmp 0x180116ad
mov eax, dword [ebp - 0x120]
mov ecx, str.kernel32.dll
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x130], eax
call fcn.18009dd9
mov esi, eax
test esi, esi
je case.0x18011741.2
push str.GetProductInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x18011718
lea ecx, [ebp - 0x12c]
push ecx
push ebx
push ebx
push dword [ebp - 0x130]
push edi
call eax
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je case.0x18011741.2
mov eax, dword [ebp - 0x12c]
cmp eax, 0x1b
ja 0x18011750
je case.0x18011741.4
dec eax
cmp eax, 0x18
ja case.0x18011741.2
movzx eax, byte [eax + 0x180117b3]
jmp dword [eax*4 + 0x180117a3]
push 2
pop eax
jmp 0x180116ad
cmp eax, 0x54
ja 0x18011770
je case.0x18011741.4
sub eax, 0x30
je case.0x18011741.1
sub eax, 0x16
je case.0x18011741.4
dec eax
sub eax, 1
je case.0x18011741.4
jmp case.0x18011741.2
cmp eax, 0x79
jb case.0x18011741.2
cmp eax, 0x7a
jbe 0x1801179e
cmp eax, 0x7c
jbe case.0x18011741.2
cmp eax, 0x7e
jbe case.0x18011741.4
add eax, 0xffffff7f
cmp eax, 1
ja case.0x18011741.2
push 3
jmp 0x1801174a
push 4
jmp 0x1801174a
Function at 0x180124d4
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
mov esi, ecx
push eax
call fcn.1801310d
cmp byte [ebp - 8], 0
je 0x180124f4
mov eax, dword [ebp - 0xc]
jmp 0x1801251d
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jle 0x1801250c
movzx eax, ax
or eax, 0x80070000
cmp eax, 0x80070002
je 0x1801251a
cmp eax, 0x80070003
jne 0x1801251d
xor eax, eax
inc eax
pop esi
leave
ret 4

Function at 0x18012794
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ecx
lea ecx, [ebp - 8]
mov dword [ebp - 4], edx
mov edi, 0x80070003
call fcn.18006e44
lea ecx, [ebp - 8]
call fcn.180132a5
mov esi, dword [ebp - 8]
test eax, eax
je 0x180128b3
and dword [ebp - 0x10], 0
or edx, 0xf003f
push 0
push ecx
push edx
push ecx
push ecx
push esi
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x181a9c18
mov dword [ebp - 0xc], 0x200
call fcn.1801257e
mov edi, eax
test edi, edi
jne 0x180128a4
mov eax, dword [ebp + 8]
sub eax, 1
je 0x18012886
sub eax, 1
je 0x18012882
sub eax, 1
je 0x18012856
sub eax, 1
je 0x18012847
sub eax, 3
je 0x18012834
sub eax, 4
je 0x18012822
mov edi, 0x8007065d
jmp 0x18012896
push dword [ebx + 4]
lea ecx, [ebp - 0x14]
push dword [ebx]
push dword [ebp - 4]
call fcn.18012d12
jmp 0x18012894
push 7
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
push ebx
push dword [ebp - 4]
call fcn.18012d77
jmp 0x18012894
push dword [ebx]
lea ecx, [ebp - 0x14]
push dword [ebp - 4]
call fcn.18012ce9
jmp 0x18012894
mov eax, ebx
neg eax
sbb eax, eax
and eax, dword [ebp + 0x10]
push eax
push ebx
push 3
push 0
push dword [ebp - 4]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
jle 0x18012896
movzx edi, di
or edi, 0x80070000
jmp 0x18012896
push 2
jmp 0x18012888
push 1
push ebx
push dword [ebp - 4]
lea ecx, [ebp - 0x14]
call fcn.18012d3b
mov edi, eax
lea ecx, [ebp - 0x14]
call fcn.18012552
test edi, edi
jne 0x180128a4
mov edi, eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x181a9c18
call fcn.18012552
lea ecx, [esi - 0x10]
call fcn.18004715
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x18012b05
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 4]
push eax
xor ecx, ecx
lea eax, [ebp - 8]
push ecx
push eax
push ecx
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push dword [edi + 4]
mov dword [ebp - 8], ecx
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x18012b3d
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x18012b9f
mov eax, dword [ebp - 4]
xor ecx, ecx
shr eax, 1
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.181465f7
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
test ecx, ecx
je 0x18012b9a
cmp dword [ebp - 4], 0
je 0x18012b93
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x18012b9f
movzx esi, si
or esi, 0x80070000
jmp 0x18012b9f
xor eax, eax
mov word [ecx], ax
jmp 0x18012b9f
mov esi, 0x8007000e
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x18013199
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x181ce008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x224]
push esi
push edi
push ebx
push eax
mov edi, ecx
call fcn.1801310d
cmp byte [ebp - 0x220], 0
je 0x180131d5
mov eax, dword [ebp - 0x224]
jmp 0x18013294
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x21c]
and dword [ebp - 0x218], 0
or eax, 0xf003f
push 0
push eax
push ebx
push dword [edi + 4]
mov dword [ebp - 0x21c], 0x181a9c18
mov dword [ebp - 0x214], 0x200
call fcn.18012691
mov esi, eax
cmp esi, 0x80070002
je 0x1801321c
cmp esi, 0x80070003
jne 0x1801322f
xor esi, esi
inc esi
jmp 0x1801322f
lea eax, [ebp - 0x20c]
push eax
call fcn.18013199
mov esi, eax
test esi, esi
jne 0x1801327d
xor ecx, ecx
mov dword [ebp - 0x210], 0x100
lea eax, [ebp - 0x22c]
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push ecx
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x21c]
test eax, eax
je 0x18013221
call fcn.18012552
push ebx
mov ecx, edi
call fcn.180124d4
mov esi, eax
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x181a9c18
call fcn.18012552
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18145efd
leave
ret 4
Function at 0x180137ac
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x181ce008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x14]
mov word [ebp - 8], 0x500
push eax
mov esi, ecx
lea eax, [ebp - 0xc]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 0x220
push 0x20
push 2
push eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x18013814
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
test eax, eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop esi
call fcn.18145efd
leave
ret