joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b470
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov ecx, 0x546d80
call fcn.00501f54
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40b4a2
lea ecx, [ebp + 8]
call fcn.0040d100
jmp 0x40b50d
push 0xf01ff
lea ecx, [ebp + 8]
call fcn.0040d2e0
push eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40b4d7
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [ebp + 8]
call fcn.0040d100
jmp 0x40b50d
lea edx, [ebp - 0x24]
push edx
push 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [ebp + 8]
call fcn.0040d100
mov esp, ebp
pop ebp
ret

Function at 0x40b520
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502ccd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
mov ecx, 0x546d80
call fcn.00501f54
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x40b612
lea eax, [ebp - 0x18]
push eax
call fcn.00408260
add esp, 4
mov dword [ebp - 4], 0
push 0x208
push 0
lea ecx, [ebp - 0x224]
push ecx
call fcn.004d75f0
add esp, 0xc
mov dword [ebp - 0x1c], 0x104
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040d1a0
lea ecx, [ebp - 0x18]
call fcn.0040d2a0
movzx edx, al
test edx, edx
jne 0x40b5fb
lea ecx, [ebp - 0x14]
call fcn.0040d2a0
movzx eax, al
test eax, eax
jne 0x40b5fb
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.0040c860
add esp, 8
movzx eax, al
test eax, eax
je 0x40b5fb
mov byte [ebp - 0xd], 1
lea ecx, [ebp - 0x14]
call fcn.0040d100
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040d100
mov al, byte [ebp - 0xd]
jmp 0x40b614
lea ecx, [ebp - 0x14]
call fcn.0040d100
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040d100
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40b630
Capabilities:
Check if file exists
Create service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5030c5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov dword [ebp - 4], 1
mov ecx, 0x546d80
call fcn.00501f54
push 0x52c84c
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.0040c9e0
add esp, 0xc
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov byte [ebp - 4], 2
push str.GptChromeService.exe
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.0040c9e0
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.0040d100
lea ecx, [ebp - 0x10]
call fcn.0040d2e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b6de
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0040d100
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040d100
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0040d100
jmp 0x40b812
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40b722
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0040d100
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040d100
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0040d100
jmp 0x40b812
lea edx, [ebp + 0xc]
push edx
lea ecx, [ebp - 0x18]
call fcn.0040d220
lea ecx, [ebp - 0x10]
call fcn.0040d2e0
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x18]
call fcn.0040d2e0
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x18]
call fcn.0040d2e0
mov dword [ebp - 0x34], eax
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x2c]
push eax
push 1
push 2
push 0x110
push 0xf01ff
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40b7c1
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [ebp - 0x18]
call fcn.0040d100
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0040d100
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040d100
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0040d100
jmp 0x40b812
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [ebp - 0x18]
call fcn.0040d100
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0040d100
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040d100
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0040d100
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40b820
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5030ed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov dword [ebp - 4], 0
mov ecx, 0x546d80
call fcn.00501f54
call fcn.00407930
movzx eax, al
test eax, eax
je 0x40b89f
push 0
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x10], esp
lea ecx, [ebp + 8]
call fcn.0040d2e0
push eax
mov ecx, esi
call fcn.004051d0
call fcn.00419440
add esp, 0x1c
push 1
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x14], esp
lea ecx, [ebp + 8]
call fcn.0040d2e0
push eax
mov ecx, esi
call fcn.004051d0
call fcn.00419440
add esp, 0x1c
jmp 0x40b8d7
push 0
push 0
push 0
lea ecx, [ebp + 8]
call fcn.0040d2e0
push eax
push 0x52c850
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
push 0
push 0
lea ecx, [ebp + 8]
call fcn.0040d2e0
push eax
push str.taskbarpin
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040d100
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40bba0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov ecx, 0x546d80
call fcn.00501f54
mov dword [ebp - 0x18], 0xffffffff
mov byte [ebp - 1], 1
cmp dword [ebp + 8], 0
jne 0x40bbcb
xor al, al
jmp 0x40bcd0
mov dword [ebp - 0x2c], 0
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x258], 0x22c
lea eax, [ebp - 0x258]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x40bcb9
mov edx, dword [ebp + 8]
mov dword [ebp - 0xc], edx
lea eax, [ebp - 0x234]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov dx, word [ecx]
mov word [ebp - 0xe], dx
mov eax, dword [ebp - 0xc]
cmp dx, word [eax]
jne 0x40bc5b
cmp word [ebp - 0xe], 0
je 0x40bc52
mov ecx, dword [ebp - 8]
mov dx, word [ecx + 2]
mov word [ebp - 0x10], dx
mov eax, dword [ebp - 0xc]
cmp dx, word [eax + 2]
jne 0x40bc5b
add dword [ebp - 8], 4
add dword [ebp - 0xc], 4
cmp word [ebp - 0x10], 0
jne 0x40bc16
mov dword [ebp - 0x1c], 0
jmp 0x40bc63
sbb ecx, ecx
or ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
jne 0x40bca0
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x28], eax
push 1
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp eax, 1
je 0x40bca0
mov byte [ebp - 1], 0
jmp 0x40bcb9
lea eax, [ebp - 0x258]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov dword [ebp - 0x20], eax
jmp 0x40bbfd
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0xffffffff
jne 0x40bccd
xor al, al
jmp 0x40bcd0
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x412cf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov ecx, 0x54638b
call fcn.00501f54
xor eax, eax
jne 0x412d03
cmp dword [ebp + 0xc], 0
je 0x412d16
mov dword [ebp - 0xc], 1
jmp 0x412d1d
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x412d30
mov eax, 0xd
jmp 0x412d85
xor edx, edx
jne 0x412d07
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 0x412d43
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 0x413ae0
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov ecx, 0x546d80
call fcn.00501f54
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 0x413b33
push 0
mov ecx, dword [ebp + 8]
call fcn.00414ba0
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
jmp 0x413ba7
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
call fcn.00414c30
add esp, 8
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
call fcn.00414660
push eax
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 0x413b87
push 0
mov ecx, dword [ebp + 8]
call fcn.00414ba0
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
lea ecx, [ebp - 8]
call fcn.00414680
mov eax, dword [ebp + 8]
jmp 0x413ba7
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00414bd0
mov edx, dword [ebp - 4]
or edx, 1
mov dword [ebp - 4], edx
lea ecx, [ebp - 8]
call fcn.00414680
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x413bb0
Capabilities:
Hash data via bcrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50347d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov dword [ebp - 0x1c], 0
mov ecx, 0x546d80
call fcn.00501f54
mov dword [ebp - 0x30], 0x10
mov dword [ebp - 0x34], 4
lea ecx, [ebp - 0x10]
call fcn.00414cb0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
push 0
push 0
push 0x52d6bc
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
jl 0x413cc2
mov dword [ebp - 0x14], 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.bcrypt.dll_BCryptCreateHash]
test eax, eax
jl 0x413cb6
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.bcrypt.dll_BCryptHashData]
test eax, eax
jl 0x413cac
push 4
lea eax, [ebp - 0x24]
push eax
call fcn.00414ce0
add esp, 8
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00414d60
lea ecx, [ebp - 0x24]
call fcn.00414680
lea ecx, [ebp - 0x10]
call fcn.00414660
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], edx
push 0
push 0x10
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.bcrypt.dll_BCryptFinishHash]
test eax, eax
jge 0x413cac
push 0
lea ecx, [ebp - 0x10]
call fcn.00414720
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.bcrypt.dll_BCryptDestroyHash]
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00414bd0
mov edx, dword [ebp - 0x1c]
or edx, 1
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00414680
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4172b0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5035cd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov dword [ebp - 0x10], ecx
mov ecx, 0x546d51
call fcn.00501f54
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
push 0x5322c8
mov ecx, dword [ebp - 0x14]
call fcn.00403f50
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
mov dword [ebp - 0x18], ecx
push 0x5322c8
mov ecx, dword [ebp - 0x18]
call fcn.00403f50
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x30], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x34], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4176a0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov ecx, 0x546d80
call fcn.00501f54
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 0x417869
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 0x417718
mov dword [ebp - 0x10], 0x64
mov dword [ebp - 8], 0
jmp 0x41772a
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x10]
jae 0x417869
mov dword [ebp - 4], 0
push 0x104
push 0
lea edx, [ebp - 0x228]
push edx
call fcn.004d75f0
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.004d75f0
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
push str._04u
push 0x104
lea edx, [ebp - 0x124]
push edx
call fcn.00418850
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 0x4177c0
jmp 0x417721
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 0x4177f3
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x417721
lea edx, [ebp - 0x228]
push edx
mov ecx, dword [ebp + 8]
call fcn.00403d50
push eax
call fcn.004e145e
add esp, 8
test eax, eax
je 0x41781e
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x417721
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 0x52e054
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41785a
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 0x417869
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x417721
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 0x4190f0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5035cd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.0040c7b0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
add edx, 0x18
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 8]
add eax, 0x18
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0040c7b0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x30]
mov dword [ecx + 0x30], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x34]
mov dword [ecx + 0x34], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x38]
mov dword [ecx + 0x38], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x41a430
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5038bd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov dword [ebp - 0x10], ecx
mov ecx, 0x546d80
call fcn.00501f54
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.00407a40
add esp, 4
push 0x52e708
call fcn.00407b80
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x52e730
call fcn.0040bba0
add esp, 4
push 0x52e750
lea ecx, [ebp - 0x34]
call fcn.00403f50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00403d50
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x18]
push eax
push 0
push 0x469
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x14], 0
jmp 0x41a4f0
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0x14
jge 0x41a525
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
add ecx, 4
push ecx
call fcn.00409660
add esp, 4
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 4]
add ecx, 4
call fcn.0040d2e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41a523
jmp 0x41a525
jmp 0x41a4e7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00403eb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x41b280
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503a1d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov dword [ebp - 0x10], ecx
mov ecx, 0x546d80
call fcn.00501f54
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0041a430
push str.installerpkg
lea ecx, [ebp - 0x18]
call fcn.0040d120
mov dword [ebp - 4], 0
push 0x52e89c
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
add eax, 4
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.0040c9e0
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.0040caa0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.0040d100
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.0040d100
lea ecx, [ebp - 0x14]
call fcn.0040d2e0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
movzx edx, byte [ecx + 6]
test edx, edx
je 0x41b356
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
lea eax, [ebp - 0x14]
push eax
call fcn.0040d220
mov ecx, dword [ebp - 0x10]
call fcn.0041aa80
jmp 0x41b391
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
lea edx, [ebp - 0x14]
push edx
call fcn.0040d220
mov ecx, dword [ebp - 0x10]
call fcn.0041b060
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
lea eax, [ebp - 0x14]
push eax
call fcn.0040d220
mov ecx, dword [ebp - 0x10]
call fcn.0041aa80
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
mov dword [edx + 8], 1
mov ecx, dword [ebp - 0x10]
call fcn.0041eee0
push 0
push 0
push 0x46c
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040d100
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x41c5f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503c0d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], 0
mov ecx, 0x546d80
call fcn.00501f54
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 4]
add edx, 4
push edx
call fcn.0040d220
lea eax, [ebp - 0x7c]
push eax
call fcn.004093a0
add esp, 8
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
push ecx
call fcn.00408d80
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
mov byte [ebp - 4], 1
push 0x52eca8
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.0040c9e0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.0040d100
lea ecx, [ebp - 0x14]
call fcn.0040d2e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41c6d3
push 0x52c04a
mov ecx, dword [ebp + 8]
call fcn.00403f50
mov edx, dword [ebp - 0x10]
or edx, 1
mov dword [ebp - 0x10], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040d100
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00403eb0
mov eax, dword [ebp + 8]
jmp 0x41c7ee
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
lea eax, [ebp - 0x14]
push eax
call fcn.0040d220
lea ecx, [ebp - 0x64]
push ecx
call fcn.004089a0
add esp, 8
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x64]
call fcn.0040c6b0
movzx edx, al
test edx, edx
je 0x41c749
push 0x52c04b
mov ecx, dword [ebp + 8]
call fcn.00403f50
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x64]
call fcn.00403eb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040d100
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00403eb0
mov eax, dword [ebp + 8]
jmp 0x41c7ee
push 1
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x3c], esp
mov dword [ebp - 0x28], ecx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x40], esp
lea edx, [ebp - 0x7c]
push edx
call fcn.0040c7b0
mov eax, dword [ebp - 0x28]
push eax
call fcn.004087e0
add esp, 0x1c
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 5
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x48], esp
lea edx, [ebp - 0x64]
push edx
call fcn.0040c7b0
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 4
call fcn.00403980
add esp, 0x38
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x94]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403ee0
mov edx, dword [ebp - 0x10]
or edx, 1
mov dword [ebp - 0x10], edx
lea ecx, [ebp - 0x94]
call fcn.00403eb0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x64]
call fcn.00403eb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040d100
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00403eb0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4