joyce8/EMBER2024-capa huggingface dataset:
Function at 0x488ffc
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.004046e4
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 8]
call fcn.004434e9
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 0x48904d
push dword [ebp + 8]
call fcn.004441b6
jmp 0x4890fb
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
mov dword [ebp + 0xc], eax
lea eax, [ebp - 4]
push eax
call fcn.004441b6
cmp dword [ebp + 0xc], 0xea
jne 0x4890b3
push dword [ebp - 0xc]
lea esi, [ebp - 4]
call fcn.00402872
lea eax, [ebp - 0xc]
push eax
call fcn.00411f01
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.004028ba
xor esi, esi
pop edi
pop ebx
cmp dword [ebp + 0xc], esi
jne 0x4890eb
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], esi
je 0x4890eb
push str.BINSTSADM.EXE
lea eax, [ebp - 4]
push eax
call fcn.00443470
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4890eb
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.00425ecf
jmp 0x4890f3
push dword [ebp + 8]
call fcn.004441b6
lea ecx, [ebp - 4]
call fcn.00402907
lea ecx, [ebp - 8]
call fcn.00402907
mov eax, dword [ebp + 8]
pop esi
leave
ret

Function at 0x489259
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 0x48926f
xor al, al
jmp 0x4892dc
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 0x4892a4
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4892a8
xor al, al
jmp 0x4892da
mov ecx, dword [ebp + 8]
push esi
push dword [ecx]
push eax
call fcn.004af950
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 0x48c5aa
Capabilities:
Write file on windows

Disassembly:
push 0x174
mov eax, 0x4d6918
call fcn.004b3d87
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x154], ebx
mov dword [ebp - 4], ebx
cmp byte [0x526e6c], bl
jne 0x48c604
lea eax, [ebp - 0x148]
push eax
mov dword [ebp - 0x148], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x48c63d
cmp dword [ebp - 0x138], 2
mov byte [0x526e6c], 1
sete byte [0x521bb4]
cmp byte [0x521bb4], bl
je 0x48c63d
cmp dword [edi + 0x18], 8
jb 0x48c617
mov edi, dword [edi + 4]
jmp 0x48c61a
add edi, 4
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, ebx
je 0x48c6ac
mov dword [ebp - 0x158], eax
jmp 0x48c6ac
lea eax, [ebp - 0x160]
push eax
mov eax, edi
call fcn.00441dc5
mov esi, eax
lea eax, [ebp - 0x180]
push eax
mov eax, edi
call fcn.00441da5
push dword [esi + 4]
push dword [esi]
lea esi, [ebp - 0x2c]
push dword [eax + 4]
push dword [eax]
call fcn.00441a87
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x48c67d
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]
cmp eax, ebx
je 0x48c69e
mov dword [ebp - 0x158], eax
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00405ada
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.00459fe0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x168]
sub eax, dword [ebp - 0x16c]
mov dword [ebp - 0x150], esi
jne 0x48c6ee
call fcn.004af418
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 0x48c74b
mov eax, dword [ebp - 0x168]
sub eax, dword [ebp - 0x16c]
jne 0x48c71d
call fcn.004af418
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 0x48c6d5
cmp dword [ebp - 0x15c], edi
sete byte [ebp - 0x149]
mov byte [ebp - 4], bl
lea eax, [ebp - 0x178]
push eax
call fcn.00459100
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x158], ebx
je 0x48c785
push dword [ebp - 0x158]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x158], ebx
mov al, byte [ebp - 0x149]
call fcn.004b3e0a
ret
Function at 0x49512f
Capabilities:
Create pipe

Disassembly:
push 0x24
mov eax, 0x4d3e72
call fcn.004b3d87
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp byte [esi + 0x1c], bl
je 0x49514f
mov al, 1
call fcn.004b3e0a
ret 4
push 0xffffffffffffffff
push ebx
mov byte [esi + 0x1d], cl
push eax
lea ecx, [esi + 0x20]
call fcn.00403e21
lea edi, [ebp - 0x2c]
mov ecx, esi
call fcn.00495590
mov dword [ebp - 4], ebx
cmp byte [esi + 0x1d], bl
je 0x4951a1
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x49517c
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 0x4951e1
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4951ad
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 0x4951e1
mov byte [ebp - 0x2d], bl
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403537
mov al, byte [ebp - 0x2d]
jmp 0x495147
mov byte [esi + 0x1c], 1
mov byte [ebp - 0x2d], 1
jmp 0x4951ca
Function at 0x495363
Capabilities:
Connect pipe
Read file on windows
Read pipe

Disassembly:
push 0x3c
mov eax, 0x4d1860
call fcn.004b3d87
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 0x4953b3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x4953a0
xor edi, edi
inc edi
mov esi, edi
jmp 0x4953b6
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.004035bd
mov dword [ebp - 4], edi
cmp esi, ebx
jne 0x4953e7
cmp byte [ebp + 0x14], bl
jne 0x4953e7
mov ecx, dword [ebp - 0x30]
call fcn.0040965c
mov dword [ebp - 0x34], edi
mov byte [ebp - 4], bl
push ebx
push edi
jmp 0x495499
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.004081a2
push eax
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jne 0x495423
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x49546e
mov eax, dword [ebp - 0x48]
add dword [ebp - 0x38], eax
shr eax, 1
push eax
mov ecx, edi
call fcn.004081a2
xor ecx, ecx
mov word [eax], cx
cmp dword [edi + 0x18], 8
jb 0x495443
mov esi, dword [edi + 4]
jmp 0x495446
lea esi, [edi + 4]
push esi
call fcn.004af01d
pop ecx
push eax
mov eax, esi
lea esi, [ebp - 0x2c]
call fcn.00408558
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 0x4953f3
cmp dword [ebp - 0x3c], ebx
je 0x495486
cmp dword [ebp - 0x38], ebx
je 0x495486
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
call fcn.00409636
jmp 0x49548e
mov ecx, dword [ebp - 0x30]
call fcn.0040965c
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.00403537
mov eax, dword [ebp - 0x30]
call fcn.004b3e0a
ret 0x10

Function at 0x4954ac
Capabilities:
Write file on windows

Disassembly:
push 4
mov eax, 0x4cfc52
call fcn.004b3d1e
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
xor edi, edi
cmp dword [ebp + 0x10], 0xffffffff
mov dword [ebp - 0x10], edi
jne 0x4954d2
mov ecx, ebx
call fcn.0040965c
jmp 0x495510
mov ecx, dword [eax + 0x14]
add ecx, ecx
cmp dword [eax + 0x18], 8
jb 0x4954e2
mov eax, dword [eax + 4]
jmp 0x4954e5
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 0x495502
mov ecx, ebx
call fcn.0040965c
jmp 0x495510
push 1
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call fcn.00495363
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 1
mov eax, ebx
call fcn.004b3df6
ret 0x10
Function at 0x495524
Capabilities:
Write file on windows

Disassembly:
push ecx
mov ecx, dword [eax + 0x14]
add ecx, ecx
cmp dword [eax + 0x18], 8
jb 0x495535
mov eax, dword [eax + 4]
jmp 0x495538
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 0x497e2a
Capabilities:
Check if file exists

Disassembly:
push 0x58
mov eax, 0x4d6228
call fcn.004b3d87
mov eax, dword [ebp + 8]
lea esi, [eax + 4]
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.00457a30
xor ebx, ebx
mov dword [ebp - 4], ebx
jmp 0x497eaa
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x497e5a
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x497ec7
lea edi, [ebp - 0x64]
lea ecx, [ebp - 0x2c]
call fcn.00458ed0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
push ecx
mov ecx, eax
call fcn.004579c0
mov byte [ebp - 4], 2
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403e21
mov byte [ebp - 4], 1
lea eax, [ebp - 0x48]
push eax
call fcn.004035db
mov byte [ebp - 4], bl
mov eax, edi
push eax
call fcn.004a06d3
cmp dword [ebp - 0x18], ebx
jne 0x497e4e
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2c]
push eax
call fcn.004035db
cmp dword [esi + 0x18], 8
jb 0x497ed8
mov esi, dword [esi + 4]
jmp 0x497edb
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2c]
push eax
call fcn.004035db
mov al, 1
jmp 0x497ee8
add esi, 4
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
neg eax
sbb eax, eax
neg eax
call fcn.004b3e0a
ret 4
Function at 0x49a802
Capabilities:
Parse credit card information

Disassembly:
push 0x68
mov eax, 0x4d37c7
call fcn.004b3d87
mov esi, ecx
push str.PIDTemplate
lea ecx, [ebp - 0x6c]
call fcn.0040417e
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
lea edx, [ebp - 0x6c]
push edx
lea edx, [ebp - 0x2c]
push edx
call dword [eax]
mov byte [ebp - 4], 2
xor ebx, ebx
push edi
inc ebx
push ebx
lea ecx, [ebp - 0x6c]
call fcn.00403537
cmp dword [ebp - 0x18], 3
jb 0x49a905
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040d02e
mov ecx, eax
call fcn.0040cf40
cmp word [eax], 0x3c
jne 0x49a905
push ebx
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00418da8
mov ecx, eax
call fcn.00419c9e
mov ecx, eax
call fcn.0040cf40
cmp word [eax], 0x3e
jne 0x49a905
mov eax, dword [ebp - 0x18]
add eax, 0xfffffffe
push eax
push ebx
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040cf96
mov byte [ebp - 4], 3
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403e21
mov byte [ebp - 4], 2
push edi
push ebx
lea ecx, [ebp - 0x6c]
call fcn.00403537
push str.PIDKEY
lea ecx, [ebp - 0x6c]
call fcn.0040417e
mov byte [ebp - 4], 4
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
lea edx, [ebp - 0x6c]
push edx
lea edx, [ebp - 0x48]
push edx
call dword [eax]
mov byte [ebp - 4], 6
push edi
push ebx
lea ecx, [ebp - 0x6c]
call fcn.00403537
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x18]
je 0x49a91b
mov byte [ebp - 4], 2
push edi
push ebx
lea ecx, [ebp - 0x48]
call fcn.00403537
or dword [ebp - 4], 0xffffffff
push edi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00403537
xor al, al
call fcn.004b3e0a
ret
mov dword [ebp - 0x4c], edi
cmp eax, edi
jbe 0x49a9a1
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x2c]
call fcn.004081a2
movzx eax, word [eax]
cmp eax, 0x3d
jg 0x49a95e
je 0x49a996
sub eax, 0x23
je 0x49a943
dec eax
dec eax
je 0x49a943
dec eax
jmp 0x49a970
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x48]
call fcn.004081a2
movzx eax, word [eax]
push eax
call fcn.004b148b
pop ecx
test eax, eax
je 0x49a8f7
jmp 0x49a996
cmp eax, 0x3f
jl 0x49a972
cmp eax, 0x40
jle 0x49a996
cmp eax, 0x5e
je 0x49a996
cmp eax, 0x60
je 0x49a996
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x48]
call fcn.004081a2
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.004081a2
mov cx, word [esi]
cmp cx, word [eax]
jne 0x49a8f7
inc dword [ebp - 0x4c]
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x34]
jb 0x49a922
mov byte [ebp - 4], 2
push edi
push ebx
lea ecx, [ebp - 0x48]
call fcn.00403537
or dword [ebp - 4], 0xffffffff
push edi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00403537
mov al, bl
jmp 0x49a915
Function at 0x49ee96
Capabilities:
Get common file path

Disassembly:
push 0x234
mov eax, 0x4d36a1
call fcn.004b3d87
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.0040417e
xor edi, edi
inc edi
mov dword [ebp - 4], edi
push esi
lea ecx, [ebp - 0x240]
call fcn.00457a30
mov dword [ebp - 0x220], edi
mov byte [ebp - 4], bl
push ebx
push edi
lea ecx, [ebp - 0x240]
call fcn.00403537
push str.msiexec.exe
lea ecx, [ebp - 0x240]
call fcn.0040417e
mov dword [ebp - 4], 2
lea eax, [ebp - 0x240]
push eax
call fcn.00419511
mov byte [ebp - 4], bl
push ebx
push edi
lea ecx, [ebp - 0x240]
call fcn.00403537
mov eax, esi
call fcn.004b3e0a
ret
Function at 0x49fd4e
Capabilities:
Get disk information
Get disk size

Disassembly:
push 0x90
mov eax, 0x4d611f
call fcn.004b3d87
mov eax, dword [ebp + 8]
mov dword [ebp - 0x7c], ecx
push eax
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x80], eax
call fcn.0040417e
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x9c]
call fcn.00457a30
mov byte [ebp - 4], 2
push edi
push 1
lea ecx, [ebp - 0x9c]
call fcn.00403537
lea eax, [ebp - 0x2c]
push eax
lea esi, [ebp - 0x9c]
call fcn.00457d10
mov byte [ebp - 4], 3
cmp dword [eax + 0x18], 8
jb 0x49fdb6
mov eax, dword [eax + 4]
jmp 0x49fdb9
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.00403537
cmp ebx, 3
jne 0x49fde2
test dword [ebp + 0xc], 0x20000
jne 0x49fe30
cmp ebx, 2
jne 0x49fdf0
test dword [ebp + 0xc], 0x10000
jne 0x49fe30
cmp ebx, 4
jne 0x49fdfe
test dword [ebp + 0xc], 0x40000
jne 0x49fe30
cmp ebx, 5
jne 0x49fe0c
test dword [ebp + 0xc], 0x80000
jne 0x49fe30
cmp ebx, 6
jne 0x49fe1a
test dword [ebp + 0xc], 0x100000
jne 0x49fe30
cmp ebx, 2
jne 0x49fedc
test dword [ebp + 0xc], 0x200000
je 0x49fedc
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.00457d10
mov byte [ebp - 4], 4
cmp dword [eax + 0x18], 8
jb 0x49fe5a
mov eax, dword [eax + 4]
jmp 0x49fe5d
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.00403537
push dword [ebp - 0x80]
lea ecx, [ebp - 0x9c]
call fcn.0040417e
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.00494090
mov byte [ebp - 4], 7
push edi
push 1
lea ecx, [ebp - 0x9c]
call fcn.00403537
mov esi, dword [ebp - 0x7c]
lea eax, [ebp - 0x68]
push eax
call fcn.004a1088
mov byte [ebp - 4], 2
lea eax, [ebp - 0x68]
push eax
call fcn.004a06d3
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2c]
push eax
call fcn.004035db
call fcn.004b3e0a
ret 0xc
Function at 0x4a4834
Capabilities:
Get common file path

Disassembly:
push 0x264
mov eax, 0x4d8e82
call fcn.004b3d87
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.0040417e
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x270]
call fcn.00457a30
mov byte [ebp - 4], 2
push edi
push 1
lea ecx, [ebp - 0x270]
call fcn.00403537
push str.msi.dll
lea ecx, [ebp - 0x270]
call fcn.0040417e
mov byte [ebp - 4], 3
lea eax, [ebp - 0x270]
push eax
lea esi, [ebp - 0x238]
call fcn.00419511
mov byte [ebp - 4], 2
push edi
push 1
lea ecx, [ebp - 0x270]
call fcn.00403537
lea eax, [ebp - 0x254]
push eax
call fcn.0048d938
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 0x4a4911
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.00459220
mov eax, dword [ebp - 0x244]
sub eax, dword [ebp - 0x248]
sar eax, 1
jne 0x4a4948
call fcn.004af418
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x4a495d
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 0x4a49a2
lea esi, [ebp - 0x254]
call fcn.00459170
cmp word [eax], 0x2e
je 0x4a499c
call fcn.00459170
imul ebx, ebx, 0xa
movzx eax, word [eax]
lea ebx, [ebx + eax - 0x30]
inc edi
cmp edi, 3
jb 0x4a4974
imul ebx, ebx, 0xa
mov byte [ebp - 4], 2
lea eax, [ebp - 0x254]
push eax
call fcn.00459100
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x238]
push eax
call fcn.004035db
mov eax, ebx
call fcn.004b3e0a
ret
Function at 0x4a72ac
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d3490
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x51f714]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
lea eax, [ecx + 0xec]
mov dword [esp + 0x1c], eax
inc dword [eax]
mov byte [esp + 0x20], 0
and dword [esp + 0x38], 0
lea edi, [ecx + 0xf0]
mov ebx, dword [edi + 0xc]
lea esi, [esp + 0x24]
call fcn.00415706
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov ebx, dword [edi + 0x10]
lea esi, [esp + 0x24]
call fcn.00415706
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4a732d
cmp esi, dword [esp + 0x24]
je 0x4a7332
call fcn.004af418
mov ebx, dword [esp + 0x18]
cmp ebx, dword [esp + 0x28]
je 0x4a737d
test esi, esi
jne 0x4a7375
call fcn.004af418
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x4a7351
call fcn.004af418
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push ebx
call dword [eax]
test esi, esi
jne 0x4a7379
call fcn.004af418
cmp ebx, dword [esi + 0x10]
jb 0x4a736c
call fcn.004af418
add ebx, 0x4c
mov dword [esp + 0x18], ebx
jmp 0x4a7313
mov eax, dword [esi]
jmp 0x4a7347
mov esi, dword [esi]
jmp 0x4a7362
mov eax, edi
call fcn.004a75aa
or dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x1c]
dec dword [eax]
mov byte [esp + 0x20], 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4a94b5
Capabilities:
Delete directory

Disassembly:
push 8
mov eax, 0x4d267e
call fcn.004b3d1e
lea eax, [ebp - 0x10]
push eax
call fcn.004441b6
and dword [ebp - 4], 0
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x4a9516
lea ecx, [eax - 1]
mov eax, esi
call fcn.00457360
cmp ax, 0x5c
jne 0x4a9516
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
lea ecx, [eax - 1]
lea eax, [ebp + 0xc]
push eax
push esi
call fcn.00438242
mov byte [ebp - 4], 1
lea edi, [ebp - 0x10]
call fcn.004432a9
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00402907
jmp 0x4a9520
mov eax, esi
lea edi, [ebp - 0x10]
call fcn.004432a9
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov ecx, dword [esi]
cmp eax, dword [ecx - 0xc]
jge 0x4a9573
push 0x5c
call fcn.00443314
lea ecx, [ebp - 0x14]
push ecx
push esi
mov ecx, eax
call fcn.00438242
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x4a9567
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004a94b5
pop ecx
pop ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402907
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00402907
call fcn.004b3df6
ret