joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4262ed
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.0040455c
mov ecx, edi
call fcn.004261db
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.0040455c
mov edi, dword [ebp - 0x58]
lea eax, [edi - 0x10]
mov dword [ebp - 0x5c], eax
call fcn.00409c7d
mov ebx, eax
add ebx, 0x10
push 0x44b8d0
xor ecx, ecx
lea esi, [ebp - 0x58]
mov dword [ebp - 0x60], ebx
call fcn.00408c48
test eax, eax
jl 0x4263b0
mov ecx, dword [edi - 0xc]
sub ecx, eax
lea eax, [ebp - 0x80]
push eax
dec ecx
mov eax, esi
call fcn.00410725
lea edi, [ebp - 0x60]
call fcn.00408905
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff0
call fcn.00404645
mov ebx, dword [ebp - 0x60]
mov edi, dword [ebp - 0x58]
mov esi, dword [ebp - 0x6c]
jmp 0x4263ce
push edi
push esi
call fcn.00409051
test eax, eax
je 0x426405
push ebx
push esi
call fcn.00409051
test eax, eax
je 0x426405
mov esi, dword [esi + 4]
test esi, esi
jne 0x4263b5
push 0x44aabc
lea eax, [ebp - 0x58]
push eax
call fcn.0040ab1f
test eax, eax
je 0x426405
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.0042627a
mov edi, dword [ebp - 0x7c]
cmp edi, esi
je 0x426451
mov esi, dword [ebp - 0x6c]
jmp 0x426446
lea eax, [ebx - 0x10]
call fcn.00404645
mov eax, dword [ebp - 0x5c]
call fcn.00404645
lea edi, [ebp - 0x6c]
call fcn.004267d3
mov al, 1
mov ecx, dword [ebp + 0x1b4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043189b
add ebp, 0x1b8
leave
ret
push dword [esi]
push edi
call fcn.00409051
test eax, eax
je 0x426457
mov esi, dword [esi + 4]
test esi, esi
jne 0x426437
mov edi, dword [edi + 4]
test edi, edi
jne 0x426400
mov byte [ebp - 0x51], 0
jmp 0x42645b
mov byte [ebp - 0x51], 1
lea edi, [ebp - 0x7c]
call fcn.004267d3
lea eax, [ebx - 0x10]
call fcn.00404645
mov eax, dword [ebp - 0x5c]
call fcn.00404645
lea edi, [ebp - 0x6c]
call fcn.004267d3
mov al, byte [ebp - 0x51]
jmp 0x42641f

Function at 0x4266d0
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 0x4266f1
xor al, al
jmp 0x42670e
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4266ed
cmp dword [ebp - 0x18], 4
je 0x42670c
cmp dword [ebp - 0x18], 2
jne 0x4266ed
mov al, 1
leave
ret 4
Function at 0x42765b
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 0x427726
push str.SYSTEM_AGENT_COM_WINDOW
push str.SAGEWINDOWCLASS
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x4276ae
xor eax, eax
jmp 0x427789
push 0x44
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.004318c0
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 0x4276f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x427789
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 0x4276e5
push dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2c]
call esi
jmp 0x4276a7
push 1
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
cmp esi, edi
je 0x4276e5
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 0x42777b
lea eax, [ebp - 0x3c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x427778
cmp dword [ebp - 0x38], 4
je 0x427783
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x427783
push ebx
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x427788
push ebx
call esi
xor eax, eax
pop ebx
mov ecx, dword [ebp + 0x300]
pop edi
xor ecx, ebp
pop esi
call fcn.0043189b
add ebp, 0x304
leave
ret
Function at 0x427e22
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 0x427e36
add edi, 0xffffffc0
jmp 0x427e38
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.00408e44
test eax, eax
je 0x427e85
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.00409c5f
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], eax
jge 0x427eb6
and dword [ebp - 0xc], 0
push 0xffffffffffffffff
add edi, 0x40
call dword [sym.imp.USER32.dll_MessageBeep]
test edi, edi
je 0x427ea5
lea eax, [edi - 0x40]
jmp 0x427ea7
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 0x428c3b
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
call fcn.00410292
test eax, eax
je 0x428cc3
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 0x428c7c
cmp dword [ebp - 8], esi
je 0x428c78
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x428cd5
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 0x428c6a
cmp dword [ebp - 8], esi
je 0x428cc3
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 0x42a654
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.0040ebd8
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42cde8
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x45a140]
push ebx
push esi
push edi
mov ecx, 0x45a140
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.004091ba
add eax, 0x24
mov eax, dword [eax]
sub eax, 0x10
call fcn.00409c7d
mov esi, eax
add esi, 0x10
cmp dword [esi - 0xc], 0
mov dword [ebp - 4], esi
je 0x42cef2
xor bl, bl
mov esi, edi
call fcn.0042cfba
push 0x8a
lea esi, [ebp - 8]
call fcn.00422e4c
pop ecx
push dword [ebp - 8]
push 2
push dword [edi + 0xfc]
push dword [ebp + 0xc]
call fcn.00420d9c
push 0
push dword [ebp - 4]
lea esi, [edi + 0x17c]
mov ecx, dword [esi]
call fcn.0042329c
mov bl, al
pop ecx
pop ecx
test bl, bl
jne 0x42cee0
cmp byte [0x45ae9c], al
je 0x42ceb2
push str.MD5_of_downloaded_file_is_invalid.
lea eax, [ebp - 0xc]
call fcn.00416c8f
push eax
call fcn.00416ca0
push eax
mov eax, 0x45ae6c
call fcn.0041601d
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00404645
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x5c
call fcn.00408c79
mov ecx, eax
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00408d86
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00404645
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404645
test bl, bl
je 0x42cf1b
mov esi, dword [ebp - 4]
push dword [edi + 0xfc]
push dword [ebp + 0xc]
call fcn.004215bb
mov ecx, dword [edi + 0x88]
mov ecx, dword [ecx + 0xc]
add ecx, 4
call fcn.004091ba
mov byte [eax + 0x68], 1
mov byte [ebp + 0xf], 1
jmp 0x42cf88
inc dword [edi + 0x188]
mov eax, dword [0x45a140]
mov ecx, 0x45a140
call dword [eax + 0xc]
add eax, 0x10
push 0x8b
lea esi, [ebp - 0xc]
mov dword [ebp - 8], eax
call fcn.00422e4c
pop ecx
lea edi, [ebp - 8]
call fcn.00408905
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00404645
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 8]
push esi
push 2
push dword [eax + 0xfc]
push dword [ebp + 0xc]
call fcn.00420d9c
mov eax, dword [ebp + 0x10]
mov dword [eax + 0xc], 1
lea eax, [esi - 0x10]
mov byte [ebp + 0xf], 0
call fcn.00404645
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
je 0x42cf9a
mov bl, 1
mov esi, edi
call fcn.0042cfba
mov esi, dword [ebp - 4]
lea eax, [esi - 0x10]
call fcn.00404645
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00404645
mov al, byte [ebp + 0xf]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x42e8f5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebx + 0x7c]
push edi
call fcn.0041f286
mov eax, dword [ebx + 0x7c]
xor esi, esi
push esi
push 0x3025
call fcn.0041f324
mov eax, dword [ebx + 0x7c]
push esi
push 0x3023
call fcn.0041f324
mov eax, dword [ebx + 0x7c]
push esi
push 0x3024
call fcn.0041f324
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.0042ecad
push ebx
call fcn.0042ea16
mov dword [ebx + 0x90], esi
push 0
lea esi, [ebx + 0x88]
push dword [esi]
call fcn.0041e1d2
test eax, eax
jne 0x42e9e0
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 0x4288c7
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xae
lea esi, [ebp - 4]
call fcn.00422e4c
pop ecx
mov edi, eax
call fcn.0042f099
mov dword [ebx + 0x9c], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404645
push 0
push 0x3e8
push 1
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x42ea10
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 0x4302c8
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 0x430306
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.00404539
mov eax, dword [0x45a140]
mov ecx, 0x45a140
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x214], eax
mov eax, edi
lea edi, [ebp - 0x214]
call fcn.00408905
lea eax, [ebp - 0x218]
xor ecx, ecx
push eax
inc ecx
mov eax, esi
call fcn.00410725
mov edi, 0x44b8d0
push edi
push eax
call fcn.00409051
test eax, eax
mov eax, dword [ebp - 0x218]
setne bl
add eax, 0xfffffff0
call fcn.00404645
test bl, bl
je 0x430364
push edi
push esi
call fcn.00402105
push str.AI_WSP_
push esi
call fcn.00402105
mov edi, dword [ebp - 0x214]
push dword [edi - 0xc]
mov eax, esi
push edi
call fcn.004022f6
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [edi - 0x10]
call fcn.00404645
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0043189b
leave
ret
Function at 0x4306d3
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 0x430709
mov ecx, 0x45a140
call fcn.0040462a
jmp 0x430791
mov edi, dword [edi]
push 0x454964
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.004358ff
add esp, 0xc
mov ecx, 0x45a140
test eax, eax
jne 0x4306ff
mov eax, dword [0x45a140]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x5c], eax
jmp 0x430758
push dword [ebp - 0x58]
lea eax, [ebp - 0x54]
push 0x64
push eax
call fcn.00435986
add esp, 0xc
test eax, eax
je 0x430765
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00402105
push dword [ebp - 0x58]
call fcn.00435952
pop ecx
test eax, eax
je 0x430736
push ebx
push dword [ebp - 0x58]
call fcn.00435abe
pop ecx
lea ebx, [ebp - 0x5c]
call fcn.00409077
mov edi, dword [ebp - 0x5c]
add edi, 0xfffffff0
mov eax, edi
call fcn.00409c7d
add eax, 0x10
mov dword [esi], eax
mov eax, edi
call fcn.00404645
pop ebx
mov ecx, dword [ebp + 0x74]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043189b
add ebp, 0x78
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x45a140]
push ebx
push esi
push edi
mov edi, 0x45a140
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.004302c8
mov ebx, dword [ebp - 8]
cmp dword [ebx - 0xc], 0
jne 0x4307ee
mov esi, dword [ebp + 8]
mov ecx, edi
call fcn.0040462a
lea eax, [ebx - 0x10]
call fcn.00404645
mov eax, esi
jmp 0x430889
lea esi, [ebp - 4]
call fcn.0043088e
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
jne 0x430816
mov esi, dword [ebp + 8]
mov ecx, edi
call fcn.0040462a
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404645
jmp 0x4307df
push str.__o_enumsolutions
lea eax, [ebp - 4]
push eax
call fcn.00402105
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 8]
call fcn.00408905
push 0x44b8d0
push edi
call fcn.00402105
push str.Solutions.list
push edi
call fcn.00402105
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x430859
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [edi]
mov esi, dword [ebp - 4]
push esi
call fcn.0042269d
pop ecx
add ebx, 0xfffffff0
pop ecx
mov eax, ebx
call fcn.00409c7d
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
lea eax, [esi - 0x10]
call fcn.00404645
mov eax, ebx
call fcn.00404645
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430a8f
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.0040455c
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.004022f6
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 0x430af0
mov esi, dword [ebp + 8]
mov ecx, 0x45a140
call fcn.0040462a
lea eax, [edi - 0x10]
call fcn.00404645
mov eax, esi
jmp 0x430bd9
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 [0x45a140]
mov ebx, 0x45a140
mov ecx, ebx
call dword [eax + 0xc]
mov edi, eax
add edi, 0x10
cmp dword [ebp - 0xc], 0xea
mov dword [ebp + 0xc], edi
jne 0x430b6b
push dword [ebp - 8]
lea esi, [ebp + 0xc]
call fcn.00404496
lea eax, [ebp - 8]
push eax
call fcn.00402073
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.00409c5f
mov edi, dword [ebp + 0xc]
xor esi, esi
cmp dword [ebp - 0xc], esi
jne 0x430bb9
cmp dword [edi - 0xc], esi
je 0x430bb9
push str.BINSTSADM.EXE
lea eax, [ebp + 0xc]
push eax
call fcn.00402105
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x430bb9
lea esi, [edi - 0x10]
mov eax, esi
call fcn.00409c7d
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.00404645
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404645
mov eax, edi
jmp 0x430bd8
mov esi, dword [ebp + 8]
mov ecx, ebx
call fcn.0040462a
lea eax, [edi - 0x10]
call fcn.00404645
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404645
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret

Function at 0x430bdd
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.00409c7d
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.004022f6
mov edi, dword [ebp - 4]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x430c27
add edi, 0xfffffff0
mov eax, edi
call fcn.00409c7d
add eax, 0x10
mov dword [esi], eax
mov eax, edi
jmp 0x430c34
mov ecx, 0x45a140
call fcn.0040462a
lea eax, [edi - 0x10]
call fcn.00404645
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x430d84
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 0x430d9a
xor al, al
jmp 0x430e07
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 0x430dcf
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
test eax, eax
jne 0x430dd3
xor al, al
jmp 0x430e05
mov ecx, dword [ebp + 8]
push esi
push dword [ecx]
push eax
call fcn.00432af0
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 0x43164e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x45a1bc], 0
push esi
jne 0x4315c1
call fcn.004314e7
test eax, eax
je 0x431604
mov eax, dword [0x45a1bc]
cmp eax, 1
jne 0x4315e2
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x431604
pop esi
ret
push eax
call dword [0x45a1c4]
test eax, eax
jne 0x43164c
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 0x431608
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x45a1bc]
call dword [0x45a1c4]
mov edi, eax
test edi, edi
je 0x43162d
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x431649
mov edi, esi
add esi, 0xff0
push edi
push dword [0x45a1bc]
call dword [0x45a1c0]
add edi, 0x10
cmp edi, esi
jb 0x431635
mov eax, edi
pop edi
pop esi
ret
jmp 0x4315ae

Function at 0x43189b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x458090]
jne 0x4318a5
repz ret
jmp fcn.00435e5c
Function at 0x4404bd
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.004366c7
and dword [ebp - 4], 0
cmp dword [0x45ac8c], 0
mov ebx, eax
jne 0x44056e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44061f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x44061f
push eax
call fcn.00436655
mov dword [esp], 0x44a100
push edi
mov dword [0x45ac8c], eax
call esi
push eax
call fcn.00436655
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45ac90], eax
call esi
push eax
call fcn.00436655
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45ac94], eax
call esi
push eax
call fcn.00436655
pop ecx
mov dword [0x45ac9c], eax
test eax, eax
je 0x44056e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00436655
pop ecx
mov dword [0x45ac98], eax
mov eax, dword [0x45ac98]
cmp eax, ebx
je 0x4405c6
cmp dword [0x45ac9c], ebx
je 0x4405c6
push eax
call fcn.004366d0
push dword [0x45ac9c]
mov esi, eax
call fcn.004366d0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4405c6
test edi, edi
je 0x4405c6
call esi
test eax, eax
je 0x4405bd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4405bd
test byte [ebp - 0xc], 1
jne 0x4405c6
or dword [ebp + 0x10], 0x200000
jmp 0x4405ff
mov eax, dword [0x45ac90]
cmp eax, ebx
je 0x4405ff
push eax
call fcn.004366d0
pop ecx
test eax, eax
je 0x4405ff
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4405ff
mov eax, dword [0x45ac94]
cmp eax, ebx
je 0x4405ff
push eax
call fcn.004366d0
pop ecx
test eax, eax
je 0x4405ff
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45ac8c]
call fcn.004366d0
pop ecx
test eax, eax
je 0x44061f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x440621
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret