joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41844c
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.004174b5
test eax, eax
jge 0x41848e
mov dword [ebp + 0xc], 0x57
jmp 0x41853c
lea eax, [ebx + 0x22c]
mov dword [ebp - 8], eax
push eax
lea esi, [ebp - 4]
mov eax, edi
call fcn.004174b5
test eax, eax
jl 0x418482
mov edi, dword [ebp + 0xc]
test byte [edi + 4], 1
je 0x4184df
mov ebx, dword [ebp - 8]
call fcn.00418ce6
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4184ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
jmp 0x41853c
mov edi, dword [ebp + 8]
call fcn.00418864
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x41853c
jmp 0x418538
push dword [edi + 0x41c]
lea esi, [ebp - 4]
mov eax, 0x200
call fcn.004174b5
mov dword [ebp + 0xc], eax
test eax, eax
jl 0x418482
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 0x41853c
push dword [edi + 0x41c]
mov eax, esi
call fcn.00417456
test eax, eax
jl 0x418482
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 0x418586
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 0x418650
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 0x418634
push dword [ebp - 4]
call fcn.0041877e
mov ebx, eax
test ebx, ebx
jne 0x418634
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 0x418630
push dword [esi + 4]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 8]
lea ebx, [ecx + edx + 4]
push eax
call fcn.004175f2
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x418627
or dword [esi + 0x1c], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x418641
lea eax, [esi + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 4], 0
je 0x418650
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test byte [esi + 0x1c], 2
jne 0x41869c
test ebx, ebx
jne 0x41869c
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 0x418697
push dword [esi + 4]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x418687
or dword [esi + 0x1c], 2
jmp 0x41868c
mov ebx, 0x15e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41869c
mov ebx, 0x15e
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x4186a5
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 0x418755
test al, 2
je 0x418755
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 0x418741
cmp byte [ebp + 8], bl
je 0x418723
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 0x418723
push 0x50
pop edi
jmp 0x418741
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 0x418741
xor edi, edi
cmp dword [ebp - 4], ebx
je 0x41874f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
jmp 0x418757
xor eax, eax
pop esi
leave
ret 0xc
Function at 0x41875c
Capabilities:
Delete file

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

Function at 0x41877e
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 0x41885c
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 0x4187d7
mov dword [ebp - 8], 0xe
jmp 0x41884b
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 0x41884b
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.0048a010
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 0x41883a
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 0x41885b
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 0x418864
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 0x4188a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x418934
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4188bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x41892a
cmp ebx, esi
jne 0x4188c8
mov dword [ebp - 4], 0x54f
jmp 0x41892a
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.004175b0
pop ecx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
jne 0x41892a
push dword [edi + 4]
lea esi, [ebp - 0xc]
mov eax, ebx
call fcn.004174b5
test eax, eax
jl 0x41892a
mov ecx, dword [ebp - 0xc]
inc ecx
inc ecx
lea eax, [ecx + 4]
cmp eax, ebx
ja 0x41892a
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 0x418ae7
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 [0x4ec788], eax
call esi
push str.ZwQueryInformationFile
push dword [0x4ec788]
mov dword [0x4ec78c], eax
call esi
push str.ZwCreateFile
push dword [0x4ec788]
mov dword [0x4ec79c], eax
call esi
push str.RtlInitUnicodeString
push dword [0x4ec788]
mov dword [0x4ec794], eax
call esi
push str.ZwSetInformationFile
push dword [0x4ec788]
mov dword [0x4ec790], eax
call esi
push dword [esp + 8]
mov dword [0x4ec798], eax
mov esi, 0x4ec580
mov eax, 0x208
mov edx, esi
call fcn.00417456
test eax, eax
jge 0x418b79
xor eax, eax
push 0x57
mov word [0x4ec580], ax
pop eax
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x418b99
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x418b99
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop esi
ret
Function at 0x418ce6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4d9114]
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 0x418d83
push esi
push edi
mov edi, 0x208
push ebx
lea esi, [ebp - 0x80]
mov eax, edi
mov dword [ebp - 0x7c], 3
call fcn.004174b5
test eax, eax
jne 0x418d81
mov eax, dword [ebp - 0x80]
shr eax, 1
je 0x418d81
cmp word [ebx + eax*2], 0x5c
je 0x418d41
dec eax
jne 0x418d35
jmp 0x418d81
lea esi, [ebx + eax*2]
test esi, esi
je 0x418d81
push 0x4ec580
mov eax, edi
lea edx, [ebp - 0x78]
call fcn.00417456
push esi
lea edi, [ebp - 0x78]
call fcn.00417481
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x418d81
mov eax, edi
push eax
mov eax, 0x208
mov edx, ebx
call fcn.00417456
and dword [ebp - 0x7c], 0
pop edi
pop esi
mov ecx, dword [ebp + 0x190]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
call fcn.004876e8
add ebp, 0x194
leave
ret
Function at 0x419741
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x684
mov eax, dword [0x4d9114]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x684], eax
push 0x4ec580
mov eax, 0x208
lea edx, [ebp - 0x41c]
call fcn.00417456
push str..Q
lea edi, [ebp - 0x41c]
call fcn.00417481
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 0x41983c
lea eax, [ebp - 0x650]
push eax
lea esi, [ebp - 0x680]
mov eax, 0x208
call fcn.004174b5
test eax, eax
jl 0x41981f
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.0048a010
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 0x41981f
push dword [ebp - 0x684]
lea eax, [ebp - 0x42c]
push eax
call fcn.004036a1
pop ecx
pop ecx
test al, al
je 0x41983c
lea eax, [ebp - 0x67c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41979f
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.004876e8
leave
ret

Function at 0x41acad
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x4b2206
call fcn.0048bc3b
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventW]
xor ebx, ebx
mov edi, 0x100000
cmp dword [0x4ec564], ebx
jne 0x41acdc
push str.Global312B496E_C8F4_4068_8460_0D144A8FFAA4
push ebx
push edi
call esi
mov dword [0x4ec564], eax
cmp dword [0x4ec568], ebx
jne 0x41acf2
push str.Global312B496E_C8F4_4068_8460_0D144A8FFAA5
push ebx
push edi
call esi
mov dword [0x4ec568], eax
cmp dword [0x4ec56c], ebx
jne 0x41ad08
push str.Global322B496E_C8F4_4068_8460_0D144A8FFA14
push ebx
push edi
call esi
mov dword [0x4ec56c], eax
push 4
call fcn.00488856
pop ecx
cmp eax, ebx
je 0x41ad1f
mov ecx, eax
call fcn.0040387f
mov esi, eax
jmp 0x41ad21
xor esi, esi
push dword [ebp + 0x14]
lea ecx, [ebp - 0x10]
call fcn.00403c71
mov dword [ebp - 4], ebx
push eax
mov ecx, esi
call fcn.00404d62
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00403910
push ebx
push ebx
push esi
push 0x41ac03
push ebx
push ebx
call fcn.00488169
add esp, 0x18
mov dword [0x4ec7a0], eax
xor eax, eax
call fcn.0048bd13
ret 0x14
Function at 0x41ad7c
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b13b9
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4d9114]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push dword [ebp + 0x24]
lea ecx, [esp + 0x18]
call fcn.00403c71
xor esi, esi
mov dword [esp + 0x28], esi
mov edi, dword [ebp + 0x14]
cmp edi, esi
jbe 0x41ae8e
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.00403c4b
mov byte [esp + 0x30], 1
push dword [esp + 0x18]
mov byte [esp + 0x34], 0
call fcn.0040c693
add esp, 0xc
push 1
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00403c4b
mov byte [esp + 0x30], 2
push dword [esp + 0x18]
mov byte [esp + 0x34], 0
call fcn.0040c693
add esp, 0xc
cmp dword [ebp + 0x44], 1
lea eax, [ebp + 0x2c]
push eax
lea eax, [esp + 0x1c]
push eax
sete bl
call fcn.0041c1ea
mov byte [esp + 0x28], 3
push dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ebx
push edi
mov edi, eax
call fcn.0040d69b
add esp, 0xc
mov bl, al
neg bl
sbb bl, bl
inc bl
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x18]
call fcn.00403910
test bl, bl
je 0x41ae69
inc esi
or dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00403910
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.00403c4b
mov byte [esp + 0x28], 4
push 0x5e
lea ecx, [esp + 0x14]
call fcn.00403d13
cmp eax, 0xffffffff
je 0x41aedd
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call fcn.00403dec
mov byte [esp + 0x28], 5
push eax
lea ecx, [esp + 0x14]
call fcn.00404d62
mov byte [esp + 0x28], 4
lea ecx, [esp + 0x18]
call fcn.00403910
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 0x41af15
push dword [esp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41af15
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.00403910
jmp 0x41ae69
Function at 0x41b084
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push esi
xor esi, esi
push esi
push dword [0x4ec7a8]
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 0x41b0b5
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 0x41b20a
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 0x41b1d1
push edi
call ebx
test eax, eax
je 0x41b1d1
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 0x41b1d1
cmp dword [ebp - 8], esi
je 0x41b1d1
lea eax, [ebp - 4]
push eax
call fcn.0041af82
pop ecx
test eax, eax
je 0x41b1d1
push dword [ebp - 4]
push edi
call fcn.0041b210
pop ecx
pop ecx
test eax, eax
je 0x41b1d1
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0041b4bb
pop ecx
pop ecx
test eax, eax
je 0x41b1d1
push dword [0x4ec7a8]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x41b1d1
push 0x44
pop edi
push edi
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.00489de0
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 [0x4ec7a8]
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 0x41b1c6
cmp dword [ebp - 0x28], 0xffffffff
je 0x41b1c6
push dword [ebp - 0x28]
call edi
cmp dword [ebp - 0x24], 0xffffffff
je 0x41b1d1
push dword [ebp - 0x24]
call edi
push dword [ebp - 0x14]
call ebx
pop edi
pop ebx
cmp dword [ebp - 4], esi
je 0x41b1ee
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 0x41b1fc
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_CloseWindowStation]
cmp dword [ebp - 8], esi
je 0x41b20a
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_CloseDesktop]
mov eax, dword [ebp - 0xc]
pop esi
leave
ret
Function at 0x41c536
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x4b2005
call fcn.0048bc3b
call fcn.0040c289
xor esi, esi
inc esi
push esi
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.PupEnabled
call fcn.00403c71
xor edi, edi
mov dword [ebp - 4], edi
or dword [ebp - 4], 0xffffffff
call fcn.00412caa
push esi
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.CookiesEnabled
mov dword [0x4da78c], eax
call fcn.00403c71
mov dword [ebp - 4], esi
or dword [ebp - 4], 0xffffffff
call fcn.00412caa
push esi
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.ArchivesEnabled
mov dword [0x4da790], eax
call fcn.00403c71
push 2
pop esi
mov dword [ebp - 4], esi
or dword [ebp - 4], 0xffffffff
call fcn.00412caa
push esi
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.LevelEnabled
mov dword [0x4da794], eax
call fcn.00403c71
mov dword [ebp - 4], 3
or dword [ebp - 4], 0xffffffff
call fcn.00412caa
mov dword [0x4da798], eax
call fcn.00413947
push edi
push edi
push 0x4ec8d8
push 0x4019a8
push edi
push edi
call fcn.00488169
push 4
mov dword [0x4ec570], eax
call fcn.00488856
mov esi, eax
add esp, 0x1c
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
cmp esi, edi
je 0x41c621
push esi
push str.S_1_5_80_956008885_3418522649_1831038044_1853292631_2271478464
mov dword [esi], edi
call sub.ADVAPI32.dll_ConvertStringSidToSidW
jmp 0x41c623
xor esi, esi
or dword [ebp - 4], 0xffffffff
mov dword [0x4ec548], esi
call fcn.0048bd13
ret

Function at 0x41ce0c
Capabilities:
Query environment variable

Disassembly:
push 0x4c
mov eax, 0x4ada34
call fcn.0048bca4
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.004040b1
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.0040409c
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.0048720d
pop ecx
push esi
push eax
push dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
call edi
test eax, eax
je 0x41cea3
push esi
push dword [ebp - 0x34]
lea esi, [ebp - 0x58]
call fcn.0041fb30
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x30]
push 0xffffffffffffffff
push 0
push eax
call fcn.004050a8
mov byte [ebp - 4], bl
push 0
push ebx
mov ecx, esi
call fcn.0040515f
push dword [ebp - 0x34]
call fcn.00488413
pop ecx
mov byte [ebp - 4], 0
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0040515f
mov eax, dword [ebp - 0x30]
call fcn.0048bd27
ret
Function at 0x41ec3d
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x2004]
mov eax, 0x2004
call fcn.0048ae10
push 0xffffffffffffffff
push 0x4ad907
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4d9114]
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.0040409c
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 0x41ed3a
push 0x1000
lea eax, [ebp]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x41ed3a
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.0040513b
push ebx
push 0x28
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41ed33
push 0x1000
lea eax, [ebp]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x41ed33
lea eax, [ebp]
push 0x104
push eax
call fcn.00489029
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.0041984c
mov dword [ebp - 4], edi
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
call fcn.004050a8
mov byte [ebp - 4], bl
push ebx
push edi
lea ecx, [ebp - 0x30]
call fcn.0040515f
jmp 0x41ed3a
mov eax, esi
call fcn.0041c95d
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.004876e8
add ebp, 0x2004
leave
ret