joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48c119
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebx + 0x7c]
push edi
call fcn.0047d942
mov eax, dword [ebx + 0x7c]
xor esi, esi
push esi
push 0x3025
call fcn.0047d9e0
mov eax, dword [ebx + 0x7c]
push esi
push 0x3023
call fcn.0047d9e0
mov eax, dword [ebx + 0x7c]
push esi
push 0x3024
call fcn.0047d9e0
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.0048c4bd
push ebx
call fcn.0048c236
mov dword [ebx + 0x90], esi
push 0
lea esi, [ebx + 0x88]
push dword [esi]
call fcn.0047ca3a
test eax, eax
jne 0x48c200
mov esi, dword [esi]
add esi, 0x48
lea eax, [ebx + 0x84]
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 0x485d32
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xae
lea esi, [ebp - 4]
call fcn.004825ae
pop ecx
mov edi, eax
call fcn.0048c84e
mov ecx, esi
mov dword [ebx + 0x9c], eax
call fcn.004029ae
push 0
push 0x3e8
push 1
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x48c230
mov eax, dword [ebx + 0x7c]
mov esi, dword [sym.imp.USER32.dll_GetParent]
mov byte [eax + 0x99], 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 0x48d36d
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x52472c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
push ebx
push edi
mov edi, ecx
jne 0x48d3ab
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x210]
push eax
push esi
call fcn.00405499
lea eax, [ebp - 0x214]
push eax
call fcn.00447480
mov eax, edi
lea edi, [ebp - 0x214]
call fcn.00439ecc
lea eax, [ebp - 0x218]
push eax
xor ecx, ecx
push esi
inc ecx
call fcn.0043b3dd
mov edi, 0x4f6654
push edi
push eax
call fcn.0043b5ea
test eax, eax
lea ecx, [ebp - 0x218]
setne bl
call fcn.004029ae
test bl, bl
je 0x48d3fb
push edi
push esi
call fcn.00446716
push str.AI_WSP_
push esi
call fcn.00446716
mov eax, dword [ebp - 0x214]
push dword [eax - 0xc]
push eax
mov eax, esi
call fcn.0044678f
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x214]
call fcn.004029ae
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004b1fae
leave
ret
Function at 0x48d763
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xd4
mov eax, dword [0x52472c]
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 0x48d78f
push edi
call fcn.00447480
jmp 0x48d804
mov esi, dword [esi]
push 0x500628
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.004b7c62
add esp, 0xc
test eax, eax
jne 0x48d787
lea eax, [ebp - 0x58]
push eax
call fcn.00447480
jmp 0x48d7d4
push dword [ebp - 0x5c]
lea eax, [ebp - 0x54]
push 0x64
push eax
call fcn.004b7ce9
add esp, 0xc
test eax, eax
je 0x48d7e1
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00446716
push dword [ebp - 0x5c]
call fcn.004b7cb5
pop ecx
test eax, eax
je 0x48d7b2
push ebx
push dword [ebp - 0x5c]
call fcn.004b7e21
pop ecx
lea ebx, [ebp - 0x58]
call fcn.004639b0
mov eax, ebx
push eax
push edi
call int.0041808f
mov ecx, ebx
call fcn.004029ae
pop ebx
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
mov eax, edi
pop esi
call fcn.004b1fae
add ebp, 0x78
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, eax
lea eax, [ebp - 4]
push eax
call fcn.00447480
mov ecx, dword [ebp + 0xc]
lea esi, [ebp - 4]
call fcn.0048d36d
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
jne 0x48d848
push dword [ebp + 8]
call fcn.00447480
jmp 0x48d8c3
lea ebx, [ebp - 8]
call fcn.0048d8d3
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], 0
jne 0x48d863
push dword [ebp + 8]
call fcn.00447480
jmp 0x48d8bb
push str.__o_enumsolutions
lea eax, [ebp - 8]
push eax
call fcn.00446716
lea eax, [ebp - 4]
call fcn.00439ecc
push 0x4f6654
push edi
call fcn.00446716
push str.Solutions.list
push edi
call fcn.00446716
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48d8a3
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [edi]
push dword [ebp - 8]
call fcn.004679e7
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call int.0041808f
lea ecx, [ebp - 8]
call fcn.004029ae
lea ecx, [ebp - 4]
call fcn.004029ae
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48da9d
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.004054bc
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 8]
call fcn.0044678f
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 0x48daee
push dword [ebp + 8]
call fcn.00447480
jmp 0x48db9c
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.00447480
cmp dword [ebp + 0xc], 0xea
jne 0x48db54
push dword [ebp - 0xc]
lea esi, [ebp - 4]
call fcn.00402919
lea eax, [ebp - 0xc]
push eax
call fcn.00412dd9
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.00402961
xor esi, esi
pop edi
pop ebx
cmp dword [ebp + 0xc], esi
jne 0x48db8c
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], esi
je 0x48db8c
push str.BINSTSADM.EXE
lea eax, [ebp - 4]
push eax
call fcn.00446716
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48db8c
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call int.0041808f
jmp 0x48db94
push dword [ebp + 8]
call fcn.00447480
lea ecx, [ebp - 4]
call fcn.004029ae
lea ecx, [ebp - 8]
call fcn.004029ae
mov eax, dword [ebp + 8]
pop esi
leave
ret

Function at 0x48dd12
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 0x48dd28
xor al, al
jmp 0x48dd95
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 0x48dd5d
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
test eax, eax
jne 0x48dd61
xor al, al
jmp 0x48dd93
mov ecx, dword [ebp + 8]
push esi
push dword [ecx]
push eax
call fcn.004b4360
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 0x49138a
Capabilities:
Write file on windows

Disassembly:
push 0x174
mov eax, 0x4d9754
call fcn.004b879b
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x154], ebx
mov dword [ebp - 4], ebx
cmp byte [0x52beec], bl
jne 0x4913e4
lea eax, [ebp - 0x148]
push eax
mov dword [ebp - 0x148], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x49141d
cmp dword [ebp - 0x138], 2
mov byte [0x52beec], 1
sete byte [0x526c04]
cmp byte [0x526c04], bl
je 0x49141d
cmp dword [edi + 0x18], 8
jb 0x4913f7
mov edi, dword [edi + 4]
jmp 0x4913fa
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 0x49148c
mov dword [ebp - 0x158], eax
jmp 0x49148c
lea eax, [ebp - 0x160]
push eax
mov eax, edi
call fcn.00445169
mov esi, eax
lea eax, [ebp - 0x180]
push eax
mov eax, edi
call fcn.00445149
push dword [esi + 4]
push dword [esi]
lea esi, [ebp - 0x2c]
push dword [eax + 4]
push dword [eax]
call fcn.00444e2b
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x49145d
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 0x49147e
mov dword [ebp - 0x158], eax
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00404f03
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.0045cf00
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x168]
sub eax, dword [ebp - 0x16c]
mov dword [ebp - 0x150], esi
jne 0x4914ce
call fcn.004b3cb3
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 0x49152b
mov eax, dword [ebp - 0x168]
sub eax, dword [ebp - 0x16c]
jne 0x4914fd
call fcn.004b3cb3
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 0x4914b5
cmp dword [ebp - 0x15c], edi
sete byte [ebp - 0x149]
mov byte [ebp - 4], bl
lea eax, [ebp - 0x178]
push eax
call fcn.0045d050
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x158], ebx
je 0x491565
push dword [ebp - 0x158]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x158], ebx
mov al, byte [ebp - 0x149]
call fcn.004b881e
ret
Function at 0x499a6a
Capabilities:
Create pipe

Disassembly:
push 0x24
mov eax, 0x4d9138
call fcn.004b879b
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp byte [esi + 0x1c], bl
je 0x499a8a
mov al, 1
call fcn.004b881e
ret 4
push 0xffffffffffffffff
push ebx
mov byte [esi + 0x1d], cl
push eax
lea ecx, [esi + 0x20]
call fcn.00403fe5
lea edi, [ebp - 0x2c]
mov ecx, esi
call fcn.00499ecb
mov dword [ebp - 4], ebx
cmp byte [esi + 0x1d], bl
je 0x499adc
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x499ab7
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 0x499b1c
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x499ae8
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 0x499b1c
mov byte [ebp - 0x2d], bl
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004035c5
mov al, byte [ebp - 0x2d]
jmp 0x499a82
mov byte [esi + 0x1c], 1
mov byte [ebp - 0x2d], 1
jmp 0x499b05
Function at 0x499c9e
Capabilities:
Connect pipe
Read file on windows
Read pipe

Disassembly:
push 0x3c
mov eax, 0x4d6234
call fcn.004b879b
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 0x499cee
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x499cdb
xor edi, edi
inc edi
mov esi, edi
jmp 0x499cf1
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.0040364b
mov dword [ebp - 4], edi
cmp esi, ebx
jne 0x499d22
cmp byte [ebp + 0x14], bl
jne 0x499d22
mov ecx, dword [ebp - 0x30]
call fcn.00409f95
mov dword [ebp - 0x34], edi
mov byte [ebp - 4], bl
push ebx
push edi
jmp 0x499dd4
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.00408b09
push eax
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jne 0x499d5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x499da9
mov eax, dword [ebp - 0x48]
add dword [ebp - 0x38], eax
shr eax, 1
push eax
mov ecx, edi
call fcn.00408b09
xor ecx, ecx
mov word [eax], cx
cmp dword [edi + 0x18], 8
jb 0x499d7e
mov esi, dword [edi + 4]
jmp 0x499d81
lea esi, [edi + 4]
push esi
call fcn.004b3950
pop ecx
push eax
mov eax, esi
lea esi, [ebp - 0x2c]
call fcn.00408ea1
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 0x499d2e
cmp dword [ebp - 0x3c], ebx
je 0x499dc1
cmp dword [ebp - 0x38], ebx
je 0x499dc1
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
call fcn.00409f6f
jmp 0x499dc9
mov ecx, dword [ebp - 0x30]
call fcn.00409f95
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.004035c5
mov eax, dword [ebp - 0x30]
call fcn.004b881e
ret 0x10

Function at 0x499de7
Capabilities:
Write file on windows

Disassembly:
push 4
mov eax, 0x4da7a9
call fcn.004b8732
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
xor edi, edi
cmp dword [ebp + 0x10], 0xffffffff
mov dword [ebp - 0x10], edi
jne 0x499e0d
mov ecx, ebx
call fcn.00409f95
jmp 0x499e4b
mov ecx, dword [eax + 0x14]
add ecx, ecx
cmp dword [eax + 0x18], 8
jb 0x499e1d
mov eax, dword [eax + 4]
jmp 0x499e20
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 0x499e3d
mov ecx, ebx
call fcn.00409f95
jmp 0x499e4b
push 1
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call fcn.00499c9e
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 1
mov eax, ebx
call fcn.004b880a
ret 0x10
Function at 0x499e5f
Capabilities:
Write file on windows

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

Disassembly:
push 0x58
mov eax, 0x4dc3e8
call fcn.004b879b
mov eax, dword [ebp + 8]
lea esi, [eax + 4]
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.0045a890
xor ebx, ebx
mov dword [ebp - 4], ebx
jmp 0x49c7d2
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x49c782
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49c7ef
lea edi, [ebp - 0x64]
lea ecx, [ebp - 0x2c]
call fcn.0045bd30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
push ecx
mov ecx, eax
call fcn.0045a820
mov byte [ebp - 4], 2
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403fe5
mov byte [ebp - 4], 1
lea eax, [ebp - 0x48]
push eax
call fcn.00403669
mov byte [ebp - 4], bl
mov eax, edi
push eax
call fcn.004a4e1e
cmp dword [ebp - 0x18], ebx
jne 0x49c776
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2c]
push eax
call fcn.00403669
cmp dword [esi + 0x18], 8
jb 0x49c800
mov esi, dword [esi + 4]
jmp 0x49c803
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2c]
push eax
call fcn.00403669
mov al, 1
jmp 0x49c810
add esi, 4
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
neg eax
sbb eax, eax
neg eax
call fcn.004b881e
ret 4
Function at 0x4a3417
Capabilities:
Get common file path

Disassembly:
push 0x234
mov eax, 0x4d892a
call fcn.004b879b
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.00404342
xor edi, edi
inc edi
mov dword [ebp - 4], edi
push esi
lea ecx, [ebp - 0x240]
call fcn.0045a890
mov dword [ebp - 0x220], edi
mov byte [ebp - 4], bl
push ebx
push edi
lea ecx, [ebp - 0x240]
call fcn.004035c5
push str.msiexec.exe
lea ecx, [ebp - 0x240]
call fcn.00404342
mov dword [ebp - 4], 2
lea eax, [ebp - 0x240]
push eax
call fcn.0041a83a
mov byte [ebp - 4], bl
push ebx
push edi
lea ecx, [ebp - 0x240]
call fcn.004035c5
mov eax, esi
call fcn.004b881e
ret
Function at 0x4a910c
Capabilities:
Get common file path

Disassembly:
push 0x264
mov eax, 0x4dc10f
call fcn.004b879b
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.00404342
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x270]
call fcn.0045a890
mov byte [ebp - 4], 2
push edi
push 1
lea ecx, [ebp - 0x270]
call fcn.004035c5
push str.msi.dll
lea ecx, [ebp - 0x270]
call fcn.00404342
mov byte [ebp - 4], 3
lea eax, [ebp - 0x270]
push eax
lea esi, [ebp - 0x238]
call fcn.0041a83a
mov byte [ebp - 4], 2
push edi
push 1
lea ecx, [ebp - 0x270]
call fcn.004035c5
lea eax, [ebp - 0x254]
push eax
call fcn.0049273d
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 0x4a91e9
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.0045c010
mov eax, dword [ebp - 0x244]
sub eax, dword [ebp - 0x248]
sar eax, 1
jne 0x4a9220
call fcn.004b3cb3
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x4a9235
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 0x4a927a
lea esi, [ebp - 0x254]
call fcn.0045bf60
cmp word [eax], 0x2e
je 0x4a9274
call fcn.0045bf60
imul ebx, ebx, 0xa
movzx eax, word [eax]
lea ebx, [ebx + eax - 0x30]
inc edi
cmp edi, 3
jb 0x4a924c
imul ebx, ebx, 0xa
mov byte [ebp - 4], 2
lea eax, [ebp - 0x254]
push eax
call fcn.0045d050
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x238]
push eax
call fcn.00403669
mov eax, ebx
call fcn.004b881e
ret
Function at 0x4abb84
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d86a2
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x52472c]
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.0049496d
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.0049496d
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4abc05
cmp esi, dword [esp + 0x24]
je 0x4abc0a
call fcn.004b3cb3
mov ebx, dword [esp + 0x18]
cmp ebx, dword [esp + 0x28]
je 0x4abc55
test esi, esi
jne 0x4abc4d
call fcn.004b3cb3
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x4abc29
call fcn.004b3cb3
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push ebx
call dword [eax]
test esi, esi
jne 0x4abc51
call fcn.004b3cb3
cmp ebx, dword [esi + 0x10]
jb 0x4abc44
call fcn.004b3cb3
add ebx, 0x4c
mov dword [esp + 0x18], ebx
jmp 0x4abbeb
mov eax, dword [esi]
jmp 0x4abc1f
mov esi, dword [esi]
jmp 0x4abc3a
mov eax, edi
call fcn.004abe71
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 0x4add63
Capabilities:
Delete directory

Disassembly:
push 8
mov eax, 0x4d7081
call fcn.004b8732
lea eax, [ebp - 0x10]
push eax
call fcn.00447480
and dword [ebp - 4], 0
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x4addc4
lea ecx, [eax - 1]
mov eax, esi
call fcn.0045a1c0
cmp ax, 0x5c
jne 0x4addc4
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
lea ecx, [eax - 1]
lea eax, [ebp + 0xc]
push eax
push esi
call fcn.0043b439
mov byte [ebp - 4], 1
lea edi, [ebp - 0x10]
call fcn.00439ecc
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004029ae
jmp 0x4addce
mov eax, esi
lea edi, [ebp - 0x10]
call fcn.00439ecc
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 0x4ade21
push 0x5c
call fcn.0044667d
lea ecx, [ebp - 0x14]
push ecx
push esi
mov ecx, eax
call fcn.0043b439
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x4ade15
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004add63
pop ecx
pop ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004029ae
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004029ae
call fcn.004b880a
ret
Function at 0x4ade33
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x4d8565
call fcn.004b8732
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x4adec8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x10]
push eax
call fcn.00447480
and dword [ebp - 4], 0
push 0x5c
call fcn.0044667d
cmp eax, 0xffffffff
je 0x4ade8e
lea ecx, [ebp - 0x14]
push ecx
push esi
mov ecx, eax
call fcn.0043b439
mov byte [ebp - 4], 1
lea edi, [ebp - 0x10]
call fcn.00439ecc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004029ae
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x4adebc
lea eax, [ebp - 0x14]
push eax
call fcn.00447480
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004add63
pop ecx
pop ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004029ae
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004029ae
call fcn.004b880a
ret

Function at 0x4aed30
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov byte [eax + 0x68], cl
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x4afb00
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x527014], 0
push esi
jne 0x4afa73
call fcn.004af999
test eax, eax
je 0x4afab6
mov eax, dword [0x527014]
cmp eax, 1
jne 0x4afa94
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4afab6
pop esi
ret
push eax
call dword [0x52701c]
test eax, eax
jne 0x4afafe
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4afaba
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x527014]
call dword [0x52701c]
mov edi, eax
test edi, edi
je 0x4afadf
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4afafb
mov edi, esi
add esi, 0xff0
push edi
push dword [0x527014]
call dword [0x527018]
add edi, 0x10
cmp edi, esi
jb 0x4afae7
mov eax, edi
pop edi
pop esi
ret
jmp 0x4afa60