joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4db5d0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f2ef
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x583184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.004043c0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.004043c0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.004043c0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.004043c0
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.004043c0
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.004043c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4db660
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f2ef
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x583184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.004043c0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.004043c0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.004043c0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.004043c0
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.004043c0
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.004043c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4de990
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f77f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x583184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.00405950
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.00405950
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.00405950
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.00405950
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.00405950
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.00405950
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4eb1a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540d6c
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x583184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [ebp - 4], 0
mov dword [edi + 8], 0
mov byte [ebp - 4], 1
lea esi, [edi + 0x10]
mov byte [edi + 0xc], 0
mov ecx, esi
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004f29f0
mov dword [esi], eax
mov byte [ebp - 4], 4
xor eax, eax
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 7
mov word [edi + 0x18], ax
mov byte [ebp - 4], 5
mov dword [edi + 0x30], eax
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4ed430
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 8]
test edi, edi
je 0x4ed495
cmp dword [edi], 0
mov esi, dword [esi]
je 0x4ed475
push 0x5596d4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4ed48b
push str.RegDeleteKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4ed48b
push 0
push dword [edi]
push 0
push 0
push dword [esp + 0x1c]
push esi
call eax
pop edi
pop esi
ret 4
cmp dword [edi + 4], 0
je 0x4ed48b
push dword [esp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
ret 4
pop edi
mov eax, 1
pop esi
ret 4
cmp byte [0x5856e4], 0
jne 0x4ed4d5
push 0x5596d4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4ed4c7
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5856e0], eax
mov byte [0x5856e4], 1
jmp 0x4ed4da
mov eax, dword [0x5856e0]
mov byte [0x5856e4], 1
jmp 0x4ed4da
mov eax, dword [0x5856e0]
test eax, eax
je 0x4ed4f0
push 0
push dword [esi + 4]
push dword [esp + 0x14]
push dword [esi]
call eax
pop edi
pop esi
ret 4
push dword [esp + 0xc]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
ret 4
Function at 0x4ee770
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541823
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x583184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x234]
mov dword [ebp - 0x254], esi
push eax
mov dword [ebp - 0x250], 0
call fcn.004ffbf0
mov dword [ebp - 4], 1
push str.config.ini
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.00407660
add esp, 0x10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x234]
call fcn.00404370
lea eax, [ebp - 0x24c]
push eax
call fcn.00407cb0
add esp, 4
test al, al
jne 0x4ee81b
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 0x250], 1
jmp 0x4ee951
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00502c60
add esp, 0xc
lea eax, [ebp - 0x24c]
cmp dword [ebp - 0x238], 8
cmovae eax, dword [ebp - 0x24c]
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x558548
push str.FailedIncrementVersion
push str.Upgrade
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
cmp word [ebp - 0x21c], ax
jne 0x4ee891
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 0x250], 1
mov byte [ebp - 4], al
jmp 0x4ee955
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ee8d0
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.00404420
mov byte [ebp - 4], 4
xor eax, eax
movups xmm0, xmmword [ebp - 0x234]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
mov word [ebp - 0x234], ax
movq xmm0, qword [ebp - 0x224]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x250], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x234]
call fcn.00404370
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.00404370
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00500396
mov esp, ebp
pop ebp
ret 4
Function at 0x4f00b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x541b70
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x583184]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x410]
mov eax, dword [ebp + 0x414]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp], 0
mov byte [ebp - 4], 1
push 0x60
push 0
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call ebx
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x4f0158
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x1c], eax
test edi, edi
jne 0x4f0158
call fcn.004eca70
mov esi, eax
jmp 0x4f0227
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4f0175
call fcn.004eca70
jmp 0x4f021a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x4f0190
call fcn.004eca70
jmp 0x4f021a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x14], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4f01ab
mov esi, 0x8007000e
jmp 0x4f021c
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp]
call fcn.004ec8a0
mov dword [ebp - 4], 1
jmp 0x4f01d7
mov eax, dword [ebp]
test eax, eax
jne 0x4f01e5
mov esi, 0x8007000e
jmp 0x4f021c
push esi
push eax
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4f0200
call fcn.004eca70
jmp 0x4f021a
xor edx, edx
mov eax, dword [ebp]
mov word [eax + ecx*2], dx
push dword [ebp + 0x41c]
push dword [ebp]
lea ecx, [ebp - 0x24]
call fcn.004eff20
mov esi, eax
test edi, edi
je 0x4f0227
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x4f023b
lea ecx, [ebp]
call fcn.004ee760
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.00500396
lea esp, [ebp + 0x408]
pop ebp
ret 0x10
Function at 0x4f87a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5431c3
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x583184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, word [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0x547258
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4f890b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x4f890b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4f890b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4f890b
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4f890b
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4f8904
push ebx
push esi
push eax
call fcn.00502160
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4f8904
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4f8904
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4f88bb
mov dword [esi], vtable.Gdiplus::Image.0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
push eax
push ebx
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [ebp - 0x10], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov byte [ebp - 4], 0
jmp 0x4f88bd
xor esi, esi
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
je 0x4f88f0
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
je 0x4f88f0
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
xor esi, esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fb5e0
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x94
push 0xffffffffffffffff
push 0x5439a8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x583184]
xor eax, ebp
mov dword [ebp + 0x90], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0xb
xor eax, eax
mov dword [ebp + 0x88], 0
mov dword [ebp + 0x8c], 0
lea ecx, [ebp + 0x78]
push str.restart.hzt
mov dword [ebp + 0x88], 0
mov dword [ebp + 0x8c], 7
mov word [ebp + 0x78], ax
call fcn.00404420
mov dword [ebp - 4], 0
lea eax, [ebp + 0x78]
push eax
lea eax, [edi + 4]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.00407100
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x78]
call fcn.00404370
lea eax, [ebp + 0x18]
push eax
call fcn.00407b80
add esp, 4
test al, al
je 0x4fb7e2
lea eax, [ebp + 0x18]
mov ecx, edi
push eax
lea eax, [ebp]
push eax
call fcn.004fae10
mov byte [ebp - 4], 3
lea eax, [ebp + 0x18]
push eax
call fcn.00407fc0
add esp, 4
cmp dword [ebp + 0x10], 0
je 0x4fb7d6
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push 0x3b
push eax
call fcn.00416800
mov esi, dword [ebp - 0x18]
add esp, 0xc
cmp esi, dword [ebp - 0x14]
je 0x4fb7ca
push str.EXIT
push esi
call fcn.004219f0
add esp, 8
test al, al
jne 0x4fb7ca
push 0x547f94
push esi
call fcn.004219f0
add esp, 8
test al, al
je 0x4fb7ca
push esi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
call fcn.004daa80
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
sub eax, ecx
sub eax, 0x48
cmp eax, 0x18
jae 0x4fb7ca
push ecx
lea ecx, [ebp + 0x30]
call fcn.00405950
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x48]
mov eax, dword [ebp - 0x18]
add eax, 0x18
push eax
call fcn.00405950
mov byte [ebp - 4], 6
lea ecx, [ebp + 0x60]
mov eax, dword [ebp - 0x18]
add eax, 0x30
push eax
call fcn.00405950
mov byte [ebp - 4], 7
lea edx, [ebp + 0x48]
cmp dword [ebp + 0x5c], 8
lea ecx, [ebp + 0x60]
push 1
cmovae edx, dword [ebp + 0x48]
lea eax, [ebp + 0x30]
cmp dword [ebp + 0x74], 8
push edx
cmovae ecx, dword [ebp + 0x60]
cmp dword [ebp + 0x44], 8
push ecx
cmovae eax, dword [ebp + 0x30]
push eax
push str.open
push dword [edi + 0x1c]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov byte [ebp - 4], 6
lea ecx, [ebp + 0x60]
call fcn.00404370
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x48]
call fcn.00404370
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x30]
call fcn.00404370
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.0040c590
mov byte [ebp - 4], 2
lea ecx, [ebp]
call fcn.00404370
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call fcn.00404370
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x90]
xor ecx, ebp
call fcn.00500396
lea esp, [ebp + 0x94]
pop ebp
ret
Function at 0x4fb820
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x4c]
sub esp, 0x4c
push 0xffffffffffffffff
push 0x5439f0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x583184]
xor eax, ebp
mov dword [ebp + 0x48], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0x54]
push esi
call fcn.00407b80
add esp, 4
test al, al
jne 0x4fb869
xor al, al
jmp 0x4fba30
call fcn.004ff070
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4fb878
mov ecx, dword [esi]
push ecx
mov ecx, eax
call fcn.004ff060
test al, al
je 0x4fb862
push 0
lea ecx, [ebp - 0xf]
call fcn.004fcc50
mov dword [ebp - 4], 0
lea eax, [ebp - 0xe]
push eax
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], 0
push eax
push esi
lea eax, [ebp]
mov byte [ebp - 0xe], 0
push eax
mov ecx, edi
call fcn.004fa7d0
mov byte [ebp - 4], 1
xor eax, eax
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 7
mov word [ebp + 0x18], ax
mov byte [ebp - 4], 2
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp]
push eax
call fcn.00409d30
xor eax, eax
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 0
add esp, 8
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 7
mov word [ebp + 0x30], ax
mov byte [ebp - 4], 3
cmp byte [ebp - 0xd], al
je 0x4fb925
push 3
push 0x547fb4
lea ecx, [ebp + 0x30]
call fcn.00404420
cmp byte [ebp - 0xe], 0
je 0x4fb94f
cmp dword [ebp + 0x40], 0
je 0x4fb940
push 1
push 0x5596d0
lea ecx, [ebp + 0x30]
call fcn.00407830
push 5
push str._NCRC
lea ecx, [ebp + 0x30]
call fcn.00407830
mov eax, dword [edi + 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], 0x540
call fcn.004fef00
test al, al
mov dword [ebp - 0x30], 1
mov ecx, str.runas
lea eax, [ebp]
cmove ecx, dword [ebp - 0x40]
cmp dword [ebp + 0x14], 8
mov dword [ebp - 0x40], ecx
cmovae eax, dword [ebp]
cmp dword [ebp + 0x2c], 8
mov dword [ebp - 0x3c], eax
lea eax, [ebp + 0x18]
cmovae eax, dword [ebp + 0x18]
cmp dword [ebp + 0x44], 8
mov dword [ebp - 0x34], eax
lea eax, [ebp + 0x30]
cmovae eax, dword [ebp + 0x30]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4fb9d9
xor bl, bl
jmp 0x4fb9fb
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4fb9f9
cmp byte [ebp + 0x58], 0
je 0x4fb9f2
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x30]
call fcn.00404370
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x18]
call fcn.00404370
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00404370
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf]
call fcn.004fcc70
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x48]
xor ecx, ebp
call fcn.00500396
lea esp, [ebp + 0x4c]
pop ebp
ret 8
Function at 0x4fee80
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x583184]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.00502c60
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4feee7
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x4feed0
jne 0x4feee7
cmp dword [esp + 8], 0
jbe 0x4feee7
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00500396
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.00500396
add esp, 0x118
ret

Function at 0x4fef00
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x583184]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.00502c60
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4fef55
xor al, al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00500396
add esp, 0x118
ret
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x114]
setae al
xor ecx, esp
call fcn.00500396
add esp, 0x118
ret
Function at 0x4ffe10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x583184]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x410
push 0
lea eax, [ebp - 0x414]
push eax
call fcn.00502c60
add esp, 0xc
mov dword [ebp - 0x418], 0
lea ecx, [ebp - 0x418]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x4ffe5e
xor al, al
jmp 0x4ffeb7
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp - 0x418]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x4ffe90
cmp dword [ebp - 0x418], 0
je 0x4ffe8c
mov edx, dword [ebp - 0x418]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
jmp 0x4ffeb7
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00405890
cmp dword [ebp - 0x418], 0
je 0x4ffeb5
mov ecx, dword [ebp - 0x418]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00500396
mov esp, ebp
pop ebp
ret

Function at 0x500100
Capabilities:
Get session user name

Disassembly:
sub esp, 0x214
mov eax, dword [0x583184]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, ecx
mov dword [esi], 0
cmp dword [0x583154], 0
jne 0x500182
push 0x20a
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00502c60
add esp, 0xc
mov dword [esp + 4], 0x104
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
lea ecx, [esp + 8]
mov word [esp + 0x20e], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x500163
sub ecx, edx
lea eax, [esp + 8]
sar ecx, 1
push ecx
push eax
mov ecx, 0x583144
call fcn.00404420
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00500396
add esp, 0x214
ret
Function at 0x500230
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x5446c8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x583184]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x585bbc]
test eax, eax
jle 0x500281
inc eax
mov dword [0x585bbc], eax
mov al, 1
jmp 0x500373
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 0
xor bh, bh
mov dword [ebp - 0x14], 0
call fcn.0041c2e0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.0041d190
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0041c360
test bl, bl
je 0x500363
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x500363
push str.ImpersonateLoggedOnUser
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x10]
call eax
test eax, eax
je 0x50035c
inc dword [0x585bbc]
mov eax, dword [edi]
test eax, eax
je 0x500306
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov bh, 1
mov dword [edi], eax
cmp dword [0x58316c], 0
mov dword [ebp - 0x10], 0
jne 0x50035c
push 0x20a
lea eax, [ebp]
push 0
push eax
call fcn.00502c60
add esp, 0xc
mov dword [ebp - 0x14], 0x104
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov ecx, 0x58315c
mov word [ebp + 0x206], ax
lea eax, [ebp]
push eax
call fcn.00405890
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x500371
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bh
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.00500396
lea esp, [ebp + 0x210]
pop ebp
ret

Function at 0x50ec17
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0050e8d7