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

Disassembly:
sub esp, 0x110
mov eax, dword [0x4243c8]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push esi
xor ebx, ebx
push 0xff
lea eax, [esp + 0x19]
push ebx
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x20], bl
call fcn.0040b3b0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push ebx
push str.SoftwareMicrosoftShared_ToolsATUVP
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], ebx
call esi
test eax, eax
jne 0x401bce
mov eax, dword [esp + 0x10]
push edi
lea edx, [esp + 0xc]
push edx
push 0x20019
push ebx
push str.FiltersFile
push eax
call esi
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jne 0x401aee
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push ebx
push str.Label
push eax
mov dword [esp + 0x28], 0x100
call edi
test eax, eax
jne 0x401ae3
lea ecx, [esp + 0x18]
push ecx
call fcn.004019f0
add esp, 4
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push 0x20019
push ebx
push str.FiltersProcess
push ecx
call esi
test eax, eax
jne 0x401b58
push 0x100
lea edx, [esp + 0x1c]
push ebx
push edx
mov dword [esp + 0x1c], 0x100
call fcn.0040b3b0
mov edx, dword [esp + 0x18]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebx
push str.Label
push edx
call edi
test eax, eax
jne 0x401b4d
lea eax, [esp + 0x18]
push eax
call fcn.004019f0
add esp, 4
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xc]
push edx
push 0x20019
push ebx
push 0x41c9d8
push eax
call esi
test eax, eax
jne 0x401bc2
push 0x100
lea ecx, [esp + 0x1c]
push ebx
push ecx
mov dword [esp + 0x1c], 0x100
call fcn.0040b3b0
mov ecx, dword [esp + 0x18]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push str.Label
push ecx
call edi
test eax, eax
jne 0x401bb7
lea edx, [esp + 0x18]
push edx
call fcn.004019f0
add esp, 4
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [esp + 0x114]
pop esi
pop ebx
xor ecx, esp
call fcn.0040b399
add esp, 0x110
ret
Function at 0x403000
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov eax, 0x800c
call fcn.0040b4f0
mov eax, dword [0x4243c8]
xor eax, esp
mov dword [esp + 0x8008], eax
push edi
mov edi, dword [esp + 0x8014]
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4030f7
mov ecx, dword [edi + 4]
push esi
mov esi, dword [ecx]
push ebx
cmp esi, dword [edi + 4]
je 0x4030f5
push 0x8000
lea edx, [esp + 0x16]
push 0
push edx
mov word [esp + 0x1c], 0
call fcn.0040b3b0
add esp, 0xc
cmp esi, dword [edi + 4]
jne 0x403081
call fcn.0040b753
mov eax, dword [esi + 0x10]
push eax
lea ecx, [esp + 0x14]
push 0x4000
push ecx
call fcn.0040bbad
lea eax, [esp + 0x1c]
add esp, 0xc
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4030a0
sub eax, edx
sar eax, 1
cmp esi, dword [edi + 4]
mov ebx, eax
jne 0x4030c5
call fcn.0040b753
cmp esi, dword [edi + 4]
jne 0x4030c5
call fcn.0040b753
mov ecx, dword [esi + 0xc]
lea edx, [ebx + ebx + 2]
push edx
mov edx, dword [esi + 8]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, dword [edi + 4]
jne 0x4030ee
call fcn.0040b753
mov esi, dword [esi]
jmp 0x403053
pop ebx
pop esi
mov eax, dword [esp + 4]
test eax, eax
pop edi
je 0x403107
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x8008]
xor ecx, esp
call fcn.0040b399
add esp, 0x800c
ret
Function at 0x4034b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41a09b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4243c8]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov eax, dword [0x4243c8]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
mov esi, dword [esp + 0x228]
call fcn.004014b0
test al, al
je 0x4035d4
push 0x206
lea eax, [esp + 0x12]
push 0
push eax
mov word [esp + 0x18], 0
call fcn.0040b3b0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esp + eax*2 + 0xa], 0x5c
lea eax, [esp + eax*2 + 0xc]
je 0x403543
mov word [eax], 0x5c
mov eax, dword [0x4258bc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4258bc
call edx
add eax, 0x10
mov dword [esp + 8], eax
push esi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push str.__sregsvr32.exe____s___u__s
push ecx
mov dword [esp + 0x230], 0
call fcn.00403430
mov esi, dword [esp + 0x18]
mov edx, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
add esp, 0x10
or eax, ecx
jge 0x4035a2
push edx
lea ecx, [esp + 0xc]
call fcn.00402320
mov esi, dword [esp + 8]
push esi
call fcn.00407840
lea eax, [esi - 0x10]
add esp, 4
mov dword [esp + 0x220], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4035fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4035fa
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4035fa
push str.DllUnregisterServer
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4035f3
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0040b399
add esp, 0x21c
ret
Function at 0x4039e0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x41a1b8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4243c8]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, dword [esp + 0x78]
xor edi, edi
cmp esi, edi
je 0x403b23
cmp word [esi], di
je 0x403b23
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x403b23
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebp, eax
cmp ebp, edi
je 0x403b25
mov eax, dword [0x4258bc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4258bc
call edx
add eax, 0x10
mov dword [esp + 0x78], eax
push esi
lea eax, [esp + 0x7c]
push str.__s___UnregServer
push eax
mov dword [esp + 0x7c], edi
call fcn.00403430
push 0x40
xor eax, eax
lea ecx, [esp + 0x38]
push edi
push ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call fcn.0040b3b0
add esp, 0x18
mov dword [esp + 0x24], 0x44
call fcn.004037d0
mov ebx, dword [esp + 0x78]
mov esi, eax
cmp esi, edi
je 0x403ae9
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
push edi
push edi
push 0x10
push edi
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x403ae6
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x14]
push edx
call edi
mov eax, dword [esp + 0x18]
push eax
call edi
push esi
call edi
lea eax, [ebx - 0x10]
mov dword [esp + 0x70], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403b0d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
mov eax, edi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
Function at 0x404810
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x4243c8]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push ebp
mov ebp, dword [esp + 0x424]
push esi
mov esi, dword [esp + 0x424]
push edi
push 0x40e
lea eax, [esp + 0x16]
push 0
push eax
mov ebx, 0x80070490
mov word [esp + 0x1c], 0
call fcn.0040b3b0
add esp, 0xc
push 0x208
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.Config
lea edx, [esp + 0x14]
push edx
call edi
push esi
lea eax, [esp + 0x14]
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4048c0
lea eax, [esp + 0x10]
xor esi, esi
lea edx, [eax + 2]
jmp 0x4048a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4048a0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x14]
push edx
mov ecx, ebp
call fcn.00402860
mov eax, esi
jmp 0x4048c2
mov eax, ebx
mov ecx, dword [esp + 0x420]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040b399
add esp, 0x414
ret
Function at 0x404a50
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push 0xffffffffffffffff
push 0x41a380
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x4243c8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
test eax, eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], 0x80004005
jle 0x404b7a
mov edx, dword [0x4258bc]
mov eax, dword [edx + 0xc]
mov ecx, 0x4258bc
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x10], edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0
push 0
push 0x41d108
mov byte [esp + 0x2c], 1
call ebp
mov esi, eax
test esi, esi
je 0x404b21
push esi
lea ecx, [esp + 0x14]
call fcn.00402e00
test eax, eax
je 0x404b1d
push esi
push eax
push 0x41d108
call ebp
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x404aed
xor eax, eax
jmp 0x404b03
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404af2
sub eax, edx
sar eax, 1
js 0x404b13
cmp eax, dword [edi - 8]
jg 0x404b13
mov dword [edi - 0xc], eax
mov word [edi + eax*2], 0
jmp 0x404b21
push 0x80070057
call fcn.00401030
mov edi, dword [esp + 0x10]
cmp dword [edi - 0xc], 0
je 0x404b35
push 0x41d104
lea ecx, [esp + 0x14]
call fcn.00404990
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.004033a0
mov esi, dword [esp + 0x10]
push esi
push 0x41d108
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea eax, [esi - 0x10]
mov byte [esp + 0x20], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404b7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x404bb6
cmp dword [esp + 0x2c], 0
je 0x404b99
push str.DllRegisterServer
jmp 0x404b9e
push str.DllUnregisterServer
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404baf
call eax
mov dword [esp + 0x14], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [edi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404bda
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
Function at 0x404c00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41a3b0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4243c8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [0x4258bc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4258bc
mov dword [esp + 0x1c], 0
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
push ecx
push edx
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x20], esp
mov edi, esp
push esi
mov byte [esp + 0x30], 1
call fcn.00402240
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.004045f0
mov edi, eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x1c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404ca2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404cc3
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x405340
Capabilities:
Access peb ldr_data
Check if file exists
Get common file path
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x41a519
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4243c8]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4243c8]
xor eax, esp
push eax
lea eax, [esp + 0x438]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x44c]
xor esi, esi
push 0x40e
lea eax, [esp + 0x2a]
push esi
push eax
mov dword [esp + 0x44c], esi
mov word [esp + 0x30], si
call fcn.0040b3b0
add esp, 0xc
push 0x208
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, dword [0x4258bc]
mov eax, dword [edx + 0xc]
mov ecx, 0x4258bc
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ebp, dword [esp + 0x448]
push esi
lea ecx, [esp + 0x18]
push ecx
push ecx
add ebp, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
push ebp
mov byte [esp + 0x450], 1
call fcn.00402240
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00404c00
add esp, 0xc
push 0xa
push 5
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x41c8a4
call fcn.004048e0
mov edi, dword [esp + 0x20]
push ecx
add edi, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
push edi
mov byte [esp + 0x454], 2
call fcn.00402240
add eax, 0x10
lea edx, [esp + 0x2c]
add esp, 4
mov dword [esi], eax
push edx
mov byte [esp + 0x454], 1
call fcn.00404ce0
add esp, 0x14
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x448], 3
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [esp + 0x24]
push edx
xor esi, esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405492
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x405484
mov esi, eax
jmp 0x4054bc
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x4054bc
lea eax, [esp + 0x24]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4054a0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x28]
push eax
mov ecx, ebx
call fcn.00402860
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x440], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4054e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x440], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405505
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov dword [esp + 0x440], 0xffffffff
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40552a
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov eax, esi
mov ecx, dword [esp + 0x438]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.0040b399
add esp, 0x430
ret
Function at 0x405560
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41a581
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4243c8]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4243c8]
xor eax, esp
push eax
lea eax, [esp + 0x438]
mov dword fs:[0], eax
mov edi, dword [esp + 0x450]
mov eax, dword [0x4258bc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4258bc
mov dword [esp + 0x440], 1
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x44c]
push 0
lea eax, [esp + 0x18]
push eax
push ecx
add ebx, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
push ebx
mov byte [esp + 0x450], 2
call fcn.00402240
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00404c00
add esp, 0xc
push 0xa
push 5
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.atisvc.exe
call fcn.004048e0
mov esi, dword [esp + 0x20]
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x30], esp
mov ebp, esp
push esi
mov byte [esp + 0x454], 3
call fcn.00402240
add eax, 0x10
lea ecx, [esp + 0x2c]
add esp, 4
mov dword [ebp], eax
push ecx
mov byte [esp + 0x454], 2
call fcn.00404ce0
push 0x40e
lea edx, [esp + 0x3e]
push 0
push edx
mov byte [esp + 0x460], 4
mov word [esp + 0x44], 0
call fcn.0040b3b0
mov ebp, dword [esp + 0x468]
push ebp
lea eax, [esp + 0x48]
push 0x208
push eax
call fcn.0040bbad
mov ecx, dword [esp + 0x44]
add esp, 0x2c
push ecx
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x24]
push eax
call fcn.004039e0
mov dword [edi], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x440], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4056c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x440], 1
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4056e7
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
lea eax, [ebp - 0x10]
mov byte [esp + 0x440], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40570b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x440], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40572f
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov ecx, dword [esp + 0x438]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.0040b399
add esp, 0x430
ret
Function at 0x405d20
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x41a680
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4243c8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [esp + 0x38]
xor ebx, ebx
cmp esi, ebx
je 0x405e41
cmp word [esi], bx
je 0x405e41
push esi
xor edi, edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
jne 0x405d88
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x405d7e
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x405f10
cmp byte [esp + 0x40], bl
mov ecx, 0x4258bc
je 0x405e59
mov eax, dword [0x4258bc]
mov edx, dword [eax + 0xc]
call edx
add eax, 0x10
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x3c]
push esi
push eax
push str.DefaultUninstall
lea ecx, [esp + 0x44]
push str._s__d__s
push ecx
mov dword [esp + 0x44], ebx
call fcn.00403430
add esp, 0x14
lea ecx, [esp + 0x10]
call fcn.00402390
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x10]
push edx
mov byte [esp + 0x34], 1
call fcn.00405a50
mov esi, dword [esp + 0x3c]
add esp, 4
push ebx
push esi
push ebx
push ebx
call sub.SETUPAPI.dll_InstallHinfSectionW
lea eax, [esp + 0x10]
push eax
call fcn.00403000
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], bl
call fcn.004049d0
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040ad0b
lea eax, [esi - 0x10]
add esp, 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x405f04
mov eax, 0x80070057
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret
mov edx, dword [0x4258bc]
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x3c]
push esi
push ecx
push 0x41d11c
lea edx, [esp + 0x44]
push str._s__d__s
push edx
mov dword [esp + 0x44], 2
call fcn.00403430
add esp, 0x14
lea ecx, [esp + 0x1c]
call fcn.00402390
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x34], 3
call fcn.00405a50
mov esi, dword [esp + 0x3c]
add esp, 4
push ebx
push esi
push ebx
push ebx
call sub.SETUPAPI.dll_InstallHinfSectionW
lea ecx, [esp + 0x1c]
push ecx
call fcn.00403000
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 2
call fcn.004049d0
mov edx, dword [esp + 0x20]
push edx
call fcn.0040ad0b
lea eax, [esi - 0x10]
add esp, 4
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405f10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x407194
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4243c8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004070d3
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0040b3b0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4071e3
cmp dword [ebp - 0x1c], 5
jb 0x4071fb
jmp 0x4071f7
cmp dword [ebp - 0x10], 1
jne 0x4071fb
cmp dword [ebp - 0x1c], 4
ja 0x4071f7
jne 0x4071fb
cmp dword [ebp - 0x18], 0
jbe 0x4071fb
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x41d27c
call fcn.00406f86
test eax, eax
jge 0x40721c
mov byte [0x425844], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040b399
add ebp, 0x78
leave
ret

Function at 0x4077a0
Capabilities:
Read file via mapping

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esi]
add edi, edi
cmp dword [esi + 8], 0
jne 0x4077c5
test edi, edi
je 0x4077c5
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x407815
push ebx
push edi
push 0
push 0
mov word [eax], 0
mov eax, dword [esi + 4]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x407811
push ebp
lea ebp, [esi + 0xc]
mov ecx, ebp
call fcn.00407560
mov ecx, dword [esi + 8]
push edi
push ebx
push ecx
call fcn.0040bdc0
add esp, 0xc
mov ecx, ebp
call fcn.004075b0
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop ebp
mov eax, dword [esi + 8]
pop ebx
pop edi
pop esi
ret

Function at 0x407820
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret