joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f9c3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x46fac0
cmp dword [ebp + 0xc], edi
je 0x46fac0
mov eax, dword [esi + 0xc]
push ebx
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 0x10]
xor ebx, ebx
push edi
push eax
push dword [ebp + 8]
mov dword [ebp + 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46faad
push 0x208
lea eax, [ebp - 0x20e]
push edi
push eax
mov dword [ebp + 8], edi
mov word [ebp - 0x210], di
call fcn.0049cce0
mov eax, dword [esi + 0x10]
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp + 8]
push ecx
push edi
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46faad
mov eax, dword [esi + 0x18]
cmp eax, dword [ebp + 8]
jne 0x46faad
cmp eax, 1
je 0x46fa5d
cmp eax, 2
jne 0x46fa87
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.00403217
mov eax, dword [ebp + 0x10]
cmp dword [eax - 0xc], edi
jne 0x46fa7f
add eax, 0xfffffff0
call fcn.004027f9
jmp 0x46faad
add eax, 0xfffffff0
call fcn.004027f9
cmp dword [esi + 0x18], 4
jne 0x46faaa
push 4
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp + 0x10]
push eax
mov dword [ebp + 0x10], edi
call fcn.0049b910
add esp, 0xc
cmp dword [ebp + 0x10], edi
jbe 0x46faad
xor ebx, ebx
inc ebx
cmp dword [ebp + 0xc], edi
je 0x46fabb
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
jmp 0x46fac2
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x46fe70
Capabilities:
Query environment variable

Disassembly:
push 0x14
push 0x4e0200
call fcn.004bd298
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], eax
je 0x46ff1e
cmp dword [ebp + 0xc], eax
je 0x46ff1e
push eax
push eax
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call edi
mov esi, eax
cmp esi, 1
jb 0x46ff1e
mov ebx, 0x103
cmp esi, ebx
ja 0x46ff1e
and dword [ebp - 4], 0
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00487dae
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x46ff1a
lea ecx, [esi + esi]
push ecx
push 0
push eax
call fcn.0049cce0
add esp, 0xc
push esi
push dword [ebp - 0x24]
push dword [ebp + 8]
call edi
test eax, eax
je 0x46ff1a
cmp eax, ebx
ja 0x46ff1a
push eax
push dword [ebp - 0x24]
push ebx
push dword [ebp + 0xc]
call fcn.0049fb34
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x46ff1a
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0
je 0x46ff2d
push dword [ebp - 0x1c]
call fcn.0049bc75
pop ecx
mov eax, dword [ebp - 0x20]
call fcn.004bd2d3
ret 8
Function at 0x4701b5
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c2bd6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], esi
call fcn.00475563
mov dword [esp + 0x1c], eax
call fcn.004754ba
mov dword [esp + 0x10], eax
lea eax, [esp + 0x30]
call fcn.00486277
lea edi, [esp + 0x40]
mov dword [esp + 0xc4], esi
call fcn.0042aa15
mov byte [esp + 0xc4], 1
push dword [0x4f5470]
mov esi, 0x4ce474
push esi
lea eax, [esp + 0x98]
call fcn.00403396
push dword [0x4f5474]
lea eax, [esp + 0xa0]
push esi
call fcn.00403396
add esp, 0x10
push dword [0x4f5498]
lea eax, [esp + 0xa0]
push eax
call fcn.004033e6
push dword [0x4f549c]
lea eax, [esp + 0xa8]
push eax
call fcn.004033e6
call fcn.0047560c
mov dword [esp + 0x58], eax
lea eax, [esp + 0x18]
push eax
call fcn.00477717
pop ecx
mov byte [esp + 0xc4], 2
push dword [eax]
lea eax, [esp + 0xa4]
push eax
call fcn.004033e6
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.004027f9
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x60], 2
cdq
mov dword [esp + 0x20], vtable.cf::time::KTimeSpan.0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov byte [esp + 0xc4], 3
mov ecx, dword [ebx + 0xc]
xor esi, esi
cmp ecx, esi
je 0x47030f
mov eax, dword [esp + 0x10]
xor edx, edx
div ecx
push esi
push 0x15180
push dword [esp + 0x34]
push dword [esp + 0x34]
mov edi, edx
imul edi, dword [ebx + 0x10]
add edi, dword [ebx + 8]
call fcn.004a7220
cmp eax, edi
jge 0x470307
mov dword [esp + 0xc], 0x165
jmp 0x47030f
mov dword [esp + 0x14], 1
push esi
push dword [esp + 0x14]
lea ecx, [esp + 0x48]
push dword [esp + 0x14]
push 1
push 0x1e
call fcn.0042ad1e
cmp dword [esp + 0x14], esi
je 0x470333
cmp dword [ebx + 0x14], esi
je 0x470333
xor esi, esi
inc esi
lea ecx, [esp + 0x40]
call fcn.0042aac0
mov ecx, dword [esp + 0xbc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x470774
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c2bd6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
and dword [esp], 0
push ebx
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x14], 1
call fcn.00475563
mov dword [esp + 0x1c], eax
call fcn.004754ba
mov dword [esp + 0x10], eax
lea eax, [esp + 0x30]
call fcn.00486277
and dword [esp + 0xc4], 0
lea edi, [esp + 0x40]
call fcn.0042aa15
mov byte [esp + 0xc4], 1
push dword [0x4f5470]
mov esi, 0x4ce474
push esi
lea eax, [esp + 0x98]
call fcn.00403396
push dword [0x4f5474]
lea eax, [esp + 0xa0]
push esi
call fcn.00403396
add esp, 0x10
push dword [0x4f5498]
lea eax, [esp + 0xa0]
push eax
call fcn.004033e6
push dword [0x4f549c]
lea eax, [esp + 0xa8]
push eax
call fcn.004033e6
call fcn.0047560c
mov dword [esp + 0x58], eax
lea eax, [esp + 0x18]
push eax
call fcn.00477717
pop ecx
mov byte [esp + 0xc4], 2
push dword [eax]
lea eax, [esp + 0xa4]
push eax
call fcn.004033e6
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.004027f9
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x60], 2
cdq
mov dword [esp + 0x20], vtable.cf::time::KTimeSpan.0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
xor esi, esi
push esi
push 0x15180
push edx
push eax
mov byte [esp + 0xd4], 3
call fcn.004a7220
cmp eax, dword [ebx + 0xc]
jg 0x4708b5
mov eax, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jb 0x4708b5
mov dword [esp + 0xc], 0x167
jmp 0x4708b9
mov dword [esp + 0x14], esi
push esi
push dword [esp + 0x14]
lea ecx, [esp + 0x48]
push dword [esp + 0x14]
push 1
push 0x1e
call fcn.0042ad1e
lea ecx, [esp + 0x40]
call fcn.0042aac0
mov ecx, dword [esp + 0xbc]
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4727bf
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push esi
push esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
xor ebx, ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0x4727e1
xor eax, eax
inc eax
jmp 0x47284b
cmp dword [edi], esi
je 0x4727ea
xor ebx, ebx
inc ebx
jmp 0x47282f
lea eax, [ebp - 8]
push eax
push 0x4d5d60
push 1
push esi
push 0x4d5d50
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x472809
push 2
jmp 0x47282e
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x47281e
push 3
jmp 0x47282e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x47282f
push 4
pop ebx
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x47283c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x472849
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x472e94
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push str.DownloadControl____Start
mov esi, 0x4f54f0
mov edi, eax
call fcn.004792bd
pop ecx
mov eax, edi
call fcn.00472c7e
test eax, eax
jne 0x472ecf
push str.DownloadControl_curlExecuter_Invalid
call fcn.004792bd
pop ecx
mov eax, pe_nt_image_headers32
jmp 0x473019
push dword [ebp + 8]
push edi
call fcn.00472d5b
mov ebx, eax
test ebx, ebx
je 0x472ef0
push str.DownloadControl_GetDownloadFileLength_Failure
call fcn.004792bd
pop ecx
mov eax, ebx
jmp 0x473019
push dword [edi + 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x472f07
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ebx, [edi + 0x10]
mov eax, dword [ebx]
test eax, eax
mov dword [ebp - 0x10], ebx
je 0x472f1d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebx], 0
push dword [edi + 4]
call fcn.00473ebe
test eax, eax
pop ecx
je 0x472f35
push dword [edi + 4]
push ebx
call fcn.00472b17
jmp 0x472f3a
mov eax, 0x80004005
test eax, eax
jge 0x472f53
push str.DownloadControl_CreateFile_Failure
call fcn.004792bd
pop ecx
mov eax, 0x102
jmp 0x473019
and dword [ebp - 4], 0
mov dword [ebp - 0xc], 0x103
mov dword [ebp - 8], 1
lea eax, [ebp - 4]
push eax
mov ebx, edi
call fcn.00473020
push dword [ebp - 4]
mov ebx, eax
push dword [edi + 0xc]
push dword [ebp - 8]
push ebx
push str.DownloadControl____ExE_CurlCode___d__Count___d__CurrentSize___d__ResCode___d
call fcn.004792bd
add esp, 0x14
test ebx, ebx
jne 0x472f9f
cmp dword [ebp - 4], 0xce
je 0x472fbd
cmp dword [ebp - 4], 0xc8
je 0x472fbd
cmp ebx, 0x1c
je 0x472faf
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x25d
jle 0x472f65
jmp 0x472fc1
and dword [ebp - 0xc], 0
push dword [ebp - 0x10]
lea edi, [ebp - 0x18]
call fcn.00472bac
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.00472bef
mov eax, dword [esi]
test eax, eax
je 0x472fea
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x472ffe
test ebx, ebx
je 0x472ff9
mov dword [eax], ebx
jmp 0x472ffe
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
push dword [ebp - 8]
mov esi, 0x4f54f0
push dword [ebp - 0xc]
push str.DownloadControl____End_HRESULT___d__Count___d
call fcn.004792bd
mov eax, dword [ebp - 0xc]
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4737af
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
je 0x473833
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x473832
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
inc eax
push eax
call fcn.00487dae
mov esi, eax
cmp esi, ebx
pop ecx
je 0x47382a
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x473823
mov eax, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
mov byte [esi + eax], bl
call fcn.00402b32
push esi
call fcn.0049bc75
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x473839
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor edi, edi
push edi
push edi
push 2
push edi
push 1
push 0x40000000
push dword [ebp + 8]
mov esi, eax
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4738b9
mov eax, dword [esi]
push ebx
mov dword [ebp - 4], edi
mov ebx, dword [eax - 0xc]
push edi
lea eax, [ebp - 4]
push eax
push ebx
call fcn.004333f0
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
cmp eax, edi
jne 0x473890
xor eax, eax
jmp 0x473897
push eax
call fcn.0049bc80
pop ecx
mov edx, esi
call fcn.00402924
cmp dword [ebp - 0x10], edi
je 0x4738af
cmp dword [ebp - 4], ebx
jne 0x4738af
mov dword [ebp - 0xc], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret
Function at 0x4738c0
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4c26fc
call fcn.004bd430
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor ebx, ebx
push ebx
push ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x4738e9
xor eax, eax
jmp 0x473996
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
mov dword [ebp - 0x18], ebx
neg ecx
or ecx, eax
push ecx
call fcn.00487dae
mov ebx, eax
test ebx, ebx
pop ecx
je 0x473993
lea eax, [esi + esi + 2]
push eax
push 0
push ebx
call fcn.0049cce0
add esp, 0xc
push ebx
push esi
call edi
mov esi, eax
mov eax, dword [0x4f36c4]
mov ecx, 0x4f36c4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
shr esi, 2
test esi, esi
mov dword [ebp - 0x14], ebx
jle 0x47397a
mov dword [ebp - 0x18], esi
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
call fcn.004033e6
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x473975
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00467d1c
add dword [ebp - 0x14], 8
lea esi, [ebp - 0x10]
call fcn.0040313b
dec dword [ebp - 0x18]
jne 0x473948
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 0x18], 1
call fcn.004027f9
push ebx
call fcn.0049bc75
pop ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4739a5
Capabilities:
Get disk information
Get storage device properties

Disassembly:
mov eax, 0x4be988
call fcn.004bd430
sub esp, 0x40
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
xor esi, esi
cmp ecx, esi
jne 0x4739c9
xor eax, eax
jmp 0x473a71
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4739c2
mov eax, dword [0x4f36c4]
mov ecx, 0x4f36c4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], esi
push dword [edi]
lea eax, [ebp - 0x14]
push 0x4d5f00
call fcn.00403396
pop ecx
pop ecx
push esi
push esi
push 3
push esi
push 3
push SysReAllocString
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x473a64
push 9
pop ecx
push 0x28
xor eax, eax
mov dword [ebp - 0x4c], esi
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
pop eax
push esi
lea ecx, [ebp - 0x18]
push ecx
push eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x4c]
push eax
push 0xc
lea eax, [ebp - 0x24]
push eax
push 0x2d1400
push ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x473a5d
cmp dword [ebp - 0x30], 7
je 0x473a5d
xor esi, esi
inc esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004027f9
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x473b9e
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x4c26fc
call fcn.004bd430
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00403217
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x473be9
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004027f9
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x473bca
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x473bca
lea ecx, [ebp - 0x10]
call fcn.00473ac4
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x473c20
xor esi, esi
jmp 0x473bcd
push eax
call fcn.00473b9e
test eax, eax
pop ecx
je 0x473c1c
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x473bca
call edi
cmp eax, ebx
jne 0x473c1c
jmp 0x473bca

Function at 0x473c3e
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4c26fc
call fcn.004bd430
sub esp, 0x64
push ebx
push esi
push edi
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x6c]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x14], ebx
call fcn.0049cce0
xor eax, eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x4f36c4]
xor edi, edi
inc edi
add esp, 0xc
mov ecx, 0x4f36c4
mov dword [ebp - 0x70], 0x44
mov dword [ebp - 0x44], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push str.__s___s
call fcn.00403396
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push ebx
neg esi
push ebx
sbb esi, esi
push ebx
and esi, 0xa
mov word [ebp - 0x40], si
mov esi, dword [ebp - 0x10]
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x473ce4
cmp dword [ebp + 0x10], ebx
je 0x473ce1
push dword [ebp + 0x10]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x24], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x473cf7
push dword [ebp - 0x24]
call edi
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x20], ebx
je 0x473d04
push dword [ebp - 0x20]
call edi
mov dword [ebp - 0x20], ebx
lea eax, [esi - 0x10]
call fcn.004027f9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x473ebe
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x4bf352
call fcn.004bd430
sub esp, 0xc
mov eax, dword [0x4f36c4]
push ebx
push esi
push edi
mov ecx, 0x4f36c4
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
push dword [ebp + 8]
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.00403217
push 0x5c
push 3
pop ecx
lea esi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0042a7ca
mov esi, eax
inc esi
je 0x473f5e
mov ecx, esi
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x10]
call fcn.00403051
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040308d
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004027f9
mov edi, dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x473f4d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
test ebx, ebx
je 0x473f61
mov ecx, esi
push 0x5c
lea esi, [ebp - 0x10]
call fcn.0042a7ca
inc eax
mov esi, eax
jne 0x473f07
xor ebx, ebx
inc ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004027f9
lea eax, [edi - 0x10]
call fcn.004027f9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4744df
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4be8a9
call fcn.004bd430
sub esp, 0x68
push ebx
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov ebx, ecx
jne 0x4744fe
xor eax, eax
jmp 0x474641
mov eax, dword [0x4f36c4]
push esi
mov ecx, 0x4f36c4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push str.__s___s
call fcn.00403396
add esp, 0xc
lea esi, [ebp - 0x10]
mov dword [ebp - 0x10], edi
call fcn.004443c1
test eax, eax
jne 0x474624
push 0x40
push eax
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x74], 0x44
call fcn.0049cce0
and dword [ebp - 0x30], 0
xor eax, eax
add esp, 0xc
neg ebx
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
sbb ebx, ebx
and ebx, 5
stosd dword es:[edi], eax
mov word [ebp - 0x44], bx
xor ebx, ebx
push str.userenv.dll
stosd dword es:[edi], eax
mov dword [ebp - 0x6c], str.Winsta0Default
mov dword [ebp - 0x20], 0x30
mov dword [ebp + 8], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x4745ce
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateEnvironmentBlock
push eax
call edi
push str.DestroyEnvironmentBlock
push dword [ebp - 0x18]
mov esi, eax
call edi
cmp esi, ebx
mov dword [ebp - 0x14], eax
je 0x4745ce
push ebx
push dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
call esi
test eax, eax
je 0x4745cb
mov dword [ebp - 0x20], 0x430
jmp 0x4745ce
mov dword [ebp + 8], ebx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 0x20]
push ebx
push ebx
push ebx
push dword [ebp - 0x1c]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp dword [ebp - 0x30], ebx
mov edi, eax
je 0x4745fd
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], ebx
je 0x47460b
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], ebx
je 0x474616
push dword [ebp + 8]
call dword [ebp - 0x14]
cmp dword [ebp - 0x18], ebx
je 0x474624
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x10], 0
pop esi
je 0x474634
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004027f9
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x47464f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
push ebx
push esi
push edi
xor esi, esi
push 0x40
lea eax, [ebp - 0x64]
push esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x68], 0x44
call fcn.0049cce0
xor eax, eax
mov dword [ebp - 0x1c], esi
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
xor ebx, ebx
mov dword [ebp - 0xc], esi
call fcn.0047535b
add esp, 0x10
test eax, eax
je 0x474739
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
call fcn.00475409
push 0x7fe
lea eax, [ebp - 0x866]
push esi
push eax
mov word [ebp - 0x868], si
call fcn.0049cce0
push dword [ebp + 0xc]
lea eax, [ebp - 0x868]
push dword [ebp + 8]
push str.__s___s
push 0x400
push eax
call fcn.0049cc69
add esp, 0x28
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
je 0x47471a
push str.CreateProcessWithTokenW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x47471a
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x68]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x868]
push ecx
push esi
push esi
push dword [ebp - 4]
call eax
jmp 0x474736
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x868]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x47474c
push dword [ebp - 4]
call edi
mov dword [ebp - 4], esi
cmp dword [ebp - 0x1c], esi
je 0x474759
push dword [ebp - 0x1c]
call edi
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x18], esi
je 0x474766
push dword [ebp - 0x18]
call edi
mov dword [ebp - 0x18], esi
cmp ebx, esi
je 0x474771
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret