joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425e1a
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x1b8]
sub esp, 0x238
mov eax, dword [0x458090]
xor eax, ebp
mov dword [ebp + 0x1b4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x6c]
push eax
push ecx
xor esi, esi
mov eax, esp
push str.WSS_ADMIN_WPG
mov edi, ecx
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
call fcn.004044e8
mov ecx, edi
call fcn.00425d08
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x50]
push eax
push 2
mov dword [ebp - 0x70], esi
call sub.Secur32.dll_GetUserNameExW
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x50]
push eax
push 2
call sub.Secur32.dll_GetUserNameExW
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x58]
call fcn.004044e8
mov edi, dword [ebp - 0x58]
lea eax, [edi - 0x10]
mov dword [ebp - 0x5c], eax
call fcn.00409bcb
mov ebx, eax
add ebx, 0x10
push 0x44b8b0
xor ecx, ecx
lea esi, [ebp - 0x58]
mov dword [ebp - 0x60], ebx
call fcn.00408b1e
test eax, eax
jl 0x425edd
mov ecx, dword [edi - 0xc]
sub ecx, eax
lea eax, [ebp - 0x80]
push eax
dec ecx
mov eax, esi
call fcn.00410708
lea edi, [ebp - 0x60]
call fcn.004087db
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff0
call fcn.004045dc
mov ebx, dword [ebp - 0x60]
mov edi, dword [ebp - 0x58]
mov esi, dword [ebp - 0x6c]
jmp 0x425efb
push edi
push esi
call fcn.00408f22
test eax, eax
je 0x425f32
push ebx
push esi
call fcn.00408f22
test eax, eax
je 0x425f32
mov esi, dword [esi + 4]
test esi, esi
jne 0x425ee2
push 0x44aa9c
lea eax, [ebp - 0x58]
push eax
call fcn.0040aaa5
test eax, eax
je 0x425f32
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], esi
call fcn.00425da7
mov edi, dword [ebp - 0x7c]
cmp edi, esi
je 0x425f7e
mov esi, dword [ebp - 0x6c]
jmp 0x425f73
lea eax, [ebx - 0x10]
call fcn.004045dc
mov eax, dword [ebp - 0x5c]
call fcn.004045dc
lea edi, [ebp - 0x6c]
call fcn.00426300
mov al, 1
mov ecx, dword [ebp + 0x1b4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043159b
add ebp, 0x1b8
leave
ret
push dword [esi]
push edi
call fcn.00408f22
test eax, eax
je 0x425f84
mov esi, dword [esi + 4]
test esi, esi
jne 0x425f64
mov edi, dword [edi + 4]
test edi, edi
jne 0x425f2d
mov byte [ebp - 0x51], 0
jmp 0x425f88
mov byte [ebp - 0x51], 1
lea edi, [ebp - 0x7c]
call fcn.00426300
lea eax, [ebx - 0x10]
call fcn.004045dc
mov eax, dword [ebp - 0x5c]
call fcn.004045dc
lea edi, [ebp - 0x6c]
call fcn.00426300
mov al, byte [ebp - 0x51]
jmp 0x425f4c

Function at 0x4261fd
Capabilities:
Query service status

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

Disassembly:
push ebp
lea ebp, [esp - 0x304]
sub esp, 0x384
mov eax, dword [0x458090]
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 0x42724c
push str.SYSTEM_AGENT_COM_WINDOW
push str.SAGEWINDOWCLASS
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x4271d4
xor eax, eax
jmp 0x4272af
push 0x44
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.004315c0
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 0x427216
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4272af
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 0x42720b
push dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2c]
call esi
jmp 0x4271cd
push 1
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
cmp esi, edi
je 0x42720b
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 0x4272a1
lea eax, [ebp - 0x3c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x42729e
cmp dword [ebp - 0x38], 4
je 0x4272a9
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4272a9
push ebx
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4272ae
push ebx
call esi
xor eax, eax
pop ebx
mov ecx, dword [ebp + 0x300]
pop edi
xor ecx, ebp
pop esi
call fcn.0043159b
add ebp, 0x304
leave
ret
Function at 0x427948
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 0x42795c
add edi, 0xffffffc0
jmp 0x42795e
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.00408d1a
test eax, eax
je 0x4279ab
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.00409bad
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], eax
jge 0x4279dc
and dword [ebp - 0xc], 0
push 0xffffffffffffffff
add edi, 0x40
call dword [sym.imp.USER32.dll_MessageBeep]
test edi, edi
je 0x4279cb
lea eax, [edi - 0x40]
jmp 0x4279cd
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 0x4284a1
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
call fcn.00410275
test eax, eax
je 0x428529
lea eax, [ebp - 8]
push eax
xor esi, esi
push 0x28
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4284e2
cmp dword [ebp - 8], esi
je 0x4284de
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x42853b
lea eax, [ebp - 0x14]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4284d0
cmp dword [ebp - 8], esi
je 0x428529
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x80040002
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
pop esi
leave
ret
Function at 0x429de7
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.0040ebbb
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42c775
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x45a180]
push ebx
push esi
push edi
mov ecx, 0x45a180
call dword [eax + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x88]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x10]
add ecx, 4
call fcn.0041290a
add eax, 0x24
mov eax, dword [eax]
sub eax, 0x10
call fcn.00409bcb
mov esi, eax
add esi, 0x10
cmp dword [esi - 0xc], 0
mov dword [ebp - 4], esi
je 0x42c87f
xor bl, bl
mov esi, edi
call fcn.0042c944
push 0x8a
lea esi, [ebp - 8]
call fcn.00420b9e
pop ecx
push dword [ebp - 8]
push 2
push dword [edi + 0xfc]
push dword [ebp + 0xc]
call fcn.0041eefa
push 0
push dword [ebp - 4]
lea esi, [edi + 0x1a4]
mov ecx, dword [esi]
call fcn.00420fee
mov bl, al
pop ecx
pop ecx
test bl, bl
jne 0x42c86d
cmp byte [0x45aed4], al
je 0x42c83f
push str.MD5_of_downloaded_file_is_invalid.
lea eax, [ebp - 0xc]
call fcn.00416bf9
push eax
call fcn.00416c0a
push eax
mov eax, 0x45aea4
call fcn.00415f87
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.004045dc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x5c
call fcn.00408b4f
mov ecx, eax
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00408c5c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.004045dc
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004045dc
test bl, bl
je 0x42c8a8
mov esi, dword [ebp - 4]
push dword [edi + 0xfc]
push dword [ebp + 0xc]
call fcn.0041f4e1
mov ecx, dword [edi + 0x88]
mov ecx, dword [ecx + 0xc]
add ecx, 4
call fcn.0041290a
mov byte [eax + 0x68], 1
mov byte [ebp + 0xf], 1
jmp 0x42c915
inc dword [edi + 0x1b0]
mov eax, dword [0x45a180]
mov ecx, 0x45a180
call dword [eax + 0xc]
add eax, 0x10
push 0x8b
lea esi, [ebp - 0xc]
mov dword [ebp - 8], eax
call fcn.00420b9e
pop ecx
lea edi, [ebp - 8]
call fcn.004087db
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.004045dc
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 8]
push esi
push 2
push dword [eax + 0xfc]
push dword [ebp + 0xc]
call fcn.0041eefa
mov eax, dword [ebp + 0x10]
mov dword [eax + 0xc], 1
lea eax, [esi - 0x10]
mov byte [ebp + 0xf], 0
call fcn.004045dc
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
je 0x42c927
mov bl, 1
mov esi, edi
call fcn.0042c944
mov esi, dword [ebp - 4]
lea eax, [esi - 0x10]
call fcn.004045dc
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004045dc
mov al, byte [ebp + 0xf]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x42e0c7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebx + 0x7c]
push edi
call fcn.0041d33c
mov eax, dword [ebx + 0x7c]
xor esi, esi
push esi
push 0x3025
call fcn.0041d3da
mov eax, dword [ebx + 0x7c]
push esi
push 0x3023
call fcn.0041d3da
mov eax, dword [ebx + 0x7c]
push esi
push 0x3024
call fcn.0041d3da
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.0042e47f
push ebx
call fcn.0042e1e8
mov dword [ebx + 0x90], esi
push 0
lea esi, [ebx + 0x88]
push dword [esi]
call fcn.0041c28e
test eax, eax
jne 0x42e1b2
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 0x42812d
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xae
lea esi, [ebp - 4]
call fcn.00420b9e
pop ecx
mov edi, eax
call fcn.0042e86b
mov dword [ebx + 0x9c], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004045dc
push 0
push 0x3e8
push 1
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x42e1e2
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 0x42ffae
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x458090]
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 0x42ffec
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.004044c5
mov eax, dword [0x45a180]
mov ecx, 0x45a180
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x214], eax
mov eax, edi
lea edi, [ebp - 0x214]
call fcn.004087db
lea eax, [ebp - 0x218]
xor ecx, ecx
push eax
inc ecx
mov eax, esi
call fcn.00410708
mov edi, 0x44b8b0
push edi
push eax
call fcn.00408f22
test eax, eax
mov eax, dword [ebp - 0x218]
setne bl
add eax, 0xfffffff0
call fcn.004045dc
test bl, bl
je 0x43004a
push edi
push esi
call fcn.004020a2
push str.AI_WSP_
push esi
call fcn.004020a2
mov edi, dword [ebp - 0x214]
push dword [edi - 0xc]
mov eax, esi
push edi
call fcn.00402288
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [edi - 0x10]
call fcn.004045dc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0043159b
leave
ret
Function at 0x4303b9
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xd4
mov eax, dword [0x458090]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push edi
mov edi, edx
push dword [edi]
mov esi, ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4303ef
mov ecx, 0x45a180
call fcn.004045c1
jmp 0x430477
mov edi, dword [edi]
push 0x4549b4
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.004355ff
add esp, 0xc
mov ecx, 0x45a180
test eax, eax
jne 0x4303e5
mov eax, dword [0x45a180]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x5c], eax
jmp 0x43043e
push dword [ebp - 0x58]
lea eax, [ebp - 0x54]
push 0x64
push eax
call fcn.00435686
add esp, 0xc
test eax, eax
je 0x43044b
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004020a2
push dword [ebp - 0x58]
call fcn.00435652
pop ecx
test eax, eax
je 0x43041c
push ebx
push dword [ebp - 0x58]
call fcn.004357be
pop ecx
lea ebx, [ebp - 0x5c]
call fcn.00408f48
mov edi, dword [ebp - 0x5c]
add edi, 0xfffffff0
mov eax, edi
call fcn.00409bcb
add eax, 0x10
mov dword [esi], eax
mov eax, edi
call fcn.004045dc
pop ebx
mov ecx, dword [ebp + 0x74]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043159b
add ebp, 0x78
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x45a180]
push ebx
push esi
push edi
mov edi, 0x45a180
mov ecx, edi
call dword [eax + 0xc]
mov ecx, dword [ebp + 0x10]
add eax, 0x10
lea esi, [ebp - 8]
mov dword [ebp - 8], eax
call fcn.0042ffae
mov ebx, dword [ebp - 8]
cmp dword [ebx - 0xc], 0
jne 0x4304d4
mov esi, dword [ebp + 8]
mov ecx, edi
call fcn.004045c1
lea eax, [ebx - 0x10]
call fcn.004045dc
mov eax, esi
jmp 0x43056f
lea esi, [ebp - 4]
call fcn.00430574
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
jne 0x4304fc
mov esi, dword [ebp + 8]
mov ecx, edi
call fcn.004045c1
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004045dc
jmp 0x4304c5
push str.__o_enumsolutions
lea eax, [ebp - 4]
push eax
call fcn.004020a2
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 8]
call fcn.004087db
push 0x44b8b0
push edi
call fcn.004020a2
push str.Solutions.list
push edi
call fcn.004020a2
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43053f
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [edi]
mov esi, dword [ebp - 4]
push esi
call fcn.004205c3
pop ecx
add ebx, 0xfffffff0
pop ecx
mov eax, ebx
call fcn.00409bcb
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
lea eax, [esi - 0x10]
call fcn.004045dc
mov eax, ebx
call fcn.004045dc
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430775
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push str.SOFTWAREMicrosoftShared_ToolsWeb_Server_Extensions_
lea eax, [ebp - 4]
call fcn.004044e8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.00402288
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push 0x20019
xor esi, esi
push esi
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4307d6
mov esi, dword [ebp + 8]
mov ecx, 0x45a180
call fcn.004045c1
lea eax, [edi - 0x10]
call fcn.004045dc
mov eax, esi
jmp 0x4308bf
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push str.Location
push dword [ebp - 0x10]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
mov eax, dword [0x45a180]
mov ebx, 0x45a180
mov ecx, ebx
call dword [eax + 0xc]
mov edi, eax
add edi, 0x10
cmp dword [ebp - 0xc], 0xea
mov dword [ebp + 0xc], edi
jne 0x430851
push dword [ebp - 8]
lea esi, [ebp + 0xc]
call fcn.00404422
lea eax, [ebp - 8]
push eax
call fcn.00402010
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.Location
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
or eax, 0xffffffff
call fcn.00409bad
mov edi, dword [ebp + 0xc]
xor esi, esi
cmp dword [ebp - 0xc], esi
jne 0x43089f
cmp dword [edi - 0xc], esi
je 0x43089f
push str.BINSTSADM.EXE
lea eax, [ebp + 0xc]
push eax
call fcn.004020a2
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43089f
lea esi, [edi - 0x10]
mov eax, esi
call fcn.00409bcb
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.004045dc
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004045dc
mov eax, edi
jmp 0x4308be
mov esi, dword [ebp + 8]
mov ecx, ebx
call fcn.004045c1
lea eax, [edi - 0x10]
call fcn.004045dc
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004045dc
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret

Function at 0x4308c3
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [eax]
push esi
push edi
sub eax, 0x10
mov esi, ecx
call fcn.00409bcb
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.00402288
mov edi, dword [ebp - 4]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43090d
add edi, 0xfffffff0
mov eax, edi
call fcn.00409bcb
add eax, 0x10
mov dword [esi], eax
mov eax, edi
jmp 0x43091a
mov ecx, 0x45a180
call fcn.004045c1
lea eax, [edi - 0x10]
call fcn.004045dc
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x430a86
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 0x430a9c
xor al, al
jmp 0x430b09
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 0x430ad1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
test eax, eax
jne 0x430ad5
xor al, al
jmp 0x430b07
mov ecx, dword [ebp + 8]
push esi
push dword [ecx]
push eax
call fcn.004327f0
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 0x431350
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x45a1fc], 0
push esi
jne 0x4312c3
call fcn.004311e9
test eax, eax
je 0x431306
mov eax, dword [0x45a1fc]
cmp eax, 1
jne 0x4312e4
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x431306
pop esi
ret
push eax
call dword [0x45a204]
test eax, eax
jne 0x43134e
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 0x43130a
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x45a1fc]
call dword [0x45a204]
mov edi, eax
test edi, edi
je 0x43132f
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x43134b
mov edi, esi
add esi, 0xff0
push edi
push dword [0x45a1fc]
call dword [0x45a200]
add edi, 0x10
cmp edi, esi
jb 0x431337
mov eax, edi
pop edi
pop esi
ret
jmp 0x4312b0

Function at 0x43159b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x458090]
jne 0x4315a5
repz ret
jmp fcn.00435b5c
Function at 0x4401bd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004363c7
and dword [ebp - 4], 0
cmp dword [0x45accc], 0
mov ebx, eax
jne 0x44026e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44031f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x44031f
push eax
call fcn.00436355
mov dword [esp], 0x44a0e0
push edi
mov dword [0x45accc], eax
call esi
push eax
call fcn.00436355
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45acd0], eax
call esi
push eax
call fcn.00436355
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45acd4], eax
call esi
push eax
call fcn.00436355
pop ecx
mov dword [0x45acdc], eax
test eax, eax
je 0x44026e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00436355
pop ecx
mov dword [0x45acd8], eax
mov eax, dword [0x45acd8]
cmp eax, ebx
je 0x4402c6
cmp dword [0x45acdc], ebx
je 0x4402c6
push eax
call fcn.004363d0
push dword [0x45acdc]
mov esi, eax
call fcn.004363d0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4402c6
test edi, edi
je 0x4402c6
call esi
test eax, eax
je 0x4402bd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4402bd
test byte [ebp - 0xc], 1
jne 0x4402c6
or dword [ebp + 0x10], 0x200000
jmp 0x4402ff
mov eax, dword [0x45acd0]
cmp eax, ebx
je 0x4402ff
push eax
call fcn.004363d0
pop ecx
test eax, eax
je 0x4402ff
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4402ff
mov eax, dword [0x45acd4]
cmp eax, ebx
je 0x4402ff
push eax
call fcn.004363d0
pop ecx
test eax, eax
je 0x4402ff
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45accc]
call fcn.004363d0
pop ecx
test eax, eax
je 0x44031f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x440321
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret