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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x44f54c], 0
je 0x405feb
mov eax, dword [0x44f550]
jmp 0x4060b9
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwarePoliciesMicrosoftSecurity
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406039
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x44f550
push esi
push esi
push str.CLSIDInterfaceTest
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406039
cmp dword [ebp - 8], 4
je 0x406092
mov eax, dword [ebp - 4]
mov dword [ebp - 4], esi
test eax, eax
je 0x40604a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftSecurity
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40609a
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 0x44f550
push esi
push esi
push str.CLSIDInterfaceTest
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40609a
cmp dword [ebp - 8], 4
jne 0x40609a
mov esi, dword [0x44f550]
jmp 0x4060a0
mov dword [0x44f550], esi
cmp dword [ebp - 4], 0
mov byte [0x44f54c], 1
je 0x4060b6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406292
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x44b504]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea eax, [ebp - 0x20c]
push edi
push 0xffffffffffffffff
push ecx
push 0x104
push eax
mov edi, edx
call esi
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
add eax, 2
lea ecx, [ebp - 4]
push 0xffffffffffffffff
sub ecx, eax
push edi
sar ecx, 1
push ecx
push eax
call esi
add esp, 0x24
lea ecx, [ebp - 0x20c]
call fcn.00406237
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x406303
and dword [0x44f574], 0
jmp 0x40630a
call edi
mov dword [0x44f574], eax
test esi, esi
je 0x406317
and dword [0x44f570], 0
jmp 0x40632e
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [0x44f570], eax
cmp eax, 0xffffffff
je 0x406337
and dword [0x44f56c], 0
jmp 0x40633e
call edi
mov dword [0x44f56c], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042fa1f
mov esp, ebp
pop ebp
ret
Function at 0x406350
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x44b504]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x208
push eax
lea eax, [ebp - 0x20c]
mov esi, ecx
push eax
push 0
push 2
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push Ordinal_5
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x4063e2
mov ecx, dword [ebp - 0x210]
cmp ecx, 4
jb 0x4063e2
shr ecx, 1
push 0xffffffffffffffff
cmp word [ebp + ecx*2 - 0x210], 0x5c
sete al
lea eax, [eax*2 + str.Microsoft_SharedOffice16_]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
lea ecx, [ebp - 0x20c]
mov edx, esi
call fcn.00406292
jmp 0x4063e4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042fa1f
mov esp, ebp
pop ebp
ret

Function at 0x406413
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x44b504]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x208
push eax
lea eax, [ebp - 0x20c]
mov esi, ecx
push eax
push 0
push 2
push esi
push str.SoftwareMicrosoftOffice16.0CommonFilesPaths
push Ordinal_5
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x406472
cmp dword [ebp - 0x210], 4
jb 0x406472
mov edx, esi
lea ecx, [ebp - 0x20c]
call fcn.00406292
jmp 0x406474
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042fa1f
mov esp, ebp
pop ebp
ret

Function at 0x406c69
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x3c], 0
je 0x406c8c
push 0
push dword [esi + 0x3c]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0x3c]
call dword [sym.imp.USER32.dll_SetParent]
mov eax, dword [esi + 0x3c]
and dword [esi + 0x3c], 0
pop esi
pop ebp
ret 4
Function at 0x40841d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x44b504]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp byte [esi + 0xd0], 0
jne 0x40857f
mov eax, dword [esi + 0xcc]
test eax, eax
je 0x40857f
push 0
lea ecx, [ebp - 0x60]
push ecx
push eax
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_1414]
test eax, eax
jne 0x40857f
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0x2c
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowPlacement]
test eax, eax
je 0x40857f
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, 0x32
jl 0x40853d
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
cmp eax, 0x32
jl 0x40853d
push edi
push 2
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_MonitorFromRect]
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x58], 0x28
push ecx
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
mov esi, dword [ebp - 0x44]
sub esi, dword [ebp - 0x54]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x40]
add eax, esi
sub edi, dword [ebp - 0x50]
push 4
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
push eax
push 4
push 0
push str.WindowPosLeft
push dword [ebp - 0x60]
call ebx
mov eax, dword [ebp - 0x10]
add eax, edi
push 4
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
push eax
push 4
push 0
push str.WindowPosTop
push dword [ebp - 0x60]
call ebx
mov eax, dword [ebp - 0xc]
add eax, esi
push 4
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
push eax
push 4
push 0
push str.WindowPosRight
push dword [ebp - 0x60]
call ebx
mov eax, dword [ebp - 8]
add eax, edi
push 4
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
push eax
push 4
push 0
push str.WindowPosBottom
push dword [ebp - 0x60]
call ebx
pop edi
mov ecx, dword [ebp - 0x28]
mov eax, ecx
and eax, 3
cmp al, 3
jne 0x408552
mov dword [ebp - 0x5c], 1
jmp 0x408561
and cl, 6
xor eax, eax
cmp cl, 6
setne al
dec eax
mov dword [ebp - 0x5c], eax
push 4
lea eax, [ebp - 0x5c]
push eax
push 4
push 0
push 0x436dfc
push dword [ebp - 0x60]
call ebx
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042fa1f
mov esp, ebp
pop ebp
ret
Function at 0x409ee8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x44]
cmp eax, edi
je 0x409faa
test eax, eax
je 0x409f20
add eax, 0x44
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
test eax, eax
je 0x409f20
mov eax, dword [esi + 0x44]
add eax, 0x44
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
test edi, edi
je 0x409f29
lea edx, [edi + 0x44]
jmp 0x409f2b
xor edx, edx
mov eax, dword [esi + 0x44]
push ebx
test eax, eax
je 0x409f38
lea ebx, [eax + 0x44]
jmp 0x409f3a
xor ebx, ebx
mov eax, dword [esi + 0x48]
push edx
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esi]
mov dword [esi + 0x44], edi
push dword [edi + 4]
push esi
call dword [eax + 0x14]
push eax
call dword [sym.imp.Mso30Win32Client.dll_Ordinal_374]
pop ebx
test eax, eax
je 0x409fc8
mov eax, dword [esi + 0x44]
push dword [eax + 4]
call dword [sym.imp.MSO.dll_Ordinal_429]
mov ecx, dword [esi + 0x188]
test ecx, ecx
je 0x409f84
mov eax, dword [esi + 0x44]
push 0
push dword [eax + 4]
push 0
push 1
call fcn.0040d8df
mov eax, dword [esi + 0x44]
test eax, eax
je 0x409faa
add eax, 0x44
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
test eax, eax
je 0x409faa
mov eax, dword [esi + 0x44]
add eax, 0x44
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [esi + 0x5c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [esi]
push 0
push esi
call dword [eax + 0x54]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
ret 4
call fcn.00405292
int3

Function at 0x40d8df
Capabilities:
Check mutex on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 4], eax
test esi, esi
je 0x40d8f5
mov dword [esi], ebx
cmp dword [eax], ebx
jne 0x40d8fd
xor al, al
jmp 0x40d96a
push edi
push dword [eax + 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
test edi, edi
je 0x40d967
push 0x1f4
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40d959
mov eax, dword [ebp - 4]
push ebx
push ebx
push ebx
push 6
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
test ecx, ecx
je 0x40d959
test esi, esi
je 0x40d93d
mov eax, dword [ecx]
mov dword [esi], eax
cmp byte [ebp + 8], bl
jne 0x40d94b
cmp byte [ebp + 0xc], bl
je 0x40d950
cmp dword [ecx], ebx
jne 0x40d950
mov eax, dword [ebp + 0x10]
mov dword [ecx], eax
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4122d5
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x44b504]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x44f588]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x120], ecx
push edi
inc ebx
xor edi, edi
test eax, eax
jne 0x41239a
mov esi, 0x114
lea eax, [ebp - 0x118]
push esi
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x118], esi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jbe 0x41234e
mov dword [0x44f588], ebx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042fa1f
mov esp, ebp
pop ebp
ret
jne 0x412392
cmp dword [ebp - 0x110], ebx
jb 0x41237e
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x41238a
cmp dword [ebp - 0x11c], edi
je 0x41238a
mov dword [0x44f588], 2
jmp 0x41239f
mov dword [0x44f588], ebx
jmp 0x41233b
push 2
pop eax
mov dword [0x44f588], eax
cmp eax, 2
jne 0x41233b
mov esi, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push edi
call esi
mov ebx, eax
push ebx
call esi
test ebx, ebx
je 0x4123c4
push dword [ebp - 0x120]
call ebx
mov edi, eax
test edi, edi
je 0x4123c4
cmp edi, 1
jne 0x4123ce
mov dword [0], 1
mov eax, edi
jmp 0x41233d
Function at 0x41b929
Capabilities:
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x44b504]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x208
mov dword [ebp - 0x214], 1
push esi
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
mov edi, ecx
call sub.VCRUNTIME140.dll_memset
mov edx, 0x44f5b0
mov dword [ebp - 0x210], esi
add esp, 0xc
mov ecx, ebx
mov eax, edx
cmp dword [eax], ebx
je 0x41b986
add eax, 0x14
inc ecx
cmp eax, 0x44f5d8
jl 0x41b972
jmp 0x41baf3
imul esi, ecx, 0x14
add esi, edx
je 0x41baf3
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41badc
cmp dword [ebp - 0x214], 1
jne 0x41badc
cmp word [ebp - 0x20c], bx
je 0x41badc
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x41badc
shr eax, 1
mov dword [ebp - 0x210], eax
cmp eax, 0x104
jae 0x41ba07
add eax, eax
cmp eax, 0x208
jae 0x41bb06
xor ecx, ecx
mov word [ebp + eax - 0x20c], cx
jmp 0x41ba0d
xor eax, eax
mov word [ebp - 6], ax
push ecx
lea ecx, [ebp - 0x20c]
call fcn.00406237
mov dword [esi], eax
test eax, eax
je 0x41badc
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str._GetPerfhostHookVersion_0
push eax
call edi
test eax, eax
jne 0x41ba38
inc eax
jmp 0x41ba3a
call eax
mov dword [esi + 4], eax
cmp eax, 1
jne 0x41ba5e
push str._InitPerf_4
push dword [esi]
call edi
push str._PerfCodeMarker_12
push dword [esi]
mov dword [esi + 8], eax
call edi
push str._UnInitPerf_4
jmp 0x41ba92
cmp eax, 2
jne 0x41ba73
push str._InitPerf_4
push dword [esi]
call edi
push str._PerfCodeMarker_8
jmp 0x41ba50
cmp eax, 3
jne 0x41ba9c
push str._InitPerf_v3_4
push dword [esi]
call edi
push str._PerfCodeMarker_v3_8
push dword [esi]
mov dword [esi + 8], eax
call edi
push str._UnInitPerf_v3_4
push dword [esi]
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x41badc
cmp dword [esi + 0x10], ebx
je 0x41badc
cmp dword [esi + 0xc], ebx
je 0x41badc
cmp dword [esi + 4], 1
jne 0x41babd
push dword [0x44f604]
call eax
jmp 0x41baf3
cmp dword [esi + 4], 2
jne 0x41bacd
push dword [0x44f604]
call eax
jmp 0x41bad8
cmp dword [esi + 4], 3
je 0x41bac3
mov eax, 0x80004005
test eax, eax
jns 0x41baf3
cmp dword [esi], ebx
je 0x41bae8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042fa1f
mov esp, ebp
pop ebp
ret 4
call fcn.00430347
int3
Function at 0x41eb99
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x36c
mov eax, 0x4338ab
call fcn.00431bb3
mov edi, edx
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x338], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x324]
mov ecx, 0x102
mov dword [ebp - 0x334], 0x44d444
mov dword [ebp - 0x328], ecx
mov dword [ebp - 0x330], eax
mov dword [ebp - 0x32c], ecx
push ecx
lea ecx, [ebp - 0x334]
mov byte [ebp - 4], 1
call fcn.004037f0
push 0x3c
lea eax, [ebp - 0x378]
mov byte [ebp - 4], 2
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x338]
push ebx
push ebx
push 0x780
push ebx
push ebx
push esi
push eax
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_1123]
mov esi, eax
test esi, esi
js 0x41edb4
mov eax, dword [ebp - 0x338]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
cmp eax, 3
mov eax, dword [ebp - 0x338]
push eax
sete bl
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x338]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov esi, eax
mov ecx, esi
call fcn.004011c7
push eax
mov edx, esi
lea ecx, [ebp - 0x334]
call fcn.004184b2
mov eax, dword [ebp - 0x338]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
call dword [sym.imp.Mso98Win32Client.dll_Ordinal_1532]
test eax, eax
jne 0x41ec8c
call dword [sym.imp.Mso98Win32Client.dll_Ordinal_2616]
mov esi, 0x80004005
jmp 0x41edb4
mov eax, dword [ebp - 0x338]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x338]
push edi
xor edi, edi
push edi
mov ecx, dword [eax]
push edi
push edi
push eax
call dword [ecx + 0x34]
push eax
call dword [sym.imp.Mso30Win32Client.dll_Ordinal_1600]
mov ecx, dword [ebp - 0x338]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x20]
test esi, esi
js 0x41edb4
mov eax, dword [ebp - 0x330]
mov dword [ebp - 0x378], 0x3c
mov dword [ebp - 0x35c], 1
mov dword [ebp - 0x368], eax
mov dword [ebp - 0x374], 0x500
test bl, bl
je 0x41ed4f
push edi
lea ecx, [ebp - 0x33c]
mov dword [ebp - 0x33c], 0x104
push ecx
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCreateFromUrlW]
test eax, eax
js 0x41ed79
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41ed79
test al, 0x10
je 0x41ed79
mov dword [ebp - 0x364], 0x4354dc
mov dword [ebp - 0x36c], str.open
mov dword [ebp - 0x350], str.Folder
jmp 0x41ed72
mov ecx, dword [ebp - 0x338]
call fcn.0041ea75
test al, al
je 0x41ed79
mov dword [ebp - 0x36c], str.opennew
mov dword [ebp - 0x350], str.htmlfile
or dword [ebp - 0x374], 1
lea eax, [ebp - 0x378]
test eax, eax
jne 0x41ed8a
mov eax, 0x80070057
jmp 0x41ed99
lea ecx, [ebp - 0x378]
call fcn.0041e9df
test eax, eax
jns 0x41ed9d
mov esi, eax
jmp 0x41edb4
cmp dword [ebp - 0x358], 0x20
ja 0x41edb4
cmp dword [ebp - 0x358], edi
mov eax, 0x80004005
cmovne esi, eax
push dword [ebp - 0x340]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x334]
call fcn.00402a43
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x338]
test eax, eax
je 0x41eddf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
call fcn.00431b68
ret
Function at 0x426f1a
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x1c
mov eax, 0x4341a5
call fcn.00431b80
mov esi, dword [0x44f340]
xor ebx, ebx
inc ebx
mov edx, dword [esi + 0x4c]
cmp dword [edx + 8], 0x10
jge 0x426f43
mov eax, dword [edx]
push ebx
push 0x10
push edx
mov ecx, dword [eax]
push eax
call dword [ecx]
mov edi, 0x44b674
call dword [edi - 4]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x427018
push dword [edi]
mov edx, dword [eax]
lea ecx, [esi + 4]
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
js 0x427018
mov ebx, dword [esi + 0x50]
mov eax, dword [esi + 0x4c]
lea ecx, [ebx + 1]
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], eax
test ecx, ecx
js 0x4270a2
push 4
pop eax
mul ecx
test edx, edx
ja 0x4270a2
jb 0x426f99
cmp eax, 0xffffffff
ja 0x4270a2
cmp eax, 0x7fffffff
ja 0x4270a2
cmp dword [ebp - 0x14], eax
jge 0x427006
mov eax, ebx
xor ecx, ecx
cdq
inc ecx
sub eax, edx
mov edx, ebx
sar eax, 1
cmp eax, ecx
cmovl eax, ecx
lea ecx, [ebp - 0x28]
push eax
call fcn.00416b9b
mov ecx, dword [eax]
test ecx, ecx
js 0x4270a2
push 4
pop eax
mul ecx
mov ebx, eax
test edx, edx
ja 0x4270a2
jb 0x426fe7
cmp ebx, 0xffffffff
ja 0x4270a2
cmp ebx, 0x7fffffff
ja 0x4270a2
mov edx, dword [esi + 0x4c]
cmp ebx, dword [edx + 8]
jle 0x427006
mov eax, dword [edx]
push 1
push ebx
push edx
mov ecx, dword [eax]
push eax
call dword [ecx]
mov eax, dword [esi + 0x4c]
mov edx, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x50]
mov dword [ecx + eax*4], edx
inc dword [esi + 0x50]
add edi, 8
cmp edi, 0x44b68c
jle 0x426f48
xor ebx, ebx
mov dword [ebp - 0x10], ebx
push 4
pop edi
push ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
push eax
push ebx
push 0x20019
push ebx
push ebx
push ebx
push 0x43aeb4
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
mov dword [ebp - 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x427089
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push str.Providers
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x427089
cmp dword [ebp - 0x20], edi
jne 0x427089
cmp dword [ebp - 0x24], eax
je 0x427089
push 3
mov ecx, esi
call fcn.004277e2
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x42709a
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
call fcn.00431b54
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn
int3

Function at 0x428796
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
test byte [ebp + 0x10], 8
push esi
mov esi, ecx
jne 0x4287c1
test esi, esi
je 0x4287b2
call fcn.004011c7
cmp eax, 0x104
jle 0x4287c1
push 0x62713071
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_1360]
xor eax, eax
jmp 0x4287d8
push dword [ebp + 0x10]
push 0x2b4
push dword [ebp + 8]
push 0x80
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
pop esi
pop ebp
ret 0xc
Function at 0x42bd49
Capabilities:
Get common file path

Disassembly:
push 0x120
mov eax, 0x433587
call fcn.00431bb3
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x128], edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x114]
mov ecx, 0x102
mov dword [ebp - 0x124], 0x44d444
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], ecx
push ecx
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.004037f0
mov edx, 0x208
mov byte [ebp - 4], 2
cmp dword [ebp - 0x11c], edx
jge 0x42bdc1
mov eax, dword [ebp - 0x124]
push edi
push edx
lea edx, [ebp - 0x124]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx]
push dword [ebp - 0x120]
push edi
push edi
push 0x20
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push edi
push edi
push 1
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x120]
call dword [sym.imp.Csi.dll_void___stdcall_Csi::GetFolderProxyFromPath_class_MsoCF::String_struct_MsoCF::WzTraits___struct_Csi::IFolderProxy____bool__bool___bool_]
mov ecx, dword [ebp - 0x128]
test ecx, ecx
je 0x42be0d
push edi
push edi
push esi
push edi
push edi
push 1
push ecx
mov eax, esp
push ecx
mov dword [eax], edi
mov eax, esp
mov dword [eax], str.Office.ODCPAW
mov eax, dword [ecx]
call dword [eax + 0x24]
lea ecx, [ebp - 0x124]
call fcn.00402a43
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x128]
test eax, eax
je 0x42be2c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call fcn.00431b68
ret

Function at 0x42c049
Capabilities:
Create process on windows

Disassembly:
push pe_nt_image_headers32
mov eax, 0x4333e0
call fcn.00431bb3
mov esi, ecx
mov ecx, 0x102
mov dword [ebp - 0x124], 0x44d444
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], ecx
push ecx
xor edi, edi
lea ecx, [ebp - 0x124]
mov dword [ebp - 4], edi
call fcn.004037f0
xor ebx, ebx
lea ecx, [ebp - 0x124]
inc ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x44]
mov eax, dword [ebp - 0x120]
cmp word [eax], di
je 0x42c0cd
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp eax, ebx
jne 0x42c0cd
push ebx
push edi
push edi
push dword [ebp - 0x120]
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x124]
call fcn.00402a43
call fcn.00431b68
ret