joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4588a7
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x40000000
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x4588cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4588f5
push ebx
push edi
push 0x24
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
cmp ebx, esi
jne 0x4588f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop ebx
pop esi
leave
ret
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x3c], esi
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x458930
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
push ebx
call esi
mov eax, edi
jmp 0x4588f3
push 6
xor eax, eax
pop ecx
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x20], esi
rep stosd dword es:[edi], eax
xor edi, edi
cmp edi, dword [ebp + 0xc]
jge 0x45896e
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x458966
cmp dword [ebp - 0x1c], 1
je 0x45896e
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, 0x64
jmp 0x45893f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4588e8

Function at 0x459462
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4a988d
call fcn.004a8204
sub esp, 0x214
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
push esi
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp + 8]
mov ecx, 0x4db1bc
call fcn.00405e9a
xor esi, esi
mov dword [ebp - 4], ebx
inc esi
push ebx
mov dword [ebp - 0x18], esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x14]
push eax
push 0x1a
push ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 0x206
lea eax, [ebp - 0x21e]
push ebx
push eax
mov word [ebp - 0x220], bx
call fcn.0047a1f0
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x220]
push eax
call fcn.0047af28
test eax, eax
pop ecx
je 0x459502
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 8]
call fcn.00406072
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x459522
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
pop esi
cmp eax, ebx
pop ebx
je 0x45953a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
leave
ret
Function at 0x459549
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4a9990
call fcn.004a8204
sub esp, 0x210
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, 0x4db1bc
mov dword [ebp - 0x10], edi
call fcn.00405e9a
push 0x208
lea eax, [ebp - 0x21a]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
mov word [ebp - 0x21c], di
call fcn.0047a1f0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4595d7
lea eax, [ebp - 0x21c]
push eax
call fcn.0047af28
test eax, eax
pop ecx
je 0x4595d7
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.00406072
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4595e7
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov eax, 0x4a8df2
call fcn.004a8204
push ecx
push ecx
push ebx
push edi
xor ebx, ebx
push ebx
xor edi, edi
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x10]
push eax
push 0x4ae8ac
push 1
push ebx
push 0x4ae8cc
mov byte [ebp - 4], 1
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x459697
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x50]
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x24]
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x2c]
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x1c]
push dword [esi + 0x18]
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x44]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0x4ae96c
push eax
call dword [ecx]
cmp eax, ebx
jl 0x459697
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
push 1
push eax
push ecx
call dword [edx + 0x18]
cmp eax, ebx
jl 0x459697
inc edi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4596ad
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x4596be
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x459fc5
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, 0x4ac1fb
call fcn.004a8204
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor ebx, ebx
call fcn.00408e93
cmp eax, 0xc
jne 0x45a0aa
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.00459462
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x14]
mov dword [esp], str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar_
push eax
call fcn.00406693
mov eax, dword [0x4db1bc]
mov ecx, 0x4db1bc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
push dword [esi]
lea eax, [ebp - 0x18]
push dword [ebp - 0x14]
push str._s_s.lnk
call fcn.00406b6d
add esp, 0xc
lea edi, [esi + 0x1c]
lea eax, [ebp - 0x18]
call fcn.0040520c
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x10]
push eax
call fcn.00459549
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.004595e7
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x45a08b
push dword [esi]
lea ecx, [ebp - 0x10]
push str._s.lnk
call fcn.0040cf15
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
call fcn.00459f8b
add esp, 0x10
push dword [ebp - 0x10]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405bdc
lea eax, [edi - 0x10]
call fcn.00405bdc
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405bdc
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x45a2cf
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push esi
push esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
xor ebx, ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0x45a2f1
xor eax, eax
inc eax
jmp 0x45a35b
cmp dword [edi], esi
je 0x45a2fa
xor ebx, ebx
inc ebx
jmp 0x45a33f
lea eax, [ebp - 8]
push eax
push 0x4beb84
push 1
push esi
push 0x4beb74
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x45a319
push 2
jmp 0x45a33e
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x45a32e
push 3
jmp 0x45a33e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x45a33f
push 4
pop ebx
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x45a34c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x45a359
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x45a6b8
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov eax, 0x4ac1d9
call fcn.004a8204
sub esp, 0x280
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
xor edi, edi
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
call fcn.00405e57
push edi
push 2
mov dword [ebp - 4], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x20], esi
jne 0x45a715
push 0xfffffffffffffffe
pop esi
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00405bdc
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
push 0x228
lea eax, [ebp - 0x288]
push edi
push eax
call fcn.0047a1f0
add esp, 0xc
lea eax, [ebp - 0x28c]
push eax
push esi
mov dword [ebp - 0x28c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x45a750
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffffd
jmp 0x45a6f6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004549b8
mov byte [ebp - 4], 1
jmp 0x45a76a
xor edi, edi
mov eax, dword [ebp - 0x284]
cmp eax, dword [ebp - 0x24]
je 0x45a85d
cmp eax, edi
je 0x45a85d
cmp eax, 4
je 0x45a85d
push eax
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
cmp ebx, edi
je 0x45a85d
mov eax, dword [0x4db1bc]
mov ecx, 0x4db1bc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 2
call fcn.0045ad3a
test eax, eax
push ebx
je 0x45a7df
lea eax, [ebp - 0x2c]
push eax
lea edi, [ebp - 0x5c]
call fcn.00454a22
lea edi, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.0040520c
mov eax, dword [ebp - 0x2c]
jmp 0x45a7fb
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00454ac8
lea edi, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.0040520c
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.00405bdc
mov esi, dword [ebp + 8]
mov ecx, dword [esi - 0xc]
test ecx, ecx
je 0x45a84a
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx - 0xc]
cmp ecx, eax
jl 0x45a84a
push eax
push esi
push edx
call fcn.0047eea5
add esp, 0xc
test eax, eax
jne 0x45a84a
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp eax, 1
je 0x45a844
push dword [ebp - 0x284]
call fcn.00454d49
cmp eax, 1
pop ecx
jne 0x45a847
inc dword [ebp - 0x14]
inc dword [ebp - 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
call fcn.00405bdc
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x20]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x45a768
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x45a889
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
lea esi, [ebp - 0x3c]
call fcn.00450696
lea esi, [ebp - 0x5c]
call fcn.004548de
mov esi, dword [ebp - 0x14]
jmp 0x45a6f7
Function at 0x45ab8e
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4a9862
call fcn.004a8204
sub esp, 0x68
push ebx
push esi
push edi
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x70]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x18], ebx
call fcn.0047a1f0
xor eax, eax
mov dword [ebp - 0x28], ebx
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x4db1bc]
xor edi, edi
inc edi
add esp, 0xc
mov ecx, 0x4db1bc
mov dword [ebp - 0x74], 0x44
mov dword [ebp - 0x48], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push 0x4be9b0
call fcn.00406b6d
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
push ebx
neg esi
push ebx
sbb esi, esi
push ebx
and esi, 0xa
mov word [ebp - 0x44], si
mov esi, dword [ebp - 0x14]
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x45ac23
mov dword [ebp - 0x18], edi
cmp dword [ebp - 0x28], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x45ac36
push dword [ebp - 0x28]
call edi
mov dword [ebp - 0x28], ebx
cmp dword [ebp - 0x24], ebx
je 0x45ac43
push dword [ebp - 0x24]
call edi
mov dword [ebp - 0x24], ebx
lea eax, [esi - 0x10]
call fcn.00405bdc
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x45ac5d
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x4aacb0
call fcn.004a8204
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00405e57
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45aca8
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405bdc
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x45ac89
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x45ac89
lea ecx, [ebp - 0x10]
call fcn.00406568
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x45acdf
xor esi, esi
jmp 0x45ac8c
push eax
call fcn.0045ac5d
test eax, eax
pop ecx
je 0x45acdb
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x45ac89
call edi
cmp eax, ebx
jne 0x45acdb
jmp 0x45ac89
Function at 0x45ad86
Capabilities:
Query environment variable

Disassembly:
push 0x14
push 0x4c95c0
call fcn.004a8224
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], eax
je 0x45ae30
push eax
push eax
mov ebx, str._TEMP_
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call edi
mov esi, eax
cmp esi, 1
jb 0x45ae30
cmp esi, 0x103
ja 0x45ae30
and dword [ebp - 4], 0
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00477a97
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x45ae2c
lea ecx, [esi + esi]
push ecx
push 0
push eax
call fcn.0047a1f0
add esp, 0xc
push esi
push dword [ebp - 0x24]
push ebx
call edi
test eax, eax
je 0x45ae2c
mov ecx, 0x103
cmp eax, ecx
ja 0x45ae2c
push eax
push dword [ebp - 0x24]
push ecx
push dword [ebp + 8]
call fcn.0047da74
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x45ae2c
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0
je 0x45ae3f
push dword [ebp - 0x1c]
call fcn.0047a978
pop ecx
mov eax, dword [ebp - 0x20]
call fcn.004a825f
ret

Function at 0x45ae48
Capabilities:
Create directory
Delete directory

Disassembly:
mov eax, 0x4a989f
call fcn.004a8204
push ebx
push esi
push edi
and dword [ebp - 4], 0
push 0x4bec40
lea eax, [ebp + 8]
push eax
call fcn.00406693
mov ebx, dword [ebp + 8]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call esi
test edi, edi
je 0x45ae8a
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x45ae91
call esi
cmp eax, 5
je 0x45ae94
xor edi, edi
inc edi
lea eax, [ebx - 0x10]
call fcn.00405bdc
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x45aead
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4a9850
call fcn.004a8204
sub esp, 0x70
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov ebx, ecx
jne 0x45aecd
xor eax, eax
jmp 0x45b00e
mov eax, dword [0x4db1bc]
mov ecx, 0x4db1bc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
lea eax, [ebp - 0x20]
push 0x4be9b0
call fcn.00406b6d
add esp, 0xc
lea esi, [ebp - 0x14]
mov dword [ebp - 0x14], edi
call fcn.0040a490
test eax, eax
jne 0x45aff2
push 0x40
push eax
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x7c], 0x44
call fcn.0047a1f0
and dword [ebp - 0x34], 0
xor eax, eax
add esp, 0xc
neg ebx
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
sbb ebx, ebx
and ebx, 5
stosd dword es:[edi], eax
mov word [ebp - 0x4c], bx
xor ebx, ebx
push str.userenv.dll
stosd dword es:[edi], eax
mov dword [ebp - 0x74], str.Winsta0Default
mov dword [ebp - 0x24], 0x30
mov dword [ebp + 8], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x45af9c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateEnvironmentBlock
push eax
call edi
push str.DestroyEnvironmentBlock
push dword [ebp - 0x1c]
mov esi, eax
call edi
cmp esi, ebx
mov dword [ebp - 0x18], eax
je 0x45af9c
push ebx
push dword [ebp - 0x14]
lea eax, [ebp + 8]
push eax
call esi
test eax, eax
je 0x45af99
mov dword [ebp - 0x24], 0x430
jmp 0x45af9c
mov dword [ebp + 8], ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 0x24]
push ebx
push ebx
push ebx
push dword [ebp - 0x20]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp dword [ebp - 0x34], ebx
mov edi, eax
je 0x45afcb
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x30], ebx
je 0x45afd9
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], ebx
je 0x45afe4
push dword [ebp + 8]
call dword [ebp - 0x18]
cmp dword [ebp - 0x1c], ebx
je 0x45aff2
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x14], 0
je 0x45b001
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00405bdc
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x45b01d
Capabilities:
Check os version
Create process on windows

Disassembly:
mov eax, 0x4a983e
call fcn.004a8204
sub esp, 0x184
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
jne 0x45b03e
xor eax, eax
jmp 0x45b1f1
mov eax, dword [0x4db1bc]
mov ecx, 0x4db1bc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push 0x4be9b0
call fcn.00406b6d
push 0x110
lea eax, [ebp - 0x18c]
push ebx
push eax
call fcn.0047a1f0
add esp, 0x18
lea eax, [ebp - 0x190]
push eax
mov dword [ebp - 0x190], 0x114
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x45b0a3
cmp dword [ebp - 0x18c], 6
jne 0x45b0a3
inc esi
cmp esi, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
lea esi, [ebp - 0x10]
jne 0x45b0b7
call fcn.0040a490
jmp 0x45b0bc
call fcn.0040a440
cmp eax, ebx
jne 0x45b1d5
push 0x40
lea eax, [ebp - 0x74]
push ebx
push eax
mov dword [ebp - 0x78], 0x44
call fcn.0047a1f0
push dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 5
mov dword [ebp - 0x4c], 1
mov word [ebp - 0x48], ax
call fcn.0040a4fb
add esp, 0x10
test al, al
jne 0x45b121
cmp dword [ebp - 0x10], ebx
je 0x45b117
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push eax
call fcn.0040a675
pop ecx
push str.userenv.dll
mov dword [ebp - 0x70], str.Winsta0Default
mov dword [ebp - 0x14], 0x30
mov dword [ebp + 8], ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x45b180
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateEnvironmentBlock
push eax
call edi
push str.DestroyEnvironmentBlock
push dword [ebp - 0x1c]
mov esi, eax
call edi
cmp esi, ebx
mov edi, eax
je 0x45b180
push ebx
push dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
call esi
test eax, eax
je 0x45b17d
mov dword [ebp - 0x14], 0x430
jmp 0x45b180
mov dword [ebp + 8], ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 0x14]
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp dword [ebp - 0x2c], ebx
mov dword [ebp - 0x14], eax
je 0x45b1b0
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x28], ebx
je 0x45b1be
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x45b1c7
push dword [ebp + 8]
call edi
cmp dword [ebp - 0x1c], ebx
je 0x45b1d5
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x10], ebx
je 0x45b1e3
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405bdc
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x45b568
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
xor esi, esi
mov dword [ebp - 4], 0x288
push dword [ebp - 4]
call fcn.00477a97
mov edi, eax
test edi, edi
pop ecx
je 0x45b5b5
push dword [ebp - 4]
push 0
push edi
call fcn.0047a1f0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push edi
call sub.iphlpapi.dll_GetAdaptersInfo
mov esi, eax
cmp esi, 0x6f
jne 0x45b5bb
push edi
call fcn.0047a978
pop ecx
xor edi, edi
inc ebx
cmp ebx, 2
jl 0x45b57e
test esi, esi
jne 0x45b602
test edi, edi
mov esi, edi
je 0x45b60d
push 6
lea eax, [esi + 0x10c]
push str.vmware
push eax
call fcn.0047d6de
add esp, 0xc
test eax, eax
jne 0x45b5e7
mov esi, dword [esi]
test esi, esi
jne 0x45b5c5
jmp 0x45b602
push 8
add esi, 0x194
push esi
push dword [ebp + 8]
call fcn.0047b350
add esp, 0xc
mov dword [ebp - 8], 1
test edi, edi
je 0x45b60d
push edi
call fcn.0047a978
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x45bab6
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
push 6
pop ecx
xor esi, esi
push 1
push esi
xor eax, eax
mov dword [ebp - 0x20], esi
lea edi, [ebp - 0x1c]
push esi
mov dword [ebp - 4], esi
rep stosd dword es:[edi], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, esi
je 0x45bb20
push ebx
push 0x14
push str.dpsvc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
cmp ebx, esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x45bb1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x45bb19
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov byte [ecx], al
mov dword [ebp - 4], 1
push ebx
call esi
push edi
call esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x45bebe
Capabilities:
Check if file exists

Disassembly:
push ecx
mov eax, dword [esi + 8]
cmp dword [eax - 0xc], 0
jne 0x45becf
mov eax, 0x13a
pop ecx
ret
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45bee1
mov eax, 0x13b
pop ecx
ret
push dword [esi + 0x1c]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push eax
push ecx
call fcn.0045b01d
add esp, 0xc
test eax, eax
je 0x45befc
xor eax, eax
pop ecx
ret
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, dword [esi + 0x1c]
call fcn.0045aead
test eax, eax
pop ecx
pop ecx
jne 0x45bef8
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, dword [esi + 0x1c]
call fcn.0045ab8e
neg eax
sbb eax, eax
pop ecx
and eax, 0xfffffec7
pop ecx
add eax, 0x139
pop ecx
ret