joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ac67
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b227c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
and dword [esp], 0
push ebx
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x14], 1
call fcn.0045f8ef
mov dword [esp + 0x1c], eax
call fcn.0045f846
mov dword [esp + 0x10], eax
lea eax, [esp + 0x30]
call fcn.004334ed
and dword [esp + 0xa4], 0
lea edi, [esp + 0x40]
call fcn.004010fe
mov byte [esp + 0xa4], 1
push dword [0x4e0fc0]
mov esi, 0x4ba1f4
push esi
lea eax, [esp + 0x78]
call fcn.0040818d
push dword [0x4e0fc4]
lea eax, [esp + 0x80]
push esi
call fcn.0040818d
add esp, 0x10
push dword [0x4e0fcc]
lea eax, [esp + 0x80]
push eax
call fcn.00408167
push dword [0x4e0fd0]
lea eax, [esp + 0x88]
push eax
call fcn.00408167
call fcn.0045f998
mov dword [esp + 0x58], eax
lea eax, [esp + 0x18]
push eax
call fcn.00461acd
pop ecx
mov byte [esp + 0xa4], 2
push dword [eax]
lea eax, [esp + 0x84]
push eax
call fcn.00408167
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.00405148
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x60], 2
cdq
mov dword [esp + 0x20], vtable.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 + 0xb4], 3
call fcn.00497a50
cmp eax, dword [ebx + 0xc]
jg 0x45ada5
mov eax, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jb 0x45ada5
mov dword [esp + 0xc], 0x167
jmp 0x45ada9
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.00401369
lea ecx, [esp + 0x40]
call fcn.00401181
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45cb89
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 0x45cbab
xor eax, eax
inc eax
jmp 0x45cc15
cmp dword [edi], esi
je 0x45cbb4
xor ebx, ebx
inc ebx
jmp 0x45cbf9
lea eax, [ebp - 8]
push eax
push 0x4c32c8
push 1
push esi
push 0x4c32b8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x45cbd3
push 2
jmp 0x45cbf8
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 0x45cbe8
push 3
jmp 0x45cbf8
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x45cbf9
push 4
pop ebx
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x45cc06
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x45cc13
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x45d29b
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, 0x4e1030
mov edi, eax
call fcn.00462aca
pop ecx
mov eax, edi
call fcn.0045d048
test eax, eax
jne 0x45d2d6
push str.DownloadControl_curlExecuter_Invalid
call fcn.00462aca
pop ecx
mov eax, 0x100
jmp 0x45d420
push dword [ebp + 8]
push edi
call fcn.0045d16f
mov ebx, eax
test ebx, ebx
je 0x45d2f7
push str.DownloadControl_GetDownloadFileLength_Failure
call fcn.00462aca
pop ecx
mov eax, ebx
jmp 0x45d420
push dword [edi + 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x45d30e
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 0x45d324
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebx], 0
push dword [edi + 4]
call fcn.0045e284
test eax, eax
pop ecx
je 0x45d33c
push dword [edi + 4]
push ebx
call fcn.0045cee1
jmp 0x45d341
mov eax, 0x80004005
test eax, eax
jge 0x45d35a
push str.DownloadControl_CreateFile_Failure
call fcn.00462aca
pop ecx
mov eax, 0x102
jmp 0x45d420
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.0045d427
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.00462aca
add esp, 0x14
test ebx, ebx
jne 0x45d3a6
cmp dword [ebp - 4], 0xce
je 0x45d3c4
cmp dword [ebp - 4], 0xc8
je 0x45d3c4
cmp ebx, 0x1c
je 0x45d3b6
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x25d
jle 0x45d36c
jmp 0x45d3c8
and dword [ebp - 0xc], 0
push dword [ebp - 0x10]
lea edi, [ebp - 0x18]
call fcn.0045cf76
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.0045cfb9
mov eax, dword [esi]
test eax, eax
je 0x45d3f1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x45d405
test ebx, ebx
je 0x45d400
mov dword [eax], ebx
jmp 0x45d405
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
push dword [ebp - 8]
mov esi, 0x4e1030
push dword [ebp - 0xc]
push str.DownloadControl____End_HRESULT___d__Count___d
call fcn.00462aca
mov eax, dword [ebp - 0xc]
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x45dc85
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 0x45dd05
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.004287fd
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 0x45dcdc
xor eax, eax
jmp 0x45dce3
push eax
call fcn.0048f600
pop ecx
mov edx, esi
call fcn.004051bd
cmp dword [ebp - 0x10], edi
je 0x45dcfb
cmp dword [ebp - 4], ebx
jne 0x45dcfb
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 0x45dd0c
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4ae423
call fcn.004acfc0
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 0x45dd35
xor eax, eax
jmp 0x45dde2
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.00478ace
mov ebx, eax
test ebx, ebx
pop ecx
je 0x45dddf
lea eax, [esi + esi + 2]
push eax
push 0
push ebx
call fcn.0048c840
add esp, 0xc
push ebx
push esi
call edi
mov esi, eax
mov eax, dword [0x4df350]
mov ecx, 0x4df350
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 0x45ddc6
mov dword [ebp - 0x18], esi
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
call fcn.00408167
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x45ddc1
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00452179
add dword [ebp - 0x14], 8
lea esi, [ebp - 0x10]
call fcn.00407d14
dec dword [ebp - 0x18]
jne 0x45dd94
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 0x18], 1
call fcn.00405148
push ebx
call fcn.0048c8ba
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 0x45ddf1
Capabilities:
Get disk information
Get storage device properties

Disassembly:
mov eax, 0x4ae330
call fcn.004acfc0
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 0x45de15
xor eax, eax
jmp 0x45debd
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x45de0e
mov eax, dword [0x4df350]
mov ecx, 0x4df350
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 0x4c3460
call fcn.0040818d
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 0x45deb0
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 0x45dea9
cmp dword [ebp - 0x30], 7
je 0x45dea9
xor esi, esi
inc esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405148
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x45dfec
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x4ae423
call fcn.004acfc0
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00408124
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45e037
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405148
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 0x45e018
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x45e018
lea ecx, [ebp - 0x10]
call fcn.0045df12
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x45e06e
xor esi, esi
jmp 0x45e01b
push eax
call fcn.0045dfec
test eax, eax
pop ecx
je 0x45e06a
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x45e018
call edi
cmp eax, ebx
jne 0x45e06a
jmp 0x45e018
Function at 0x45e08c
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4ae423
call fcn.004acfc0
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.0048c840
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 [0x4df350]
xor edi, edi
inc edi
add esp, 0xc
mov ecx, 0x4df350
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.0040818d
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 0x45e132
cmp dword [ebp + 0x10], ebx
je 0x45e12f
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 0x45e145
push dword [ebp - 0x24]
call edi
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x20], ebx
je 0x45e152
push dword [ebp - 0x20]
call edi
mov dword [ebp - 0x20], ebx
lea eax, [esi - 0x10]
call fcn.00405148
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 0x45e284
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x4b0b66
call fcn.004acfc0
sub esp, 0xc
mov eax, dword [0x4df350]
push ebx
push esi
push edi
mov ecx, 0x4df350
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.00408124
push 0x5c
push 3
pop ecx
lea esi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040d032
mov esi, eax
inc esi
je 0x45e324
mov ecx, esi
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x10]
call fcn.00407de6
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040805e
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405148
mov edi, dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x45e313
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
test ebx, ebx
je 0x45e327
mov ecx, esi
push 0x5c
lea esi, [ebp - 0x10]
call fcn.0040d032
inc eax
mov esi, eax
jne 0x45e2cd
xor ebx, ebx
inc ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405148
lea eax, [edi - 0x10]
call fcn.00405148
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x45e833
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4ae3e7
call fcn.004acfc0
sub esp, 0x68
push ebx
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov ebx, ecx
jne 0x45e852
xor eax, eax
jmp 0x45e995
mov eax, dword [0x4df350]
push esi
mov ecx, 0x4df350
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.0040818d
add esp, 0xc
lea esi, [ebp - 0x10]
mov dword [ebp - 0x10], edi
call fcn.00433805
test eax, eax
jne 0x45e978
push 0x40
push eax
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x74], 0x44
call fcn.0048c840
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 0x45e922
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 0x45e922
push ebx
push dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
call esi
test eax, eax
je 0x45e91f
mov dword [ebp - 0x20], 0x430
jmp 0x45e922
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 0x45e951
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], ebx
je 0x45e95f
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], ebx
je 0x45e96a
push dword [ebp + 8]
call dword [ebp - 0x14]
cmp dword [ebp - 0x18], ebx
je 0x45e978
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x10], 0
pop esi
je 0x45e988
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00405148
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x45e9a3
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.0048c840
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.0045f6e7
add esp, 0x10
test eax, eax
je 0x45ea8d
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
call fcn.0045f795
push 0x7fe
lea eax, [ebp - 0x866]
push esi
push eax
mov word [ebp - 0x868], si
call fcn.0048c840
push dword [ebp + 0xc]
lea eax, [ebp - 0x868]
push dword [ebp + 8]
push str.__s___s
push 0x400
push eax
call fcn.0048ea22
add esp, 0x28
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
je 0x45ea6e
push str.CreateProcessWithTokenW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x45ea6e
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 0x45ea8a
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 0x45eaa0
push dword [ebp - 4]
call edi
mov dword [ebp - 4], esi
cmp dword [ebp - 0x1c], esi
je 0x45eaad
push dword [ebp - 0x1c]
call edi
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x18], esi
je 0x45eaba
push dword [ebp - 0x18]
call edi
mov dword [ebp - 0x18], esi
cmp ebx, esi
je 0x45eac5
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45eacd
Capabilities:
Check os version
Create process on windows

Disassembly:
mov eax, 0x4af9a6
call fcn.004acfc0
sub esp, 0x178
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x45eaec
xor eax, eax
jmp 0x45eca3
mov eax, dword [0x4df350]
push esi
mov ecx, 0x4df350
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push str.__s___s
call fcn.0040818d
push pe_nt_image_headers32
lea eax, [ebp - 0x180]
push ebx
push eax
call fcn.0048c840
add esp, 0x18
lea eax, [ebp - 0x184]
push eax
mov dword [ebp - 0x184], 0x114
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x45eb52
cmp dword [ebp - 0x180], 6
jne 0x45eb52
inc esi
cmp esi, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
lea esi, [ebp - 0x10]
jne 0x45eb66
call fcn.00433805
jmp 0x45eb6b
call fcn.004337b5
cmp eax, ebx
jne 0x45ec86
push edi
push 0x40
lea eax, [ebp - 0x6c]
push ebx
push eax
mov dword [ebp - 0x70], 0x44
call fcn.0048c840
push dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 5
mov dword [ebp - 0x44], 1
mov word [ebp - 0x40], ax
call fcn.00433870
add esp, 0x10
test al, al
jne 0x45ebd1
cmp dword [ebp - 0x10], ebx
je 0x45ebc7
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push eax
call fcn.004339ea
pop ecx
push str.userenv.dll
mov dword [ebp - 0x68], str.Winsta0Default
mov dword [ebp - 0x14], 0x30
mov dword [ebp + 8], ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x45ec30
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateEnvironmentBlock
push eax
call edi
push str.DestroyEnvironmentBlock
push dword [ebp - 0x1c]
mov esi, eax
call edi
cmp esi, ebx
mov edi, eax
je 0x45ec30
push ebx
push dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
call esi
test eax, eax
je 0x45ec2d
mov dword [ebp - 0x14], 0x430
jmp 0x45ec30
mov dword [ebp + 8], ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 0x14]
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp dword [ebp - 0x2c], ebx
mov dword [ebp - 0x14], eax
je 0x45ec60
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x28], ebx
je 0x45ec6e
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x45ec77
push dword [ebp + 8]
call edi
cmp dword [ebp - 0x1c], ebx
pop edi
je 0x45ec86
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x10], ebx
pop esi
je 0x45ec95
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405148
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x45ecb0
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4aeff2
call fcn.004acfc0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub esp, 0xc
push edi
xor edi, edi
cmp dword [eax - 0xc], edi
je 0x45eea6
mov eax, dword [0x4df350]
push ebx
push esi
mov esi, 0x4df350
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
mov eax, dword [0x4df350]
mov ecx, esi
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
cmp dword [ebx - 0xc], edi
jne 0x45ee6c
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x14]
call fcn.0040805e
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45ed28
mov esi, edi
call fcn.00407d14
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
jne 0x45ee6c
lea esi, [ebp - 0x10]
call fcn.00407d14
lea edi, [ebp - 0x18]
call fcn.0045f164
mov edi, esi
mov byte [ebp - 4], 5
call fcn.0040805e
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405148
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x45edca
push eax
lea esi, [ebp - 0x18]
call fcn.0045eeb5
pop ecx
mov byte [ebp - 4], 6
call fcn.0040805e
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405148
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.004076f5
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.0040805e
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405148
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45edca
mov esi, edi
call fcn.00407d14
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
jne 0x45ee6c
lea esi, [ebp - 0x10]
call fcn.00407d14
lea edi, [ebp - 0x18]
call fcn.0045f203
mov edi, esi
mov byte [ebp - 4], 8
call fcn.0040805e
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405148
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x45ee68
push eax
lea esi, [ebp - 0x18]
call fcn.0045eeb5
pop ecx
mov byte [ebp - 4], 9
call fcn.0040805e
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405148
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.004076f5
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.0040805e
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405148
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45ee68
mov esi, edi
call fcn.00407d14
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
je 0x45ee88
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45ee88
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x45ee91
mov eax, dword [ebp + 8]
push dword [eax]
call esi
mov edi, eax
lea eax, [ebx - 0x10]
call fcn.00405148
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405148
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
leave
ret