joyce8/EMBER2024-capa huggingface dataset:
Function at 0x491355
Capabilities:
Enumerate processes
Get process image filename

Disassembly:
push 0x4b8
mov eax, 0x54cf5a
call fcn.0053655e
mov dword [ebp - 0x4b8], ecx
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 0x4b4], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x49153f
lea eax, [ebp - 0x4b0]
mov dword [ebp - 0x4b0], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x491530
push dword [ebp - 0x4a8]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x491523
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameW
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00401cd4
mov ecx, dword [ebp - 0x4b8]
lea eax, [ebp - 0x248]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.00492234
push eax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 1
call fcn.0040a686
lea ecx, [ebp - 0x284]
call fcn.0040257a
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 4
call fcn.0040257a
push 0x40
call fcn.00536214
pop ecx
mov dword [ebp - 0x4c4], eax
test eax, eax
je 0x491495
and dword [ebp - 0x220], 0
xor ecx, ecx
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], cx
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 6
push ecx
lea ecx, [ebp - 0x26c]
or ebx, 1
push ecx
push dword [ebp - 0x4a8]
mov ecx, eax
mov dword [ebp - 0x4b4], ebx
call fcn.0049118d
jmp 0x491497
xor eax, eax
push dword [ebp - 0x4c4]
and dword [ebp - 0x4c0], 0
lea ecx, [ebp - 0x4c0]
and dword [ebp - 0x4bc], 0
push eax
mov dword [ebp - 4], 7
call fcn.0049112e
mov dword [ebp - 4], 9
test bl, 1
je 0x4914de
and ebx, 0xfffffffe
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x4b4], ebx
call fcn.0040257a
mov ecx, dword [ebp - 0x4b8]
lea eax, [ebp - 0x4c0]
push eax
lea ecx, [ecx + 4]
call fcn.0044c5b9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x4bc]
test ecx, ecx
je 0x491509
call fcn.00406959
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x254]
call fcn.00403ae4
lea ecx, [ebp - 0x26c]
call fcn.0040257a
lea eax, [ebp - 0x4b0]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4913a1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00536508
ret
Function at 0x491545
Capabilities:
Get process image filename

Disassembly:
push 0x290
mov eax, 0x54cfe1
call fcn.0053655e
mov esi, ecx
mov dword [ebp - 0x288], esi
xor ebx, ebx
mov dword [ebp - 0x28c], ebx
cmp dword [esi + 0x10], ebx
jne 0x49158b
push str.NtQuerySystemInformation
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x10], eax
test eax, eax
je 0x491779
push 4
push 0x3000
push 0x100000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
mov dword [ebp - 0x298], esi
test esi, esi
je 0x491779
mov eax, dword [ebp - 0x288]
mov edi, esi
push 0
push 0x100000
push esi
push 5
call dword [eax + 0x10]
test eax, eax
js 0x49176b
cmp dword [esi], ebx
je 0x49176b
mov esi, dword [ebp - 0x288]
push dword [edi + 0x44]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x288], eax
test eax, eax
je 0x49175a
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [ebp - 0x288]
call sub.PSAPI.DLL_GetProcessImageFileNameW
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00401cd4
and dword [ebp - 4], 0
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x284]
mov ecx, esi
push eax
call fcn.00492234
push eax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 1
call fcn.0040a686
lea ecx, [ebp - 0x284]
call fcn.0040257a
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 4
call fcn.0040257a
push 0x40
call fcn.00536214
pop ecx
mov dword [ebp - 0x29c], eax
test eax, eax
je 0x4916cd
and dword [ebp - 0x220], 0
xor ecx, ecx
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], cx
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 6
push ecx
lea ecx, [ebp - 0x26c]
or ebx, 1
push ecx
push dword [edi + 0x44]
mov ecx, eax
mov dword [ebp - 0x28c], ebx
call fcn.0049118d
jmp 0x4916cf
xor eax, eax
push dword [ebp - 0x29c]
and dword [ebp - 0x294], 0
lea ecx, [ebp - 0x294]
and dword [ebp - 0x290], 0
push eax
mov dword [ebp - 4], 7
call fcn.0049112e
mov dword [ebp - 4], 9
test bl, 1
je 0x491716
and ebx, 0xfffffffe
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x28c], ebx
call fcn.0040257a
lea eax, [ebp - 0x294]
push eax
lea ecx, [esi + 4]
call fcn.0044c5b9
push dword [ebp - 0x288]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x290]
test ecx, ecx
je 0x491740
call fcn.00406959
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x254]
call fcn.00403ae4
lea ecx, [ebp - 0x26c]
call fcn.0040257a
add edi, dword [edi]
cmp dword [edi], 0
jne 0x4915da
mov esi, dword [ebp - 0x298]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
call fcn.00536508
ret
Function at 0x492234
Capabilities:
Get disk information

Disassembly:
push 0x244
mov eax, 0x54d2f6
call fcn.0053655e
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push 0x41
mov dword [ebp - 0x18], esi
pop edi
push 0x3a
pop eax
mov word [ebp - 0x16], ax
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x220]
push eax
mov word [ebp - 0x18], di
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4922a3
push 0
lea eax, [ebp - 0x220]
mov ecx, ebx
push eax
call fcn.0044a6d0
test eax, eax
je 0x4922c0
inc edi
cmp di, 0x5a
jbe 0x49224f
push 0x559fc4
mov ecx, esi
call fcn.00401cd4
mov eax, esi
call fcn.00536508
ret 8
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
and dword [ebp - 0x228], 0
xor ecx, ecx
push 0xffffffffffffffff
push eax
mov word [ebp - 0x238], cx
lea ecx, [ebp - 0x238]
push ebx
mov dword [ebp - 0x224], 7
call fcn.0040aade
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x250]
call fcn.00401cd4
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 1
push ecx
push eax
push esi
call fcn.004045e5
add esp, 0xc
lea ecx, [ebp - 0x250]
call fcn.0040257a
lea ecx, [ebp - 0x238]
call fcn.0040257a
jmp 0x4922b6

Function at 0x49297a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
test esi, esi
je 0x492993
cmp dword [edi], 2
jae 0x492993
push 0x7a
pop eax
jmp 0x4929f2
mov eax, dword [edi]
push ebx
add eax, eax
xor ebx, ebx
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x10]
mov dword [edi], ebx
push eax
push ebx
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4929f1
cmp dword [ebp + 0x10], 7
jne 0x4929ee
mov ecx, dword [ebp + 0xc]
test esi, esi
je 0x4929e6
test cl, 1
jne 0x4929ee
mov eax, ecx
shr eax, 1
cmp eax, 1
jb 0x4929ee
cmp word [esi + eax*2 - 2], bx
jne 0x4929ee
cmp eax, 1
jbe 0x4929e6
cmp word [esi + eax*2 - 4], bx
jne 0x4929ee
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
jmp 0x4929f1
push 0xd
pop eax
pop ebx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4943db
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d789
mov eax, dword fs:[0]
push eax
mov eax, 0x204c
call fcn.00536760
mov eax, dword [0x5f931c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x204c], ecx
mov esi, dword [ebp + 0xc]
mov eax, esi
mov edi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x494422
mov eax, dword [esi]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x494527
and dword [ebp - 0x2044], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x494443
mov eax, dword [esi]
lea ecx, [ebp - 0x2044]
push ecx
push 0xf003f
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
test eax, eax
je 0x4944d4
cmp eax, 2
cmove eax, ecx
jmp 0x494527
push 0x55a440
lea eax, [ebp - 0x2040]
push esi
push eax
call fcn.00404630
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2010]
push ecx
push eax
lea eax, [ebp - 0x2028]
push eax
call fcn.004030d5
add esp, 0x18
mov ecx, dword [ebp - 0x204c]
push eax
push edi
mov byte [ebp - 4], 1
call fcn.004943db
lea ecx, [ebp - 0x2028]
mov dword [ebp - 0x2050], eax
call fcn.0040257a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2040]
call fcn.0040257a
mov eax, dword [ebp - 0x2050]
test eax, eax
jne 0x494527
xor ecx, ecx
lea eax, [ebp - 0x2058]
mov dword [ebp - 0x2048], 0x1000
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x2048]
push eax
lea eax, [ebp - 0x2010]
push eax
push ecx
push dword [ebp - 0x2044]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x49446a
push dword [ebp - 0x2044]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi + 0x14], 8
jb 0x49451f
mov esi, dword [esi]
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005364e2
leave
ret 8
Function at 0x496ecd
Capabilities:
Enumerate services

Disassembly:
push 0xec
mov eax, 0x54dd56
call fcn.0053655e
mov esi, ecx
mov dword [ebp - 0x48], esi
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
push 5
push eax
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x496f78
push 1
push 3
lea ecx, [ebp - 0xf8]
call fcn.00404da4
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xe8]
push str.OpenSCManager__error
push eax
call fcn.0040446a
pop ecx
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int_]
lea eax, [ebp - 0xf8]
push eax
push str.ServiceList::getServiceNames
push 0x22
push str.C:workprojects_rubilnik_src_systemServiceList.cpp
push 0
call fcn.00407c20
mov ecx, eax
call fcn.00412039
lea ecx, [ebp - 0x90]
call fcn.00404fea
lea ecx, [ebp - 0x90]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
jmp 0x49705b
mov edi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
lea ecx, [ebp - 0x2c]
xor edx, edx
push edx
push edx
push ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], edx
push ecx
push edx
push edx
push 3
push dword [esi]
mov dword [ebp - 0x2c], edx
push edx
push eax
call edi
mov esi, dword [ebp - 0x30]
add esi, 0xa
push esi
call fcn.00536606
pop ecx
xor edx, edx
mov dword [ebp - 0x40], eax
push edx
push edx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push esi
mov esi, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x48]
push 3
push dword [eax]
push edx
push esi
call edi
test eax, eax
jne 0x497012
push 1
push 3
lea ecx, [ebp - 0xf8]
call fcn.00404da4
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xe8]
push str.EnumServicesStatusEx__error
push eax
call fcn.0040446a
pop ecx
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int_]
lea eax, [ebp - 0xf8]
push eax
push str.ServiceList::getServiceNames
push 0x33
jmp 0x496f49
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor edi, edi
cmp dword [ebp - 0x2c], edi
jbe 0x497052
mov esi, dword [ebp - 0x40]
push dword [esi]
lea ecx, [ebp - 0x28]
call fcn.00401cd4
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x3c]
call fcn.00404ce1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0040257a
inc edi
lea esi, [esi + 0x2c]
cmp edi, dword [ebp - 0x2c]
jb 0x497023
push dword [ebp - 0x40]
call fcn.0053660f
pop ecx
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
call fcn.0040fac6
lea ecx, [ebp - 0x3c]
call fcn.00403ae4
mov eax, ebx
call fcn.00536508
ret 4
Function at 0x499228
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
call fcn.004991ff
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea esi, [edi + 0x60]
push esi
push 0x5c4d84
push 1
push ebx
push 0x5c4e74
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x49925c
mov dword [esi], ebx
xor al, al
jmp 0x4992d1
mov ecx, dword [esi]
lea ebx, [edi + 0x64]
push ebx
push 0x5c4e44
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jns 0x499280
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
and dword [esi], 0
and dword [ebx], 0
jmp 0x499258
lea esi, [edi + 0xc]
push esi
call fcn.0040d971
pop ecx
test al, al
je 0x4992cf
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x499298
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x4992b8
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4992ad
mov ecx, dword [esi]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x4992c0
mov esi, dword [esi]
mov eax, dword [ebx]
push 2
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
test eax, eax
js 0x499258
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x499377
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
call fcn.00499335
mov ax, word [ebp + 0xc]
mov ecx, esi
mov word [esi + 0x18], ax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x1c], eax
call fcn.004993dc
test al, al
je 0x4993d5
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [esi + 0x1c]
call sub.WS2_32.dll_socket
mov dword [esi + 0x28], eax
cmp eax, 0xffffffff
je 0x4993d5
push 0x10
lea ecx, [esi + 0x2c]
push ecx
push eax
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x4993d5
mov al, 1
jmp 0x4993d7
xor al, al
pop esi
pop ebp
ret 0x14

Function at 0x4993dc
Capabilities:
Resolve dns

Disassembly:
push esi
push edi
mov edi, ecx
push 0x10
push 0
lea esi, [edi + 0x2c]
push esi
call sub.VCRUNTIME140.dll_memset
mov ax, word [edi + 0x1c]
add esp, 0xc
mov word [esi], ax
movzx eax, word [edi + 0x18]
push eax
call sub.WS2_32.dll_htons
mov word [edi + 0x2e], ax
mov eax, edi
cmp dword [edi + 0x14], 0x10
jb 0x49940f
mov eax, dword [edi]
push eax
call sub.WS2_32.dll_inet_addr
lea esi, [edi + 0x30]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x49943e
cmp dword [edi + 0x14], 0x10
jb 0x499427
mov edi, dword [edi]
push edi
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x499435
xor al, al
jmp 0x499440
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi], eax
mov al, 1
pop edi
pop esi
ret
Function at 0x49b44b
Capabilities:
Get disk information

Disassembly:
push 0xc4
mov eax, 0x54ea96
call fcn.0053655e
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xd0], edi
mov dword [ebp - 0xbc], ebx
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
xor esi, esi
mov dword [ebp - 4], ebx
inc esi
mov dword [ebp - 0xc0], esi
mov dword [ebp - 0xbc], esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0xcc], eax
mov ecx, ebx
mov dword [ebp - 0xc8], esi
shr eax, cl
test al, 1
je 0x49b5f5
and dword [ebp - 0x18], 0
lea eax, [ebx + 0x41]
mov byte [ebp - 0xc4], al
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push dword [ebp - 0xc4]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 1
call fcn.00408236
push 0x56f610
lea ecx, [ebp - 0xa0]
call fcn.00401cd4
mov esi, eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0041c94f
mov eax, dword [ebp - 0xc0]
or eax, 2
mov dword [ebp - 0xbc], eax
push esi
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004045e5
add esp, 0x14
lea ecx, [ebp - 0x70]
call fcn.0040257a
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 6
call fcn.0040257a
push 0x55b098
lea ecx, [ebp - 0xb8]
call fcn.00401cd4
mov esi, eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0041c94f
mov eax, dword [ebp - 0xc8]
or eax, 6
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], eax
push esi
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004045e5
add esp, 0x14
lea ecx, [ebp - 0x88]
call fcn.0040257a
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0xb
call fcn.0040257a
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x49b5d3
mov eax, dword [edi + 4]
cmp dword [edi + 8], eax
je 0x49b5c7
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
call fcn.0040a280
jmp 0x49b5d3
lea ecx, [ebp - 0x58]
push ecx
push eax
mov ecx, edi
call fcn.0040a2a2
lea ecx, [ebp - 0x58]
call fcn.0040257a
lea ecx, [ebp - 0x40]
call fcn.0040257a
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00402554
mov esi, dword [ebp - 0xc0]
mov eax, dword [ebp - 0xcc]
inc ebx
cmp ebx, 0x1a
jl 0x49b491
mov eax, edi
call fcn.00536508
ret 4
Function at 0x49ba83
Capabilities:
Set environment variable

Disassembly:
push 0xc8
mov eax, 0x54ec0f
call fcn.0053655e
mov edi, ecx
mov dword [ebp - 0xbc], edi
call fcn.0049410e
mov ecx, eax
call fcn.0049a65f
push eax
lea ecx, [ebp - 0x7c]
call fcn.00401cd4
and dword [ebp - 4], 0
lea eax, [ebp - 0x94]
push eax
call fcn.0049410e
mov ecx, eax
call fcn.0049b8d7
mov eax, dword [edi + 4]
mov ebx, dword [edi]
mov byte [ebp - 4], 1
mov dword [ebp - 0xc4], eax
jmp 0x49bb8d
mov esi, ebx
lea edi, [ebp - 0xd4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0xcc], 0
mov edi, dword [ebp - 0xbc]
je 0x49bb8a
push dword [ebp - 0xcc]
lea eax, [ebp - 0x7c]
mov ecx, edi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0049b60f
xor ecx, ecx
mov byte [ebp - 0xc0], cl
push dword [ebp - 0xc0]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
lea ecx, [ebp - 0x58]
push eax
call fcn.00403889
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040257a
push dword [ebp - 0xc8]
and dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
and dword [ebp - 0x2c], 0
call fcn.00403913
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x58]
call fcn.0040398e
test al, al
jne 0x49bb70
mov ecx, dword [ebp - 0xc8]
lea eax, [ebp - 0x58]
push eax
call fcn.0040fcd6
lea ecx, [ebp - 0x40]
call fcn.0040257a
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.0040257a
mov eax, dword [ebp - 0xc4]
add ebx, 0x10
cmp ebx, eax
jne 0x49bada
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.00484644
push eax
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 4
call fcn.0040a686
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 5
push ecx
mov ecx, eax
call fcn.0040ac85
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
push ecx
mov ecx, eax
call fcn.0040b09c
cmp dword [eax + 0x14], 8
jb 0x49bbd6
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push eax
push str.USERPROFILE
call esi
lea ecx, [ebp - 0x28]
call fcn.0040257a
lea ecx, [ebp - 0x4c]
call fcn.00403ae4
lea ecx, [ebp - 0x64]
call fcn.0040257a
lea ecx, [ebp - 0xa0]
call fcn.00403ae4
lea ecx, [ebp - 0xb8]
call fcn.0040257a
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0040257a
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0044ef0f
cmp dword [eax + 0x14], 8
jb 0x49bc31
mov eax, dword [eax]
push eax
push str.LOCALAPPDATA
call esi
lea ecx, [ebp - 0x28]
call fcn.0040257a
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0045cd08
cmp dword [eax + 0x14], 8
jb 0x49bc54
mov eax, dword [eax]
push eax
push str.APPDATA
call esi
lea ecx, [ebp - 0x28]
call fcn.0040257a
lea ecx, [ebp - 0x94]
call fcn.0040257a
lea ecx, [ebp - 0x7c]
call fcn.0040257a
call fcn.00536508
ret
Function at 0x49bcbe
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5f931c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x114
lea eax, [ebp - 0x118]
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x118], esi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [ebp - 0x114]
pop esi
cmp ecx, 0xa
jb 0x49bd0d
push 3
pop eax
jmp 0x49bd32
cmp ecx, 6
jb 0x49bd27
push 2
pop eax
cmp dword [ebp - 0x110], eax
jae 0x49bd32
cmp ecx, 6
jne 0x49bd27
xor eax, eax
inc eax
jmp 0x49bd32
xor eax, eax
xor edx, edx
inc eax
cmp ecx, 5
cmove eax, edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005364e2
leave
ret

Function at 0x49e94e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x49e95c
mov eax, dword [eax]
xor ecx, ecx
push ecx
push ecx
push ecx
push eax
push 0x56fc60
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
setg al
pop ebp
ret

Function at 0x49f751
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push 0xc
mov eax, 0x54f643
call fcn.0053652a
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
push 0x5c5168
push 1
push ebx
push 0x5c5178
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x49f797
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esi, dword [ebp + 8]
mov dword [esi], ebx
jmp 0x49f823
mov dword [ebp - 0x10], ebx
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
push str.ROOTCIMV2
mov byte [ebp - 4], 1
call fcn.0048f3f3
mov ecx, dword [eax]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x49f7bc
mov ecx, dword [ecx]
jmp 0x49f7be
mov ecx, ebx
mov eax, dword [esi]
lea edx, [ebp - 0x10]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push esi
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x18]
mov esi, eax
test ecx, ecx
je 0x49f7e0
call fcn.0048f4a3
mov dword [ebp - 0x18], ebx
test esi, esi
jns 0x49f801
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], bl
mov dword [esi], ebx
test eax, eax
je 0x49f823
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x49f823
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x49f7e4
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], ebx
mov dword [esi], eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x49f834
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
call fcn.005364f3
ret 4