joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bdc0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad4c8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4d8104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00483dd9
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0046ef02
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
not ecx
mov dword [edi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
and ecx, 1
mov dword [ebp - 4], 1
shl ecx, 2
mov eax, ebx
mov edx, ecx
or edx, 2
and al, 2
mov eax, ebx
cmovne edx, ecx
mov ecx, edx
or ecx, 8
and al, 8
mov eax, dword [ebp + 8]
cmove ecx, edx
mov edx, ecx
or edx, 0x10
and bl, 4
mov ebx, dword [eax + 0x10]
cmove edx, ecx
cmp dword [eax + 0x14], 0x10
mov dword [ebp + 0xc], edx
jb 0x40beb9
mov eax, dword [eax]
mov dword [ebp + 8], eax
cmp ebx, 0x7fffffff
ja 0x40bf75
test ebx, ebx
je 0x40bf55
mov eax, edx
and eax, 6
cmp al, 6
je 0x40bf55
push ebx
lea ecx, [edi + 0x40]
call fcn.00401840
push ebx
push dword [ebp + 8]
mov esi, eax
push esi
call fcn.004859b0
mov edx, dword [ebp + 0xc]
lea ecx, [esi + ebx]
mov eax, edx
mov dword [edi + 0x38], ecx
add esp, 0xc
and eax, 4
mov dword [ebp + 8], eax
jne 0x40bf10
mov eax, dword [edi + 0xc]
mov dword [eax], esi
mov eax, dword [edi + 0x1c]
mov dword [eax], esi
mov eax, dword [edi + 0x2c]
mov dword [eax], ebx
test dl, 2
jne 0x40bf50
test dl, 0x18
je 0x40bf21
mov ecx, dword [edi + 0x38]
mov ebx, ecx
jmp 0x40bf26
mov ebx, dword [edi + 0x38]
mov ecx, esi
mov eax, dword [edi + 0x10]
sub ebx, ecx
cmp dword [ebp + 8], 0
mov dword [eax], esi
mov eax, dword [edi + 0x20]
mov dword [eax], ecx
mov eax, dword [edi + 0x30]
mov dword [eax], ebx
je 0x40bf50
mov eax, dword [edi + 0xc]
mov dword [eax], esi
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], esi
or edx, 1
jmp 0x40bf5c
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], edx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.0046e8cb
int3
Function at 0x40c1c0
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 8
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x1000
push 0
mov dword [esp + 0x18], 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call esi
mov ebp, eax
test ebp, ebp
je 0x40c2e2
lea eax, [esp + 0xc]
push eax
push 0x1000
push ebp
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
je 0x40c2af
push ebx
push 0x208
push 0
call edi
push eax
call esi
mov ebx, eax
test ebx, ebx
je 0x40c2c8
mov eax, dword [esp + 0x10]
xor esi, esi
shr eax, 2
mov dword [esp + 0x10], eax
test eax, eax
je 0x40c28d
push dword [ebp + esi*4]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40c26f
push 0x104
push ebx
push 0
push edi
call sub.KERNEL32.dll_K32GetModuleBaseNameW
test eax, eax
je 0x40c268
push dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40c278
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [esp + 0x10]
jb 0x40c230
jmp 0x40c287
mov eax, dword [ebp + esi*4]
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
push 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call esi
pop ebx
push ebp
push 0
call edi
push eax
call esi
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 8
ret
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push ebp
push 0
call edi
push eax
call esi
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 8
ret
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
push ebp
push 0
call edi
push eax
call esi
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 8
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 8
ret
Function at 0x40d200
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x444]
sub esp, 0x444
push 0xffffffffffffffff
push 0x4ad5d9
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4d8104]
xor eax, ebp
mov dword [ebp + 0x440], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0x208
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x238]
push eax
call fcn.00486710
add esp, 0xc
lea eax, [ebp + 0x238]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40d2c9
lea eax, [ebp + 0x238]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x40d2c9
push str.update.ini
lea eax, [ebp + 0x238]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor eax, eax
mov dword [ebp + 0x10], 0
lea ecx, [ebp + 0x238]
mov dword [ebp + 0x14], 7
mov word [ebp], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d2b0
sub ecx, edx
lea eax, [ebp + 0x238]
sar ecx, 1
push ecx
push eax
jmp 0x40d2e3
xor eax, eax
mov dword [ebp + 0x10], 0
push eax
mov dword [ebp + 0x14], 7
mov word [ebp], ax
push 0x4b2150
lea ecx, [ebp]
call fcn.00401b30
cmp dword [ebp + 0x14], 8
mov eax, 5
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp]
cmovae eax, dword [ebp]
push eax
mov dword [ebp - 4], 0
call ebx
test eax, eax
je 0x40d3d5
push 0x208
lea eax, [ebp + 0x30]
push 0
push eax
call fcn.00486710
add esp, 0xc
lea eax, [ebp + 0x30]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40d396
lea eax, [ebp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x40d396
push str.AdApplicationManager_installer.exe
lea eax, [ebp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor eax, eax
mov dword [ebp + 0x28], 0
lea ecx, [ebp + 0x30]
mov dword [ebp + 0x2c], 7
mov word [ebp + 0x18], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d380
sub ecx, edx
lea eax, [ebp + 0x30]
sar ecx, 1
push ecx
push eax
jmp 0x40d3b0
xor eax, eax
mov dword [ebp + 0x28], 0
push eax
mov dword [ebp + 0x2c], 7
mov word [ebp + 0x18], ax
push 0x4b2150
lea ecx, [ebp + 0x18]
call fcn.00401b30
cmp dword [ebp + 0x2c], 8
lea eax, [ebp + 0x18]
mov dword [ebp - 0x10], 0xf
cmovae eax, dword [ebp + 0x18]
push eax
call ebx
test eax, eax
je 0x40d3d5
mov bl, 1
jmp 0x40d3d7
xor bl, bl
test byte [ebp - 0x10], 2
je 0x40d3e5
lea ecx, [ebp + 0x18]
call fcn.00401390
lea ecx, [ebp]
call fcn.00401390
test bl, bl
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp + 0x440]
xor ecx, ebp
call fcn.00483e17
lea esp, [ebp + 0x444]
pop ebp
ret
Function at 0x40d420
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x1cc
mov eax, dword [0x4d8104]
xor eax, esp
mov dword [esp + 0x1c8], eax
movups xmm0, xmmword [str.Terminal_Server]
mov ax, word [0x4b2378]
push ebx
movups xmmword [esp + 0x14c], xmm0
xor bl, bl
cmp dword [esp + 0x1d4], 4
movups xmm0, xmmword [0x4b22ec]
mov word [esp + 0x148], ax
mov dword [esp + 4], 0
movups xmmword [esp + 0x15c], xmm0
mov dword [esp + 8], 0
movups xmm0, xmmword [str.SystemCurrentControlSetControlProductOptions]
mov dword [esp + 0xc], 0
movups xmmword [esp + 0x16c], xmm0
movups xmm0, xmmword [0x4b2310]
movups xmmword [esp + 0x17c], xmm0
movups xmm0, xmmword [0x4b2320]
movups xmmword [esp + 0x18c], xmm0
movups xmm0, xmmword [0x4b2330]
movups xmmword [esp + 0x19c], xmm0
movups xmm0, xmmword [0x4b2340]
movups xmmword [esp + 0x1ac], xmm0
movups xmm0, xmmword [0x4b2350]
movups xmmword [esp + 0x1bc], xmm0
movups xmm0, xmmword [str.ProductSuite]
movups xmmword [esp + 0x130], xmm0
movq xmm0, qword [0x4b2370]
movq qword [esp + 0x140], xmm0
jle 0x40d560
push 0x118
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00486710
add esp, 0xc
mov dword [esp + 0x14], 0x11c
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40d68f
mov eax, dword [esp + 0x12c]
test al, 0x10
je 0x40d68f
test eax, 0x100
jne 0x40d68f
mov al, 1
pop ebx
mov ecx, dword [esp + 0x1c8]
xor ecx, esp
call fcn.00483e17
add esp, 0x1cc
ret
lea eax, [esp + 8]
push eax
push 0x20019
push 0
lea eax, [esp + 0x178]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d680
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 8]
push eax
push 0
lea eax, [esp + 0x18]
push eax
push 0
lea eax, [esp + 0x144]
push eax
push dword [esp + 0x20]
call esi
test eax, eax
jne 0x40d67f
mov eax, dword [esp + 8]
test eax, eax
je 0x40d67f
cmp dword [esp + 0x10], 7
jne 0x40d67f
xor ecx, ecx
mov edx, 2
mul edx
push ebp
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004840ea
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40d67e
push dword [esp + 0xc]
push 0
push ebp
call fcn.00486710
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push ebp
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x148]
push eax
push dword [esp + 0x24]
call esi
test eax, eax
jne 0x40d675
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esp + 0x158]
push eax
call edi
cmp word [ebp], 0
mov esi, ebp
mov dword [esp + 0x1c], eax
je 0x40d674
nop dword [eax]
push esi
call edi
mov edi, eax
cmp edi, dword [esp + 0x1c]
jne 0x40d65e
push esi
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40d672
lea esi, [esi + edi*2]
add esi, 2
cmp word [esi], 0
je 0x40d674
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x40d640
mov bl, 1
pop edi
push ebp
call fcn.00483e28
add esp, 4
pop ebp
pop esi
mov eax, dword [esp + 8]
test eax, eax
je 0x40d68f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1cc]
mov al, bl
pop ebx
xor ecx, esp
call fcn.00483e17
add esp, 0x1cc
ret
Function at 0x40df60
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x4d8104]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [esp + 0x218]
lea eax, [esp + 8]
push 0x208
push 0
push eax
mov dword [esp + 0x10], esi
call fcn.00486710
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40e017
push str.AdApplicationManager_WebInstaller_
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40dfd3
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.AutodeskDesktopApp.ini
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor eax, eax
mov dword [esi + 0x10], 0
lea ecx, [esp + 8]
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e000
sub ecx, edx
lea eax, [esp + 8]
sar ecx, 1
push ecx
push eax
jmp 0x40e030
xor eax, eax
mov dword [esi + 0x10], 0
push eax
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x4b2150
mov ecx, esi
call fcn.00401b30
mov ecx, dword [esp + 0x210]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00483e17
add esp, 0x210
ret
Function at 0x40e210
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x42c]
sub esp, 0x42c
push 0xffffffffffffffff
push 0x4ad6e8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4d8104]
xor eax, ebp
mov dword [ebp + 0x428], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x438]
mov ebx, dword [ebp + 0x434]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
cmp dword [eax + 0x14], 8
jb 0x40e263
mov eax, dword [eax]
push eax
lea eax, [ebp + 0x220]
push 0x104
push eax
call fcn.00491feb
add esp, 0xc
lea eax, [ebp + 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
push str.update.ini
lea eax, [ebp + 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e2c8
push eax
mov dword [ebx + 0x10], eax
mov ecx, ebx
mov dword [ebx + 0x14], 0xf
push 0x4b1470
mov byte [ebx], al
call fcn.00401a40
mov eax, ebx
jmp 0x40e393
push 0x208
lea eax, [ebp + 0x18]
push 0
push eax
call fcn.00486710
add esp, 0xc
lea eax, [ebp + 0x220]
push eax
push 0x104
lea eax, [ebp + 0x18]
push eax
push 0x4b2150
push 0x4b2154
push str.Update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov dword [ebp + 0x10], 0
mov word [ebp], ax
lea eax, [ebp + 0x18]
mov dword [ebp + 0x14], 7
lea edx, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e320
sub eax, edx
lea ecx, [ebp]
sar eax, 1
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.00401b30
cmp dword [ebp + 0x14], 8
lea edx, [ebp]
mov eax, dword [ebp + 0x10]
lea edi, [ebp]
cmovae edx, dword [ebp]
cmovae edi, dword [ebp]
mov esi, dword [ebp - 0x10]
mov ecx, esi
mov dword [ebp - 4], 0
lea ebx, [edx + eax*2]
mov eax, ebx
sub eax, edi
mov dword [esi + 0x10], 0
sar eax, 1
mov dword [esi + 0x14], 0xf
push eax
mov byte [esi], 0
call fcn.0040f460
push dword [ebp - 0x14]
mov ecx, esi
push ebx
push edi
call fcn.00402c60
lea ecx, [ebp]
call fcn.00401390
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x428]
xor ecx, ebp
call fcn.00483e17
lea esp, [ebp + 0x42c]
pop ebp
ret
Function at 0x40e3c0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x4d8104]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [esp + 0x218]
lea eax, [esp + 8]
push 0x208
push 0
push eax
mov dword [esp + 0x10], esi
call fcn.00486710
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40e477
push str.AdApplicationManager_WebInstaller_
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e433
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.AdApplicationManager_installer.exe
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor eax, eax
mov dword [esi + 0x10], 0
lea ecx, [esp + 8]
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e460
sub ecx, edx
lea eax, [esp + 8]
sar ecx, 1
push ecx
push eax
jmp 0x40e490
xor eax, eax
mov dword [esi + 0x10], 0
push eax
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x4b2150
mov ecx, esi
call fcn.00401b30
mov ecx, dword [esp + 0x210]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00483e17
add esp, 0x210
ret
Function at 0x40e4b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad71b
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4d8104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x24c]
push eax
push 0x20019
push 0
push str.SOFTWAREAutodeskAutodesk_Application_Manager
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x250], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e670
push 0x208
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x25c], 1
push eax
mov dword [ebp - 0x258], 0x400
call fcn.00486710
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x25c]
push eax
push 0
push 0x4b29f0
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor eax, eax
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 7
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e590
sub eax, edx
lea ecx, [ebp - 0x230]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00401b30
cmp dword [ebp - 0x21c], 8
lea edx, [ebp - 0x230]
mov eax, dword [ebp - 0x220]
lea edi, [ebp - 0x230]
cmovae edx, dword [ebp - 0x230]
lea ecx, [ebp - 0x248]
cmovae edi, dword [ebp - 0x230]
mov dword [ebp - 4], 0
mov dword [ebp - 0x238], 0
lea eax, [edx + eax*2]
mov dword [ebp - 0x234], 0xf
mov dword [ebp - 0x250], eax
sub eax, edi
sar eax, 1
push eax
mov byte [ebp - 0x248], 0
call fcn.0040f460
push dword [ebp - 0x254]
lea ecx, [ebp - 0x248]
push dword [ebp - 0x250]
push edi
call fcn.00402c60
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x254]
lea ecx, [ebp - 0x230]
movups xmm0, xmmword [ebp - 0x248]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x238]
movq qword [esi + 0x10], xmm0
call fcn.00401390
jmp 0x40e68f
push 0
mov dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], 0xf
push 0x4b1470
mov byte [esi], 0
call fcn.00401a40
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00483e17
mov esp, ebp
pop ebp
ret
Function at 0x40e6b0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x4d8104]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [esp + 0x218]
lea eax, [esp + 8]
push 0x208
push 0
push eax
mov dword [esp + 0x10], esi
call fcn.00486710
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40e767
push str.AdApplicationManager_WebInstaller_
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e723
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.AdApplicationManager_WebInstaller.log
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor eax, eax
mov dword [esi + 0x10], 0
lea ecx, [esp + 8]
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e750
sub ecx, edx
lea eax, [esp + 8]
sar ecx, 1
push ecx
push eax
jmp 0x40e780
xor eax, eax
mov dword [esi + 0x10], 0
push eax
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x4b2150
mov ecx, esi
call fcn.00401b30
mov ecx, dword [esp + 0x210]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00483e17
add esp, 0x210
ret

Function at 0x40e960
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x4d8104]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [esp + 0x218]
lea eax, [esp + 8]
push 0x208
push 0
push eax
mov dword [esp + 0x10], esi
call fcn.00486710
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40ea17
push str.AdApplicationManager_WebInstaller_
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e9d3
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.update.xml
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor eax, eax
mov dword [esi + 0x10], 0
lea ecx, [esp + 8]
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ea00
sub ecx, edx
lea eax, [esp + 8]
sar ecx, 1
push ecx
push eax
jmp 0x40ea30
xor eax, eax
mov dword [esi + 0x10], 0
push eax
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x4b2150
mov ecx, esi
call fcn.00401b30
mov ecx, dword [esp + 0x210]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00483e17
add esp, 0x210
ret
Function at 0x40fa10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad8a3
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x4d8104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x90]
push 8
push 0x4b2a68
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0xf
mov byte [ebp - 0x90], 0
call fcn.00401a40
cmp dword [esi + 0x14], 0x10
mov eax, esi
mov dword [ebp - 4], 0
jb 0x40fa77
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x90]
push eax
call fcn.004018f0
push 0
call fcn.00493885
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0xbc]
push eax
mov dword [ebp - 0xb8], edx
call fcn.004931fc
add esp, 8
test eax, eax
je 0x40faca
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xb4], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0xa4], xmm0
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0xb4]
push eax
push str._Y__m__d__X
lea eax, [ebp - 0x60]
push 0x50
push eax
call fcn.004937e1
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x68], 0
add esp, 0x10
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fb00
sub ecx, edx
lea eax, [ebp - 0x60]
push ecx
push eax
lea ecx, [ebp - 0x78]
call fcn.00401a40
cmp dword [ebp - 0x7c], 0x10
lea eax, [ebp - 0x90]
push dword [ebp - 0x80]
cmovae eax, dword [ebp - 0x90]
lea ecx, [ebp - 0x78]
push eax
mov byte [ebp - 4], 1
call fcn.004018f0
mov ecx, dword [0x4da060]
test ecx, ecx
je 0x40fb66
cmp dword [ebp - 0x64], 0x10
lea eax, [ebp - 0x78]
push ecx
push dword [ebp - 0x68]
cmovae eax, dword [ebp - 0x78]
push 1
push eax
call fcn.0048a456
push dword [0x4da060]
call fcn.00492f14
add esp, 0x14
mov edx, dword [ebp - 0x64]
cmp edx, 0x10
jb 0x40fb96
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fb8c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fbe3
push edx
push ecx
call fcn.00483e09
add esp, 8
mov edx, dword [ebp - 0x7c]
cmp edx, 0x10
jb 0x40fbc9
mov ecx, dword [ebp - 0x90]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fbbf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fbe8
push edx
push ecx
call fcn.00483e09
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00483e17
mov esp, ebp
pop ebp
ret
call fcn.0048969c
call fcn.0048969c
int3