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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f17f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x582184]
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 0x4db980
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f17f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x582184]
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 0x4decb0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f60f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x582184]
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 0x4eb310
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540bbc
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x582184]
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.004f2850
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 0x4ed280
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 8]
test edi, edi
je 0x4ed2e5
cmp dword [edi], 0
mov esi, dword [esi]
je 0x4ed2c5
push 0x558680
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4ed2db
push str.RegDeleteKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4ed2db
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 0x4ed2db
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 [0x5846e4], 0
jne 0x4ed325
push 0x558680
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4ed317
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5846e0], eax
mov byte [0x5846e4], 1
jmp 0x4ed32a
mov eax, dword [0x5846e0]
mov byte [0x5846e4], 1
jmp 0x4ed32a
mov eax, dword [0x5846e0]
test eax, eax
je 0x4ed340
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 0x4ee5c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5415e3
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x582184]
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.004ffa50
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 0x4ee66b
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 0x250], 1
jmp 0x4ee7a1
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00502ac0
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 0x5574f4
push str.FailedIncrementVersion
push str.Upgrade
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
cmp word [ebp - 0x21c], ax
jne 0x4ee6e1
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 0x4ee7a5
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 0x4ee720
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.005001f6
mov esp, ebp
pop ebp
ret 4
Function at 0x4eff00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x541930
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x582184]
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 0x4effa8
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x1c], eax
test edi, edi
jne 0x4effa8
call fcn.004ecbe0
mov esi, eax
jmp 0x4f0077
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4effc5
call fcn.004ecbe0
jmp 0x4f006a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x4effe0
call fcn.004ecbe0
jmp 0x4f006a
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 0x4efffb
mov esi, 0x8007000e
jmp 0x4f006c
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp]
call fcn.004eca10
mov dword [ebp - 4], 1
jmp 0x4f0027
mov eax, dword [ebp]
test eax, eax
jne 0x4f0035
mov esi, 0x8007000e
jmp 0x4f006c
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 0x4f0050
call fcn.004ecbe0
jmp 0x4f006a
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.004efd70
mov esi, eax
test edi, edi
je 0x4f0077
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x4f008b
lea ecx, [ebp]
call fcn.004ee5b0
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.005001f6
lea esp, [ebp + 0x408]
pop ebp
ret 0x10
Function at 0x4f8600
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542f83
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x582184]
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 0x546208
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4f876b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x4f876b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4f876b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4f876b
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4f876b
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4f8764
push ebx
push esi
push eax
call fcn.00501fc0
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 0x4f8764
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4f8764
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4f871b
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 0x4f871d
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 0x4f8750
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
je 0x4f8750
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 0x4fb440
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x94
push 0xffffffffffffffff
push 0x543768
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x582184]
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 0x4fb642
lea eax, [ebp + 0x18]
mov ecx, edi
push eax
lea eax, [ebp]
push eax
call fcn.004fac70
mov byte [ebp - 4], 3
lea eax, [ebp + 0x18]
push eax
call fcn.00407fc0
add esp, 4
cmp dword [ebp + 0x10], 0
je 0x4fb636
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 0x4fb62a
push str.EXIT
push esi
call fcn.004219f0
add esp, 8
test al, al
jne 0x4fb62a
push 0x546f44
push esi
call fcn.004219f0
add esp, 8
test al, al
je 0x4fb62a
push esi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
call fcn.004dada0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
sub eax, ecx
sub eax, 0x48
cmp eax, 0x18
jae 0x4fb62a
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.005001f6
lea esp, [ebp + 0x94]
pop ebp
ret
Function at 0x4fb680
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x4c]
sub esp, 0x4c
push 0xffffffffffffffff
push 0x5437b0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x582184]
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 0x4fb6c9
xor al, al
jmp 0x4fb890
call fcn.004feed0
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4fb6d8
mov ecx, dword [esi]
push ecx
mov ecx, eax
call fcn.004feec0
test al, al
je 0x4fb6c2
push 0
lea ecx, [ebp - 0xf]
call fcn.004fcab0
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.004fa630
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 0x4fb785
push 3
push 0x546f64
lea ecx, [ebp + 0x30]
call fcn.00404420
cmp byte [ebp - 0xe], 0
je 0x4fb7af
cmp dword [ebp + 0x40], 0
je 0x4fb7a0
push 1
push 0x55867c
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.004fed60
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 0x4fb839
xor bl, bl
jmp 0x4fb85b
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4fb859
cmp byte [ebp + 0x58], 0
je 0x4fb852
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.004fcad0
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.005001f6
lea esp, [ebp + 0x4c]
pop ebp
ret 8
Function at 0x4fece0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x582184]
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.00502ac0
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4fed47
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x4fed30
jne 0x4fed47
cmp dword [esp + 8], 0
jbe 0x4fed47
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.005001f6
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.005001f6
add esp, 0x118
ret

Function at 0x4fed60
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x582184]
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.00502ac0
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4fedb5
xor al, al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.005001f6
add esp, 0x118
ret
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x114]
setae al
xor ecx, esp
call fcn.005001f6
add esp, 0x118
ret
Function at 0x4ffc70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x582184]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x410
push 0
lea eax, [ebp - 0x414]
push eax
call fcn.00502ac0
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 0x4ffcbe
xor al, al
jmp 0x4ffd17
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp - 0x418]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x4ffcf0
cmp dword [ebp - 0x418], 0
je 0x4ffcec
mov edx, dword [ebp - 0x418]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
jmp 0x4ffd17
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00405890
cmp dword [ebp - 0x418], 0
je 0x4ffd15
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.005001f6
mov esp, ebp
pop ebp
ret

Function at 0x4fff60
Capabilities:
Get session user name

Disassembly:
sub esp, 0x214
mov eax, dword [0x582184]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, ecx
mov dword [esi], 0
cmp dword [0x582154], 0
jne 0x4fffe2
push 0x20a
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00502ac0
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 0x4fffc3
sub ecx, edx
lea eax, [esp + 8]
sar ecx, 1
push ecx
push eax
mov ecx, 0x582144
call fcn.00404420
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.005001f6
add esp, 0x214
ret
Function at 0x500090
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x544488
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x582184]
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 [0x584ba4]
test eax, eax
jle 0x5000e1
inc eax
mov dword [0x584ba4], eax
mov al, 1
jmp 0x5001d3
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 0x5001c3
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x5001c3
push str.ImpersonateLoggedOnUser
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x10]
call eax
test eax, eax
je 0x5001bc
inc dword [0x584ba4]
mov eax, dword [edi]
test eax, eax
je 0x500166
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov bh, 1
mov dword [edi], eax
cmp dword [0x58216c], 0
mov dword [ebp - 0x10], 0
jne 0x5001bc
push 0x20a
lea eax, [ebp]
push 0
push eax
call fcn.00502ac0
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, 0x58215c
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 0x5001d1
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.005001f6
lea esp, [ebp + 0x210]
pop ebp
ret

Function at 0x50ea77
Capabilities:
Set environment variable

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