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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x1822b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
xor esi, esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.181757a0
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 0x1800c8d7
cmp eax, 0xea
je 0x1800c8cd
test eax, eax
jne 0x1800c8d7
and dword [ebp - 0x620], eax
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
je 0x1800c8b8
mov eax, 0x104
mov dword [ebp - 0x624], 9
push 0x208
mov dword [ebp - 0x638], eax
mov dword [ebp - 0x634], eax
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.181757a0
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.181757a0
add esp, 0x18
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x61c]
push eax
push dword [ebp - 0x620]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
jne 0x1800c83c
call fcn.18018dce
jmp 0x1800c8b8
cmp dword [ebp - 0x624], 1
jne 0x1800c8b8
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x62c]
call fcn.18006e68
push str.HKU_
lea ecx, [ebp - 0x628]
call fcn.18006e68
lea eax, [ebp - 0x62c]
push eax
lea edx, [ebp - 0x628]
lea ecx, [ebp - 0x630]
call fcn.1800c616
pop ecx
mov ecx, dword [ebp - 0x628]
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov ecx, dword [ebp - 0x62c]
lea ecx, [ecx - 0x10]
call fcn.1800694d
lea eax, [ebp - 0x630]
mov ecx, ebx
push eax
call fcn.18009a7a
mov ecx, dword [ebp - 0x630]
lea ecx, [ecx - 0x10]
call fcn.1800694d
cmp dword [ebp - 0x620], 0
je 0x1800c8cd
push dword [ebp - 0x620]
call dword [sym.imp.KERNEL32.dll_LocalFree]
inc esi
cmp esi, 0xa
jl 0x1800c74e
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.181605f4
leave
ret
Function at 0x1800c9c6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [esp + 0x14], eax
mov ebx, eax
cmp dword [esi + 8], eax
jne 0x1800ca1f
call fcn.18013e0c
test al, al
je 0x1800ca1f
call fcn.1800b0fa
mov edi, eax
test edi, edi
je 0x1800ca8f
mov dword [esp + 0x14], eax
mov dword [esi + 8], edi
cmp dword [esi + 0xc], ebx
je 0x1800ca1f
push str.runas
push dword [esi + 0xc]
call fcn.1817cb3d
pop ecx
pop ecx
test eax, eax
jne 0x1800ca1f
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne byte [esp + 0x13]
test eax, eax
je 0x1800cadc
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x1800ca99
call fcn.18015e1b
movzx ecx, byte [0x182340f3]
mov esi, eax
neg ecx
sbb ecx, ecx
and ecx, 0x18233ff0
je 0x1800ca86
push 7
pop edx
xor eax, eax
mov dword [esp + 0x18], ecx
inc eax
mov dword [esp + 0x1c], edx
push eax
push edx
mov dword [esp + 0x28], eax
call fcn.18008a16
push esi
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push str._Started_process___u_
push eax
call fcn.18006b74
add esp, 0xc
push esi
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
jmp 0x1800cae4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1800cafb
movzx ecx, byte [0x182340f3]
neg ecx
sbb ecx, ecx
and ecx, 0x18233ff0
je 0x1800cae4
push 7
pop edx
xor eax, eax
mov dword [esp + 0x18], ecx
inc eax
mov dword [esp + 0x1c], edx
push eax
push edx
mov dword [esp + 0x28], eax
call fcn.18008a16
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push str._Started_process__PID_unknown_
push eax
call fcn.18006b74
pop ecx
pop ecx
jmp 0x1800cae4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1800caf3
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov al, byte [esp + 0x13]
mov byte [esp + 0x14], al
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1800cb0d
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push ecx
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], edx
call fcn.18006e68
push ecx
lea ecx, [ebp - 4]
call fcn.1800e601
mov eax, dword [ebp - 4]
xor esi, esi
cmp dword [eax - 0xc], esi
jne 0x1800cb3a
mov esi, 0x80070057
jmp 0x1800cb8e
push edi
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
cmp dword [ebp - 8], esi
je 0x1800cb83
test edi, edi
je 0x1800cb83
push ebx
mov ebx, dword [edi]
test ebx, ebx
jne 0x1800cb5f
mov eax, esi
jmp 0x1800cb66
push ebx
call fcn.18179019
pop ecx
mov ecx, dword [ebp - 0xc]
push eax
push ebx
call fcn.18006f63
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.1800e601
pop ebx
jmp 0x1800cb8a
call fcn.18018dce
mov esi, eax
mov eax, dword [ebp - 4]
pop edi
lea ecx, [eax - 0x10]
call fcn.1800694d
mov eax, esi
pop esi
leave
ret
Function at 0x1800cb9b
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
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 0x1800cbd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1800cc11
test eax, eax
jle 0x1800cbff
movzx edi, ax
or edi, 0x80070000
jmp 0x1800cc11
push 0x493e0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1800cc0a
cmp eax, 0x80
je 0x1800cc0a
cmp eax, 0x102
je 0x1800cc03
cmp eax, 0xffffffff
je 0x1800cbfa
mov edi, 0x80004005
jmp 0x1800cc15
call fcn.18018dce
mov edi, eax
jmp 0x1800cc11
mov edi, 0x800705b4
jmp 0x1800cc11
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test esi, esi
je 0x1800cc1c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x1800da65
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 0x1800da8b
push dword [ebp + 8]
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
jmp 0x1800db1f
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
lea eax, [ecx + 0x40]
mov dword [ebp - 0x10], eax
cmp eax, esi
ja 0x1800daab
push 0x40
pop edi
jmp 0x1800daaf
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 0x1800db1c
cmp ecx, 0xffffffff
je 0x1800db1c
cmp ecx, 0x80
jb 0x1800dae6
lea eax, [edi + 0x80]
cmp ecx, eax
jae 0x1800dae6
mov byte [ebp - 1], 1
cmp dword [ebp + 8], 0xffffffff
je 0x1800daff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
sub ebx, dword [ebp - 0xc]
cmp ebx, dword [ebp + 8]
jbe 0x1800daff
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
add dword [ebp - 8], 0x100
cmp ecx, esi
jb 0x1800da9c
movzx eax, byte [ebp - 1]
neg eax
sbb eax, eax
and eax, 0x80
jmp 0x1800db1e
mov eax, ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x1800f0d9
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
jne 0x1800f0ef
xor eax, eax
jmp 0x1800f0f6
push esi
call fcn.18179019
pop ecx
push eax
push esi
lea ecx, [edi + 4]
call fcn.18006f63
mov bl, byte [ebp + 0xc]
push 0
push 0x10000000
movzx eax, bl
mov dword [ebp + 0xc], 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 0x1800f185
call fcn.18018dce
movzx ecx, byte [0x182340f3]
mov edi, eax
neg ecx
sbb ecx, ecx
and ecx, 0x18233ff0
je 0x1800f181
push 7
pop edx
push 0xfffffffffffffffe
pop eax
push eax
push edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
call fcn.18008a16
push edi
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push esi
push str._File::OpenShareMode___CreateFile_failed___s___d___d__0x_x_
push eax
call fcn.18006b74
add esp, 0x18
mov eax, edi
jmp 0x1800f1ee
test bl, bl
je 0x1800f1e2
push 0x2000
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1800f1e2
call fcn.18018dce
movzx ecx, byte [0x182340f3]
mov esi, eax
neg ecx
sbb ecx, ecx
and ecx, 0x18233ff0
je 0x1800f1de
push 7
pop edx
push 0xfffffffffffffffe
pop eax
push eax
push edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
call fcn.18008a16
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push str._File::OpenShareMode___SetFileAttributes_failed__0x_x_
push eax
call fcn.18006b74
add esp, 0xc
mov eax, esi
jmp 0x1800f1ee
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 0x1800f2d2
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x1822b00c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, ebx
push edi
mov edi, edx
call fcn.1800e4f7
push ecx
push ecx
mov edx, esi
lea ecx, [ebp - 0x260]
call fcn.180112f8
push 0x250
lea eax, [ebp - 0x25c]
push 0
push eax
call fcn.181757a0
push edi
lea edx, [ebp - 0x260]
lea ecx, [ebp - 0x268]
call fcn.18009b52
add esp, 0x18
lea ecx, [ebp - 0x25c]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x268]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.1800694d
cmp esi, 0xffffffff
jne 0x1800f35a
call fcn.18018dce
mov edi, eax
jmp 0x1800f3c5
cmp dword [ebp - 0x25c], 0x80
je 0x1800f36f
test byte [ebp - 0x25c], 0x10
jne 0x1800f3a4
lea eax, [ebp - 0x230]
push eax
lea edx, [ebp - 0x260]
lea ecx, [ebp - 0x264]
call fcn.18009b52
pop ecx
lea eax, [ebp - 0x264]
mov ecx, ebx
push eax
call fcn.18009a7a
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx - 0x10]
call fcn.1800694d
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800f35a
call fcn.18018dce
mov edi, eax
cmp edi, 0x80070012
je 0x1800f3cc
cmp esi, 0xffffffff
je 0x1800f3d5
jmp 0x1800f3ce
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x260]
add ecx, 0xfffffff0
call fcn.1800694d
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.181605f4
leave
ret

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

Disassembly:
push esi
mov esi, ecx
call fcn.1800f1f5
test al, al
je 0x1800f430
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800f425
test al, 1
je 0x1800f425
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1800f425
pop esi
jmp fcn.18018dce
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1800f41f
xor eax, eax
pop esi
ret

Function at 0x1800f83f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push 0
push eax
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1800f869
call fcn.18018dce
jmp 0x1800f884
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
test ecx, ecx
je 0x1800f875
mov dword [ecx], eax
add dword [esi + 0xc], eax
sub eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 0x80004005
pop esi
leave
ret 0xc
Function at 0x1800fe80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x1822b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp edi, 0x80000003
jne 0x1800fead
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.181605f4
leave
ret
push esi
push 0x802
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.181757a0
mov esi, dword [0x18233fec]
lea ecx, [ebp - 0x80c]
xor edx, edx
call fcn.18013196
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push str.baselogging.cc
push 0
push esi
push dword [ebp - 0x80c]
push edi
push str.Exception__x_in__s__s__u_r_n_r_n_hs:_d_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0x80c]
add esp, 0x2c
lea ecx, [ecx - 0x10]
call fcn.1800694d
lea ecx, [ebp - 0x808]
call fcn.18018e0e
push 0x250012
push str.Exception
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop esi
sub eax, 3
je 0x1800ff41
sub eax, 1
jne 0x1800ff39
int3
xor eax, eax
inc eax
jmp 0x1800fea0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1801146d
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 0x18011589
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
cmp edi, 2
jle 0x180114ec
sub edx, 4
js 0x18011589
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 0x18011488
sub edi, 1
je 0x1801154c
sub edi, 1
jne 0x18011582
sub edx, 3
js 0x18011589
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 0x18011582
lea eax, [edx - 1]
test eax, eax
js 0x18011589
mov byte [esi], 0x3d
inc esi
jmp 0x18011582
sub edx, 2
js 0x18011589
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 0x18011582
lea eax, [edx - 2]
test eax, eax
js 0x18011589
mov word [esi], 0x3d3d
add esi, 2
sub esi, dword [ebp + 8]
mov eax, esi
jmp 0x1801158b
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x18014150
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x1822b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], 0x11c
push 0
push eax
call fcn.181757a0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je case.0x1801422c.2
mov ecx, dword [ebp - 0x11c]
cmp ecx, 6
je 0x180141f0
cmp ecx, 0xa
je 0x180141f0
cmp ecx, 5
jne case.0x1801422c.2
cmp dword [ebp - 0x118], 2
jne 0x180141d9
cmp byte [ebp - 6], 1
jne 0x180141c2
call fcn.18013feb
cmp eax, 9
je case.0x1801422c.1
test dword [ebp - 8], 0x8000
je case.0x1801422c.7
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.181605f4
leave
ret
cmp dword [ebp - 0x118], 1
jne case.0x1801422c.2
test dword [ebp - 8], 0x200
jne case.0x1801422c.2
xor eax, eax
inc eax
jmp 0x180141cd
mov edx, dword [ebp - 0x118]
lea eax, [ebp - 0x124]
and dword [ebp - 0x124], 0
push eax
push ecx
push ecx
call fcn.18013c5c
add esp, 0xc
test eax, eax
je case.0x1801422c.2
mov eax, dword [ebp - 0x124]
cmp eax, 0x1b
ja 0x18014238
je case.0x1801422c.4
dec eax
cmp eax, 0x18
ja case.0x1801422c.2
movzx eax, byte [eax + 0x18014298]
jmp dword [eax*4 + 0x18014288]
push 2
pop eax
jmp 0x180141cd
cmp eax, 0x54
ja 0x18014254
je case.0x1801422c.4
sub eax, 0x30
je case.0x1801422c.1
sub eax, 0x16
je case.0x1801422c.4
dec eax
sub eax, 1
je case.0x1801422c.4
jmp case.0x1801422c.2
cmp eax, 0x79
jb case.0x1801422c.2
cmp eax, 0x7a
jbe 0x18014282
cmp eax, 0x7c
jbe case.0x1801422c.2
cmp eax, 0x7e
jbe case.0x1801422c.4
add eax, 0xffffff7f
cmp eax, 1
ja case.0x1801422c.2
push 3
jmp 0x18014235
push 4
jmp 0x18014235

Function at 0x18014326
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x1822b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, ebx
push edi
mov edi, edx
call fcn.1800e4f7
mov ecx, dword [esi]
call fcn.1800f1f5
test al, al
jne 0x1801435f
mov eax, 0x80070003
jmp 0x18014411
push edi
mov edx, esi
lea ecx, [ebp - 0x260]
call fcn.18014420
mov dword [esp], 0x250
lea eax, [ebp - 0x258]
xor edi, edi
push edi
push eax
call fcn.181757a0
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x180143a9
call fcn.18018dce
mov edi, eax
jmp 0x18014401
lea eax, [ebp - 0x258]
push eax
call fcn.1800a9cb
pop ecx
test al, al
je 0x180143e8
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x25c]
call fcn.18006e68
lea eax, [ebp - 0x25c]
mov ecx, ebx
push eax
call fcn.18009a7a
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
call fcn.1800694d
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180143a9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x260]
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.181605f4
leave
ret
Function at 0x18014d11
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1822b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x18014d77
lea eax, [ebp - 0x10]
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 - 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 ebx
call fcn.181605f4
leave
ret

Function at 0x1801556f
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x1822b00c]
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 0x1801560b
push 0x22c
lea eax, [ebp - 0x230]
push edi
push eax
call fcn.181757a0
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 0x1801560b
mov ecx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x228]
cmp eax, dword [ecx + 0x1c]
jne 0x180155ee
mov eax, dword [ebp - 0x218]
test eax, eax
jne 0x18015607
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180155d3
mov edi, 0x80004005
jmp 0x18015617
mov dword [ebx], eax
jmp 0x18015612
call fcn.18018dce
mov edi, eax
cmp esi, 0xffffffff
je 0x1801561e
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.181605f4
leave
ret 4
Function at 0x18015a27
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1822b00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x181ca2ec]
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.181757a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
jne 0x18015a80
xor al, al
jmp 0x18015ac3
lea ecx, [ebp - 0x210]
call fcn.18009d8f
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x20c]
call fcn.18019dd2
test eax, eax
js 0x18015ab3
push dword [ebp + 8]
mov ecx, dword [ebp - 0x210]
mov edx, edi
call fcn.180159a3
pop ecx
mov bl, al
mov ecx, dword [ebp - 0x210]
add ecx, 0xfffffff0
call fcn.1800694d
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.181605f4
leave
ret
Function at 0x18015ad2
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1230
call fcn.18199bf0
mov eax, dword [0x1822b00c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov eax, ecx
xor ebx, ebx
push eax
push ebx
mov esi, edx
mov dword [ebp - 0x121c], eax
push 0x400
mov dword [ebp - 0x1218], esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x18015cb3
push 0x5c
pop edx
mov ecx, esi
call fcn.18011d86
mov esi, eax
lea ecx, [ebp - 0x1228]
cmp esi, 0xffffffff
setne byte [ebp - 0x1220]
call fcn.18009d8f
cmp esi, 0xffffffff
je 0x18015b62
mov ecx, dword [ebp - 0x1218]
lea edx, [ebp - 0x1228]
call fcn.18015cc4
test eax, eax
js 0x18015c9e
mov esi, dword [ebp - 0x1228]
mov dword [ebp - 0x1218], esi
jmp 0x18015b68
mov esi, dword [ebp - 0x1218]
push ebx
xor edx, edx
push 5
inc edx
pop ecx
call fcn.18013b15
pop ecx
test al, al
je 0x18015b90
push dword [ebp - 0x1220]
mov edx, esi
mov ecx, edi
call fcn.18015a27
pop ecx
mov bl, al
jmp 0x18015c9e
push dword [ebp - 0x121c]
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x18015c9e
push 0x1000
lea eax, [ebp - 0x1214]
push ebx
push eax
call fcn.181757a0
add esp, 0xc
mov dword [ebp - 0x122c], ebx
lea eax, [ebp - 0x122c]
push eax
push 4
lea eax, [ebp - 0x1214]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
jne 0x18015bfd
push dword [ebp - 0x1220]
mov edx, dword [ebp - 0x1218]
mov ecx, esi
call fcn.18015a27
pop ecx
mov bl, al
jmp 0x18015c93
mov eax, dword [ebp - 0x122c]
xor ecx, ecx
shr eax, 2
inc ecx
mov dword [ebp - 0x121c], eax
cmp eax, ecx
jbe 0x18015c1b
mov dword [ebp - 0x121c], ecx
jmp 0x18015c1f
test eax, eax
je 0x18015c97
mov dword [ebp - 0x1224], ebx
push 0x208
lea eax, [ebp - 0x214]
push ebx
push eax
call fcn.181757a0
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x104
push eax
mov eax, dword [ebp - 0x1224]
push dword [ebp + eax*4 - 0x1214]
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x18015c7a
push dword [ebp - 0x1220]
mov edx, dword [ebp - 0x1218]
lea ecx, [ebp - 0x214]
call fcn.180159a3
pop ecx
test al, al
jne 0x18015c91
mov eax, dword [ebp - 0x1224]
inc eax
mov dword [ebp - 0x1224], eax
cmp eax, dword [ebp - 0x121c]
jl 0x18015c25
jmp 0x18015c97
mov bl, 1
test esi, esi
je 0x18015c9e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1228]
add ecx, 0xfffffff0
call fcn.1800694d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.181605f4
leave
ret