joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419306
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
lea edi, [ebx + 0x18]
mov ecx, 0x108
rep movsd dword es:[edi], dword [esi]
and dword [ebx + 0x434], 0
lea eax, [ebx + 0x24]
push eax
mov edi, 0x208
lea esi, [ebp - 4]
mov eax, edi
call fcn.0041836f
test eax, eax
jge 0x419348
mov dword [ebp + 0xc], 0x57
jmp 0x4193f6
lea eax, [ebx + 0x22c]
mov dword [ebp - 8], eax
push eax
lea esi, [ebp - 4]
mov eax, edi
call fcn.0041836f
test eax, eax
jl 0x41933c
mov edi, dword [ebp + 0xc]
test byte [edi + 4], 1
je 0x419399
mov ebx, dword [ebp - 8]
call fcn.00419ba0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x419388
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
jmp 0x4193f6
mov edi, dword [ebp + 8]
call fcn.0041971e
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x4193f6
jmp 0x4193f2
push dword [edi + 0x41c]
lea esi, [ebp - 4]
mov eax, 0x200
call fcn.0041836f
mov dword [ebp + 0xc], eax
test eax, eax
jl 0x41933c
mov esi, dword [ebp - 4]
inc esi
inc esi
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [ebx + 4], edx
test edx, edx
je 0x4193f6
push dword [edi + 0x41c]
mov eax, esi
call fcn.00418310
test eax, eax
jl 0x41933c
mov eax, dword [ebx + 4]
mov dword [ebx + 8], esi
mov dword [ebx + 0x434], eax
and dword [ebp + 0xc], 0
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x419440
Capabilities:
Delete file
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
push edi
mov edi, eax
and eax, 0x100
xor ebx, ebx
and edi, 0xfffffcff
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0xf023f
test byte [esi + 0x1c], 1
mov dword [ebp - 0xc], eax
jne 0x41950a
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
lea eax, [esi + 0x24]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x4194ee
push dword [ebp - 4]
call fcn.00419638
mov ebx, eax
test ebx, ebx
jne 0x4194ee
push eax
push 0x80
push 2
push eax
push 1
push 0x40000000
lea eax, [esi + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x4194ea
push dword [esi + 4]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 8]
lea ebx, [ecx + edx + 4]
push eax
call fcn.004184ac
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x4194e1
or dword [esi + 0x1c], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x4194fb
lea eax, [esi + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 4], 0
je 0x41950a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test byte [esi + 0x1c], 2
jne 0x419556
test ebx, ebx
jne 0x419556
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
lea eax, [esi + 0x24]
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x419551
push dword [esi + 4]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x419541
or dword [esi + 0x1c], 2
jmp 0x419546
mov ebx, 0x15e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x419556
mov ebx, 0x15e
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x41955f
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
test al, 1
je 0x41960f
test al, 2
je 0x41960f
mov eax, dword [esi + 0x20]
mov ecx, eax
push ebx
and eax, 0x100
xor ebx, ebx
and ecx, 0xfffffcff
neg eax
push edi
sbb eax, eax
and eax, 0xffffff00
lea edx, [ebp - 4]
push edx
add eax, 0xf023f
push eax
push ebx
lea eax, [esi + 0x24]
push eax
push ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, ebx
jne 0x4195fb
cmp byte [ebp + 8], bl
je 0x4195dd
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [esi + 4]
mov dword [ebp + 8], ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4195dd
push 0x50
pop edi
jmp 0x4195fb
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi + 0x14]
push ebx
push dword [esi + 4]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
cmp edi, ebx
jne 0x4195fb
xor edi, edi
cmp dword [ebp - 4], ebx
je 0x419609
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
jmp 0x419611
xor eax, eax
pop esi
leave
ret 0xc
Function at 0x419616
Capabilities:
Delete file

Disassembly:
add ecx, 0x22c
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
ret

Function at 0x419638
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push edi
lea eax, [ebp - 0xc]
push eax
push edi
push dword [esi + 4]
mov dword [ebp - 4], edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x419716
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [ecx + eax + 4]
push eax
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x419691
mov dword [ebp - 8], 0xe
jmp 0x419705
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 8]
lea eax, [edi + eax + 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [esi + 4]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x419705
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi + 8]
mov dword [esi + 0x14], eax
mov dword [edi + ecx], eax
push dword [esi + 8]
push dword [esi + 4]
push edi
call fcn.0048afb0
mov eax, dword [ebp - 4]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
lea eax, [edi + eax + 4]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
add esp, 0xc
test eax, eax
je 0x4196f4
push eax
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 4], edi
mov eax, dword [esi + 4]
xor edi, edi
mov dword [esi + 0x434], eax
mov dword [ebp - 8], edi
test edi, edi
je 0x419715
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
mov eax, dword [ebp - 8]
pop edi
leave
ret 4
Function at 0x41971e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
lea eax, [edi + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x41975a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x4197ee
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x419775
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x4197e4
cmp ebx, esi
jne 0x419782
mov dword [ebp - 4], 0x54f
jmp 0x4197e4
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [ebp - 8]
mov esi, ebx
mov dword [edi + 4], eax
mov dword [edi + 0x434], eax
call fcn.0041846a
pop ecx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
jne 0x4197e4
push dword [edi + 4]
lea esi, [ebp - 0xc]
mov eax, ebx
call fcn.0041836f
test eax, eax
jl 0x4197e4
mov ecx, dword [ebp - 0xc]
inc ecx
inc ecx
lea eax, [ecx + 4]
cmp eax, ebx
ja 0x4197e4
mov eax, dword [edi + 4]
add eax, ecx
mov edx, dword [eax]
add eax, 4
sub ebx, ecx
sub ebx, 4
mov dword [edi + 0x14], edx
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x4199a1
Capabilities:
Check if file exists
Create directory
Get file attributes
Link many functions at runtime

Disassembly:
push esi
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlNtStatusToDosError
push eax
mov dword [0x4ef7a8], eax
call esi
push str.ZwQueryInformationFile
push dword [0x4ef7a8]
mov dword [0x4ef7ac], eax
call esi
push str.ZwCreateFile
push dword [0x4ef7a8]
mov dword [0x4ef7bc], eax
call esi
push str.RtlInitUnicodeString
push dword [0x4ef7a8]
mov dword [0x4ef7b4], eax
call esi
push str.ZwSetInformationFile
push dword [0x4ef7a8]
mov dword [0x4ef7b0], eax
call esi
push dword [esp + 8]
mov dword [0x4ef7b8], eax
mov esi, 0x4ef5a0
mov eax, 0x208
mov edx, esi
call fcn.00418310
test eax, eax
jge 0x419a33
xor eax, eax
push 0x57
mov word [0x4ef5a0], ax
pop eax
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x419a53
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x419a53
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop esi
ret
Function at 0x419ba0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4dc104]
xor eax, ebp
mov dword [ebp + 0x190], eax
and dword [ebp - 0x7c], 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x419c3d
push esi
push edi
mov edi, 0x208
push ebx
lea esi, [ebp - 0x80]
mov eax, edi
mov dword [ebp - 0x7c], 3
call fcn.0041836f
test eax, eax
jne 0x419c3b
mov eax, dword [ebp - 0x80]
shr eax, 1
je 0x419c3b
cmp word [ebx + eax*2], 0x5c
je 0x419bfb
dec eax
jne 0x419bef
jmp 0x419c3b
lea esi, [ebx + eax*2]
test esi, esi
je 0x419c3b
push 0x4ef5a0
mov eax, edi
lea edx, [ebp - 0x78]
call fcn.00418310
push esi
lea edi, [ebp - 0x78]
call fcn.0041833b
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x419c3b
mov eax, edi
push eax
mov eax, 0x208
mov edx, ebx
call fcn.00418310
and dword [ebp - 0x7c], 0
pop edi
pop esi
mov ecx, dword [ebp + 0x190]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
call fcn.00488689
add ebp, 0x194
leave
ret
Function at 0x41a5fb
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x684
mov eax, dword [0x4dc104]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x684], eax
push 0x4ef5a0
mov eax, 0x208
lea edx, [ebp - 0x41c]
call fcn.00418310
push str..Q
lea edi, [ebp - 0x41c]
call fcn.0041833b
lea eax, [ebp - 0x67c]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41a6f6
lea eax, [ebp - 0x650]
push eax
lea esi, [ebp - 0x680]
mov eax, 0x208
call fcn.0041836f
test eax, eax
jl 0x41a6d9
mov eax, dword [ebp - 0x680]
shr eax, 1
sub eax, 4
lea esi, [eax + eax]
mov dword [ebp - 0x680], eax
push esi
lea eax, [ebp - 0x64e]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0048afb0
xor eax, eax
mov word [ebp + esi - 0x214], ax
add esp, 0xc
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.RPCRT4.dll_UuidFromStringW]
test eax, eax
jne 0x41a6d9
push dword [ebp - 0x684]
lea eax, [ebp - 0x42c]
push eax
call fcn.004036bf
pop ecx
pop ecx
test al, al
je 0x41a6f6
lea eax, [ebp - 0x67c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41a659
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00488689
leave
ret

Function at 0x41bb9c
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x4b0d4d
call fcn.0048ccab
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventW]
xor ebx, ebx
mov edi, 0x100000
cmp dword [0x4ef584], ebx
jne 0x41bbcb
push str.Global312B496E_C8F4_4068_8460_0D144A8FFAA4
push ebx
push edi
call esi
mov dword [0x4ef584], eax
cmp dword [0x4ef588], ebx
jne 0x41bbe1
push str.Global312B496E_C8F4_4068_8460_0D144A8FFAA5
push ebx
push edi
call esi
mov dword [0x4ef588], eax
cmp dword [0x4ef58c], ebx
jne 0x41bbf7
push str.Global322B496E_C8F4_4068_8460_0D144A8FFA14
push ebx
push edi
call esi
mov dword [0x4ef58c], eax
push 4
call fcn.004896b9
pop ecx
cmp eax, ebx
je 0x41bc0e
mov ecx, eax
call fcn.0040389d
mov esi, eax
jmp 0x41bc10
xor esi, esi
push dword [ebp + 0x14]
lea ecx, [ebp - 0x10]
call fcn.00403c8f
mov dword [ebp - 4], ebx
push eax
mov ecx, esi
call fcn.0040521a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040392e
push ebx
push ebx
push esi
push 0x41baf2
push ebx
push ebx
call fcn.00488fcc
add esp, 0x18
mov dword [0x4ef7c0], eax
xor eax, eax
call fcn.0048cd83
ret 0x14
Function at 0x41bc6b
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b4ce9
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4dc104]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push dword [ebp + 0x24]
lea ecx, [esp + 0x18]
call fcn.00403c8f
xor esi, esi
mov dword [esp + 0x28], esi
mov edi, dword [ebp + 0x14]
cmp edi, esi
jbe 0x41bd7d
cmp edi, 5
seta al
push esi
push ecx
mov byte [esp + 0x18], al
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00403c69
mov byte [esp + 0x30], 1
push dword [esp + 0x18]
mov byte [esp + 0x34], 0
call fcn.0040d401
add esp, 0xc
push 1
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00403c69
mov byte [esp + 0x30], 2
push dword [esp + 0x18]
mov byte [esp + 0x34], 0
call fcn.0040d401
add esp, 0xc
cmp dword [ebp + 0x44], 1
lea eax, [ebp + 0x2c]
push eax
lea eax, [esp + 0x1c]
push eax
sete bl
call fcn.0041d104
mov byte [esp + 0x28], 3
push dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ebx
push edi
mov edi, eax
call fcn.0040e409
add esp, 0xc
mov bl, al
neg bl
sbb bl, bl
inc bl
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x18]
call fcn.0040392e
test bl, bl
je 0x41bd58
inc esi
or dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0040392e
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x44
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.00403c69
mov byte [esp + 0x28], 4
push 0x5e
lea ecx, [esp + 0x14]
call fcn.00403d31
cmp eax, 0xffffffff
je 0x41bdcc
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call fcn.00403e0a
mov byte [esp + 0x28], 5
push eax
lea ecx, [esp + 0x14]
call fcn.0040521a
mov byte [esp + 0x28], 4
lea ecx, [esp + 0x18]
call fcn.0040392e
push 0x80
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp edi, esi
jne 0x41be04
push dword [esp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41be04
push 4
push esi
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x10]
call fcn.0040392e
jmp 0x41bd58
Function at 0x41bf78
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push esi
xor esi, esi
push esi
push dword [0x4ef7c8]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x41bfa9
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x41c0fe
push ebx
push edi
push 0x60000
push esi
push str.winsta0
call dword [sym.imp.USER32.dll_OpenWindowStationW]
mov ebx, dword [sym.imp.USER32.dll_SetProcessWindowStation]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, esi
je 0x41c0c5
push edi
call ebx
test eax, eax
je 0x41c0c5
push 0x60081
push esi
push esi
push str.default
call dword [sym.imp.USER32.dll_OpenDesktopW]
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
call ebx
test eax, eax
je 0x41c0c5
cmp dword [ebp - 8], esi
je 0x41c0c5
lea eax, [ebp - 4]
push eax
call fcn.0041be76
pop ecx
test eax, eax
je 0x41c0c5
push dword [ebp - 4]
push edi
call fcn.0041c104
pop ecx
pop ecx
test eax, eax
je 0x41c0c5
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0041c3af
pop ecx
pop ecx
test eax, eax
je 0x41c0c5
push dword [0x4ef7c8]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x41c0c5
push 0x44
pop edi
push edi
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.0048ad80
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x6c], edi
push 0x430
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x64], str.winsta0default
push esi
push dword [0x4ef7c8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp - 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], esi
je 0x41c0ba
cmp dword [ebp - 0x28], 0xffffffff
je 0x41c0ba
push dword [ebp - 0x28]
call edi
cmp dword [ebp - 0x24], 0xffffffff
je 0x41c0c5
push dword [ebp - 0x24]
call edi
push dword [ebp - 0x14]
call ebx
pop edi
pop ebx
cmp dword [ebp - 4], esi
je 0x41c0e2
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x18], esi
je 0x41c0f0
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_CloseWindowStation]
cmp dword [ebp - 8], esi
je 0x41c0fe
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_CloseDesktop]
mov eax, dword [ebp - 0xc]
pop esi
leave
ret
Function at 0x41d4e6
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x4b5a75
call fcn.0048ccab
call fcn.0040cff7
xor esi, esi
inc esi
push esi
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.PupEnabled
call fcn.00403c8f
xor edi, edi
mov dword [ebp - 4], edi
or dword [ebp - 4], 0xffffffff
call fcn.0041396e
push esi
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.CookiesEnabled
mov dword [0x4dd788], eax
call fcn.00403c8f
mov dword [ebp - 4], esi
or dword [ebp - 4], 0xffffffff
call fcn.0041396e
push esi
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.ArchivesEnabled
mov dword [0x4dd78c], eax
call fcn.00403c8f
push 2
pop esi
mov dword [ebp - 4], esi
or dword [ebp - 4], 0xffffffff
call fcn.0041396e
push esi
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.LevelEnabled
mov dword [0x4dd790], eax
call fcn.00403c8f
mov dword [ebp - 4], 3
or dword [ebp - 4], 0xffffffff
call fcn.0041396e
mov dword [0x4dd794], eax
call fcn.0041474f
push edi
push edi
push 0x4ef8c0
push 0x401a27
push edi
push edi
call fcn.00488fcc
push 4
mov dword [0x4ef590], eax
call fcn.004896b9
mov esi, eax
add esp, 0x1c
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
cmp esi, edi
je 0x41d5d1
push esi
push str.S_1_5_80_956008885_3418522649_1831038044_1853292631_2271478464
mov dword [esi], edi
call sub.ADVAPI32.dll_ConvertStringSidToSidW
jmp 0x41d5d3
xor esi, esi
or dword [ebp - 4], 0xffffffff
mov dword [0x4ef568], esi
call fcn.0048cd83
ret

Function at 0x41ddfb
Capabilities:
Query environment variable

Disassembly:
push 0x4c
mov eax, 0x4b0d20
call fcn.0048cd14
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
mov esi, ecx
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], edi
call fcn.004040cf
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
push edi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
call edi
mov ecx, dword [ebp - 0x30]
mov esi, eax
inc esi
inc esi
call fcn.004040ba
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
mov dword [ebp - 0x38], ebx
neg ecx
or ecx, eax
push ecx
call fcn.004881be
pop ecx
push esi
push eax
push dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
call edi
test eax, eax
je 0x41de92
push esi
push dword [ebp - 0x34]
lea esi, [ebp - 0x58]
call fcn.00420b1f
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x30]
push 0xffffffffffffffff
push 0
push eax
call fcn.00405560
mov byte [ebp - 4], bl
push 0
push ebx
mov ecx, esi
call fcn.00405617
push dword [ebp - 0x34]
call fcn.00489276
pop ecx
mov byte [ebp - 4], 0
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00405617
mov eax, dword [ebp - 0x30]
call fcn.0048cd97
ret
Function at 0x41fc2c
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x2004]
mov eax, 0x2004
call fcn.0048bdb0
push 0xffffffffffffffff
push 0x4b0bf3
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4dc104]
xor eax, ebp
mov dword [ebp + 0x2000], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], ebx
call fcn.004040ba
mov dword [ebp - 4], ebx
push ebx
push dword [ebp + 0x200c]
lea eax, [ebp]
xor edi, edi
push eax
inc edi
push ebx
mov dword [ebp - 0x10], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41fd29
push 0x1000
lea eax, [ebp]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x41fd29
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.004055f3
push ebx
push 0x28
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41fd22
push 0x1000
lea eax, [ebp]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x41fd22
lea eax, [ebp]
push 0x104
push eax
call fcn.00489e8c
pop ecx
pop ecx
mov ecx, dword [esi + 0x14]
sub ecx, eax
dec ecx
push ecx
inc eax
push eax
lea eax, [ebp - 0x30]
push eax
push esi
call fcn.0041a706
mov dword [ebp - 4], edi
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
call fcn.00405560
mov byte [ebp - 4], bl
push ebx
push edi
lea ecx, [ebp - 0x30]
call fcn.00405617
jmp 0x41fd29
mov eax, esi
call fcn.0041d94c
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp + 0x2000]
xor ecx, ebp
call fcn.00488689
add ebp, 0x2004
leave
ret