joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c6b0
Capabilities:
Get file attributes
Map section object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0
movzx eax, byte [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 2
add eax, 2
mov dword [ebp - 0x4c], eax
movzx ecx, byte [ebp + 0xc]
neg ecx
sbb ecx, ecx
and ecx, 2
add ecx, 4
mov dword [ebp - 4], ecx
push 5
push 0x18
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.Ntdll.dll_NtQueryInformationFile]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jl 0x42c724
cmp dword [ebp - 0x3c], 0
jl 0x42c72b
jg 0x42c724
cmp dword [ebp - 0x40], 0x77000000
jbe 0x42c72b
xor eax, eax
jmp 0x42c7d9
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp + 8]
push edx
push 0x8000000
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x20]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.Ntdll.dll_NtCreateSection]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jl 0x42c7d6
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0x4c]
push ecx
push 0
push 1
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.Ntdll.dll_NtMapViewOfSection]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jl 0x42c7cc
movzx eax, byte [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0042bdb0
add esp, 0x10
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x42c7cc
mov ecx, dword [ebp - 0x14]
push ecx
push 0xffffffffffffffff
call dword [sym.imp.Ntdll.dll_NtUnmapViewOfSection]
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.Ntdll.dll_NtClose]
mov eax, dword [ebp - 0x54]
mov esp, ebp
pop ebp
ret

Function at 0x42c930
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
xor eax, eax
mov word [ebp - 0x28], ax
xor ecx, ecx
mov word [ebp - 0x26], cx
mov dword [ebp - 0x24], 0
mov byte [ebp - 1], 1
mov dword [ebp - 0x4c], 0x18
mov edx, dword [ebp + 8]
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x40], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x4c]
push edx
push 0x80
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.Ntdll.dll_NtOpenFile]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jl 0x42c9c6
push 5
push 0x18
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.Ntdll.dll_NtQueryInformationFile]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jl 0x42c9bc
mov byte [ebp - 1], 0
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.Ntdll.dll_NtClose]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x42cd60
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0xc0000001
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040540f
add esp, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00431c40
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42cdcc
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00405562
add esp, 8
push 5
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x42cdba
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0040564f
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x42cde0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x4566e4]
xor eax, ebp
mov dword [ebp - 0x1c], eax
xor eax, eax
mov word [ebp - 0x14], ax
xor ecx, ecx
mov word [ebp - 0x12], cx
mov dword [ebp - 0x10], 0
xor edx, edx
mov word [ebp - 8], dx
xor eax, eax
mov word [ebp - 6], ax
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 8], 0
je 0x42ce44
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
cmp dword [eax + 4], 0
je 0x42ce44
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
movzx eax, word [edx + 2]
cmp eax, 8
je 0x42ce4e
mov eax, 0xc000000d
jmp 0x42cf8a
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], 0
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042cae0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x42cf87
mov dword [ebp - 0x440], 0x18
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x434], 0x40
lea edx, [ebp - 0x14]
mov dword [ebp - 0x438], edx
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0
push 0x10
push 3
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x440]
push ecx
push 0x100001
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.Ntdll.dll_NtOpenFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x42cf87
lea eax, [ebp - 0x420]
mov dword [ebp - 0x444], eax
push 0
lea ecx, [ebp - 8]
push ecx
push 1
push 0x25
push 0x400
mov edx, dword [ebp - 0x444]
push edx
lea eax, [ebp - 0x428]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.Ntdll.dll_NtQueryDirectoryFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x42cf77
mov edx, dword [ebp - 0x444]
mov eax, dword [edx + 0x38]
and eax, 0x10
jne 0x42cf70
push 8
mov ecx, dword [ebp - 0x444]
add ecx, 0x60
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov ecx, dword [eax + 4]
push ecx
call fcn.004057e0
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
mov ecx, 8
mov word [eax], cx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov dword [edx + 4], eax
mov dword [ebp - 0xc], 0
jmp 0x42cf77
mov dword [ebp - 0x18], 0xc00000ba
cmp dword [ebp - 0xc], 0
je 0x42cf87
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.Ntdll.dll_NtClose]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00403b8c
mov esp, ebp
pop ebp
ret
Function at 0x42d650
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x40000
lea edx, [ebp - 4]
push edx
call dword [sym.imp.Ntdll.dll_NtOpenFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xc0000022
jne 0x42d6d5
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x80000
lea edx, [ebp - 4]
push edx
call dword [sym.imp.Ntdll.dll_NtOpenFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x42d6d5
mov eax, dword [ebp - 4]
push eax
call fcn.0042d110
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.Ntdll.dll_NtClose]
push 0
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x40000
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.Ntdll.dll_NtOpenFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x42d6f8
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.0042cfa0
add esp, 8
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.Ntdll.dll_NtClose]
mov edx, dword [ebp + 0xc]
and edx, 0x50010002
je 0x42d761
push 0
push 0
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x100
lea edx, [ebp - 4]
push edx
call dword [sym.imp.Ntdll.dll_NtOpenFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x42d761
push 0x28
push 0xff
lea eax, [ebp - 0x40]
push eax
call fcn.00405450
add esp, 0xc
mov dword [ebp - 0x20], 0x80
push 4
push 0x28
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.Ntdll.dll_NtSetInformationFile]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.Ntdll.dll_NtClose]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x42e1d0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [str..immunized]
push eax
call fcn.0040540f
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00431c40
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42e2ad
push 0x10000000
mov eax, dword [ebp + 8]
push eax
call fcn.0042de70
add esp, 8
mov ecx, dword [ebp - 8]
push ecx
call fcn.004016b0
add esp, 4
mov dword [ebp - 0xc], eax
mov edx, dword [str..immunized]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040537c
add esp, 8
test eax, eax
jne 0x42e269
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov word [edx], cx
push 1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x42e267
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x42e299
mov edx, dword [str..immunized]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.00405562
add esp, 8
push 1
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x42e299
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0040564f
add esp, 4
jmp 0x42e2b4
mov dword [ebp - 4], 8
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x42e2e0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.0040bcb0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push 0x10000
lea ecx, [ebp - 4]
push ecx
call fcn.0042e2c0
add esp, 0xc
mov dword [ebp - 0x100c], eax
cmp dword [ebp - 0x100c], 0
jl 0x42e3c8
lea edx, [ebp - 0x1008]
mov dword [ebp - 0x1018], edx
push 0x1000
push 0
lea eax, [ebp - 0x1008]
push eax
call fcn.00405450
add esp, 0xc
mov ecx, dword [ebp - 0x1018]
mov byte [ecx], 1
mov edx, dword [ebp + 8]
push edx
call fcn.00401650
add esp, 4
push eax
mov eax, dword [ebp - 0x1018]
add eax, 0xc
push eax
call fcn.00405590
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x1018]
add edx, 0xc
push edx
call fcn.00405562
add esp, 8
mov eax, dword [ebp - 0x1018]
add eax, 0xc
push eax
call fcn.0040540f
add esp, 4
shl eax, 1
mov ecx, dword [ebp - 0x1018]
mov dword [ecx + 8], eax
push 0xa
push 0x1000
mov edx, dword [ebp - 0x1018]
push edx
lea eax, [ebp - 0x1014]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.Ntdll.dll_NtSetInformationFile]
mov dword [ebp - 0x100c], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.Ntdll.dll_NtClose]
mov eax, dword [ebp - 0x100c]
mov esp, ebp
pop ebp
ret
Function at 0x42e530
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0x1000
mov eax, dword [ebp + 8]
push eax
push 0x80
lea ecx, [ebp - 4]
push ecx
call fcn.0042e2c0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x42e5b8
mov edx, dword [ebp - 8]
push edx
push 8
call fcn.004011a0
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.Ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0xc000009a
cmp dword [ebp - 0x10], 0
je 0x42e5ae
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.Ntdll.dll_NtQueryInformationFile]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.Ntdll.dll_NtClose]
cmp dword [ebp - 0xc], 0
jge 0x42e5e3
cmp dword [ebp - 0x10], 0
je 0x42e5dc
mov edx, dword [ebp - 0x10]
push edx
push 0
call fcn.004011a0
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.Ntdll.dll_RtlFreeHeap]
mov dword [ebp - 0x10], 0
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x42e930
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov dword [ebp - 0x68], 0x44
push 0x40
push 0
lea eax, [ebp - 0x64]
push eax
call fcn.00405450
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040540f
add esp, 4
add eax, 3
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 4], 1
jmp 0x42e97f
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [0x4592e8]
jge 0x42e9ab
mov ecx, dword [ebp - 4]
mov edx, dword [0x4592f0]
mov eax, dword [edx + ecx*4]
push eax
call fcn.0040540f
add esp, 4
mov ecx, dword [ebp - 0x20]
lea edx, [ecx + eax + 3]
mov dword [ebp - 0x20], edx
jmp 0x42e976
mov eax, dword [ebp - 0x20]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040565a
add esp, 4
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x42e9e3
mov eax, 8
jmp 0x42eab1
mov ecx, dword [ebp + 8]
push ecx
push 0x451db8
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0xc]
lea ecx, [eax + edx*2]
push ecx
call fcn.004054ca
add esp, 0xc
add eax, dword [ebp - 0x6c]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 4], 1
jmp 0x42ea16
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [0x4592e8]
jge 0x42ea4d
mov ecx, dword [ebp - 4]
mov edx, dword [0x4592f0]
mov eax, dword [edx + ecx*4]
push eax
push str.__s_
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0xc]
lea eax, [edx + ecx*2]
push eax
call fcn.004054ca
add esp, 0xc
add eax, dword [ebp - 0x6c]
mov dword [ebp - 0x6c], eax
jmp 0x42ea0d
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x68]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x42ea93
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42ea9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x74]
push edx
call fcn.0040564f
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x42eac0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x4566e4]
xor eax, ebp
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.AUTOEXEC_08X
lea eax, [ebp - 0x90]
push eax
call fcn.004054ca
add esp, 0xc
lea ecx, [ebp - 0x90]
push ecx
push 0x1000
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42eb47
push 0
push 0
push 0
push 6
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42eb47
push 0x800
mov eax, dword [ebp - 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00403b8c
mov esp, ebp
pop ebp
ret

Function at 0x42eb70
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4566e4]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 8]
push eax
push 0x76
call fcn.004327b0
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x42ec82
push 0x104
lea ecx, [ebp - 0x228]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.64.exe
lea edx, [ebp - 0x228]
push edx
call fcn.004016b0
add esp, 4
push eax
call fcn.00405590
add esp, 8
push 0
push 0
push 2
push 0
push 1
push 0x10000000
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x42ec3a
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
je 0x42ec30
mov dword [ebp - 0xc], 0x70
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
jne 0x42ec48
call fcn.0042eac0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x42ec6d
lea ecx, [ebp - 0x228]
push ecx
call fcn.0042e930
add esp, 4
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x10]
push eax
push 0
mov ecx, dword [0x45a5e0]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x42ec8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00403b8c
mov esp, ebp
pop ebp
ret
Function at 0x42f460
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov byte [ebp - 1], 0
movzx eax, byte [0x45a868]
test eax, eax
je 0x42f479
mov al, 1
jmp 0x42f4d4
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042f070
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42f4d1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x42f4b2
mov eax, dword [ebp - 0xc]
and eax, 0x10
je 0x42f4b2
mov dword [ebp - 0x14], 1
jmp 0x42f4b9
mov dword [ebp - 0x14], 0
mov cl, byte [ebp - 0x14]
mov byte [ebp - 1], cl
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040564f
add esp, 4
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x430a20
Capabilities:
Map section object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 8], 0
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 0
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xe0010057
mov edx, dword [ebp + 8]
push edx
push 1
lea eax, [ebp - 0xc]
push eax
call fcn.0042e2c0
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jl 0x430b10
mov ecx, dword [ebp - 0xc]
push ecx
push 0x8000000
push 2
lea edx, [ebp - 0x20]
push edx
push 0
push 4
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.Ntdll.dll_NtCreateSection]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jl 0x430b06
push 2
push 0
push 1
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.Ntdll.dll_NtMapViewOfSection]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jl 0x430afc
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004307b0
add esp, 0x14
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0xffffffffffffffff
call dword [sym.imp.Ntdll.dll_NtUnmapViewOfSection]
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.Ntdll.dll_NtClose]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.Ntdll.dll_NtClose]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x430b20
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x4566e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x438], 0
mov byte [ebp - 0x431], 0
mov byte [ebp - 0x215], 0
mov eax, dword [ebp + 8]
push eax
push str.SoftwareAvgAvg_u
lea ecx, [ebp - 0x210]
push ecx
call fcn.004054ca
add esp, 0xc
lea edx, [ebp - 0x438]
push edx
push 1
push 0
lea eax, [ebp - 0x210]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x430c9d
mov dword [ebp - 0x214], 0x20a
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x430]
push edx
push 0
push 0
push str.AvgDir
mov eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x430be0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x430]
push edx
call fcn.00430880
add esp, 0xc
mov byte [ebp - 0x431], al
mov eax, dword [ebp + 8]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0xa
je 0x430c00
cmp dword [ebp - 0x43c], 0x7dc
je 0x430c00
jmp 0x430c43
push 0x104
lea ecx, [ebp - 0x430]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.driversAVG
lea edx, [ebp - 0x430]
push edx
call fcn.00405562
add esp, 8
mov eax, dword [ebp + 0x10]
push eax
push 0
lea ecx, [ebp - 0x430]
push ecx
call fcn.00430880
add esp, 0xc
mov byte [ebp - 0x215], al
jmp 0x430c90
mov dword [ebp - 0x214], 0x20a
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x430]
push eax
push 0
push 0
push str.AvgAllUsersDir
mov ecx, dword [ebp - 0x438]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x430c90
mov edx, dword [ebp + 0x10]
push edx
push 0
lea eax, [ebp - 0x430]
push eax
call fcn.00430880
add esp, 0xc
mov byte [ebp - 0x215], al
mov ecx, dword [ebp - 0x438]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx edx, byte [ebp - 0x431]
test edx, edx
je 0x430cbf
movzx eax, byte [ebp - 0x215]
test eax, eax
je 0x430cbf
mov dword [ebp - 0x440], 1
jmp 0x430cc9
mov dword [ebp - 0x440], 0
mov al, byte [ebp - 0x440]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403b8c
mov esp, ebp
pop ebp
ret