joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467a61
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
push eax
call fcn.00403dfc
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x80]
mov ecx, dword [eax + 8]
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0x10]
add ecx, 4
call fcn.00451fb3
add eax, 0x1c
push eax
lea eax, [ebp - 8]
push eax
call fcn.00419e44
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], 0
je 0x467b82
mov eax, dword [edi + 0x84]
add eax, 4
push eax
lea eax, [ebp - 4]
push eax
call fcn.00419e44
lea eax, [ebp - 4]
call fcn.004452a0
mov eax, dword [esi + 0x14]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.00434240
lea eax, [ebp - 4]
call fcn.004452a0
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00462d08
mov eax, dword [eax]
pop ecx
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.00434240
lea ecx, [ebp - 0x10]
call fcn.00403d84
xor bl, bl
mov esi, edi
call fcn.00467c31
push 0x8a
lea esi, [ebp - 0xc]
call fcn.00460189
pop ecx
push dword [ebp - 0xc]
push 2
push dword [edi + 0xf4]
push dword [ebp + 0xc]
call fcn.00425d8b
mov ecx, dword [ebp - 4]
push 0
push dword [ebp - 8]
call fcn.00460619
mov bl, al
pop ecx
pop ecx
test bl, bl
jne 0x467b6e
lea esi, [ebp - 4]
call fcn.0040808a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x5c
call fcn.0043406b
lea ecx, [ebp - 0x10]
push ecx
mov ecx, esi
push ecx
mov ecx, eax
call fcn.0042927c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x10]
call fcn.00403d84
lea ecx, [ebp - 0xc]
call fcn.00403d84
lea ecx, [ebp - 4]
call fcn.00403d84
test bl, bl
je 0x467bab
push dword [edi + 0xf4]
push dword [ebp + 0xc]
call fcn.00426664
mov ecx, dword [edi + 0x80]
mov ecx, dword [ecx + 8]
add ecx, 4
call fcn.00451fb3
mov byte [eax + 0x60], 1
mov byte [ebp + 0xf], 1
jmp 0x467c05
inc dword [edi + 0x184]
lea eax, [ebp - 4]
push eax
call fcn.00403dfc
push 0x8b
lea esi, [ebp - 0x10]
call fcn.00460189
pop ecx
lea edi, [ebp - 4]
call fcn.004085dd
mov ecx, esi
call fcn.00403d84
push dword [ebp - 4]
mov eax, dword [ebp + 8]
push 2
push dword [eax + 0xf4]
push dword [ebp + 0xc]
call fcn.00425d8b
mov eax, dword [ebp + 0x10]
mov ecx, edi
mov dword [eax + 0xc], 1
mov byte [ebp + 0xf], 0
call fcn.00403d84
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], 0
je 0x467c17
mov bl, 1
mov esi, edi
call fcn.00467c31
lea ecx, [ebp - 8]
call fcn.00403d84
lea ecx, [ebp - 0x14]
call fcn.00403d84
mov al, byte [ebp + 0xf]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4691ac
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebx + 0x74]
push edi
call fcn.0045c22c
mov eax, dword [ebx + 0x74]
xor esi, esi
push esi
push 0x3025
call fcn.0045c2c5
mov eax, dword [ebx + 0x74]
push esi
push 0x3023
call fcn.0045c2c5
mov eax, dword [ebx + 0x74]
push esi
push 0x3024
call fcn.0045c2c5
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x401
push dword [ebx + 4]
call edi
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x7f04
push ebx
call fcn.00469507
push ebx
call fcn.004692c6
mov dword [ebx + 0x88], esi
push 0
lea esi, [ebx + 0x80]
push dword [esi]
call fcn.0045b361
test eax, eax
jne 0x469290
mov esi, dword [esi]
add esi, 0x3c
lea eax, [ebx + 0x7c]
mov byte [esi + 0x19], 0
mov byte [esi + 0x18], 0
mov dword [esi + 0x10], eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [esi + 0x1c], eax
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push esi
push 0x4627bb
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xae
lea esi, [ebp - 4]
call fcn.00460189
pop ecx
mov edi, eax
call fcn.004698a0
mov ecx, esi
mov dword [ebx + 0x94], eax
call fcn.00403d84
push 0
push 0x3e8
push 1
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x4692c0
mov eax, dword [ebx + 0x74]
mov esi, dword [sym.imp.USER32.dll_GetParent]
mov byte [eax + 0x85], 1
push dword [ebx + 4]
call esi
push 2
push eax
call edi
push dword [ebx + 4]
mov edi, eax
call esi
push edi
push 2
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
xor eax, eax
pop esi
leave
ret

Function at 0x469f1b
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 0x469f31
xor al, al
jmp 0x469f9e
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 0x469f66
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
test eax, eax
jne 0x469f6a
xor al, al
jmp 0x469f9c
mov ecx, dword [ebp + 8]
push esi
push dword [ecx]
push eax
call fcn.0048bcb0
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 0x472337
Capabilities:
Write file on windows

Disassembly:
push 0x174
mov eax, 0x4ab7ea
call fcn.0048e547
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x154], ebx
mov dword [ebp - 4], ebx
cmp byte [0x4ec728], bl
jne 0x472391
lea eax, [ebp - 0x148]
push eax
mov dword [ebp - 0x148], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4723cc
cmp dword [ebp - 0x138], 2
mov byte [0x4ec728], 1
sete byte [0x4e7678]
cmp byte [0x4e7678], bl
je 0x4723cc
cmp dword [edi + 0x18], 8
jb 0x4723a4
mov edi, dword [edi + 4]
jmp 0x4723a7
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.0040bfad
jmp 0x47243d
lea eax, [ebp - 0x160]
push eax
mov eax, edi
call fcn.00432b72
mov esi, eax
lea eax, [ebp - 0x180]
push eax
mov eax, edi
call fcn.00432b52
push dword [esi + 4]
push dword [esi]
lea esi, [ebp - 0x2c]
push dword [eax + 4]
push dword [eax]
call fcn.004328a4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x47240c
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.0040bfad
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402057
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.msi.dll_MsiRecordGetStringW
push ecx
mov edi, eax
mov dword [ebp - 0x15c], esp
lea eax, [ebp - 0x178]
mov dword [ebp - 0x15c], esp
push eax
xor esi, esi
call fcn.00443ff0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x149]
push eax
lea eax, [ebp - 0x178]
push eax
mov byte [ebp - 0x149], bl
call fcn.00473dbe
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x168]
sub eax, dword [ebp - 0x16c]
mov dword [ebp - 0x150], 0xc800
jne 0x4724a3
call fcn.00489d53
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 0x472500
mov eax, dword [ebp - 0x168]
sub eax, dword [ebp - 0x16c]
jne 0x4724d2
call fcn.00489d53
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 esi, dword [ebp - 0x150]
cmp dword [ebp - 0x150], ebx
jne 0x472486
cmp edi, esi
sete byte [ebp - 0x149]
mov byte [ebp - 4], bl
lea eax, [ebp - 0x178]
push eax
call fcn.00443340
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x158], ebx
je 0x472536
push dword [ebp - 0x158]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x158], ebx
mov al, byte [ebp - 0x149]
call fcn.0048e5ca
ret
Function at 0x4765aa
Capabilities:
Create pipe

Disassembly:
push 0x20
mov eax, 0x4a838d
call fcn.0048e547
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp byte [esi + 0x1c], bl
jne 0x47664a
push 0xffffffffffffffff
push ebx
mov byte [esi + 0x1d], cl
push eax
lea ecx, [esi + 0x20]
mov byte [esi + 0x1c], 1
call fcn.00404072
lea edi, [ebp - 0x2c]
mov ecx, esi
call fcn.004769c8
mov dword [ebp - 4], ebx
cmp byte [esi + 0x1d], bl
je 0x47661a
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x4765f5
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 0x47663b
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x476626
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
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004043a7
mov al, 1
call fcn.0048e5ca
ret 4

Function at 0x4767c6
Capabilities:
Connect pipe
Read file on windows
Read pipe

Disassembly:
push 0x3c
mov eax, 0x4a67c9
call fcn.0048e547
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ebx
cmp byte [ebp + 0x10], bl
jne 0x47680c
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x4767f9
inc esi
jmp 0x47680c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
sub esi, 0x217
neg esi
sbb esi, esi
inc esi
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 7
call fcn.00404389
xor eax, eax
inc eax
mov dword [ebp - 4], eax
cmp esi, ebx
jne 0x476838
cmp byte [ebp + 0x10], bl
jne 0x476838
mov ecx, dword [ebp - 0x30]
call fcn.00405716
jmp 0x4768c5
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x40], eax
mov eax, dword [edi + 0x40]
push ebx
lea ecx, [ebp - 0x48]
push ecx
push 0x400
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x44], eax
cmp eax, ebx
jne 0x476869
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4768a5
mov eax, dword [ebp - 0x48]
add dword [ebp - 0x34], eax
mov ecx, dword [edi + 0x40]
shr eax, 1
xor edx, edx
mov word [ecx + eax*2], dx
mov esi, dword [edi + 0x40]
push esi
call fcn.0048a11b
pop ecx
push eax
mov eax, esi
lea esi, [ebp - 0x2c]
call fcn.00403a2a
lea eax, [ebp - 0x40]
push eax
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [ebp - 0x40], ebx
ja 0x47683e
cmp dword [ebp - 0x44], ebx
je 0x4768bd
cmp dword [ebp - 0x34], ebx
je 0x4768bd
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
call fcn.0040572b
jmp 0x4768c5
mov ecx, dword [ebp - 0x30]
call fcn.00405716
xor eax, eax
inc eax
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], bl
push ebx
push eax
lea ecx, [ebp - 0x2c]
call fcn.004043a7
mov eax, dword [ebp - 0x30]
call fcn.0048e5ca
ret 0xc
Function at 0x4768e3
Capabilities:
Write file on windows

Disassembly:
push 4
mov eax, 0x4af881
call fcn.0048e4de
mov eax, dword [ebp + 0x10]
xor ebx, ebx
cmp dword [ebp + 0xc], 0xffffffff
mov dword [ebp - 0x10], ebx
jne 0x476908
mov ecx, dword [ebp + 8]
push ebx
call fcn.0040432c
jmp 0x476947
cmp dword [eax + 0x18], 8
mov ecx, dword [eax + 0x14]
jb 0x476916
mov eax, dword [eax + 4]
jmp 0x476919
add eax, 4
push ebx
lea edx, [ebp + 0x10]
push edx
add ecx, ecx
push ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x47693a
mov ecx, dword [ebp + 8]
push ebx
call fcn.0040432c
jmp 0x476947
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004767c6
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
call fcn.0048e5b6
ret 0xc

Function at 0x47695c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp dword [eax + 0x18], 8
mov ecx, dword [eax + 0x14]
jb 0x47696b
mov eax, dword [eax + 4]
jmp 0x47696e
add eax, 4
push 0
lea edx, [esp + 4]
push edx
add ecx, ecx
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 0x47900b
Capabilities:
Check if file exists

Disassembly:
push 0x58
mov eax, 0x4a8a2c
call fcn.0048e547
mov eax, dword [ebp + 8]
lea esi, [eax + 4]
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.004424d0
xor ebx, ebx
mov dword [ebp - 4], ebx
jmp 0x47908b
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x47903b
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4790a8
lea edi, [ebp - 0x64]
lea ecx, [ebp - 0x2c]
call fcn.00443230
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
push ecx
mov ecx, eax
call fcn.00442460
mov byte [ebp - 4], 2
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404072
mov byte [ebp - 4], 1
lea eax, [ebp - 0x48]
push eax
call fcn.0040ca60
mov byte [ebp - 4], bl
mov eax, edi
push eax
call fcn.0047ed56
cmp dword [ebp - 0x18], ebx
jne 0x47902f
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2c]
push eax
call fcn.0040ca60
cmp dword [esi + 0x18], 8
jb 0x4790b9
mov esi, dword [esi + 4]
jmp 0x4790bc
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2c]
push eax
call fcn.0040ca60
mov al, 1
jmp 0x4790c9
add esi, 4
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
neg eax
sbb eax, eax
neg eax
call fcn.0048e5ca
ret 4
Function at 0x47ed7a
Capabilities:
Get disk information
Get disk size

Disassembly:
push 0x90
mov eax, 0x4ab270
call fcn.0048e547
mov eax, dword [ebp + 8]
mov dword [ebp - 0x7c], ecx
push eax
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x80], eax
call fcn.0040432c
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x9c]
call fcn.004424d0
mov byte [ebp - 4], 2
push edi
push 1
lea ecx, [ebp - 0x9c]
call fcn.004043a7
lea eax, [ebp - 0x2c]
push eax
lea esi, [ebp - 0x9c]
call fcn.004426f0
mov byte [ebp - 4], 3
cmp dword [eax + 0x18], 8
jb 0x47ede2
mov eax, dword [eax + 4]
jmp 0x47ede5
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.004043a7
cmp ebx, 3
jne 0x47ee0e
test dword [ebp + 0xc], 0x20000
jne 0x47ee5c
cmp ebx, 2
jne 0x47ee1c
test dword [ebp + 0xc], 0x10000
jne 0x47ee5c
cmp ebx, 4
jne 0x47ee2a
test dword [ebp + 0xc], 0x40000
jne 0x47ee5c
cmp ebx, 5
jne 0x47ee38
test dword [ebp + 0xc], 0x80000
jne 0x47ee5c
cmp ebx, 6
jne 0x47ee46
test dword [ebp + 0xc], 0x100000
jne 0x47ee5c
cmp ebx, 2
jne 0x47ef08
test dword [ebp + 0xc], 0x200000
je 0x47ef08
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.004426f0
mov byte [ebp - 4], 4
cmp dword [eax + 0x18], 8
jb 0x47ee86
mov eax, dword [eax + 4]
jmp 0x47ee89
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.004043a7
push dword [ebp - 0x80]
lea ecx, [ebp - 0x9c]
call fcn.0040432c
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.00474f21
mov byte [ebp - 4], 7
push edi
push 1
lea ecx, [ebp - 0x9c]
call fcn.004043a7
mov esi, dword [ebp - 0x7c]
lea eax, [ebp - 0x68]
push eax
call fcn.0047fc1c
mov byte [ebp - 4], 2
lea eax, [ebp - 0x68]
push eax
call fcn.0047ed56
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2c]
push eax
call fcn.0040ca60
call fcn.0048e5ca
ret 0xc
Function at 0x480f1e
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ab1dc
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x4e52f4]
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.0040432c
xor ebx, ebx
mov dword [esp + 0x70], ebx
mov eax, dword [edi + 0xc0]
mov ecx, dword [eax + 0x5c]
lea esi, [esp + 0x48]
call fcn.00439a20
mov byte [esp + 0x70], 1
mov ecx, dword [edi + 0xc4]
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.004043a7
or dword [esp + 0x70], 0xffffffff
push ebx
push 1
lea ecx, [esp + 0x34]
call fcn.004043a7
mov eax, dword [edi + 0xc0]
mov ecx, dword [eax + 0xa8]
add eax, 0x8c
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 0x480fe1
cmp eax, dword [esp + 0x24]
je 0x480fe6
call fcn.00489d53
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x20], eax
je 0x481021
lea esi, [esp + 0x1c]
call fcn.0041f908
mov dword [esp + 0x18], eax
call fcn.0041f908
mov esi, dword [esp + 0x18]
mov ecx, dword [edi + 0xc4]
mov edx, dword [ecx]
add esi, 0x1c
push esi
push eax
call dword [edx + 0xc]
lea esi, [esp + 0x1c]
call fcn.0046fbbc
jmp 0x480fd3
mov esi, str.PRIMARYFOLDER
push esi
lea ecx, [esp + 0x30]
call fcn.0040432c
mov dword [esp + 0x70], 2
mov ecx, dword [edi + 0xc4]
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.004043a7
or dword [esp + 0x70], 0xffffffff
push ebx
push 1
lea ecx, [esp + 0x34]
call fcn.004043a7
cmp byte [esp + 0x17], bl
je 0x4810df
push str.APPDIR
lea ecx, [esp + 0x4c]
call fcn.0040432c
mov dword [esp + 0x70], 4
push esi
lea ecx, [esp + 0x30]
call fcn.0040432c
mov byte [esp + 0x70], 5
mov edi, dword [edi + 0xc4]
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.004043a7
or dword [esp + 0x70], 0xffffffff
push ebx
push 1
lea ecx, [esp + 0x50]
call fcn.004043a7
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 0x482591
Capabilities:
Get common file path

Disassembly:
push 0x264
mov eax, 0x4adc7b
call fcn.0048e547
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.0040432c
xor esi, esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x270]
call fcn.004424d0
mov byte [ebp - 4], 2
push esi
push 1
lea ecx, [ebp - 0x270]
call fcn.004043a7
push str.msi.dll
lea ecx, [ebp - 0x270]
call fcn.0040432c
mov byte [ebp - 4], 3
lea eax, [ebp - 0x270]
push eax
lea ebx, [ebp - 0x238]
call fcn.0040ccde
mov byte [ebp - 4], 2
push esi
push 1
lea ecx, [ebp - 0x270]
call fcn.004043a7
lea eax, [ebp - 0x254]
push eax
call fcn.00443e30
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 0x48266e
lea eax, [ebp - 0x234]
push esi
push esi
lea ecx, [ebp - 0x23c]
push ecx
push esi
push eax
call sub.msi.dll_MsiMessageBoxW
mov eax, dword [ebp - 0x23c]
inc eax
lea ecx, [ebp - 0x254]
call fcn.004434b0
mov eax, dword [ebp - 0x244]
sub eax, dword [ebp - 0x248]
sar eax, 1
jne 0x4826a5
call fcn.00489d53
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x4826ba
lea eax, [ebp - 0x234]
push esi
push esi
lea ecx, [ebp - 0x23c]
push ecx
push dword [ebp - 0x248]
push eax
call sub.msi.dll_MsiMessageBoxW
xor ebx, ebx
xor edi, edi
cmp edi, dword [ebp - 0x23c]
jae 0x482701
lea esi, [ebp - 0x254]
call fcn.004433b0
cmp word [eax], 0x2e
je 0x4826fb
call fcn.004433b0
imul ebx, ebx, 0xa
movzx eax, word [eax]
lea ebx, [ebx + eax - 0x30]
inc edi
cmp edi, 3
jb 0x4826d3
imul ebx, ebx, 0xa
mov byte [ebp - 4], 2
lea eax, [ebp - 0x254]
push eax
call fcn.00443340
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x238]
push eax
call fcn.0040ca60
mov eax, ebx
call fcn.0048e5ca
ret
Function at 0x484f3f
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a78ee
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4e52f4]
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.0042f7ff
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.0042f7ff
mov esi, dword [esp + 0x14]
test esi, esi
je 0x484fc0
cmp esi, dword [esp + 0x24]
je 0x484fc5
call fcn.00489d53
mov ebx, dword [esp + 0x18]
cmp ebx, dword [esp + 0x28]
je 0x485010
test esi, esi
jne 0x485008
call fcn.00489d53
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x484fe4
call fcn.00489d53
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push ebx
call dword [eax]
test esi, esi
jne 0x48500c
call fcn.00489d53
cmp ebx, dword [esi + 0x10]
jb 0x484fff
call fcn.00489d53
add ebx, 0x4c
mov dword [esp + 0x18], ebx
jmp 0x484fa6
mov eax, dword [esi]
jmp 0x484fda
mov esi, dword [esi]
jmp 0x484ff5
mov eax, edi
call fcn.00485236
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 0x486f70
Capabilities:
Delete directory

Disassembly:
push 8
mov eax, 0x4a667a
call fcn.0048e4de
lea eax, [ebp - 0x10]
push eax
call fcn.00403dfc
and dword [ebp - 4], 0
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x486fe2
lea ecx, [eax - 1]
test ecx, ecx
jl 0x486fd8
mov eax, esi
call fcn.004445d0
movzx eax, ax
cmp ax, 0x5c
jne 0x486fe2
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
lea ecx, [eax - 1]
lea eax, [ebp + 0xc]
push eax
push esi
call fcn.0042927c
mov byte [ebp - 4], 1
lea edi, [ebp - 0x10]
call fcn.004085dd
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00403d84
jmp 0x486fec
push 0x80070057
call fcn.00403da7
mov eax, esi
lea edi, [ebp - 0x10]
call fcn.004085dd
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 0x48703f
push 0x5c
call fcn.0043406b
lea ecx, [ebp - 0x14]
push ecx
push esi
mov ecx, eax
call fcn.0042927c
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x487033
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00486f70
pop ecx
pop ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00403d84
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00403d84
call fcn.0048e5b6
ret