joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, 0x53621c
call fcn.004c6d76
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 0x40f35e
xor eax, eax
jmp 0x40f3de
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 0x40f375
xor eax, eax
jmp 0x40f3de
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 0x40f3c1
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x40f3c1
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 0x40f398
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x40f3cd
xor eax, eax
jmp 0x40f3de
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x40f3db
xor eax, eax
jmp 0x40f3de
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x411680
Capabilities:
Hash data via bcrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f54ce
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, 0x53639d
call fcn.004c6d76
mov dword [ebp - 0x24], 0x10
mov dword [ebp - 0x28], 4
mov ecx, dword [ebp + 8]
call fcn.00410a60
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 0x4fd074
lea ecx, [ebp - 0x14]
push ecx
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
jl 0x411793
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 0x411788
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 0x41177f
push 4
lea ecx, [ebp - 0x20]
push ecx
call fcn.00411220
add esp, 8
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00410ac0
lea ecx, [ebp - 0x20]
call fcn.00411510
push 0
push 0x10
mov ecx, dword [ebp + 8]
call fcn.00413580
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.bcrypt.dll_BCryptFinishHash
test eax, eax
jge 0x41177f
push 0
mov ecx, dword [ebp + 8]
call fcn.00413690
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 0x411880
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov ecx, 0x53639d
call fcn.004c6d76
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 0x4118d6
push 0
mov ecx, dword [ebp + 8]
call fcn.00410a90
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
jmp 0x411961
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.004112c0
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.004109e0
lea ecx, [ebp - 0x14]
call fcn.00411510
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
call fcn.00413580
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 0x411941
push 0
mov ecx, dword [ebp + 8]
call fcn.00410a90
mov ecx, dword [ebp - 4]
or ecx, 1
mov dword [ebp - 4], ecx
lea ecx, [ebp - 8]
call fcn.00411510
mov eax, dword [ebp + 8]
jmp 0x411961
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebp + 8]
call fcn.004109e0
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
lea ecx, [ebp - 8]
call fcn.00411510
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x412800
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov ecx, 0x536388
call fcn.004c6d76
xor eax, eax
jne 0x412813
cmp dword [ebp + 0xc], 0
je 0x412826
mov dword [ebp - 0xc], 1
jmp 0x41282d
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x412840
mov eax, 0xd
jmp 0x412895
xor edx, edx
jne 0x412817
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 0x412853
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 0x416370
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov ecx, 0x5365be
call fcn.004c6d76
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 0x416539
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 0x4163e8
mov dword [ebp - 0x10], 0x64
mov dword [ebp - 8], 0
jmp 0x4163fa
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x10]
jae 0x416539
mov dword [ebp - 4], 0
push 0x104
push 0
lea edx, [ebp - 0x228]
push edx
call fcn.004ca3c0
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.004ca3c0
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
push str._04u
push 0x104
lea edx, [ebp - 0x124]
push edx
call fcn.00415200
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 0x416490
jmp 0x4163f1
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 0x4164c3
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4163f1
lea edx, [ebp - 0x228]
push edx
mov ecx, dword [ebp + 8]
call fcn.00404c40
push eax
call fcn.004d4289
add esp, 8
test eax, eax
je 0x4164ee
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4163f1
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 str.Characteristics
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41652a
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 0x416539
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4163f1
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 0x4177a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f592d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
mov ecx, 0x53682a
call fcn.004c6d76
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00417bf0
add esp, 8
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.004171b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00418100
mov dword [ebp - 0x20], 0x4176a0
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
push 0
lea ecx, [ebp - 0x14]
call fcn.0041d4a0
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0
push 0
call fcn.004d5944
add esp, 0x18
mov edx, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x417836
lea ecx, [ebp - 0x14]
call fcn.0041d570
jmp 0x417847
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
push 6
call fcn.004c881a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00418100
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x417870
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f592d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
mov ecx, 0x53682a
call fcn.004c6d76
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00417bf0
add esp, 8
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.004171b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00418100
mov dword [ebp - 0x20], 0x417720
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
push 0
lea ecx, [ebp - 0x14]
call fcn.0041d4a0
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0
push 0
call fcn.004d5944
add esp, 0x18
mov edx, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x417906
lea ecx, [ebp - 0x14]
call fcn.0041d570
jmp 0x417917
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
push 6
call fcn.004c881a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00418100
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x418ad0
Capabilities:
Check if file exists
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4f8d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov ecx, 0x53683a
call fcn.004c6d76
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x4ff4ec
call fcn.004034f0
call fcn.0040db80
add esp, 0x18
mov byte [ebp - 0xd], al
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x418b25
mov ecx, dword [ebp + 8]
mov byte [ecx], 0
jmp 0x418c0c
push 0x4ff4f0
lea ecx, [ebp - 0x18]
call fcn.00407890
mov dword [ebp - 4], 0
push str.D:Program_Filesgptchrometmp
lea ecx, [ebp - 0x14]
call fcn.00407890
lea ecx, [ebp - 0x18]
call fcn.004085c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x418b8d
push 0
lea ecx, [ebp - 0x18]
call fcn.004085c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x418b85
mov edx, dword [ebp + 8]
mov byte [edx], 1
lea ecx, [ebp - 0x18]
call fcn.004085c0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x418b8b
mov eax, dword [ebp + 8]
mov byte [eax], 0
jmp 0x418bf5
lea ecx, [ebp - 0x14]
call fcn.004085c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x418bc3
lea ecx, [ebp - 0x14]
call fcn.004085c0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x418bbb
mov ecx, dword [ebp + 8]
mov byte [ecx], 1
jmp 0x418bc1
mov edx, dword [ebp + 8]
mov byte [edx], 0
jmp 0x418bf5
push 0
lea ecx, [ebp - 0x14]
call fcn.004085c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x418bef
mov eax, dword [ebp + 8]
mov byte [eax], 1
lea ecx, [ebp - 0x14]
call fcn.004085c0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x418bf5
mov ecx, dword [ebp + 8]
mov byte [ecx], 0
lea ecx, [ebp - 0x14]
call fcn.00408170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00408170
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x418c20
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5bdd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov dword [ebp - 0x4c], ecx
mov ecx, 0x53683a
call fcn.004c6d76
lea eax, [ebp - 0x24]
push eax
call fcn.0040ec30
add esp, 4
mov dword [ebp - 4], 0
push 0x4ff1d4
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.00408680
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004085c0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20]
push eax
call fcn.0040ed00
add esp, 4
mov byte [ebp - 4], 2
push 0x4ff1f4
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.00408680
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.00408420
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.00408170
lea ecx, [ebp - 0x1c]
call fcn.004085c0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x18]
push edx
call fcn.0040ee00
add esp, 4
mov byte [ebp - 4], 4
push 0x4ff214
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00408680
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x14]
call fcn.004085c0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x3c]
push edx
call fcn.0041c570
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.00408420
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3c]
call fcn.00408170
push 0x4ff234
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.00408680
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.00408420
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x48]
call fcn.00408170
lea ecx, [ebp - 0x14]
call fcn.004085c0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x10]
push eax
call fcn.0040c950
add esp, 4
mov byte [ebp - 4], 8
push 0x4ff254
lea ecx, [ebp - 0x10]
call fcn.00408920
lea ecx, [ebp - 0x10]
call fcn.004085c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x418dcd
lea ecx, [ebp - 0x10]
call fcn.004085c0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10]
call fcn.00408170
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.00408170
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00408170
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00408170
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00408170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00408170
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x419880
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5d25
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x254
mov ecx, 0x53683a
call fcn.004c6d76
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x4198b9
mov al, 1
jmp 0x4199e4
push 0x208
push 0
lea eax, [ebp - 0x260]
push eax
call fcn.004ca3c0
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.004ca3c0
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.00407780
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
test eax, eax
je 0x419942
push str._upprivi__can_ins_d
lea ecx, [ebp - 0x14]
call fcn.004084e0
jmp 0x41994f
push str._upprivi
lea ecx, [ebp - 0x14]
call fcn.004084e0
lea ecx, [ebp - 0x14]
call fcn.004085c0
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x58]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4199ce
push 0x4ff598
lea ecx, [ebp - 0x18]
call fcn.00407890
mov byte [ebp - 4], 1
push 0x4ff5b0
lea ecx, [ebp - 0x18]
call fcn.00408920
push 4
push 0x4ff5d4
lea ecx, [ebp - 0x18]
call fcn.004085c0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
je 0x4199aa
push 0
call fcn.004d4b67
mov byte [ebp - 0xd], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00408170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00408170
mov al, byte [ebp - 0xd]
jmp 0x4199e4
mov byte [ebp - 0xe], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00408170
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x419bc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5dad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [ebp - 0x10], ecx
mov ecx, 0x53683a
call fcn.004c6d76
push 0x4fe240
lea ecx, [ebp - 0x2c]
call fcn.004034f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00404c40
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.0040e8b0
add esp, 4
push 0x4fe24c
call fcn.0040bb30
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x4fe274
call fcn.0040dc20
add esp, 4
mov dword [ebp - 0x14], 0
jmp 0x419c74
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x14
jge 0x419ca9
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
add edx, 4
push edx
call fcn.0040bb50
add esp, 4
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
add ecx, 4
call fcn.004085c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x419ca7
jmp 0x419ca9
jmp 0x419c6b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004037a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x41b510
Capabilities:
Check if file exists
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f60fd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
mov ecx, 0x53683a
call fcn.004c6d76
xor eax, eax
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x158], 0
push 0x104
push 0
lea ecx, [ebp - 0x154]
push ecx
call fcn.004ca3c0
add esp, 0xc
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
mov ecx, dword [eax]
mov dword [ebp - 0x15c], ecx
push 0
push 0
lea edx, [ebp - 0x15c]
push edx
push 0x41c300
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x38]
call fcn.00403570
mov byte [ebp - 4], 1
call fcn.0040d190
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x40
jne 0x41b5cc
push str.http:__dw.gptchrome.net_bropkg_GInstallerx64_161.exe
lea ecx, [ebp - 0x38]
call fcn.004054a0
jmp 0x41b5d9
push str.http:__dw.gptchrome.net_bropkg_GInstallerx86_161.exe
lea ecx, [ebp - 0x38]
call fcn.004054a0
lea ecx, [ebp - 0x38]
call fcn.00410060
movzx eax, al
test eax, eax
je 0x41b60f
mov byte [ebp - 0xd], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.004037a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00408170
mov al, byte [ebp - 0xd]
jmp 0x41b6f2
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x14], 0
jmp 0x41b628
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 5
jge 0x41b686
push 0
lea edx, [ebp - 0x154]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
lea eax, [ebp + 8]
push eax
call fcn.004077b0
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 2
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x48], esp
lea edx, [ebp - 0x38]
push edx
call fcn.00407a90
mov byte [ebp - 4], 1
call fcn.00414220
add esp, 0x24
mov byte [ebp - 0xe], al
movzx eax, byte [ebp - 0xe]
test eax, eax
je 0x41b679
jmp 0x41b686
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41b61f
mov dword [ebp - 0x50], 1
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp + 8]
call fcn.004085c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41b6d0
mov byte [ebp - 0xf], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.004037a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00408170
mov al, byte [ebp - 0xf]
jmp 0x41b6f2
mov byte [ebp - 0x10], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.004037a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00408170
mov al, byte [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x41c570
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4f6e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x808
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov ecx, 0x53683a
call fcn.004c6d76
mov ecx, dword [ebp + 8]
call fcn.00407780
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
push 0x800
push 0
lea ecx, [ebp - 0x814]
push ecx
call fcn.004ca3c0
add esp, 0xc
push 0x800
push 0
lea edx, [ebp - 0x814]
push edx
call fcn.004ca3c0
add esp, 0xc
push 0
push 0x17
lea eax, [ebp - 0x814]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41c620
lea ecx, [ebp - 0x814]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004084e0
push 0x4ff1d0
mov ecx, dword [ebp + 8]
call fcn.00408920
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret