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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b324
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5be094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00407f80
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40c2b2
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004075a0
mov eax, dword [ebp - 0x14]
jmp 0x40c2dc
lea ecx, [ebp + 8]
call fcn.0040ac80
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.0040c2f0
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004075a0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c2f0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x5be094]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x220], ecx
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00488f20
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40c340
jmp 0x40c463
mov eax, dword [ebp + 8]
push eax
push 0x55ab30
lea ecx, [ebp - 0x210]
push ecx
call fcn.00488dd2
add esp, 0xc
push 0x55ab38
lea edx, [ebp - 0x210]
push edx
call fcn.00401c20
add esp, 8
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x40c38e
push 5
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x40c463
mov dword [ebp - 0x218], 0
mov ecx, 1
test ecx, ecx
je 0x40c463
mov dword [ebp - 0x21c], 1
cmp dword [ebp - 0x218], 0
jne 0x40c3d2
mov edx, dword [ebp + 8]
push edx
push 0x55ab44
lea eax, [ebp - 0x210]
push eax
call fcn.00488dd2
add esp, 0xc
jmp 0x40c3f1
mov ecx, dword [ebp - 0x218]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x55ab54
lea eax, [ebp - 0x210]
push eax
call fcn.00488dd2
add esp, 0x10
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c415
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x40c444
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0048b631
add esp, 8
push 5
push 0
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x40c463
cmp dword [ebp - 0x218], 0xa
jle 0x40c44f
jmp 0x40c463
mov eax, dword [ebp - 0x218]
add eax, 1
mov dword [ebp - 0x218], eax
jmp 0x40c398
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00488ec3
mov esp, ebp
pop ebp
ret 4
Function at 0x40caf0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0xb7
setne dl
mov eax, dword [ebp - 4]
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x40cb60
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0xb7
setne dl
mov eax, dword [ebp - 4]
mov dword [eax + 4], edx
mov esp, ebp
pop ebp
ret 4

Function at 0x40cd80
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push eax
call fcn.00488ea9
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00466e66
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00488f00
add esp, 8
mov byte [ebp - 1], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
jmp 0x40cdea
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 8]
jg 0x40ce58
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x5c
jne 0x40ce56
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov cx, word [eax + edx*2]
mov word [ebp - 0x18], cx
xor edx, edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov word [ecx + eax*2], dx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40ce3f
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40ce3f
mov byte [ebp - 1], 0
jmp 0x40ce58
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov ax, word [ebp - 0x18]
mov word [edx + ecx*2], ax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x10], ecx
jmp 0x40cde1
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.00466e71
add esp, 4
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x40e8d0
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x5be094]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40e915
xor eax, eax
jmp 0x40ea14
xor ecx, ecx
mov word [ebp - 0x220], cx
push 0x206
push 0
lea edx, [ebp - 0x21e]
push edx
call fcn.00488f20
add esp, 0xc
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 4], 1
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0x55b084
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e9f2
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov word [ebp - 0x428], ax
push 0x206
push 0
lea ecx, [ebp - 0x426]
push ecx
call fcn.00488f20
add esp, 0xc
push 0
push 0x26
lea edx, [ebp - 0x428]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.Internet_Exploreriexplore.exe
lea eax, [ebp - 0x428]
push eax
call fcn.00488ed2
add esp, 8
lea ecx, [ebp - 0x428]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e9d8
xor eax, eax
jmp 0x40ea14
lea edx, [ebp - 0x428]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00488f00
add esp, 8
mov eax, 1
jmp 0x40ea14
lea ecx, [ebp - 0x220]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00488f00
add esp, 8
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00488ec3
mov esp, ebp
pop ebp
ret
Function at 0x40ea30
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x5be094]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], 0
xor eax, eax
mov word [ebp - 0x448], ax
push 0x206
push 0
lea ecx, [ebp - 0x446]
push ecx
call fcn.00488f20
add esp, 0xc
xor edx, edx
mov word [ebp - 0x220], dx
push 0x206
push 0
lea eax, [ebp - 0x21e]
push eax
call fcn.00488f20
add esp, 0xc
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 0x44c], 1
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
push 0
push 0x55b0c8
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
je 0x40eb03
xor eax, eax
jmp 0x40ec60
lea edx, [ebp - 0x22c]
push edx
push 0x20019
push 0
push 0x55b0d4
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
je 0x40eb36
xor eax, eax
jmp 0x40ec60
lea ecx, [ebp - 0x234]
push ecx
push 0x20019
push 0
push 0x55b0e0
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
je 0x40eb6c
xor eax, eax
jmp 0x40ec60
mov dword [ebp - 0x228], 0x104
mov dword [ebp - 8], 1
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x448]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push 0x55b0fc
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x448]
push eax
call fcn.0048c638
add esp, 4
mov dword [ebp - 0x224], eax
push 0x55b100
mov ecx, dword [ebp - 0x224]
push ecx
call fcn.00401c20
add esp, 8
mov dword [ebp - 0x450], eax
cmp dword [ebp - 0x450], 0
jne 0x40ebf9
xor eax, eax
jmp 0x40ec60
mov edx, dword [ebp - 0x450]
add edx, 2
mov dword [ebp - 0x224], edx
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x238], eax
push 0x55b104
mov ecx, dword [ebp - 0x224]
push ecx
call fcn.00401c20
add esp, 8
mov dword [ebp - 0x450], eax
cmp dword [ebp - 0x450], 0
jne 0x40ec3b
xor eax, eax
jmp 0x40ec60
xor edx, edx
mov eax, dword [ebp - 0x450]
mov word [eax], dx
mov ecx, dword [ebp - 0x238]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40ec5b
xor eax, eax
jmp 0x40ec60
mov eax, 1
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00488ec3
mov esp, ebp
pop ebp
ret
Function at 0x40ee50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x5be094]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x228], 0
xor eax, eax
mov word [ebp - 0x440], ax
push 0x206
push 0
lea ecx, [ebp - 0x43e]
push ecx
call fcn.00488f20
add esp, 0xc
xor edx, edx
mov word [ebp - 0x220], dx
push 0x206
push 0
lea eax, [ebp - 0x21e]
push eax
call fcn.00488f20
add esp, 0xc
mov dword [ebp - 0x10], 0x104
mov dword [ebp - 0x444], 1
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push 0
push str.htmlfile
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
je 0x40ef23
xor eax, eax
jmp 0x40f017
lea edx, [ebp - 0x22c]
push edx
push 0x20019
push 0
push str.shell
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
je 0x40ef56
xor eax, eax
jmp 0x40f017
lea ecx, [ebp - 0x234]
push ecx
push 0x20019
push 0
push str.opencommand
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
je 0x40ef8c
xor eax, eax
jmp 0x40f017
mov dword [ebp - 0x228], 0x104
mov dword [ebp - 0xc], 1
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x440]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
push 0x55b18c
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x440]
push eax
call fcn.0048c638
add esp, 4
mov dword [ebp - 0x224], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x224]
push edx
call fcn.00401c20
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40f012
xor eax, eax
jmp 0x40f017
mov eax, 1
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00488ec3
mov esp, ebp
pop ebp
ret
Function at 0x40f170
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfe0
mov eax, dword [0x5be094]
xor eax, ebp
mov dword [ebp - 0x40], eax
push 0x7d0
lea eax, [ebp - 0xfe0]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Program_FilesInternet_Exploreriexplore.exe
lea ecx, [ebp - 0xfd4]
push ecx
call fcn.00488f00
add esp, 8
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0xfe0]
push eax
call fcn.00488ed2
add esp, 8
push 0x3c
push 0
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00488f20
add esp, 0xc
mov dword [ebp - 0x30], 0x55b238
mov dword [ebp - 0x38], 0x200
mov edx, dword [ebp + 8]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x20], 1
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0x55b244
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x40f212
lea ecx, [ebp - 0xfe0]
push ecx
call fcn.0040f2c0
add esp, 4
mov ecx, dword [ebp - 0x40]
xor ecx, ebp
call fcn.00488ec3
mov esp, ebp
pop ebp
ret

Function at 0x40f250
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
push eax
call fcn.00488ea9
add esp, 4
test eax, eax
jne 0x40f268
jmp 0x40f2bb
push 0x3c
push 0
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00488f20
add esp, 0xc
mov dword [ebp - 0x30], 0x55b250
mov dword [ebp - 0x38], 0x200
mov edx, dword [ebp + 8]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x20], 1
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0x55b25c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x40f2bb
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040f2c0
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x40f2c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x5be094]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x44
push 0
lea eax, [ebp - 0x830]
push eax
call fcn.00488f20
add esp, 0xc
mov dword [ebp - 0x830], 0x44
push 0x10
push 0
lea ecx, [ebp - 0x7e8]
push ecx
call fcn.00488f20
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0x55b268
lea eax, [ebp - 0x7d8]
push eax
call fcn.00410850
add esp, 0xc
lea ecx, [ebp - 0x7e8]
push ecx
lea edx, [ebp - 0x830]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x7d8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40f34a
jmp 0x40f364
mov ecx, dword [ebp - 0x7e8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x7e4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488ec3
mov esp, ebp
pop ebp
ret
Function at 0x40f380
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [0x5be094]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x44
push 0
lea eax, [ebp - 0x838]
push eax
call fcn.00488f20
add esp, 0xc
mov dword [ebp - 0x838], 0x44
push 0x10
push 0
lea ecx, [ebp - 0x7ec]
push ecx
call fcn.00488f20
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0x55b270
lea eax, [ebp - 0x7d8]
push eax
call fcn.00410850
add esp, 0xc
lea ecx, [ebp - 0x7ec]
push ecx
lea edx, [ebp - 0x838]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x7d8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40f40a
jmp 0x40f447
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x7ec]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [ebp - 0x7dc]
push edx
mov eax, dword [ebp - 0x7ec]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x7ec]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x7e8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488ec3
mov esp, ebp
pop ebp
ret

Function at 0x40f4e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x3c], 0x3c
push 0x38
push 0
lea eax, [ebp - 0x38]
push eax
call fcn.00488f20
add esp, 0xc
mov dword [ebp - 0x30], str.runas
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x38], 0x200
mov dword [ebp - 0x20], 1
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40f535
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40], eax
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x40f540
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x5be094]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
jne 0x40f560
xor eax, eax
jmp 0x40f61d
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x240], 0
push 0x228
push 0
lea eax, [ebp - 0x23c]
push eax
call fcn.00488f20
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40f5a4
xor eax, eax
jmp 0x40f61d
mov dword [ebp - 0x240], 0x22c
lea ecx, [ebp - 0x240]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40f611
mov eax, dword [ebp + 8]
push eax
call fcn.0048c8a4
add esp, 4
push eax
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0048c8a4
add esp, 4
push eax
call fcn.0048c6a8
add esp, 8
test eax, eax
jne 0x40f5fd
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x238]
jmp 0x40f61d
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40f5c2
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00488ec3
mov esp, ebp
pop ebp
ret
Function at 0x4105a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x5be094]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.00488f20
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
movzx edx, byte [ebp - 0xe]
push edx
mov eax, dword [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x124]
push ecx
push str._d__d__d
call fcn.00410640
add esp, 0x10
cmp dword [ebp - 0x124], 6
jb 0x410622
cmp dword [ebp - 0x120], 2
jne 0x410622
movzx edx, byte [ebp - 0xe]
cmp edx, 1
jne 0x410622
mov eax, 1
jmp 0x410624
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488ec3
mov esp, ebp
pop ebp
ret
Function at 0x412220
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b7d2
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x5be094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa4], ecx
call fcn.00407210
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call dword [0x5880b4]
add esp, 4
lea ecx, [ebp - 0xa0]
push ecx
call dword [0x5880b0]
add esp, 4
mov dword [ebp - 0xa8], eax
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0xac], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xac]
call dword [0x5880ac]
push eax
call dword [0x5880a8]
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call dword [0x5880a4]
push str.Riched20.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x1c], eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 0
mov eax, dword [ebp - 0x18]
push eax
push 0
mov ecx, 0x5c05e4
call fcn.00412920
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4122fd
xor eax, eax
jmp 0x4123a7
call fcn.00412800
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xb0]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xb0]
mov edx, dword [eax + 0x88]
call edx
mov dword [ebp - 0x14], 0x180
push 0
push 0x320
push 0x258
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
push 0x10cf0000
push 0x55b798
push 0
call fcn.00412800
mov ecx, eax
call dword [0x5880a0]
call fcn.00412800
mov ecx, eax
call dword [0x58809c]
push 5
call fcn.00412800
mov ecx, eax
call dword [0x588098]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [0x588094]
call dword [0x588090]
mov ecx, 0x5c05e4
call fcn.004129d0
call dword [sym.imp.ole32.dll_OleUninitialize]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x4123d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x412400
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov esp, ebp
pop ebp
ret
Function at 0x4157c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5be094]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x14]
call fcn.00415510
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00415750
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41582b
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x14]
call fcn.00415540
mov eax, dword [ebp - 0x224]
jmp 0x4158bc
mov dword [ebp - 4], 0x100
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x415891
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004157c0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x415888
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x14]
call fcn.00415540
mov eax, dword [ebp - 0x228]
jmp 0x4158bc
mov dword [ebp - 4], 0x100
jmp 0x415832
lea ecx, [ebp - 0x14]
call fcn.00415680
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.004155c0
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x14]
call fcn.00415540
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00488ec3
mov esp, ebp
pop ebp
ret 4
Function at 0x415ec0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x415ec9
xor ecx, ecx
jne 0x415ec9
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x415eea
mov eax, 0xd
jmp 0x415f45
xor eax, eax
jne 0x415ed1
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x415efb
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8