joyce8/EMBER2024-capa huggingface dataset:
Function at 0x479907
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xd4
mov eax, dword [0x501344]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x479934
mov ecx, edi
call fcn.0040932c
jmp 0x4799a8
mov esi, dword [esi]
push 0x4e1b0c
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.004a078e
add esp, 0xc
test eax, eax
jne 0x47992b
lea ecx, [ebp - 0x58]
call fcn.0040932c
jmp 0x479978
push dword [ebp - 0x5c]
lea eax, [ebp - 0x54]
push 0x64
push eax
call fcn.004a0815
add esp, 0xc
test eax, eax
je 0x479985
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00439083
push dword [ebp - 0x5c]
call fcn.004a07e1
pop ecx
test eax, eax
je 0x479956
push ebx
push dword [ebp - 0x5c]
call fcn.004a094d
pop ecx
lea ebx, [ebp - 0x58]
call fcn.004533c0
mov eax, ebx
push eax
push edi
call fcn.0041f17d
mov ecx, ebx
call fcn.004058a3
pop ebx
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
mov eax, edi
pop esi
call fcn.0049c07b
add ebp, 0x78
leave
ret

Function at 0x4799ba
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ebx, ecx
push edi
lea ecx, [ebp - 4]
mov edi, eax
call fcn.0040932c
mov ecx, dword [ebp + 0xc]
lea esi, [ebp - 4]
call fcn.004793c6
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
jne 0x4799f0
mov ecx, dword [ebp + 8]
call fcn.0040932c
jmp 0x479a72
call fcn.004797f5
push ebx
lea eax, [ebp - 8]
push eax
call fcn.0041f17d
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], 0
jne 0x479a12
mov ecx, dword [ebp + 8]
call fcn.0040932c
jmp 0x479a6a
push str.__o_enumsolutions
lea eax, [ebp - 8]
push eax
call fcn.00439083
lea eax, [ebp - 4]
call fcn.00438ebc
push 0x4d8c20
push edi
call fcn.00439083
push str.Solutions.list
push edi
call fcn.00439083
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x479a52
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [edi]
push dword [ebp - 8]
call fcn.0045681b
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.0041f17d
lea ecx, [ebp - 8]
call fcn.004058a3
lea ecx, [ebp - 4]
call fcn.004058a3
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x479a84
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push str.SOFTWAREMicrosoftShared_ToolsWeb_Server_Extensions_
lea eax, [ebp - 8]
push eax
call fcn.00405d14
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 8]
call fcn.004390fc
lea eax, [ebp - 0x10]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp - 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x479ad5
mov ecx, dword [ebp + 8]
call fcn.0040932c
jmp 0x479b82
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
mov ebx, str.Location
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 0xc], esi
call edi
lea ecx, [ebp - 4]
mov dword [ebp + 0xc], eax
call fcn.0040932c
cmp dword [ebp + 0xc], 0xea
jne 0x479b3a
push dword [ebp - 0xc]
lea esi, [ebp - 4]
call fcn.00405bf9
lea eax, [ebp - 0xc]
push eax
call fcn.0040d2f8
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push ebx
push dword [ebp - 0x10]
call edi
mov dword [ebp + 0xc], eax
or eax, 0xffffffff
call fcn.004092df
xor esi, esi
pop edi
pop ebx
cmp dword [ebp + 0xc], esi
jne 0x479b72
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], esi
je 0x479b72
push str.BINSTSADM.EXE
lea eax, [ebp - 4]
push eax
call fcn.00439083
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x479b72
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.0041f17d
jmp 0x479b7a
mov ecx, dword [ebp + 8]
call fcn.0040932c
lea ecx, [ebp - 4]
call fcn.004058a3
lea ecx, [ebp - 8]
call fcn.004058a3
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x479cee
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x479d04
xor al, al
jmp 0x479d71
push ebx
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
lea esi, [eax + eax]
lea eax, [esi + 2]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov dword [edi], ebx
test ebx, ebx
je 0x479d39
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
test eax, eax
jne 0x479d3d
xor al, al
jmp 0x479d6f
mov ecx, dword [ebp + 8]
push esi
push dword [ecx]
push eax
call fcn.0049e3e0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor eax, eax
push ebx
mov word [esi + ecx], ax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [edi]
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, 1
pop esi
pop ebx
leave
ret 4
Function at 0x47b349
Capabilities:
Write file on windows

Disassembly:
push 0x174
mov eax, 0x4c1c75
call fcn.004a1297
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x154], ebx
mov dword [ebp - 4], ebx
cmp byte [0x508b34], bl
jne 0x47b3a3
lea eax, [ebp - 0x148]
push eax
mov dword [ebp - 0x148], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x47b3de
cmp dword [ebp - 0x138], 2
mov byte [0x508b34], 1
sete byte [0x5039b8]
cmp byte [0x5039b8], bl
je 0x47b3de
cmp dword [edi + 0x18], 8
jb 0x47b3b6
mov edi, dword [edi + 4]
jmp 0x47b3b9
add edi, 4
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea esi, [ebp - 0x158]
call fcn.0041261a
jmp 0x47b44f
lea eax, [ebp - 0x160]
push eax
mov eax, edi
call fcn.00437767
mov esi, eax
lea eax, [ebp - 0x180]
push eax
mov eax, edi
call fcn.00437747
push dword [esi + 4]
push dword [esi]
lea esi, [ebp - 0x2c]
push dword [eax + 4]
push dword [eax]
call fcn.00437499
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x47b41e
lea eax, [ebp - 0x28]
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
lea esi, [ebp - 0x158]
call fcn.0041261a
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040165d
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.msi.dll_MsiRecordGetStringW
mov dword [ebp - 0x15c], eax
mov esi, 0xc800
push esi
lea eax, [ebp - 0x178]
push eax
xor edi, edi
call fcn.0044da70
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x168]
sub eax, dword [ebp - 0x16c]
mov dword [ebp - 0x150], esi
jne 0x47b491
call fcn.0049c5c2
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x16c]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.msi.dll_MsiRecordSetStringA
test eax, eax
jne 0x47b4ee
mov eax, dword [ebp - 0x168]
sub eax, dword [ebp - 0x16c]
jne 0x47b4c0
call fcn.0049c5c2
push ebx
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x150]
push dword [ebp - 0x16c]
push dword [ebp - 0x158]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, dword [ebp - 0x150]
cmp dword [ebp - 0x150], ebx
jne 0x47b478
cmp dword [ebp - 0x15c], edi
sete byte [ebp - 0x149]
mov byte [ebp - 4], bl
lea eax, [ebp - 0x178]
push eax
call fcn.0044dae0
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x158], ebx
je 0x47b528
push dword [ebp - 0x158]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x158], ebx
mov al, byte [ebp - 0x149]
call fcn.004a131a
ret
Function at 0x4863d9
Capabilities:
Create pipe

Disassembly:
push 0x24
mov eax, 0x4bebd4
call fcn.004a1297
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp byte [esi + 0x1c], bl
je 0x4863f9
mov al, 1
call fcn.004a131a
ret 4
push 0xffffffffffffffff
push ebx
mov byte [esi + 0x1d], cl
push eax
lea ecx, [esi + 0x20]
call fcn.00401efd
lea edi, [ebp - 0x2c]
mov ecx, esi
call fcn.0048683a
mov dword [ebp - 4], ebx
cmp byte [esi + 0x1d], bl
je 0x48644b
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x486426
lea ecx, [ebp - 0x28]
push ebx
push 0x1388
mov eax, 0x400
push eax
push eax
push 0xff
push 6
push 3
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x3c], eax
cmp byte [esi + 0x1d], bl
jne 0x48648b
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x486457
lea eax, [ebp - 0x28]
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
jne 0x48648b
mov byte [ebp - 0x2d], bl
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401800
mov al, byte [ebp - 0x2d]
jmp 0x4863f1
mov byte [esi + 0x1c], 1
mov byte [ebp - 0x2d], 1
jmp 0x486474
Function at 0x48660d
Capabilities:
Connect pipe
Read file on windows
Read pipe

Disassembly:
push 0x3c
mov eax, 0x4bc8b1
call fcn.004a1297
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], ebx
cmp byte [ebp + 0x14], bl
jne 0x48665d
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x48664a
xor edi, edi
inc edi
mov esi, edi
jmp 0x486660
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
sub esi, 0x217
neg esi
sbb esi, esi
inc esi
xor edi, edi
inc edi
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 7
call fcn.00401886
mov dword [ebp - 4], edi
cmp esi, ebx
jne 0x486691
cmp byte [ebp + 0x14], bl
jne 0x486691
mov ecx, dword [ebp - 0x30]
call fcn.00405d55
mov dword [ebp - 0x34], edi
mov byte [ebp - 4], bl
push ebx
push edi
jmp 0x486743
mov dword [ebp - 0x44], edi
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0x38], ebx
add edi, 0x40
push ebx
lea eax, [ebp - 0x48]
push eax
push 0x400
push ebx
mov ecx, edi
call fcn.004040d2
push eax
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jne 0x4866cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x486718
mov eax, dword [ebp - 0x48]
add dword [ebp - 0x38], eax
shr eax, 1
push eax
mov ecx, edi
call fcn.004040d2
xor ecx, ecx
mov word [eax], cx
cmp dword [edi + 0x18], 8
jb 0x4866ed
mov esi, dword [edi + 4]
jmp 0x4866f0
lea esi, [edi + 4]
push esi
call fcn.0049c5d2
pop ecx
push eax
mov eax, esi
lea esi, [ebp - 0x2c]
call fcn.004045a0
lea eax, [ebp - 0x44]
push eax
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [ebp - 0x44], ebx
ja 0x48669d
cmp dword [ebp - 0x3c], ebx
je 0x486730
cmp dword [ebp - 0x38], ebx
je 0x486730
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
call fcn.00405e13
jmp 0x486738
mov ecx, dword [ebp - 0x30]
call fcn.00405d55
xor eax, eax
inc eax
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], bl
push ebx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401800
mov eax, dword [ebp - 0x30]
call fcn.004a131a
ret 0x10

Function at 0x486756
Capabilities:
Write file on windows

Disassembly:
push 4
mov eax, 0x4bff70
call fcn.004a122e
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
xor edi, edi
cmp dword [ebp + 0x10], 0xffffffff
mov dword [ebp - 0x10], edi
jne 0x48677c
mov ecx, ebx
call fcn.00405d55
jmp 0x4867ba
mov ecx, dword [eax + 0x14]
add ecx, ecx
cmp dword [eax + 0x18], 8
jb 0x48678c
mov eax, dword [eax + 4]
jmp 0x48678f
add eax, 4
push edi
lea edx, [ebp + 0x14]
push edx
push ecx
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, edi
jne 0x4867ac
mov ecx, ebx
call fcn.00405d55
jmp 0x4867ba
push 1
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call fcn.0048660d
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 1
mov eax, ebx
call fcn.004a1306
ret 0x10
Function at 0x4867ce
Capabilities:
Write file on windows

Disassembly:
push ecx
mov ecx, dword [eax + 0x14]
add ecx, ecx
cmp dword [eax + 0x18], 8
jb 0x4867df
mov eax, dword [eax + 4]
jmp 0x4867e2
add eax, 4
push 0
lea edx, [esp + 4]
push edx
push ecx
push eax
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop ecx
ret

Function at 0x489032
Capabilities:
Check if file exists

Disassembly:
push 0x58
mov eax, 0x4c1472
call fcn.004a1297
mov eax, dword [ebp + 8]
lea esi, [eax + 4]
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.0044b770
xor ebx, ebx
mov dword [ebp - 4], ebx
jmp 0x4890b2
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x489062
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4890cf
lea edi, [ebp - 0x64]
lea ecx, [ebp - 0x2c]
call fcn.0044cbf0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
push ecx
mov ecx, eax
call fcn.0044b700
mov byte [ebp - 4], 2
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401efd
mov byte [ebp - 4], 1
lea eax, [ebp - 0x48]
push eax
call fcn.00413210
mov byte [ebp - 4], bl
mov eax, edi
push eax
call fcn.004856ad
cmp dword [ebp - 0x18], ebx
jne 0x489056
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2c]
push eax
call fcn.00413210
cmp dword [esi + 0x18], 8
jb 0x4890e0
mov esi, dword [esi + 4]
jmp 0x4890e3
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2c]
push eax
call fcn.00413210
mov al, 1
jmp 0x4890f0
add esi, 4
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
neg eax
sbb eax, eax
neg eax
call fcn.004a131a
ret 4
Function at 0x48f465
Capabilities:
Get common file path

Disassembly:
push 0x234
mov eax, 0x4be4eb
call fcn.004a1297
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x104
lea eax, [ebp - 0x21c]
mov esi, ecx
push eax
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor ecx, ecx
mov word [ebp + eax*2 - 0x21c], cx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x240]
call fcn.004021b7
xor edi, edi
inc edi
mov dword [ebp - 4], edi
push esi
lea ecx, [ebp - 0x240]
call fcn.0044b770
mov dword [ebp - 0x220], edi
mov byte [ebp - 4], bl
push ebx
push edi
lea ecx, [ebp - 0x240]
call fcn.00401800
push str.msiexec.exe
lea ecx, [ebp - 0x240]
call fcn.004021b7
mov dword [ebp - 4], 2
lea eax, [ebp - 0x240]
push eax
call fcn.0041348e
mov byte [ebp - 4], bl
push ebx
push edi
lea ecx, [ebp - 0x240]
call fcn.00401800
mov eax, esi
call fcn.004a131a
ret
Function at 0x4900cc
Capabilities:
Get disk information
Get disk size

Disassembly:
push 0x90
mov eax, 0x4c123e
call fcn.004a1297
mov eax, dword [ebp + 8]
mov dword [ebp - 0x7c], ecx
push eax
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x80], eax
call fcn.004021b7
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x9c]
call fcn.0044b770
mov byte [ebp - 4], 2
push edi
push 1
lea ecx, [ebp - 0x9c]
call fcn.00401800
lea eax, [ebp - 0x2c]
push eax
lea esi, [ebp - 0x9c]
call fcn.0044ba50
mov byte [ebp - 4], 3
cmp dword [eax + 0x18], 8
jb 0x490134
mov eax, dword [eax + 4]
jmp 0x490137
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebx, eax
mov byte [ebp - 4], 2
push edi
push 1
lea ecx, [ebp - 0x9c]
call fcn.00401800
cmp ebx, 3
jne 0x490160
test dword [ebp + 0xc], 0x20000
jne 0x4901ae
cmp ebx, 2
jne 0x49016e
test dword [ebp + 0xc], 0x10000
jne 0x4901ae
cmp ebx, 4
jne 0x49017c
test dword [ebp + 0xc], 0x40000
jne 0x4901ae
cmp ebx, 5
jne 0x49018a
test dword [ebp + 0xc], 0x80000
jne 0x4901ae
cmp ebx, 6
jne 0x490198
test dword [ebp + 0xc], 0x100000
jne 0x4901ae
cmp ebx, 2
jne 0x49025a
test dword [ebp + 0xc], 0x200000
je 0x49025a
lea eax, [ebp - 0x2c]
push eax
lea esi, [ebp - 0x9c]
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], edi
call fcn.0044ba50
mov byte [ebp - 4], 4
cmp dword [eax + 0x18], 8
jb 0x4901d8
mov eax, dword [eax + 4]
jmp 0x4901db
add eax, 4
push edi
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov byte [ebp - 4], 2
push edi
push 1
lea ecx, [ebp - 0x9c]
call fcn.00401800
push dword [ebp - 0x80]
lea ecx, [ebp - 0x9c]
call fcn.004021b7
mov byte [ebp - 4], 5
push ebx
push dword [ebp + 0x10]
lea eax, [ebp - 0x9c]
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0048538c
mov byte [ebp - 4], 7
push edi
push 1
lea ecx, [ebp - 0x9c]
call fcn.00401800
mov esi, dword [ebp - 0x7c]
lea eax, [ebp - 0x68]
push eax
call fcn.004913dc
mov byte [ebp - 4], 2
lea eax, [ebp - 0x68]
push eax
call fcn.004856ad
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2c]
push eax
call fcn.00413210
call fcn.004a131a
ret 0xc
Function at 0x492b8c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c11aa
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x501344]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, ecx
push str.AIEXTERNALUI
lea ecx, [esp + 0x30]
call fcn.004021b7
xor ebx, ebx
mov dword [esp + 0x70], ebx
mov eax, dword [edi + 0xc4]
mov ecx, dword [eax + 0x5c]
lea esi, [esp + 0x48]
call fcn.0043f4a0
mov byte [esp + 0x70], 1
mov ecx, dword [edi + 0xc8]
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x30]
push eax
call dword [edx + 0xc]
mov byte [esp + 0x70], bl
push ebx
push 1
mov ecx, esi
call fcn.00401800
or dword [esp + 0x70], 0xffffffff
push ebx
push 1
lea ecx, [esp + 0x34]
call fcn.00401800
mov eax, dword [edi + 0xc4]
mov ecx, dword [eax + 0xac]
add eax, 0x90
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x1c]
mov ecx, dword [ecx]
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x492c4f
cmp eax, dword [esp + 0x24]
je 0x492c54
call fcn.0049c5c2
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x20], eax
je 0x492c8f
lea esi, [esp + 0x1c]
call fcn.0041e2e0
mov dword [esp + 0x18], eax
call fcn.0041e2e0
mov esi, dword [esp + 0x18]
mov ecx, dword [edi + 0xc8]
mov edx, dword [ecx]
add esi, 0x1c
push esi
push eax
call dword [edx + 0xc]
lea esi, [esp + 0x1c]
call fcn.0041e980
jmp 0x492c41
mov esi, str.PRIMARYFOLDER
push esi
lea ecx, [esp + 0x30]
call fcn.004021b7
mov dword [esp + 0x70], 2
mov ecx, dword [edi + 0xc8]
mov eax, dword [ecx]
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x4c]
push edx
call dword [eax]
mov byte [esp + 0x70], 3
cmp dword [eax + 0x14], ebx
sete byte [esp + 0x17]
mov byte [esp + 0x70], 2
push ebx
push 1
lea ecx, [esp + 0x50]
call fcn.00401800
or dword [esp + 0x70], 0xffffffff
push ebx
push 1
lea ecx, [esp + 0x34]
call fcn.00401800
cmp byte [esp + 0x17], bl
je 0x492d4d
push str.APPDIR
lea ecx, [esp + 0x4c]
call fcn.004021b7
mov dword [esp + 0x70], 4
push esi
lea ecx, [esp + 0x30]
call fcn.004021b7
mov byte [esp + 0x70], 5
mov edi, dword [edi + 0xc8]
mov eax, dword [edi]
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
call dword [eax + 0xc]
mov byte [esp + 0x70], 4
push ebx
push 1
lea ecx, [esp + 0x34]
call fcn.00401800
or dword [esp + 0x70], 0xffffffff
push ebx
push 1
lea ecx, [esp + 0x50]
call fcn.00401800
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4943be
Capabilities:
Get common file path

Disassembly:
push 0x264
mov eax, 0x4c3f2e
call fcn.004a1297
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor ecx, ecx
mov word [ebp + eax*2 - 0x21c], cx
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x270]
call fcn.004021b7
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x270]
call fcn.0044b770
mov byte [ebp - 4], 2
push edi
push 1
lea ecx, [ebp - 0x270]
call fcn.00401800
push str.msi.dll
lea ecx, [ebp - 0x270]
call fcn.004021b7
mov byte [ebp - 4], 3
lea eax, [ebp - 0x270]
push eax
lea esi, [ebp - 0x238]
call fcn.0041348e
mov byte [ebp - 4], 2
push edi
push 1
lea ecx, [ebp - 0x270]
call fcn.00401800
lea eax, [ebp - 0x254]
push eax
call fcn.0047c6dd
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x244]
sub eax, dword [ebp - 0x248]
sar eax, 1
cmp dword [ebp - 0x220], 8
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x234]
jae 0x49449b
lea eax, [ebp - 0x234]
push edi
push edi
lea ecx, [ebp - 0x23c]
push ecx
push edi
push eax
call sub.msi.dll_MsiMessageBoxW
mov eax, dword [ebp - 0x23c]
inc eax
lea ecx, [ebp - 0x254]
call fcn.0044cf20
mov eax, dword [ebp - 0x244]
sub eax, dword [ebp - 0x248]
sar eax, 1
jne 0x4944d2
call fcn.0049c5c2
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x4944e7
lea eax, [ebp - 0x234]
push edi
push edi
lea ecx, [ebp - 0x23c]
push ecx
push dword [ebp - 0x248]
push eax
call sub.msi.dll_MsiMessageBoxW
xor ebx, ebx
cmp edi, dword [ebp - 0x23c]
jae 0x49452c
lea esi, [ebp - 0x254]
call fcn.0044ce20
cmp word [eax], 0x2e
je 0x494526
call fcn.0044ce20
imul ebx, ebx, 0xa
movzx eax, word [eax]
lea ebx, [ebx + eax - 0x30]
inc edi
cmp edi, 3
jb 0x4944fe
imul ebx, ebx, 0xa
mov byte [ebp - 4], 2
lea eax, [ebp - 0x254]
push eax
call fcn.0044dae0
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x238]
push eax
call fcn.00413210
mov eax, ebx
call fcn.004a131a
ret