joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3dcd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x808
mov dword [ebp - 0x10], 0
mov ecx, 0x534274
call fcn.004c63e1
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x40f056
mov eax, dword [ebp + 8]
push eax
call fcn.0040ee30
add esp, 4
mov ecx, dword [ebp - 0x10]
or ecx, 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
jmp 0x40f0eb
lea ecx, [ebp - 0x14]
call fcn.004078b0
mov dword [ebp - 4], 0
push 0x800
push 0
lea edx, [ebp - 0x814]
push edx
call fcn.004c9920
add esp, 0xc
push 0x800
push 0
lea eax, [ebp - 0x814]
push eax
call fcn.004c9920
add esp, 0xc
push 0
push 0x10
lea ecx, [ebp - 0x814]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40f0c4
lea edx, [ebp - 0x814]
push edx
lea ecx, [ebp - 0x14]
call fcn.00408610
push 0x4fa0b0
lea ecx, [ebp - 0x14]
call fcn.00408a50
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
call fcn.004078e0
mov ecx, dword [ebp - 0x10]
or ecx, 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004082a0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x40f100
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, 0x534274
call fcn.004c63e1
mov byte [ebp - 1], 0
mov dword [ebp - 0x14], 0
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea ecx, [ebp + 8]
call fcn.004086f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40f161
mov byte [ebp - 2], 0
lea ecx, [ebp + 8]
call fcn.004082a0
lea ecx, [ebp + 0x10]
call fcn.004082a0
mov al, byte [ebp - 2]
jmp 0x40f1f1
lea ecx, [ebp + 0x10]
call fcn.004086f0
push eax
movzx eax, word [ebp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40f182
jmp 0x40f1ce
mov ecx, dword [ebp - 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40f199
jmp 0x40f1ce
mov edx, dword [ebp - 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40f1c6
jmp 0x40f1ce
mov byte [ebp - 1], 1
xor ecx, ecx
jne 0x40f161
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
mov byte [ebp - 3], al
lea ecx, [ebp + 8]
call fcn.004082a0
lea ecx, [ebp + 0x10]
call fcn.004082a0
mov al, byte [ebp - 3]
mov esp, ebp
pop ebp
ret
Function at 0x40f460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, 0x534216
call fcn.004c63e1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40f48e
xor eax, eax
jmp 0x40f50e
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40f4a5
xor eax, eax
jmp 0x40f50e
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x40f4f1
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x40f4f1
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x40f4c8
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x40f4fd
xor eax, eax
jmp 0x40f50e
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x40f50b
xor eax, eax
jmp 0x40f50e
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x411760
Capabilities:
Hash data via bcrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f41fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov ecx, 0x53439c
call fcn.004c63e1
mov dword [ebp - 0x24], 0x10
mov dword [ebp - 0x28], 4
mov ecx, dword [ebp + 8]
call fcn.00410b40
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
or eax, 1
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
push 0
push 0
push 0x4fb534
lea ecx, [ebp - 0x14]
push ecx
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
jl 0x411873
mov dword [ebp - 0x10], 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
call sub.bcrypt.dll_BCryptCreateHash
test eax, eax
jl 0x411868
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.bcrypt.dll_BCryptHashData
test eax, eax
jl 0x41185f
push 4
lea ecx, [ebp - 0x20]
push ecx
call fcn.00411300
add esp, 8
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00410ba0
lea ecx, [ebp - 0x20]
call fcn.004115f0
push 0
push 0x10
mov ecx, dword [ebp + 8]
call fcn.00413660
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.bcrypt.dll_BCryptFinishHash
test eax, eax
jge 0x41185f
push 0
mov ecx, dword [ebp + 8]
call fcn.00413770
mov ecx, dword [ebp - 0x10]
push ecx
call sub.bcrypt.dll_BCryptDestroyHash
push 0
mov edx, dword [ebp - 0x14]
push edx
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x411960
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov ecx, 0x53439c
call fcn.004c63e1
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x40000001
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
jne 0x4119b6
push 0
mov ecx, dword [ebp + 8]
call fcn.00410b70
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
jmp 0x411a41
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.004113a0
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.00410ac0
lea ecx, [ebp - 0x14]
call fcn.004115f0
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
call fcn.00413660
push eax
push 0x40000001
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
jne 0x411a21
push 0
mov ecx, dword [ebp + 8]
call fcn.00410b70
mov ecx, dword [ebp - 4]
or ecx, 1
mov dword [ebp - 4], ecx
lea ecx, [ebp - 8]
call fcn.004115f0
mov eax, dword [ebp + 8]
jmp 0x411a41
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebp + 8]
call fcn.00410ac0
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
lea ecx, [ebp - 8]
call fcn.004115f0
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x4128e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov ecx, 0x534386
call fcn.004c63e1
xor eax, eax
jne 0x4128f3
cmp dword [ebp + 0xc], 0
je 0x412906
mov dword [ebp - 0xc], 1
jmp 0x41290d
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x412920
mov eax, 0xd
jmp 0x412975
xor edx, edx
jne 0x4128f7
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 2
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 8]
mov ax, word [edx]
mov word [ebp - 2], ax
add dword [ebp - 8], 2
cmp word [ebp - 2], 0
jne 0x412933
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x14]
sar ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
lea eax, [edx + edx + 2]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x416460
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov ecx, 0x5345bd
call fcn.004c63e1
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 0xffffffff
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x416629
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x4164d8
mov dword [ebp - 0x10], 0x64
mov dword [ebp - 8], 0
jmp 0x4164ea
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x10]
jae 0x416629
mov dword [ebp - 4], 0
push 0x104
push 0
lea edx, [ebp - 0x228]
push edx
call fcn.004c9920
add esp, 0xc
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0x104
push 0x104
push 0
lea eax, [ebp - 0x124]
push eax
call fcn.004c9920
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
push str._04u
push 0x104
lea edx, [ebp - 0x124]
push edx
call fcn.004152f0
add esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x416580
jmp 0x4164e1
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x18]
push edx
push 0
push str.NetCfgInstanceId
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4165b3
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4164e1
lea edx, [ebp - 0x228]
push edx
mov ecx, dword [ebp + 8]
call fcn.00404ca0
push eax
call fcn.004d3830
add esp, 8
test eax, eax
je 0x4165de
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4164e1
mov dword [ebp - 0x14], 4
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x18]
push eax
push 0
push 0x4fbcb4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41661a
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x416629
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4164e1
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret
Function at 0x4176b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f463d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
mov ecx, 0x534828
call fcn.004c63e1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00417990
add esp, 8
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.00417270
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00417d40
mov dword [ebp - 0x20], 0x4175b0
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
push 0
lea ecx, [ebp - 0x14]
call fcn.0041ca80
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0
push 0
call fcn.004d4ebb
add esp, 0x18
mov edx, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x417746
lea ecx, [ebp - 0x14]
call fcn.0041cb00
jmp 0x417757
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
push 6
call fcn.004c7d30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00417d40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x417780
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f463d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
mov ecx, 0x534828
call fcn.004c63e1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00417990
add esp, 8
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.00417270
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00417d40
mov dword [ebp - 0x20], 0x417630
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
push 0
lea ecx, [ebp - 0x14]
call fcn.0041ca80
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0
push 0
call fcn.004d4ebb
add esp, 0x18
mov edx, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x417816
lea ecx, [ebp - 0x14]
call fcn.0041cb00
jmp 0x417827
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
push 6
call fcn.004c7d30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00417d40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4186c0
Capabilities:
Check if file exists
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3cbd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov ecx, 0x534838
call fcn.004c63e1
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x4fd574
call fcn.00403550
call fcn.0040dcb0
add esp, 0x18
mov byte [ebp - 0xd], al
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x418715
mov ecx, dword [ebp + 8]
mov byte [ecx], 0
jmp 0x4187fc
push 0x4fd580
lea ecx, [ebp - 0x18]
call fcn.004079c0
mov dword [ebp - 4], 0
push str.D:Program_Filesgptchrometmp
lea ecx, [ebp - 0x14]
call fcn.004079c0
lea ecx, [ebp - 0x18]
call fcn.004086f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41877d
push 0
lea ecx, [ebp - 0x18]
call fcn.004086f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x418775
mov edx, dword [ebp + 8]
mov byte [edx], 1
lea ecx, [ebp - 0x18]
call fcn.004086f0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x41877b
mov eax, dword [ebp + 8]
mov byte [eax], 0
jmp 0x4187e5
lea ecx, [ebp - 0x14]
call fcn.004086f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4187b3
lea ecx, [ebp - 0x14]
call fcn.004086f0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4187ab
mov ecx, dword [ebp + 8]
mov byte [ecx], 1
jmp 0x4187b1
mov edx, dword [ebp + 8]
mov byte [edx], 0
jmp 0x4187e5
push 0
lea ecx, [ebp - 0x14]
call fcn.004086f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4187df
mov eax, dword [ebp + 8]
mov byte [eax], 1
lea ecx, [ebp - 0x14]
call fcn.004086f0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4187e5
mov ecx, dword [ebp + 8]
mov byte [ecx], 0
lea ecx, [ebp - 0x14]
call fcn.004082a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004082a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x418810
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f48cd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov dword [ebp - 0x4c], ecx
mov ecx, 0x534838
call fcn.004c63e1
lea eax, [ebp - 0x24]
push eax
call fcn.0040ed60
add esp, 4
mov dword [ebp - 4], 0
push 0x4fd224
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.004087b0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004086f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20]
push eax
call fcn.0040ee30
add esp, 4
mov byte [ebp - 4], 2
push 0x4fd244
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.004087b0
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00408550
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.004082a0
lea ecx, [ebp - 0x1c]
call fcn.004086f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x18]
push edx
call fcn.0040ef30
add esp, 4
mov byte [ebp - 4], 4
push 0x4fd264
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.004087b0
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x14]
call fcn.004086f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x3c]
push edx
call fcn.0041bdc0
add esp, 4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00408550
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3c]
call fcn.004082a0
push 0x4fd284
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.004087b0
add esp, 0xc
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x44]
push edx
lea ecx, [ebp - 0x14]
call fcn.00408550
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x48]
call fcn.004082a0
lea ecx, [ebp - 0x14]
call fcn.004086f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x10]
push eax
call fcn.0040ca80
add esp, 4
mov byte [ebp - 4], 8
push 0x4fd2a4
lea ecx, [ebp - 0x10]
call fcn.00408a50
lea ecx, [ebp - 0x10]
call fcn.004086f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4189bd
lea ecx, [ebp - 0x10]
call fcn.004086f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10]
call fcn.004082a0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.004082a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.004082a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.004082a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004082a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004082a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x419470
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4a15
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x254
mov ecx, 0x534838
call fcn.004c63e1
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x4194a9
mov al, 1
jmp 0x4195d4
push 0x208
push 0
lea eax, [ebp - 0x260]
push eax
call fcn.004c9920
add esp, 0xc
mov dword [ebp - 0x1c], 0
push 0x104
lea ecx, [ebp - 0x260]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x58], 0x3c
push 0x38
push 0
lea eax, [ebp - 0x54]
push eax
call fcn.004c9920
add esp, 0xc
mov dword [ebp - 0x4c], str.runas
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x3c], 1
lea ecx, [ebp - 0x14]
call fcn.004078b0
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
test eax, eax
je 0x419532
push str._upprivi__can_ins_d
lea ecx, [ebp - 0x14]
call fcn.00408610
jmp 0x41953f
push str._upprivi
lea ecx, [ebp - 0x14]
call fcn.00408610
lea ecx, [ebp - 0x14]
call fcn.004086f0
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x58]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4195be
push 0x4fd670
lea ecx, [ebp - 0x18]
call fcn.004079c0
mov byte [ebp - 4], 1
push 0x4fd688
lea ecx, [ebp - 0x18]
call fcn.00408a50
push 4
push 0x4fd6ac
lea ecx, [ebp - 0x18]
call fcn.004086f0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x41959a
push 0
call fcn.004d40da
mov byte [ebp - 0xd], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004082a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004082a0
mov al, byte [ebp - 0xd]
jmp 0x4195d4
mov byte [ebp - 0xe], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004082a0
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4197b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4a9d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [ebp - 0x10], ecx
mov ecx, 0x534838
call fcn.004c63e1
push 0x4fc23c
lea ecx, [ebp - 0x2c]
call fcn.00403550
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00404ca0
push eax
push 0
push 0x469
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 1
push 0x46a
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
call fcn.0040e9e0
add esp, 4
push 0x4fc248
call fcn.0040bc60
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x4fc270
call fcn.0040dd50
add esp, 4
mov dword [ebp - 0x14], 0
jmp 0x419864
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x14
jge 0x419899
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
add edx, 4
push edx
call fcn.0040bc80
add esp, 4
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
add ecx, 4
call fcn.004086f0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x419897
jmp 0x419899
jmp 0x41985b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403800
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret