joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800ce70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x264], edi
test edi, edi
je 0x1800d09c
movzx eax, word [edi]
test ax, ax
je 0x1800d09c
push 0x2e
xor cl, cl
mov dword [ebp - 8], 0x3a
mov esi, edi
mov edx, eax
pop ebx
mov al, cl
cmp dx, 0x5c
je 0x1800cedf
cmp dx, 0x2f
je 0x1800cedf
cmp dx, word [ebp - 8]
je 0x1800cedf
cmp dx, bx
je 0x1800cecf
mov cl, 1
jmp 0x1800cedf
mov cl, al
cmp esi, edi
jbe 0x1800cedf
cmp word [esi - 2], bx
je 0x1800d09c
push 0x3a
pop eax
cmp dx, ax
sete al
add esi, 2
dec al
and cl, al
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x1800ceb2
test cl, cl
je 0x1800d09c
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1800cf29
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1800cf1f
xor eax, eax
jmp 0x1800d0a1
call fcn.1801baa5
jmp 0x1800d0a1
and eax, 0x410
cmp eax, 0x10
jne 0x1800d09c
mov ecx, edi
call fcn.1800cd21
push 0x250
mov ebx, eax
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.18132f00
and dword [ebp - 8], 0
lea ecx, [ebp - 8]
add esp, 0xc
push edi
call fcn.180074da
mov esi, 0x181a0ec0
push esi
call fcn.18136f50
pop ecx
push eax
push esi
lea ecx, [ebp - 8]
call fcn.18009f34
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1800cfb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800d08d
call fcn.1801baa5
test ebx, ebx
jns 0x1800d08b
jmp 0x1800d08d
test byte [ebp - 0x260], 0x10
je 0x1800d054
push 0
push 2
mov edx, 0x181a0e40
lea ecx, [ebp - 0x234]
call fcn.1801331a
pop ecx
pop ecx
test eax, eax
je 0x1800d054
push 0
push 3
mov edx, 0x181a0eb4
lea ecx, [ebp - 0x234]
call fcn.1801331a
pop ecx
pop ecx
test eax, eax
je 0x1800d054
and dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
push edi
call fcn.180074da
mov edi, 0x181a01a8
push edi
call fcn.18136f50
pop ecx
push eax
push edi
lea ecx, [ebp - 0xc]
call fcn.18009f34
lea eax, [ebp - 0x234]
push eax
call fcn.18136f50
pop ecx
push eax
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0xc]
call fcn.18009f34
mov edi, dword [ebp - 0xc]
mov ecx, edi
call fcn.1800ce70
test ebx, ebx
js 0x1800d046
test eax, eax
jns 0x1800d046
mov ebx, eax
lea ecx, [edi - 0x10]
call fcn.18006f52
mov edi, dword [ebp - 0x264]
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800cfb1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1800d08d
mov ecx, edi
call fcn.18010a65
test ebx, ebx
js 0x1800d08d
test eax, eax
jns 0x1800d08d
mov ebx, eax
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov eax, ebx
jmp 0x1800d0a1
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e248
leave
ret
Function at 0x1800d582
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov esi, ebx
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.18132f00
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, 0x103
je 0x1800d72b
cmp eax, 0xea
je 0x1800d721
test eax, eax
jne 0x1800d72b
lea eax, [ebp - 0x620]
mov dword [ebp - 0x620], ebx
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
je 0x1800d70d
mov eax, 0x104
mov dword [ebp - 0x628], 9
push 0x208
mov dword [ebp - 0x630], eax
mov dword [ebp - 0x62c], eax
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.18132f00
push 0x208
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.18132f00
add esp, 0x18
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x61c]
push eax
push dword [ebp - 0x620]
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
jne 0x1800d68b
call fcn.1801baa5
jmp 0x1800d70d
cmp dword [ebp - 0x628], 1
jne 0x1800d70d
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x624], ebx
push eax
lea ecx, [ebp - 0x638]
call fcn.180074da
push str.HKU_
lea ecx, [ebp - 0x634]
call fcn.180074da
lea eax, [ebp - 0x638]
push eax
lea edx, [ebp - 0x634]
lea ecx, [ebp - 0x624]
call fcn.1800d43d
pop ecx
mov ecx, dword [ebp - 0x634]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 0x638]
lea ecx, [ecx - 0x10]
call fcn.18006f52
lea eax, [ebp - 0x624]
mov ecx, edi
push eax
call fcn.18009bb4
mov ecx, dword [ebp - 0x624]
lea ecx, [ecx - 0x10]
call fcn.18006f52
cmp dword [ebp - 0x620], ebx
je 0x1800d721
push dword [ebp - 0x620]
call dword [sym.imp.KERNEL32.dll_LocalFree]
inc esi
cmp esi, 0xa
jl 0x1800d59e
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e248
leave
ret
Function at 0x1800d831
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x181d000c]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
xor eax, eax
mov dword [esp + 0x20], ecx
lea edi, [esp + 0x24]
stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1800bf45
mov edi, dword [esp + 0x20]
xor ebx, ebx
mov esi, ebx
cmp dword [edi + 8], ebx
jne 0x1800d8a6
call fcn.18015ca1
test al, al
je 0x1800d8a6
call fcn.1800be2a
mov esi, eax
test esi, esi
je 0x1800d916
mov dword [edi + 8], esi
cmp dword [edi + 0xc], ebx
je 0x1800d8a6
push str.runas
push dword [edi + 0xc]
call fcn.1813aa78
pop ecx
pop ecx
test eax, eax
jne 0x1800d8a6
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne byte [esp + 0xf]
test eax, eax
je 0x1800d968
mov ecx, dword [edi + 0x38]
test ecx, ecx
je 0x1800d925
call fcn.18018430
movzx ecx, byte [0x181d605a]
mov edi, eax
neg ecx
sbb ecx, ecx
and ecx, 0x181d5f50
je 0x1800d90d
push 7
pop edx
xor eax, eax
mov dword [esp + 0x10], ecx
inc eax
mov dword [esp + 0x14], edx
push eax
push edx
mov dword [esp + 0x20], eax
call fcn.18008b3f
push edi
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push str._Started_process___u_
push eax
call fcn.18007210
add esp, 0xc
push edi
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
jmp 0x1800d970
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1800d986
movzx ecx, byte [0x181d605a]
neg ecx
sbb ecx, ecx
and ecx, 0x181d5f50
je 0x1800d970
push 7
pop edx
xor eax, eax
mov dword [esp + 0x10], ecx
inc eax
mov dword [esp + 0x14], edx
push eax
push edx
mov dword [esp + 0x20], eax
call fcn.18008b3f
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push str._Started_process__PID_unknown_
push eax
call fcn.18007210
pop ecx
pop ecx
jmp 0x1800d970
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test esi, esi
je 0x1800d97b
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov bl, byte [esp + 0xf]
lea ecx, [esp + 0x24]
call fcn.1800bf9f
mov ecx, dword [esp + 0x34]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1811e248
mov esp, ebp
pop ebp
ret
Function at 0x1800d9a3
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push ecx
xor esi, esi
mov dword [ebp - 0x10], edx
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.180074da
push ecx
lea ecx, [ebp - 8]
call fcn.1800f9c7
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], esi
jne 0x1800d9dd
mov esi, 0x80070057
jmp 0x1800da31
push edi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
cmp dword [ebp - 0xc], esi
je 0x1800da26
test edi, edi
je 0x1800da26
push ebx
mov ebx, dword [edi]
test ebx, ebx
jne 0x1800da02
mov eax, esi
jmp 0x1800da09
push ebx
call fcn.18136f50
pop ecx
mov ecx, dword [ebp - 0x10]
push eax
push ebx
call fcn.180075cd
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.1800f9c7
pop ebx
jmp 0x1800da2d
call fcn.1801baa5
mov esi, eax
mov eax, dword [ebp - 8]
pop edi
lea ecx, [eax - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1811e248
leave
ret

Function at 0x1800da48
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push str.Global_MSIExecute
xor edi, edi
push edi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
test esi, esi
jne 0x1800da81
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1800dac2
test eax, eax
jle 0x1800dab0
movzx edi, ax
or edi, 0x80070000
jmp 0x1800dac2
push 0x493e0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1800dabb
cmp eax, 0x80
je 0x1800dabb
cmp eax, 0x102
je 0x1800dab4
cmp eax, 0xffffffff
je 0x1800daab
mov edi, 0x80004005
jmp 0x1800dac6
call fcn.1801baa5
mov edi, eax
jmp 0x1800dac2
mov edi, 0x800705b4
jmp 0x1800dac2
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test esi, esi
je 0x1800dacd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x1800ee7b
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov esi, ecx
mov edi, edx
mov dword [ebp - 8], edi
cmp esi, 0x40
ja 0x1800eea4
push dword [ebp + 8]
lfence
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
jmp 0x1800ef3e
push ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
mov dword [ebp - 0xc], eax
mov byte [ebp - 1], bl
mov ecx, ebx
lfence
lea eax, [ecx + 0x40]
mov dword [ebp - 0x10], eax
cmp eax, esi
ja 0x1800eec7
push 0x40
pop edi
jmp 0x1800eecb
mov edi, esi
sub edi, ecx
mov eax, dword [ebp + 8]
sub eax, ebx
push eax
push 1
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, eax
cmp ecx, 0x102
je 0x1800ef38
cmp ecx, 0xffffffff
je 0x1800ef38
cmp ecx, 0x80
jb 0x1800ef02
lea eax, [edi + 0x80]
cmp ecx, eax
jae 0x1800ef02
mov byte [ebp - 1], 1
cmp dword [ebp + 8], 0xffffffff
je 0x1800ef1b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
sub ebx, dword [ebp - 0xc]
cmp ebx, dword [ebp + 8]
jbe 0x1800ef1b
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
add dword [ebp - 8], 0x100
cmp ecx, esi
jb 0x1800eeb8
movzx eax, byte [ebp - 1]
neg eax
sbb eax, eax
and eax, 0x80
jmp 0x1800ef3d
lfence
mov eax, ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x180106d7
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
jne 0x180106ed
xor eax, eax
jmp 0x180106f4
push esi
call fcn.18136f50
pop ecx
push eax
push esi
lea ecx, [edi + 4]
call fcn.180075cd
mov bl, byte [ebp + 0xc]
push 0
push 0x10000000
movzx eax, bl
mov dword [ebp - 4], eax
add eax, 3
push eax
xor eax, eax
test bl, bl
push 0
push dword [ebp + 0x14]
sete al
dec eax
and eax, 0x102
inc eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x18010799
call fcn.1801baa5
movzx ecx, byte [0x181d605a]
mov edi, eax
neg ecx
sbb ecx, ecx
and ecx, 0x181d5f50
je 0x18010795
push 7
pop edx
push 0xfffffffffffffffe
pop eax
push eax
push edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
call fcn.18008b3f
mov edx, esi
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 8]
call fcn.1800722f
push edi
push 0
push dword [ebp - 4]
push dword [eax]
lea eax, [ebp - 0x18]
push str._File::OpenShareMode___CreateFile_failed___s___d___d__0x_x_
push eax
call fcn.18007210
mov ecx, dword [ebp - 8]
add esp, 0x18
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov eax, edi
jmp 0x18010802
test bl, bl
je 0x180107f6
push 0x2000
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x180107f6
call fcn.1801baa5
movzx ecx, byte [0x181d605a]
mov esi, eax
neg ecx
sbb ecx, ecx
and ecx, 0x181d5f50
je 0x180107f2
push 7
pop edx
push 0xfffffffffffffffe
pop eax
push eax
push edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
call fcn.18008b3f
push esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push str._File::OpenShareMode___SetFileAttributes_failed__0x_x_
push eax
call fcn.18007210
add esp, 0xc
mov eax, esi
jmp 0x18010802
and dword [edi + 0xc], 0
xor bl, 1
mov byte [edi + 8], bl
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x180109fb
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, ecx
call fcn.18010809
test al, al
je 0x18010a37
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18010a2c
test al, 1
je 0x18010a2c
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x18010a2c
pop esi
jmp fcn.1801baa5
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x18010a26
xor eax, eax
pop esi
ret
Function at 0x18010ffe
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 8], 0
push esi
mov esi, dword [ebp + 0x10]
push edi
push 0
mov edi, ecx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18011038
call fcn.1801baa5
jmp 0x18011050
mov eax, dword [ebp - 8]
test esi, esi
je 0x18011041
mov dword [esi], eax
add dword [edi + 0xc], eax
sub eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1811e248
leave
ret 0xc

Function at 0x18012ecb
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 0x18012fe7
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
cmp edi, 2
jle 0x18012f4a
sub edx, 4
js 0x18012fe7
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 0x18012ee6
sub edi, 1
je 0x18012faa
sub edi, 1
jne 0x18012fe0
sub edx, 3
js 0x18012fe7
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 0x18012fe0
lea eax, [edx - 1]
test eax, eax
js 0x18012fe7
mov byte [esi], 0x3d
inc esi
jmp 0x18012fe0
sub edx, 2
js 0x18012fe7
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 0x18012fe0
lea eax, [edx - 2]
test eax, eax
js 0x18012fe7
mov word [esi], 0x3d3d
add esi, 2
sub esi, dword [ebp + 8]
mov eax, esi
jmp 0x18012fe9
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1801603a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x120]
mov dword [ebp - 0x124], 0x11c
push 0
push eax
call fcn.18132f00
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x180161e1
mov ecx, dword [ebp - 0x120]
cmp ecx, 6
je 0x180160ea
cmp ecx, 0xa
je 0x180160ea
cmp ecx, 5
jne 0x180161e1
cmp dword [ebp - 0x11c], 2
jne 0x180160c8
cmp byte [ebp - 0xa], 1
jne 0x180160b4
call fcn.18015e76
cmp eax, 9
je case.0x18016130.1
test dword [ebp - 0xc], 0x8000
jne 0x180161e1
push 2
jmp 0x180161ac
cmp dword [ebp - 0x11c], 1
jne 0x180161e1
test dword [ebp - 0xc], 0x200
jne 0x180161e1
xor eax, eax
inc eax
jmp 0x180161e3
mov edx, dword [ebp - 0x11c]
lea eax, [ebp - 8]
and dword [ebp - 8], 0
push eax
push ecx
push ecx
call fcn.18015a53
add esp, 0xc
test eax, eax
je 0x180161e1
mov eax, dword [ebp - 8]
cmp eax, 0x30
ja 0x18016189
je case.0x18016130.1
cmp eax, 0xb
ja 0x18016137
je case.0x18016130.2
dec eax
cmp eax, 9
ja case.0x18016130.2
movzx eax, byte [eax + 0x1801620a]
jmp dword [eax*4 + 0x180161f6]
cmp eax, 0x10
ja 0x18016168
je case.0x18016130.4
sub eax, 0xc
je case.0x18016130.7
sub eax, 1
je case.0x18016130.7
sub eax, 1
je case.0x18016130.7
sub eax, 1
je case.0x18016130.7
jmp case.0x18016130.2
sub eax, 0x11
je case.0x18016130.7
sub eax, 1
je case.0x18016130.7
sub eax, 7
je case.0x18016130.7
dec eax
sub eax, 1
jmp 0x180161c6
cmp eax, 0x7d
ja 0x180161af
je case.0x18016130.4
sub eax, 0x46
je case.0x18016130.4
dec eax
sub eax, 1
je case.0x18016130.4
sub eax, 0xc
je case.0x18016130.4
sub eax, 0x25
je 0x180161aa
sub eax, 1
jne case.0x18016130.2
push 4
pop eax
jmp 0x180161e3
sub eax, 0x7e
je case.0x18016130.4
sub eax, 3
je case.0x18016130.4
sub eax, 1
je case.0x18016130.4
sub eax, 0x3a
je case.0x18016130.4
sub eax, 3
je case.0x18016130.4
mov al, byte [ebp - 0xa]
cmp al, 3
je case.0x18016130.7
cmp al, 2
je case.0x18016130.7
test byte [ebp - 0xc], 2
jne case.0x18016130.4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1811e248
leave
ret
push 3
jmp 0x180161ac

Function at 0x1801705c
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 0xc], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 8], eax
test eax, eax
je 0x180170c2
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
test eax, eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop ebx
call fcn.1811e248
leave
ret
Function at 0x18017b03
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x181d000c]
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 0x18017b9f
push 0x22c
lea eax, [ebp - 0x230]
push edi
push eax
call fcn.18132f00
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 0x18017b9f
mov ecx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x228]
cmp eax, dword [ecx + 0x1c]
jne 0x18017b82
mov eax, dword [ebp - 0x218]
test eax, eax
jne 0x18017b9b
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x18017b67
mov edi, 0x80004005
jmp 0x18017bab
mov dword [ebx], eax
jmp 0x18017ba6
call fcn.1801baa5
mov edi, eax
cmp esi, 0xffffffff
je 0x18017bb2
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.1811e248
leave
ret 4
Function at 0x1801802f
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x18172bbc]
push ebx
push esi
push edi
push 0x206
mov word [ebp - 0x20c], ax
xor ebx, ebx
lea eax, [ebp - 0x20a]
mov edi, edx
push ebx
push eax
mov esi, ecx
call fcn.18132f00
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
jne 0x1801808e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x180180dd
mov dword [ebp - 0x210], ebx
call fcn.18006f7b
push eax
lea ecx, [ebp - 0x210]
call fcn.1800768f
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x20c]
call fcn.1801cef5
test eax, eax
js 0x180180cd
push dword [ebp + 8]
mov ecx, dword [ebp - 0x210]
mov edx, edi
call fcn.18017f8d
pop ecx
mov bl, al
mov ecx, dword [ebp - 0x210]
add ecx, 0xfffffff0
call fcn.18006f52
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e248
leave
ret
Function at 0x180180ec
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1230
call fcn.18159d00
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x122c], edx
push 0x5c
mov dword [ebp - 0x1220], ecx
mov ecx, edi
pop edx
call fcn.180137d0
mov esi, eax
cmp esi, 0xffffffff
setne byte [ebp - 0x1225]
xor ebx, ebx
mov dword [ebp - 0x1218], ebx
call fcn.18006f7b
push eax
lea ecx, [ebp - 0x1218]
call fcn.1800768f
cmp esi, 0xffffffff
je 0x18018169
lea edx, [ebp - 0x1218]
mov ecx, edi
call fcn.180182d9
test eax, eax
js 0x180182ba
mov edi, dword [ebp - 0x1218]
mov dword [ebp - 0x122c], edi
push ebx
xor edx, edx
push 5
inc edx
pop ecx
call fcn.1801599e
pop ecx
test al, al
je 0x180181bf
call fcn.18015cc2
push dword [ebp - 0x1220]
movzx eax, al
neg eax
push ebx
sbb eax, eax
and eax, 0xc00
add eax, 0x400
push eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x180182ba
push dword [ebp - 0x1225]
mov edx, edi
mov ecx, esi
call fcn.1801802f
pop ecx
mov bl, al
jmp 0x180182b3
push dword [ebp - 0x1220]
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x180182ba
push 0x1000
lea eax, [ebp - 0x1214]
push ebx
push eax
call fcn.18132f00
add esp, 0xc
mov dword [ebp - 0x121c], ebx
lea eax, [ebp - 0x121c]
push eax
push 4
lea eax, [ebp - 0x1214]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
jne 0x18018228
push dword [ebp - 0x1225]
mov edx, edi
mov ecx, esi
call fcn.1801802f
pop ecx
mov bl, al
jmp 0x180182af
mov edi, dword [ebp - 0x121c]
shr edi, 2
cmp edi, 1
jbe 0x1801823b
xor edi, edi
inc edi
jmp 0x1801823f
test edi, edi
je 0x180182b3
mov dword [ebp - 0x1220], ebx
push 0x208
lea eax, [ebp - 0x214]
push ebx
push eax
call fcn.18132f00
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x104
push eax
mov eax, dword [ebp - 0x1220]
push dword [ebp + eax*4 - 0x1214]
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x1801829a
push dword [ebp - 0x1225]
mov edx, dword [ebp - 0x122c]
lea ecx, [ebp - 0x214]
call fcn.18017f8d
pop ecx
test al, al
jne 0x180182ad
mov eax, dword [ebp - 0x1220]
inc eax
mov dword [ebp - 0x1220], eax
cmp eax, edi
jl 0x18018245
jmp 0x180182b3
mov bl, 1
test esi, esi
je 0x180182ba
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1218]
add ecx, 0xfffffff0
call fcn.18006f52
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e248
leave
ret