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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
lea esi, [edi + 4]
push dword [esi]
call fcn.0047395a
pop ecx
push esi
call fcn.004181d6
mov eax, dword [edi + 0x28]
push dword [eax]
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [esi]
call ebx
lea eax, [ebp - 4]
push eax
call fcn.004029ba
push 0xdc
lea eax, [ebp - 4]
push eax
call fcn.00405388
push 0x40a
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
push dword [ebp - 4]
push eax
call ebx
lea eax, [edi + 0x40]
push eax
mov eax, dword [esi]
call fcn.004860ee
push dword [esi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
push edi
push 0x483afd
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [ebp - 4]
mov dword [edi + 0x30], eax
call fcn.00402964
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x483c73
Capabilities:
Get session user name
List groups for user account

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x52472c]
xor eax, ebp
mov dword [ebp + 0x198], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x6c]
xor ebx, ebx
push eax
mov dword [ebp - 0x78], ebx
call esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x6c]
push eax
call esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004054af
lea eax, [ebp - 0x70]
push eax
mov ecx, 0x4eeb34
call fcn.00461320
test eax, eax
jne 0x483cda
lea ecx, [ebp - 0x70]
call fcn.00402964
mov al, 1
jmp 0x483d33
push edi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x7c]
push eax
push 1
push ebx
push dword [ebp - 0x70]
mov dword [ebp - 0x7c], ebx
push ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x80], ebx
call sub.NETAPI32.dll_NetUserGetLocalGroups
test eax, eax
jne 0x483d28
mov esi, dword [ebp - 0x7c]
xor edi, edi
cmp dword [ebp - 0x74], ebx
jbe 0x483d28
cmp esi, ebx
je 0x483d1b
mov ecx, dword [esi]
call fcn.0045e4a0
test eax, eax
je 0x483d26
add esi, 4
inc edi
cmp edi, dword [ebp - 0x74]
jb 0x483d0c
jmp 0x483d28
mov bl, 1
lea ecx, [ebp - 0x70]
call fcn.00402964
mov al, bl
pop edi
mov ecx, dword [ebp + 0x198]
pop esi
xor ecx, ebp
pop ebx
call fcn.004b196e
add ebp, 0x19c
leave
ret

Function at 0x483f4c
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [eax]
sub esp, 0x1c
push SysReAllocStringLen
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
jne 0x483f6d
xor al, al
jmp 0x483f8a
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x483f69
cmp dword [ebp - 0x18], 4
je 0x483f88
cmp dword [ebp - 0x18], 2
jne 0x483f69
mov al, 1
leave
ret 4
Function at 0x484c8a
Capabilities:
Create process on windows
Query service status
Start service

Disassembly:
push ebp
lea ebp, [esp - 0x304]
sub esp, 0x384
mov eax, dword [0x52472c]
xor eax, ebp
mov dword [ebp + 0x300], eax
push esi
push edi
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0xc], 1
jne 0x484d55
push 0x4fff98
push str.SAGEWINDOWCLASS
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x484cdd
xor eax, eax
jmp 0x484db8
push 0x44
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.004b3b00
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0xf8]
push eax
push 0x104
push edi
push str.mstask.exe
push edi
mov dword [ebp - 0x80], esi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x484d1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x484db8
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x80]
push eax
push edi
push edi
push 0x210
push edi
push edi
push edi
push edi
lea eax, [ebp + 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x484d14
push dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2c]
call esi
jmp 0x484cd6
push 1
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
cmp esi, edi
je 0x484d14
push ebx
push 0x14
push str.Schedule
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
cmp ebx, edi
je 0x484daa
lea eax, [ebp - 0x3c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x484da7
cmp dword [ebp - 0x38], 4
je 0x484db2
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x484db2
push ebx
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x484db7
push ebx
call esi
xor eax, eax
pop ebx
mov ecx, dword [ebp + 0x300]
pop edi
xor ecx, ebp
pop esi
call fcn.004b196e
add ebp, 0x304
leave
ret
Function at 0x485370
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, eax
test edi, edi
je 0x485384
add edi, 0xffffffc0
jmp 0x485386
xor edi, edi
push dword [ebp + 8]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push dword [edi + 4]
mov dword [ebp - 0xc], 1
call ebx
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
or dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], eax
push eax
mov eax, dword [ebp + 0xc]
call fcn.00427320
test eax, eax
je 0x4853d3
mov ecx, dword [ebp - 4]
inc ecx
push ecx
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], eax
or eax, 0xffffffff
call fcn.00402917
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], eax
jge 0x485404
and dword [ebp - 0xc], 0
push 0xffffffffffffffff
add edi, 0x40
call dword [sym.imp.USER32.dll_MessageBeep]
test edi, edi
je 0x4853f3
lea eax, [edi - 0x40]
jmp 0x4853f5
xor eax, eax
push dword [ebp + 8]
push dword [eax + 4]
call ebx
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x485da5
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push esi
call fcn.004720f5
test eax, eax
je 0x485e42
lea eax, [esp + 8]
push eax
xor esi, esi
push 0x28
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x485df2
cmp dword [esp + 8], esi
je 0x485dee
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x485e59
lea eax, [esp + 0x14]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [esp + 0x1c]
push eax
push esi
push dword [esp + 0x1c]
mov dword [esp + 0x28], 1
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x485dde
cmp dword [esp + 8], esi
je 0x485e47
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x485e47
call fcn.00485e5e
push 0x80040002
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x485e5e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x52472c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push 0x50007c
push ebx
call esi
test eax, eax
je 0x485f9c
push 0
push 2
call eax
mov dword [ebp - 0x248], eax
cmp eax, 0xffffffff
jne 0x485eb4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x485f9c
push str._WindowsFolder_explorer.exe
lea eax, [ebp - 0x23c]
push eax
call fcn.004054af
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x23c]
call fcn.00477aa7
pop ecx
lea ecx, [ebp - 0x23c]
call fcn.00402964
push 0x50006c
push ebx
call esi
push 0x50005c
push ebx
mov edi, eax
call esi
push 0x228
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x234]
push 0
push eax
call fcn.004b3b00
add esp, 0xc
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x248]
mov dword [ebp - 0x238], 0x22c
call edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x485f7c
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x214]
call fcn.00461320
test eax, eax
jne 0x485f69
push dword [ebp - 0x230]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test esi, esi
je 0x485f69
push esi
call edi
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x248]
call dword [ebp - 0x23c]
test eax, eax
jne 0x485f32
lea ecx, [ebp - 0x240]
call fcn.00402964
cmp dword [ebp - 0x248], 0
je 0x485f9c
push dword [ebp - 0x248]
call edi
test ebx, ebx
je 0x485fa7
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b196e
leave
ret

Function at 0x4878c9
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push 0x3f7
push dword [esi + 4]
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call ebx
push 0x3eb
push dword [esi + 4]
call edi
push 0
push eax
mov dword [ebp - 4], eax
call ebx
push 0x3ec
push dword [esi + 4]
call edi
xor edi, edi
push edi
push eax
call ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x14]
push eax
add esi, 0x88
push dword [esi]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call ebx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call ebx
mov eax, dword [ebp - 0x18]
push 0x222
push edi
mov dword [ebp - 8], eax
push esi
lea eax, [ebp - 0x14]
call fcn.00402520
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48a55d
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.004029ba
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x88]
mov ecx, dword [eax + 0xc]
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x10]
add ecx, 4
call fcn.0046d740
add eax, 0x24
push eax
lea eax, [ebp - 8]
push eax
call fcn.0041804a
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], 0
je 0x48a6a7
push dword [edi + 0x8c]
lea eax, [ebp - 4]
push eax
call fcn.0041804a
lea eax, [ebp - 4]
call fcn.0045eef0
mov eax, dword [ebx + 0x14]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.00446332
lea eax, [ebp - 4]
call fcn.0045eef0
lea eax, [ebp - 0x10]
push eax
call fcn.00483683
mov eax, dword [eax]
pop ecx
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.00446332
lea ecx, [ebp - 0x10]
call fcn.00402964
xor bl, bl
mov esi, edi
call fcn.0048a756
push 0x8a
lea esi, [ebp - 0xc]
call fcn.00481de6
pop ecx
push dword [ebp - 0xc]
push 2
push dword [edi + 0xfc]
push dword [ebp + 0xc]
call fcn.004355f3
mov ecx, dword [ebp - 4]
push 0
push dword [ebp - 8]
call fcn.0048246c
mov bl, al
pop ecx
pop ecx
test bl, bl
jne 0x48a693
cmp byte [0x5283d4], al
je 0x48a65f
push str.MD5_of_downloaded_file_is_invalid.
lea eax, [ebp - 0x10]
push eax
call fcn.00478183
push eax
call fcn.00478193
push eax
mov eax, 0x5283a4
call fcn.004775b8
lea ecx, [ebp - 0x10]
call fcn.00402964
lea esi, [ebp - 4]
call fcn.00412cef
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x5c
call fcn.004460e6
lea ecx, [ebp - 0x10]
push ecx
mov ecx, esi
push ecx
mov ecx, eax
call fcn.0043aef2
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x10]
call fcn.00402964
lea ecx, [ebp - 0xc]
call fcn.00402964
lea ecx, [ebp - 4]
call fcn.00402964
test bl, bl
je 0x48a6d0
push dword [edi + 0xfc]
push dword [ebp + 0xc]
call fcn.00435e8d
mov ecx, dword [edi + 0x88]
mov ecx, dword [ecx + 0xc]
add ecx, 4
call fcn.0046d740
mov byte [eax + 0x68], 1
mov byte [ebp + 0xf], 1
jmp 0x48a72a
inc dword [edi + 0x194]
lea eax, [ebp - 4]
push eax
call fcn.004029ba
push 0x8b
lea esi, [ebp - 0x10]
call fcn.00481de6
pop ecx
lea edi, [ebp - 4]
call fcn.0044607b
mov ecx, esi
call fcn.00402964
push dword [ebp - 4]
mov eax, dword [ebp + 8]
push 2
push dword [eax + 0xfc]
push dword [ebp + 0xc]
call fcn.004355f3
mov eax, dword [ebp + 0x10]
mov ecx, edi
mov dword [eax + 0xc], 1
mov byte [ebp + 0xf], 0
call fcn.00402964
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], 0
je 0x48a73c
mov bl, 1
mov esi, edi
call fcn.0048a756
lea ecx, [ebp - 8]
call fcn.00402964
lea ecx, [ebp - 0x14]
call fcn.00402964
mov al, byte [ebp + 0xf]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x48bdcb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebx + 0x7c]
push edi
call fcn.0047d665
mov eax, dword [ebx + 0x7c]
xor esi, esi
push esi
push 0x3025
call fcn.0047d703
mov eax, dword [ebx + 0x7c]
push esi
push 0x3023
call fcn.0047d703
mov eax, dword [ebx + 0x7c]
push esi
push 0x3024
call fcn.0047d703
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.0048c16f
push ebx
call fcn.0048bee8
mov dword [ebx + 0x90], esi
push 0
lea esi, [ebx + 0x88]
push dword [esi]
call fcn.0047c75e
test eax, eax
jne 0x48beb2
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 0x485a5e
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xae
lea esi, [ebp - 4]
call fcn.00481de6
pop ecx
mov edi, eax
call fcn.0048c500
mov ecx, esi
mov dword [ebx + 0x9c], eax
call fcn.00402964
push 0
push 0x3e8
push 1
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x48bee2
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 0x48d01f
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 0x48d05d
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.0040548c
lea eax, [ebp - 0x214]
push eax
call fcn.004029ba
mov eax, edi
lea edi, [ebp - 0x214]
call fcn.0044607b
lea eax, [ebp - 0x218]
push eax
xor ecx, ecx
push esi
inc ecx
call fcn.0043ae96
mov edi, 0x4f65ec
push edi
push eax
call fcn.0043b02c
test eax, eax
lea ecx, [ebp - 0x218]
setne bl
call fcn.00402964
test bl, bl
je 0x48d0ad
push edi
push esi
call fcn.00446281
push str.AI_WSP_
push esi
call fcn.00446281
mov eax, dword [ebp - 0x214]
push dword [eax - 0xc]
push eax
mov eax, esi
call fcn.00446332
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x214]
call fcn.00402964
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004b196e
leave
ret
Function at 0x48d415
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 0x48d441
push edi
call fcn.004029ba
jmp 0x48d4b6
mov esi, dword [esi]
push 0x5005a8
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.004b7620
add esp, 0xc
test eax, eax
jne 0x48d439
lea eax, [ebp - 0x58]
push eax
call fcn.004029ba
jmp 0x48d486
push dword [ebp - 0x5c]
lea eax, [ebp - 0x54]
push 0x64
push eax
call fcn.004b76a7
add esp, 0xc
test eax, eax
je 0x48d493
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00446281
push dword [ebp - 0x5c]
call fcn.004b7673
pop ecx
test eax, eax
je 0x48d464
push ebx
push dword [ebp - 0x5c]
call fcn.004b77df
pop ecx
lea ebx, [ebp - 0x58]
call fcn.00463670
mov eax, ebx
push eax
push edi
call fcn.0041804a
mov ecx, ebx
call fcn.00402964
pop ebx
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
mov eax, edi
pop esi
call fcn.004b196e
add ebp, 0x78
leave
ret

Function at 0x48d4c8
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.004029ba
mov ecx, dword [ebp + 0xc]
lea esi, [ebp - 4]
call fcn.0048d01f
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
jne 0x48d4fa
push dword [ebp + 8]
call fcn.004029ba
jmp 0x48d575
lea ebx, [ebp - 8]
call fcn.0048d585
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], 0
jne 0x48d515
push dword [ebp + 8]
call fcn.004029ba
jmp 0x48d56d
push str.__o_enumsolutions
lea eax, [ebp - 8]
push eax
call fcn.00446281
lea eax, [ebp - 4]
call fcn.0044607b
push 0x4f65ec
push edi
call fcn.00446281
push str.Solutions.list
push edi
call fcn.00446281
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48d555
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [edi]
push dword [ebp - 8]
call fcn.004676a7
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.0041804a
lea ecx, [ebp - 8]
call fcn.00402964
lea ecx, [ebp - 4]
call fcn.00402964
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48d74f
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.004054af
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 8]
call fcn.00446332
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 0x48d7a0
push dword [ebp + 8]
call fcn.004029ba
jmp 0x48d84e
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.004029ba
cmp dword [ebp + 0xc], 0xea
jne 0x48d806
push dword [ebp - 0xc]
lea esi, [ebp - 4]
call fcn.004028cf
lea eax, [ebp - 0xc]
push eax
call fcn.00412cef
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.00402917
xor esi, esi
pop edi
pop ebx
cmp dword [ebp + 0xc], esi
jne 0x48d83e
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], esi
je 0x48d83e
push str.BINSTSADM.EXE
lea eax, [ebp - 4]
push eax
call fcn.00446281
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48d83e
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.0041804a
jmp 0x48d846
push dword [ebp + 8]
call fcn.004029ba
lea ecx, [ebp - 4]
call fcn.00402964
lea ecx, [ebp - 8]
call fcn.00402964
mov eax, dword [ebp + 8]
pop esi
leave
ret

Function at 0x48d9bc
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 0x48d9d2
xor al, al
jmp 0x48da3f
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 0x48da07
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
test eax, eax
jne 0x48da0b
xor al, al
jmp 0x48da3d
mov ecx, dword [ebp + 8]
push esi
push dword [ecx]
push eax
call fcn.004b3d20
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 0x490d27
Capabilities:
Write file on windows

Disassembly:
push 0x174
mov eax, 0x4d91ac
call fcn.004b814b
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 0x490d81
lea eax, [ebp - 0x148]
push eax
mov dword [ebp - 0x148], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x490dba
cmp dword [ebp - 0x138], 2
mov byte [0x52beec], 1
sete byte [0x526c04]
cmp byte [0x526c04], bl
je 0x490dba
cmp dword [edi + 0x18], 8
jb 0x490d94
mov edi, dword [edi + 4]
jmp 0x490d97
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 0x490e29
mov dword [ebp - 0x158], eax
jmp 0x490e29
lea eax, [ebp - 0x160]
push eax
mov eax, edi
call fcn.00444b91
mov esi, eax
lea eax, [ebp - 0x180]
push eax
mov eax, edi
call fcn.00444b71
push dword [esi + 4]
push dword [esi]
lea esi, [ebp - 0x2c]
push dword [eax + 4]
push dword [eax]
call fcn.00444853
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x490dfa
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 0x490e1b
mov dword [ebp - 0x158], eax
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00404ef5
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.0045ca80
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x168]
sub eax, dword [ebp - 0x16c]
mov dword [ebp - 0x150], esi
jne 0x490e6b
call fcn.004b3673
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 0x490ec8
mov eax, dword [ebp - 0x168]
sub eax, dword [ebp - 0x16c]
jne 0x490e9a
call fcn.004b3673
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 0x490e52
cmp dword [ebp - 0x15c], edi
sete byte [ebp - 0x149]
mov byte [ebp - 4], bl
lea eax, [ebp - 0x178]
push eax
call fcn.0045cbd0
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x158], ebx
je 0x490f02
push dword [ebp - 0x158]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x158], ebx
mov al, byte [ebp - 0x149]
call fcn.004b81ce
ret