joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800ccef
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
test edi, edi
jle 0x1800ce0b
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
cmp edi, 2
jle 0x1800cd6e
sub edx, 4
js 0x1800ce0b
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + ecx]
mov byte [esi], al
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
and ecx, 3
shr eax, 4
shl ecx, 4
add ecx, dword [ebp + 0x10]
mov al, byte [eax + ecx]
mov byte [esi + 1], al
movzx eax, byte [ebx + 2]
movzx ecx, byte [ebx + 1]
shr eax, 6
and ecx, 0xf
add eax, dword [ebp + 0x10]
mov al, byte [eax + ecx*4]
mov ecx, dword [ebp + 0x10]
mov byte [esi + 2], al
movzx eax, byte [ebx + 2]
add ebx, 3
and eax, 0x3f
mov al, byte [eax + ecx]
mov byte [esi + 3], al
add esi, 4
sub edi, 3
jmp 0x1800cd0a
sub edi, 1
je 0x1800cdce
sub edi, 1
jne 0x1800ce04
sub edx, 3
js 0x1800ce0b
movzx eax, byte [ebx]
mov edi, dword [ebp + 0x10]
shr eax, 2
mov al, byte [eax + ecx]
mov byte [esi], al
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
and ecx, 3
shr eax, 4
shl ecx, 4
add ecx, edi
mov al, byte [eax + ecx]
mov byte [esi + 1], al
movzx eax, byte [ebx + 1]
and eax, 0xf
mov al, byte [edi + eax*4]
mov byte [esi + 2], al
add esi, 3
cmp byte [ebp + 0x14], 0
je 0x1800ce04
lea eax, [edx - 1]
test eax, eax
js 0x1800ce0b
mov byte [esi], 0x3d
inc esi
jmp 0x1800ce04
sub edx, 2
js 0x1800ce0b
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + ecx]
mov byte [esi], al
movzx eax, byte [ebx]
and eax, 3
add eax, eax
mov al, byte [ecx + eax*8]
mov byte [esi + 1], al
add esi, 2
cmp byte [ebp + 0x14], 0
je 0x1800ce04
lea eax, [edx - 2]
test eax, eax
js 0x1800ce0b
mov word [esi], 0x3d3d
add esi, 2
sub esi, dword [ebp + 8]
mov eax, esi
jmp 0x1800ce0d
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1800eb98
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 0x1800ebd9
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 0x1800ebd9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jb 0x1800ebb4
xor al, al
jmp 0x1800ebdb
mov al, 1
pop esi
leave
ret 4
Function at 0x1800ec34
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x181c0008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x25c], eax
push edi
mov ecx, eax
mov edi, edx
call fcn.18009c35
mov ecx, dword [esi]
call fcn.1800a901
test al, al
jne 0x1800ec73
mov eax, 0x80070003
jmp 0x1800ed2c
push edi
mov edx, esi
lea ecx, [ebp - 0x260]
call fcn.1800ed3b
mov dword [esp], 0x250
lea eax, [ebp - 0x258]
xor ebx, ebx
push ebx
push eax
call fcn.1813efc0
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 0x1800ecbe
call fcn.18012e6f
mov ebx, eax
jmp 0x1800ed22
mov edi, dword [ebp - 0x25c]
lea eax, [ebp - 0x258]
push eax
call fcn.180076e3
pop ecx
test al, al
je 0x1800ed03
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x25c]
call fcn.18006a90
lea eax, [ebp - 0x25c]
mov ecx, edi
push eax
call fcn.18009c5d
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
call fcn.18004595
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800ecc4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp - 0x260]
lea ecx, [edi - 0x10]
call fcn.18004595
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1813c4a8
leave
ret

Function at 0x1800f765
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x181c0008]
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 0x1800f801
push 0x22c
lea eax, [ebp - 0x230]
push edi
push eax
call fcn.1813efc0
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 0x1800f801
mov ecx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x228]
cmp eax, dword [ecx + 0x1c]
jne 0x1800f7e4
mov eax, dword [ebp - 0x218]
test eax, eax
jne 0x1800f7fd
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1800f7c9
mov edi, 0x80004005
jmp 0x1800f808
mov dword [ebx], eax
jmp 0x1800f808
call fcn.18012e6f
mov edi, eax
cmp esi, 0xffffffff
je 0x1800f814
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.1813c4a8
leave
ret 4
Function at 0x1800fd16
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1220
call fcn.18163b00
mov eax, dword [0x181c0008]
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 0x1800fea6
push 0x5c
pop edx
mov ecx, edi
call fcn.1800d533
mov edi, eax
cmp edi, 0xffffffff
setne byte [ebp - 0x1220]
call fcn.18003f31
push eax
lea ecx, [ebp - 0x1218]
call fcn.18006dc8
cmp edi, 0xffffffff
je 0x1800fda4
mov ecx, dword [ebp - 0x1210]
lea edx, [ebp - 0x1218]
call fcn.1800feb7
test eax, eax
js 0x1800fe91
mov edi, dword [ebp - 0x1218]
mov dword [ebp - 0x1210], edi
jmp 0x1800fdaa
mov edi, dword [ebp - 0x1210]
push 0x1000
lea eax, [ebp - 0x120c]
push ebx
push eax
call fcn.1813efc0
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 0x1800fe0c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.18010345
test al, al
je 0x1800fe91
push dword [ebp - 0x1220]
mov edx, edi
mov ecx, esi
call fcn.1800fc6f
pop ecx
mov bl, al
jmp 0x1800fe91
mov edi, dword [ebp - 0x121c]
shr edi, 2
cmp edi, 1
jbe 0x1800fe1d
xor edi, edi
inc edi
mov dword [ebp - 0x1214], ebx
test edi, edi
je 0x1800fe91
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.1813efc0
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 0x1800fe7c
push dword [ebp - 0x1220]
mov edx, dword [ebp - 0x1210]
lea ecx, [ebp - 0x20c]
call fcn.1800fbd8
pop ecx
test al, al
jne 0x1800fe8f
mov eax, dword [ebp - 0x1214]
inc eax
mov dword [ebp - 0x1214], eax
cmp eax, edi
jl 0x1800fe27
jmp 0x1800fe91
mov bl, 1
mov ecx, dword [ebp - 0x1218]
add ecx, 0xfffffff0
call fcn.18004595
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.1813c4a8
leave
ret

Function at 0x180104be
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x40
xor edi, edi
mov dword [ebp - 0x54], 0x44
lea eax, [ebp - 0x50]
mov esi, edx
push edi
push eax
call fcn.1813efc0
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x54]
add esp, 0xc
mov dword [ebp - 0x28], 0x80
push ebx
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1801050b
call fcn.18012e6f
mov edi, eax
jmp 0x1801054b
movzx ecx, byte [0x181c8652]
neg ecx
sbb ecx, ecx
and ecx, 0x181c7840
je 0x1801054b
push 7
pop edx
xor eax, eax
mov dword [ebp - 0x10], ecx
inc eax
mov dword [ebp - 0xc], edx
push eax
push edx
mov dword [ebp - 8], eax
call fcn.18005b0c
push dword [ebx + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push str._Started_process___u_
push eax
call fcn.180040d3
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x18010552
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
mov dword [ebp - 0x54], 0x44
lea eax, [ebp - 0x50]
mov edi, edx
push ebx
push eax
call fcn.1813efc0
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x54]
add esp, 0xc
mov dword [ebp - 0x28], 0x80
push esi
push eax
push ebx
cmp dword [ebp + 8], ebx
jne 0x1801058e
push ebx
push ebx
jmp 0x18010596
push dword [ebp + 8]
push 0x400
push ebx
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x180105ac
call fcn.18012e6f
jmp 0x180105ee
movzx ecx, byte [0x181c8652]
neg ecx
sbb ecx, ecx
and ecx, 0x181c7840
je 0x180105ec
push 7
pop edx
xor eax, eax
mov dword [ebp - 0x10], ecx
inc eax
mov dword [ebp - 0xc], edx
push eax
push edx
mov dword [ebp - 8], eax
call fcn.18005b0c
push dword [esi + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push str._Started_process___u_
push eax
call fcn.180040d3
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x180106f8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edx]
sub ecx, 0x10
call fcn.18006e45
add eax, 0x10
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.1800ef48
push 0x20
lea ecx, [ebp - 4]
call fcn.18006b6f
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.18006b9c
push 0x40
xor ebx, ebx
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.1813efc0
mov esi, dword [ebp - 4]
xor ecx, ecx
mov dword [ebp - 0x40], 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 0x18010778
push edx
lea ecx, [ebp - 4]
call fcn.18006e9e
mov esi, dword [ebp - 4]
push dword [ebp + 0x14]
lea eax, [ebp - 0x48]
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.18006aeb
test edi, edi
jne 0x180107ab
call fcn.18012e6f
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.18004595
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x1801092e
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x181c0008]
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 0x180109a4
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 0x180109a4
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 0x180109ab
call fcn.18012e6f
mov esi, eax
cmp dword [ebp - 0x18], 0
je 0x180109ba
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.1813c4a8
leave
ret

Function at 0x18010a41
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
call fcn.180109c9
mov ebx, eax
or edi, 0xffffffff
xor ecx, ecx
cmp ebx, edi
je 0x18010a98
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 0x18010a8c
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 0x18010a90
xor ecx, ecx
mov al, cl
test al, al
je 0x18010a98
mov eax, ebx
jmp 0x18010ae0
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 0x18010ade
mov ecx, dword [ebp - 0xc]
xor eax, eax
cmp dword [ebp - 4], eax
jbe 0x18010ad7
lea edx, [ecx + 8]
cmp dword [edx], 0
je 0x18010ad1
inc eax
add edx, 0xc
cmp eax, dword [ebp - 4]
jb 0x18010ac1
jmp 0x18010ad7
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 0x18010ae4
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x181c0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0xe8], 0x1819bfc4
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.1801048a
test al, al
jne 0x18010b42
mov esi, 0x80004005
jmp 0x18010ccc
lea ecx, [ebp - 0xc8]
call fcn.180071d3
push ecx
push ecx
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0xe8]
call fcn.1800a390
test al, al
jne 0x18010b6f
mov esi, 0x80004005
jmp 0x18010cc1
lea ecx, [ebp - 0x114]
mov dword [ebp - 0xd8], 0x1819bbfc
mov dword [ebp - 0xd4], esi
call fcn.180049c5
push 0x12
push 1
lea eax, [ebp - 0x68]
push 0x1819b218
push eax
call fcn.1800460c
add esp, 0x10
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x114]
push esi
push 0xc0100000
push eax
call fcn.18004a42
lea ecx, [ebp - 0x68]
call fcn.180046f5
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x68]
push 0x1819b218
push eax
call fcn.1800460c
add esp, 0x14
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x114]
push esi
push 0xc0100000
push eax
call fcn.18004a42
lea ecx, [ebp - 0x68]
call fcn.180046f5
push esi
push 0xc0100000
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x114]
call fcn.18004a42
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0xd8]
call fcn.1800789e
lea ecx, [ebp - 0xd8]
call fcn.1800797f
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 0x18010c9a
push esi
push 1
push dword [ebp - 0xcc]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x18010c9a
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 0x18010ca1
call fcn.18012e6f
mov esi, eax
lea ecx, [ebp - 0x114]
call fcn.18004a0b
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xd8], 0x1819bbfc
call fcn.18004dda
lea ecx, [ebp - 0xc8]
call fcn.180046f5
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0xe8], 0x1819bfc4
call fcn.18007bbe
cmp dword [ebp - 0xd0], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x18010cf8
push dword [ebp - 0xd0]
call edi
cmp dword [ebp - 0xcc], 0
je 0x18010d09
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.1813c4a8
leave
ret
Function at 0x1801111f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x181c0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x118
xor edi, edi
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.1813efc0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je case.0x18011239.2
mov ebx, dword [ebp - 0x11c]
cmp ebx, 6
je 0x180111ca
cmp ebx, 0xa
je 0x180111ca
cmp ebx, 5
jne case.0x18011239.2
cmp dword [ebp - 0x118], 2
jne 0x180111b3
cmp byte [ebp - 6], 1
jne 0x18011195
call fcn.18011064
cmp eax, 9
je case.0x18011239.1
test dword [ebp - 8], 0x8000
je case.0x18011239.7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1813c4a8
leave
ret
cmp dword [ebp - 0x118], 1
jne case.0x18011239.2
test dword [ebp - 8], 0x200
jne case.0x18011239.2
xor eax, eax
inc eax
jmp 0x180111a4
mov eax, dword [ebp - 0x118]
mov ecx, str.kernel32.dll
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x128], eax
call fcn.18009b16
mov esi, eax
test esi, esi
je case.0x18011239.2
push str.GetProductInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x18011210
lea ecx, [ebp - 0x124]
push ecx
push edi
push edi
push dword [ebp - 0x128]
push ebx
call eax
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je case.0x18011239.2
mov eax, dword [ebp - 0x124]
cmp eax, 0x1b
ja 0x18011248
je case.0x18011239.4
dec eax
cmp eax, 0x18
ja case.0x18011239.2
movzx eax, byte [eax + 0x180112ab]
jmp dword [eax*4 + 0x1801129b]
push 2
pop eax
jmp 0x180111a4
cmp eax, 0x54
ja 0x18011268
je case.0x18011239.4
sub eax, 0x30
je case.0x18011239.1
sub eax, 0x16
je case.0x18011239.4
dec eax
sub eax, 1
je case.0x18011239.4
jmp case.0x18011239.2
cmp eax, 0x79
jb case.0x18011239.2
cmp eax, 0x7a
jbe 0x18011296
cmp eax, 0x7c
jbe case.0x18011239.2
cmp eax, 0x7e
jbe case.0x18011239.4
add eax, 0xffffff7f
cmp eax, 1
ja case.0x18011239.2
push 3
jmp 0x18011242
push 4
jmp 0x18011242
Function at 0x180118b0
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.18006a90
lea ecx, [ebp - 8]
call fcn.180122f8
mov esi, dword [ebp - 8]
test eax, eax
je 0x180119cf
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], 0x1819c048
mov dword [ebp - 0xc], 0x200
call fcn.1801169f
mov edi, eax
test edi, edi
jne 0x180119c0
mov eax, dword [ebp + 8]
sub eax, 1
je 0x180119a2
sub eax, 1
je 0x1801199e
sub eax, 1
je 0x18011972
sub eax, 1
je 0x18011963
sub eax, 3
je 0x18011950
sub eax, 4
je 0x1801193e
mov edi, 0x8007065d
jmp 0x180119b2
push dword [ebx + 4]
lea ecx, [ebp - 0x14]
push dword [ebx]
push dword [ebp - 4]
call fcn.18011e1c
jmp 0x180119b0
push 7
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
push ebx
push dword [ebp - 4]
call fcn.18011e81
jmp 0x180119b0
push dword [ebx]
lea ecx, [ebp - 0x14]
push dword [ebp - 4]
call fcn.18011df3
jmp 0x180119b0
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 0x180119b2
movzx edi, di
or edi, 0x80070000
jmp 0x180119b2
push 2
jmp 0x180119a4
push 1
push ebx
push dword [ebp - 4]
lea ecx, [ebp - 0x14]
call fcn.18011e45
mov edi, eax
lea ecx, [ebp - 0x14]
call fcn.18011673
test edi, edi
jne 0x180119c0
mov edi, eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x1819c048
call fcn.18011673
lea ecx, [esi - 0x10]
call fcn.18004595
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x18011c1e
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 0x18011c56
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x18011cb8
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.1813cba2
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
test ecx, ecx
je 0x18011cb3
cmp dword [ebp - 4], 0
je 0x18011cac
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 0x18011cb8
movzx esi, si
or esi, 0x80070000
jmp 0x18011cb8
xor eax, eax
mov word [ecx], ax
jmp 0x18011cb8
mov esi, 0x8007000e
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x180121fb
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x181c0008]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
mov ebx, ecx
mov dword [esp + 8], 0x1819c048
mov ecx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 8]
xor edi, edi
or eax, 0xf003f
mov dword [esp + 0x1c], ecx
push eax
push ecx
push dword [ebx + 4]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 0x200
call fcn.180117b2
mov esi, eax
cmp esi, 0x80070002
je 0x1801225f
cmp esi, 0x80070003
jne 0x18012262
xor esi, esi
inc esi
test esi, esi
jne 0x180122ce
lea eax, [esp + 0x20]
push eax
push edi
push edi
push edi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x180122a6
lea eax, [esp + 0x28]
push eax
call fcn.180121fb
mov esi, eax
test esi, esi
jne 0x180122ce
lea eax, [esp + 0x20]
xor ecx, ecx
push eax
push ecx
push ecx
push ecx
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
push ecx
push dword [esp + 0x30]
mov dword [esp + 0x2c], 0x100
call edi
lea ecx, [esp + 0x10]
test eax, eax
je 0x18012281
call fcn.18011673
push dword [esp + 0x1c]
mov ecx, ebx
call fcn.18011613
mov esi, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x1819c048
call fcn.18011673
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1813c4a8
mov esp, ebp
pop ebp
ret 4

Function at 0x180127fd
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x181c0008]
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 0x18012865
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.1813c4a8
leave
ret