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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4e106c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x11c]
push edi
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
mov edi, ecx
mov dword [ebp - 0x10c], 0x104
mov ebx, 3
mov dword [ebp - 0x110], 1
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
call esi
test eax, eax
jne 0x453a4e
push edi
push str._sConnection
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push 0x103
push eax
call fcn.0044c3c6
add esp, 0x14
lea eax, [ebp - 0x118]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x11c]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x453a46
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x110], 4
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x10c], 4
push eax
push 0
push str.MediaSubType
push dword [ebp - 0x118]
call edi
test eax, eax
jne 0x453a3e
push 0x104
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x110], 1
push eax
mov dword [ebp - 0x10c], 0x103
call fcn.00458260
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push str.PnpInstanceID
push dword [ebp - 0x118]
call edi
test eax, eax
jne 0x453a3e
mov eax, dword [ebp - 0x114]
cmp eax, 1
jne 0x453a2f
push ebx
lea eax, [ebp - 0x108]
push 0x4d1340
push eax
call fcn.0046b330
add esp, 0xc
test eax, eax
jne 0x4539fd
xor ebx, ebx
jmp 0x453a3e
mov eax, dword [ebp - 0x114]
cmp eax, 1
jne 0x453a2f
push 3
lea eax, [ebp - 0x108]
push 0x4d1340
push eax
call fcn.0046b330
add esp, 0xc
test eax, eax
je 0x453a29
mov ebx, 2
jmp 0x453a3e
mov eax, dword [ebp - 0x114]
xor ebx, ebx
cmp eax, 2
setne bl
lea ebx, [ebx*2 + 1]
push dword [ebp - 0x118]
call esi
push dword [ebp - 0x11c]
call esi
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00455912
mov esp, ebp
pop ebp
ret

Function at 0x4734e8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00473367
Function at 0x47d994
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x4e106c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x238], 0
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0xffffffff
jne 0x47d9d2
mov eax, dword [ebp - 0x238]
jmp 0x47db06
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
jne 0x47da15
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x238]
jmp 0x47db06
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp + 8]
jne 0x47da2e
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x238], eax
jmp 0x47da45
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x47da15
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x234], 0
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0xffffffff
jne 0x47da7c
mov eax, dword [ebp - 0x238]
jmp 0x47db06
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
jne 0x47dab2
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x238]
jmp 0x47db06
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp - 0x238]
jne 0x47dadd
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00406fd6
jmp 0x47daf4
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x47dab2
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455912
mov esp, ebp
pop ebp
ret
Function at 0x47dfdd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7fba
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4e106c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 4], 0
and dword [ebp - 0x18], 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.00407079
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
push eax
call fcn.0047e127
pop ecx
lea ecx, [ebp - 0x10]
call fcn.004026c4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x47e06a
mov eax, dword [ebp - 0x14]
and eax, 0x4800
je 0x47e06a
and dword [ebp - 0x1c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00405d4a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405d4a
mov eax, dword [ebp - 0x1c]
jmp 0x47e118
lea eax, [ebp - 0x10]
push eax
call fcn.0047e175
pop ecx
lea eax, [ebp - 0x10]
push eax
call fcn.0047ed7f
pop ecx
lea ecx, [ebp - 0x10]
call fcn.004070ef
movzx eax, al
test eax, eax
je 0x47e0b1
mov dword [ebp - 0x20], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00405d4a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405d4a
mov eax, dword [ebp - 0x20]
jmp 0x47e118
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
lea eax, [ebp - 0x10]
push eax
call fcn.00407079
call fcn.0047dfdd
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x47e0f6
and dword [ebp - 0x28], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00405d4a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405d4a
mov eax, dword [ebp - 0x28]
jmp 0x47e118
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00405d4a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405d4a
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x47e7cf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x4e106c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x420], 0
and dword [ebp - 0x428], 0
xor eax, eax
mov word [ebp - 0x418], ax
push 0x410
push 0
lea eax, [ebp - 0x416]
push eax
call fcn.00458260
add esp, 0xc
mov dword [ebp - 0x424], 0x208
lea eax, [ebp - 0x418]
mov dword [ebp - 0x41c], eax
and dword [ebp - 0x42c], 0
cmp dword [ebp + 0xc], 0
jne 0x47e83a
push 0x57
pop eax
jmp 0x47e9e3
lea eax, [ebp - 0x428]
push eax
push dword [ebp + 0x14]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0
je 0x47e86c
mov eax, dword [ebp - 0x420]
jmp 0x47e9e3
mov dword [ebp - 0x424], 0x208
push 0x412
push 0
lea eax, [ebp - 0x418]
push eax
call fcn.00458260
add esp, 0xc
lea eax, [ebp - 0x418]
mov dword [ebp - 0x41c], eax
and dword [ebp - 0x42c], 0
and dword [ebp - 0x420], 0
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x41c]
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0xea
jne 0x47e968
mov eax, dword [ebp - 0x42c]
inc eax
mov dword [ebp - 0x42c], eax
cmp dword [ebp - 0x42c], 4
jbe 0x47e8fe
mov dword [ebp - 0x420], 8
jmp 0x47e968
mov eax, dword [ebp - 0x424]
add eax, 0x209
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x41c], 0
je 0x47e939
lea eax, [ebp - 0x418]
cmp eax, dword [ebp - 0x41c]
je 0x47e939
push dword [ebp - 0x41c]
call fcn.0045b65c
pop ecx
and dword [ebp - 0x41c], 0
mov eax, dword [ebp - 0x424]
shl eax, 1
push eax
call fcn.0045f364
pop ecx
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x47e963
mov dword [ebp - 0x420], 8
jmp 0x47e968
jmp 0x47e8a6
cmp dword [ebp - 0x420], 0
jne 0x47e98a
cmp dword [ebp - 0x41c], 0
je 0x47e98a
push dword [ebp - 0x41c]
mov ecx, dword [ebp + 0x18]
call fcn.00406eb9
jmp 0x47e997
push 0x4ba06c
mov ecx, dword [ebp + 0x18]
call fcn.00406eb9
cmp dword [ebp - 0x41c], 0
je 0x47e9c1
lea eax, [ebp - 0x418]
cmp eax, dword [ebp - 0x41c]
je 0x47e9c1
push dword [ebp - 0x41c]
call fcn.0045b65c
pop ecx
and dword [ebp - 0x41c], 0
cmp dword [ebp - 0x428], 0
je 0x47e9dd
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x428], 0
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455912
mov esp, ebp
pop ebp
ret
Function at 0x47ec3f
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a80fd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4e106c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0x14], 0
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0040700c
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47eca0
mov dword [ebp - 0x18], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00405d4a
mov eax, dword [ebp - 0x18]
jmp 0x47ed70
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x47ed5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x47ed5a
lea eax, [ebp - 0x10]
push eax
call fcn.0047ed7f
pop ecx
lea ecx, [ebp - 0x10]
call fcn.004070ef
movzx eax, al
test eax, eax
je 0x47ecf7
and dword [ebp - 0x1c], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00405d4a
mov eax, dword [ebp - 0x1c]
jmp 0x47ed70
lea ecx, [ebp - 0x10]
call fcn.004026c4
push eax
call fcn.0047ec3f
pop ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x47ed24
and dword [ebp - 0x20], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00405d4a
mov eax, dword [ebp - 0x20]
jmp 0x47ed70
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x47ed5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x47ed5a
and dword [ebp - 0x24], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00405d4a
mov eax, dword [ebp - 0x24]
jmp 0x47ed70
mov dword [ebp - 0x28], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00405d4a
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x47f081
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8186
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x4e106c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0x814], 0
and dword [ebp - 0x818], 0
xor eax, eax
mov word [ebp - 0x810], ax
push 0x3fe
push 0
lea eax, [ebp - 0x80e]
push eax
call fcn.00458260
add esp, 0xc
xor eax, eax
mov word [ebp - 0x410], ax
push 0x3fe
push 0
lea eax, [ebp - 0x40e]
push eax
call fcn.00458260
add esp, 0xc
mov dword [ebp - 0x824], 0x400
push 0
lea ecx, [ebp - 0x834]
call fcn.00406533
and dword [ebp - 4], 0
mov dword [ebp - 0x820], 0x20019
push dword [ebp - 0x820]
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_pathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x834]
call fcn.004065a2
mov dword [ebp - 0x814], eax
cmp dword [ebp - 0x814], 0
jne 0x47f225
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x810]
push eax
push 0x4b9e5c
lea ecx, [ebp - 0x834]
call fcn.00406629
mov dword [ebp - 0x814], eax
cmp dword [ebp - 0x814], 0
jne 0x47f184
mov dword [ebp - 0x81c], 1
jmp 0x47f18b
and dword [ebp - 0x81c], 0
mov eax, dword [ebp - 0x81c]
mov dword [ebp - 0x818], eax
cmp dword [ebp - 0x814], 0
je 0x47f225
lea ecx, [ebp - 0x834]
call fcn.0040656c
push dword [ebp - 0x820]
push str.SoftwareMicrosoftIE_SetupSetup
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x834]
call fcn.004065a2
mov dword [ebp - 0x814], eax
cmp dword [ebp - 0x814], 0
jne 0x47f225
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x810]
push eax
push 0x4b9ea4
lea ecx, [ebp - 0x834]
call fcn.00406629
mov dword [ebp - 0x814], eax
cmp dword [ebp - 0x814], 0
jne 0x47f212
mov dword [ebp - 0x828], 1
jmp 0x47f219
and dword [ebp - 0x828], 0
mov eax, dword [ebp - 0x828]
mov dword [ebp - 0x818], eax
cmp dword [ebp - 0x818], 0
je 0x47f2ab
push 0x200
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x814], eax
cmp dword [ebp - 0x814], 0
jle 0x47f2ab
push 0x4b9eb0
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call fcn.0045f75d
pop ecx
pop ecx
test eax, eax
je 0x47f29c
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0xc
push 0x4b9ecc
push 0x200
lea eax, [ebp - 0x410]
push eax
call fcn.0045f23e
add esp, 0x10
lea eax, [ebp - 0x410]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406eb9
mov eax, dword [ebp - 0x818]
mov dword [ebp - 0x838], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x834]
call fcn.00406559
mov eax, dword [ebp - 0x838]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455912
mov esp, ebp
pop ebp
ret
Function at 0x47f2e5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4e106c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
and dword [ebp - 0x214], 0
mov ecx, dword [ebp + 8]
call fcn.00406e40
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push str.http_shellopencommand
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x47f3dd
and dword [ebp - 0x21c], 0
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea eax, [ebp - 0x20a]
push eax
call fcn.00458260
add esp, 0xc
mov dword [ebp - 0x218], 0x208
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push 0x4b9dd4
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x214], eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x210], 0
cmp dword [ebp - 0x214], 0
jne 0x47f3dd
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0045fb80
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406eb9
xor eax, eax
inc eax
jmp 0x47f3df
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455912
mov esp, ebp
pop ebp
ret
Function at 0x47fb34
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x38], ecx
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x47fb54
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47fb59
jmp 0x47fcb2
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x47fb83
cmp dword [ebp - 4], 0xffffffff
jne 0x47fb88
jmp 0x47fcb2
and dword [ebp - 8], 0
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 0x1c], 0
jne 0x47fcaa
cmp dword [ebp - 8], 0
jbe 0x47fcaa
cmp dword [ebp - 8], 0x2800
ja 0x47fcaa
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
call fcn.00455e19
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x47fbe4
jmp 0x47fcb2
mov eax, dword [ebp - 0x14]
add eax, 0x40
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
call fcn.00455e19
pop ecx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x47fc19
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x2c]
call fcn.00455c15
pop ecx
jmp 0x47fcb2
push dword [ebp - 0x14]
push 0
push dword [ebp - 0xc]
call fcn.00458260
add esp, 0xc
push dword [ebp - 0x18]
push 0
push dword [ebp - 0x10]
call fcn.00458260
add esp, 0xc
and dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47fc8c
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 8]
jne 0x47fc8c
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
push 0x4ba400
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call fcn.004088ab
add esp, 0x14
movzx eax, al
test eax, eax
je 0x47fc8c
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call fcn.0048f094
pop ecx
pop ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
push dword [ebp - 0x30]
call fcn.00455c15
pop ecx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
push dword [ebp - 0x34]
call fcn.00455c15
pop ecx
xor eax, eax
jne 0x47fb41
cmp dword [ebp - 4], 0
je 0x47fccb
cmp dword [ebp - 4], 0xffffffff
je 0x47fccb
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 4], 0
mov esp, ebp
pop ebp
ret 8
Function at 0x47ff0a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a829f
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x4e106c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x444], ecx
xor eax, eax
mov word [ebp - 0x428], ax
push 0x208
push 0
lea eax, [ebp - 0x426]
push eax
call fcn.00458260
add esp, 0xc
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x208
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.00458260
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov eax, dword [ebp - 0x444]
cmp dword [eax + 0x20], 0
jne 0x47ffbd
mov ecx, dword [ebp - 0x444]
add ecx, 0x20
call fcn.00443b3c
mov eax, dword [ebp - 0x444]
cmp dword [eax + 0x20], 0
je 0x48007a
cmp dword [ebp - 0x444], 0
je 0x47ffe7
mov eax, dword [ebp - 0x444]
add eax, 4
mov dword [ebp - 0x448], eax
jmp 0x47ffee
and dword [ebp - 0x448], 0
push dword [ebp - 0x448]
mov eax, dword [ebp - 0x444]
mov eax, dword [eax + 0x20]
mov ecx, dword [ebp - 0x444]
mov eax, dword [eax]
mov ecx, dword [ecx + 0x20]
call dword [eax + 4]
lea ecx, [ebp - 0x440]
call fcn.004022ad
and dword [ebp - 4], 0
lea eax, [ebp - 0x440]
push eax
mov ecx, dword [ebp - 0x444]
call fcn.00480093
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x444]
add ecx, 0x28
call fcn.00406fd6
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x440]
call fcn.00406ddd
push eax
mov eax, dword [ebp - 0x444]
mov eax, dword [eax + 0x20]
mov ecx, dword [ebp - 0x444]
mov eax, dword [eax]
mov ecx, dword [ecx + 0x20]
call dword [eax + 0xc]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.004020b1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455912
mov esp, ebp
pop ebp
ret
Function at 0x48084e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
and dword [eax], 0
and dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 8], ecx
cmp dword [ebp + 0x10], 0
jl 0x480875
cmp dword [ebp + 0x10], 3
jl 0x48087c
mov eax, dword [ebp - 4]
and dword [eax + 8], 0
cmp dword [ebp + 8], 0
je 0x48088b
cmp dword [ebp + 8], 0x1869f
jbe 0x48089d
mov eax, dword [ebp + 8]
add eax, 0xf4240
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x48094d
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x10], ecx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
jne 0x4808de
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0x1e8480
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x48094d
push 0
push 0
push dword [ebp - 4]
push 0x4805a0
push 0
push 0
call fcn.0045fd24
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18], 0
jne 0x480923
push 0
push 0
push dword [ebp - 4]
push 0x4805a0
push 0
push 0
call fcn.0045fd24
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18], 0
jne 0x48093e
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0x2dc6c0
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x48094d
mov dword [ebp - 8], 1
xor eax, eax
jne 0x480860
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4809c1
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a82cf
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4e106c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
and dword [ebp - 0x2c], 0
cmp dword [ebp + 8], 0
jne 0x480a02
mov dword [ebp - 0x2c], 0xf4240
jmp 0x480a88
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x480a1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0x1e8480
mov dword [ebp - 0x2c], eax
jmp 0x480a88
lea ecx, [ebp - 0x28]
call fcn.004022ad
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
call fcn.0047fb34
lea ecx, [ebp - 0x28]
call fcn.00401e75
movzx eax, al
test eax, eax
je 0x480a65
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0x2dc6c0
mov dword [ebp - 0x2c], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004020b1
jmp 0x480a88
push dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.0047f8d6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004020b1
xor eax, eax
jne 0x4809f0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455912
mov esp, ebp
pop ebp
ret 8
Function at 0x48138e
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4e106c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x114], 0
and dword [ebp - 0x108], 0
lea eax, [ebp - 0x108]
push eax
push 0x20019
push 0
push 0x4bb060
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x481471
and dword [ebp - 0x110], 0
mov byte [ebp - 0x104], 0
push 0xff
push 0
lea eax, [ebp - 0x103]
push eax
call fcn.00458260
add esp, 0xc
mov dword [ebp - 0x10c], 0x100
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push str.KAVINSTALLNEEDREBOOT
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x48145b
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push str.KAV7NEEDREBOOT
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x481465
mov dword [ebp - 0x114], 1
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455912
mov esp, ebp
pop ebp
ret