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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x102bee90]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1008a210
cmp word [ebx], dx
jne 0x1008a210
or byte [eax + edi + 0x28], 4
jmp 0x1008a215
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1008a378
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1008a358
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1008a256
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1008a28c
cmp eax, edx
jae 0x1008a29a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1008a231
jmp 0x1008a378
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1008a353
cmp dword [ebp - 0x18], 0
je 0x1008a353
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x102bee90]
test byte [eax + edi + 0x28], 0x48
je 0x1008a329
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1008a2ed
mov word [esi], cx
jmp 0x1008a324
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x102bee90]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x102bee90]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x102bee90]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1008a378
pop eax
cmp word [ebp - 4], ax
jne 0x1008a339
cmp esi, ebx
jne 0x1008a339
mov word [esi], ax
jmp 0x1008a375
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1008b167
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1008a378
push 0xd
pop eax
jmp 0x1008a334
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x102bee90]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1008a372
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1008a378
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1008cbb7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1008cc54
push ebx
push esi
call fcn.1008cb80
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100877dd
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1008cc01
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1008cc53
push edi
push eax
call fcn.10088492
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1008cc21
call fcn.10087651
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1008cc52
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100877dd
add esp, 0x20
test eax, eax
jne 0x1008cc40
push edi
call fcn.10087651
jmp 0x1008cc48
push ebx
call fcn.10087651
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1008cc57
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1008cc68
pop esi
ret
push ebx
push edi
push esi
call fcn.1008cb80
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10088492
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1008cc90
push ebx
push esi
push edi
call fcn.100732a0
add esp, 0xc
push 0
call fcn.10087651
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10091790
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100917bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100917bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40356c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x42f180]
xor eax, ebp
mov dword [ebp - 4], eax
push 1
push 0
push 0x425524
push 0x430f20
push str.runas
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x4035cb
push eax
lea eax, [ebp - 0x84]
push str.Failed_to_start_elevated_process__ShellExecute_returned__d_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x10
push 0x425f40
lea eax, [ebp - 0x84]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004077a5
leave
ret

Function at 0x403606
Capabilities:
Create process on windows
Resume thread
Self delete

Disassembly:
push ebp
lea ebp, [esp - 0x1e0]
sub esp, 0x260
mov eax, dword [0x42f180]
xor eax, ebp
mov dword [ebp + 0x1dc], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp + 0xd8]
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp + 0xd8]
push eax
lea eax, [ebp - 0x2c]
push str._s.bat
push eax
call fcn.0040a329
lea eax, [ebp - 0x2c]
push 0x425fc0
push eax
call fcn.0040a2bf
mov ebx, eax
push str.:Repeat_n
push ebx
call fcn.004086a8
lea eax, [ebp + 0xd8]
push eax
mov esi, str.del___s__n
push esi
push ebx
call fcn.004086a8
lea eax, [ebp + 0xd8]
push eax
push str.if_exist___s__goto_Repeat_n
push ebx
call fcn.004086a8
lea eax, [ebp - 0x2c]
push eax
push esi
push ebx
call fcn.004086a8
add esp, 0x40
push ebx
call fcn.00408ed6
push 0x44
pop esi
push esi
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.004075f0
add esp, 0x10
xor eax, eax
mov word [ebp - 0x50], ax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push 0x4253ac
push edi
push esi
push edi
push edi
push edi
lea eax, [ebp - 0x2c]
push eax
push edi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x54], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403727
mov esi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xfffffffffffffff1
push dword [ebp - 0x38]
call esi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x38]
call esi
mov ecx, dword [ebp + 0x1dc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004077a5
add ebp, 0x1e0
leave
ret
Function at 0x40441d
Capabilities:
Delete file
Read .ini file

Disassembly:
mov eax, 0x1004
call fcn.00408d40
mov eax, dword [0x42f180]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push ebp
push esi
push edi
push dword [0x43232c]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebp, 0x1000
push ebp
lea eax, [esp + 0x18]
push eax
mov ebx, 0x425524
push ebx
push str.title
mov esi, 0x425f40
push esi
call edi
push 0x50
pop ecx
lea eax, [esp + 0x10]
mov edx, 0x430d40
call fcn.004015dd
push dword [0x43232c]
lea eax, [esp + 0x14]
push ebp
push eax
push ebx
push str.info
push esi
call edi
mov ecx, ebp
lea eax, [esp + 0x10]
mov edx, 0x431180
call fcn.004015dd
push dword [0x43232c]
push 0x50
push 0x4321c0
push ebx
push str.build_info
push esi
call edi
push dword [0x43232c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 1
push str.target_compile
push esi
call ebp
push dword [0x43232c]
mov dword [0x430d94], eax
push 1
push str.target_optimize
push esi
call ebp
push dword [0x43232c]
mov dword [0x430d90], eax
push 0xa
push 0x432190
push ebx
push str.target_version
push esi
call edi
push dword [0x43232c]
push 0x50
push 0x430ec0
push ebx
push str.name
push str.metadata
call edi
push dword [0x43232c]
push 0x104
push 0x430da0
push ebx
push str.install_script
push esi
call edi
push dword [0x43232c]
mov ebp, 0x431150
push 0xa
push ebp
push ebx
push str.user_access_control
push esi
call edi
push 6
mov edi, str.force
mov esi, ebp
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40456b
call fcn.0040351a
test eax, eax
je 0x4045c8
call fcn.00403487
test eax, eax
jne 0x4045c8
call fcn.0040356c
jmp 0x40460b
push 5
mov edi, str.auto
mov esi, ebp
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x404598
call fcn.0040351a
test eax, eax
je 0x4045c8
call fcn.00403487
test eax, eax
jne 0x4045c8
call fcn.004034b0
test eax, eax
je 0x4045c8
jmp 0x404561
cmp byte [0x431150], al
je 0x4045c8
push 5
mov edi, str.none
mov esi, ebp
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4045c8
push eax
push str.oops
push str.Bad_user_access_control_value
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x430d40
call fcn.004026a3
push eax
mov dword [0x432180], eax
call fcn.0040431f
pop ecx
pop ecx
push dword [0x432214]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [0x43232c]
test eax, eax
je 0x4045fb
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x432330]
test eax, eax
je 0x40460b
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x1010]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004077a5
add esp, 0x1004
ret
Function at 0x4064f3
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov dword [ebp - 0x114], 0
lea eax, [ebp - 0x114]
push eax
push 1
push 0
push 0x4185a8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x406534
mov eax, 1
jmp 0x406649
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x118]
push eax
push 0
push 0x4185d4
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406598
movsx edx, byte [ebp - 0x10b]
cmp edx, 0x3a
jne 0x406598
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10c]
push ecx
call fcn.0040fb80
add esp, 8
test eax, eax
jne 0x406598
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x406649
mov dword [ebp - 0x114], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x114]
push eax
push 0xf003f
push 0
push str.systemCurrentControlSetServicesHDSYS32
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x406644
push str.___
lea ecx, [ebp - 0x110]
push ecx
call fcn.0040a820
add esp, 8
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.0040a830
add esp, 8
lea ecx, [ebp - 0x110]
push ecx
call fcn.0040a910
add esp, 4
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x110]
push eax
push 2
push 0
push str.ImagePath
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x406644
xor eax, eax
jmp 0x406649
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x406bd0
Capabilities:
Create service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x406c9f
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 1
push 3
push 1
push 0xf01ff
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x406c50
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x406c50
push 0xf01ff
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x406c95
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x406c7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x406c7e
mov dword [ebp - 0x10], 0
jmp 0x406c85
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4077f0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x114
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], 0x104
mov dword [esp + 0x10], edi
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push 0
push 0
push 0
lea edx, [esp + 0x30]
push ecx
push edx
push edi
push ebx
call ebp
mov esi, eax
test esi, esi
jne 0x40786a
lea eax, [esp + 0x24]
push 0x15
push eax
push str.HIDVid_3689Pid_8762
mov dword [esp + 0x20], 0xc8
call fcn.0040a610
add esp, 0xc
test eax, eax
jne 0x40786a
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x12c]
cmp ecx, eax
je 0x40787c
mov eax, ecx
inc eax
mov dword [esp + 0x10], eax
inc edi
test esi, esi
je 0x407815
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x114
ret
mov edx, dword [esp + 0x130]
mov ecx, dword [str.__]
mov eax, edx
lea edi, [esp + 0x24]
mov dword [eax], ecx
mov cl, byte [0x418690]
mov byte [eax + 4], cl
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
Function at 0x4054ec
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0040579b
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x405520
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42eca8], eax
jmp 0x4056b4
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x40553e
test eax, eax
je 0x40565f
test byte [ebp + 0xc], 2
je 0x40565f
mov esi, 0x42b0a8
push edi
push esi
call fcn.00405bc7
test ebx, ebx
je 0x40555b
push 0x4093dc
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405561
push edi
call fcn.00405701
cmp byte [edi], 0
jne 0x40556f
cmp byte [0x42b0a8], 0x5c
jne 0x40557a
push 0x409010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x405655
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004056e5
cmp byte [eax], 0
je 0x4055c0
cmp byte [ebp - 0x18], 0
je 0x4055c0
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4055d6
mov al, byte [esi + 1]
test al, al
je 0x405634
cmp al, 0x2e
jne 0x4055d6
cmp byte [esi + 2], 0
je 0x405634
push esi
push ebx
call fcn.00405bc7
test byte [ebp - 0x148], 0x10
je 0x4055fb
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405634
push dword [ebp + 0xc]
push edi
call fcn.004054ec
jmp 0x405634
push edi
call fcn.0040587f
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40562c
test byte [ebp + 0xc], 4
je 0x405624
push edi
push 0xfffffffffffffff1
call fcn.00404eb3
push 0
push edi
call fcn.00405915
jmp 0x405634
inc dword [0x42eca8]
jmp 0x405634
push edi
push 0xfffffffffffffff2
call fcn.00404eb3
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40559e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x40565f
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4056b4
cmp dword [ebp - 8], esi
jne 0x405674
inc dword [0x42eca8]
jmp 0x4056b4
push edi
call fcn.00405ec2
test eax, eax
je 0x4056b4
push edi
call fcn.004056ba
push edi
call fcn.0040587f
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4056ac
test byte [ebp + 0xc], 4
je 0x40566c
push edi
push 0xfffffffffffffff1
call fcn.00404eb3
push esi
push edi
call fcn.00405915
jmp 0x4056b4
push edi
push 0xffffffffffffffe5
call fcn.00404eb3
pop edi
pop esi
leave
ret 8
Function at 0x10001010
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push 1
lea eax, [ebp - 0x20]
xor esi, esi
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push esi
push esi
push 1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x20]
mov dword [ebp - 0xc], 0xc
push str.Global21232f297a57a5a743894a0e4a801fc3
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x1000106e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov ecx, 1
cmove esi, ecx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10001120
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 8]
xor edi, edi
push eax
push 8
push ecx
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100011f1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push 3
push dword [ebp - 8]
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100011f0
mov eax, dword [ebp - 4]
test eax, eax
je 0x100011f0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x100011f0
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 4]
push eax
push 3
push dword [ebp - 8]
call esi
test eax, eax
je 0x100011de
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
test ecx, ecx
je 0x100011de
push ebx
xor ebx, ebx
xor esi, esi
test ecx, ecx
je 0x100011dd
add eax, 4
lea edi, [ebx + 1]
mov edx, dword [eax]
cmp edx, 3
jne 0x100011c0
mov ebx, edi
jmp 0x100011c6
cmp edx, 5
cmove esi, edi
add eax, 0xc
sub ecx, edi
jne 0x100011b5
mov edi, ecx
test ebx, ebx
je 0x100011dd
test esi, esi
mov eax, 1
cmovne edi, eax
pop ebx
push dword [ebp - 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x100011ff
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10001210
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1041f004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x94], ecx
push 0
push eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x8c], 0
call fcn.100053c0
add esp, 0xc
mov dword [ebp - 0x98], 1
lea eax, [ebp - 0x90]
xor ebx, ebx
push eax
lea eax, [ebp - 0x88]
push eax
push 1
push ebx
push ebx
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateProcessesA]
test eax, eax
je 0x10001328
mov ecx, dword [ebp - 0x90]
xor esi, esi
test ecx, ecx
je 0x10001328
mov edi, dword [ebp - 0x88]
mov edx, dword [ebp - 0x94]
lea eax, [edi + 4]
nop dword [eax + eax]
cmp dword [eax], edx
je 0x100012be
inc esi
add eax, 0x10
cmp esi, ecx
jb 0x100012b0
jmp 0x1000132e
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.100053c0
add esp, 0xc
mov dword [ebp - 0x8c], 0x80
lea eax, [ebp - 0x98]
add esi, esi
push eax
lea eax, [ebp - 0x8c]
push eax
push 0
push eax
lea eax, [ebp - 0x84]
push eax
push dword [edi + esi*8 + 0xc]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidA]
test eax, eax
je 0x10001328
push 6
lea eax, [ebp - 0x84]
push str.system
push eax
call fcn.100065b3
add esp, 0xc
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov edi, dword [ebp - 0x88]
push edi
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10002c08
mov esp, ebp
pop ebp
ret

Function at 0x10001350
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10013152
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x1041f004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x144], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push 0
mov dword [ebp - 4], 0
push 2
mov dword [ebp - 0x13c], 1
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x138], 0x128
lea eax, [ebp - 0x138]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
nop word [eax + eax]
push str.svchost.exe
lea eax, [ebp - 0x114]
push eax
call ebx
test eax, eax
jne 0x10001410
lea eax, [ebp - 0x130]
mov ecx, edi
push eax
call fcn.10001450
lea eax, [ebp - 0x138]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x100013f0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10002c08
mov esp, ebp
pop ebp
ret