joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4078b0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c1c8
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x42a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2a8], ecx
mov dword [ebp - 4], 0
push str..
lea eax, [ebp + 0x28]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00409890
add esp, 0xc
mov byte [ebp - 4], 1
lea edx, [ebp - 0x290]
push edx
lea ecx, [ebp - 0x28]
call fcn.004042c0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x294], eax
cmp dword [ebp - 0x294], 0xffffffff
jne 0x407956
mov dword [ebp - 0x298], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00404300
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402ab0
mov eax, dword [ebp - 0x298]
jmp 0x407a59
lea eax, [ebp - 0x264]
push eax
push 0x423a18
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x407a05
lea ecx, [ebp - 0x264]
push ecx
push 0x423a1c
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x407a05
mov edx, dword [ebp - 0x290]
and edx, 0x10
jne 0x407a05
push 0x423a24
lea eax, [ebp + 0x28]
push eax
lea ecx, [ebp - 0x2c0]
push ecx
call fcn.00409890
add esp, 0xc
mov dword [ebp - 0x29c], eax
mov edx, dword [ebp - 0x29c]
mov dword [ebp - 0x2a0], edx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x264]
push eax
mov ecx, dword [ebp - 0x2a0]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.00409850
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c0]
call fcn.00404300
lea ecx, [ebp - 0x40]
call fcn.004042c0
push eax
call fcn.0040af20
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00404300
lea eax, [ebp - 0x290]
push eax
mov ecx, dword [ebp - 0x294]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407956
mov edx, dword [ebp - 0x294]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x2a4], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00404300
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402ab0
mov eax, dword [ebp - 0x2a4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e852
mov esp, ebp
pop ebp
ret 0x54
Function at 0x407a80
Capabilities:
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x42a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
push 0x20000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x407ab0
jmp 0x407bc6
push 0x34
push 0x423a28
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x407ad9
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x407bc6
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x407b1b
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x407bc6
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x2c], 1
je 0x407b74
cmp dword [ebp - 0x2c], 4
je 0x407b32
jmp 0x407bb2
cmp dword [ebp + 8], 0
jne 0x407b72
lea edx, [ebp - 0x20]
push edx
push 1
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x407b72
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x407b72
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x1c], 1
jne 0x407b70
jmp 0x407b72
jmp 0x407b4c
jmp 0x407bb2
cmp dword [ebp + 8], 0
je 0x407bb2
push 0
push 0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x407bb2
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x407bb2
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x1c], 4
jne 0x407bb0
jmp 0x407bb2
jmp 0x407b8c
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e852
mov esp, ebp
pop ebp
ret 4
Function at 0x407be0
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x42a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x407c0f
xor eax, eax
jmp 0x407c6e
push 0x10020
push str.IimServer
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x407c3a
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x407c6e
lea edx, [ebp - 0x20]
push edx
push 1
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e852
mov esp, ebp
pop ebp
ret

Function at 0x4080d0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c27d
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x42a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x434], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x424], 0
mov eax, dword [str.CLSID_]
mov dword [ebp - 0x218], eax
mov ecx, dword [0x423a84]
mov dword [ebp - 0x214], ecx
mov edx, dword [0x423a88]
mov dword [ebp - 0x210], edx
mov ax, word [0x423a8c]
mov word [ebp - 0x20c], ax
push 0x1fa
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.0040fb70
add esp, 0xc
lea edx, [ebp - 0x424]
push edx
mov eax, dword [ebp + 0x5c]
or eax, 0x2001b
push eax
push 0
lea ecx, [ebp - 0x218]
push ecx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4081a4
mov dword [ebp - 0x42c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402ab0
mov eax, dword [ebp - 0x42c]
jmp 0x408234
push 0x208
push 0
lea edx, [ebp - 0x420]
push edx
call fcn.0040fb70
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
sub esp, 0x10
mov ecx, esp
mov edx, dword [ebp + 8]
mov dword [ecx], edx
mov eax, dword [ebp + 0xc]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 0x10]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 0x14]
mov dword [ecx + 0xc], eax
call fcn.0040aff0
add esp, 0x14
lea ecx, [ebp - 0x420]
push ecx
mov edx, dword [ebp - 0x424]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
jne 0x408209
mov dword [ebp - 0x428], 1
jmp 0x408213
mov dword [ebp - 0x428], 0
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x430], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402ab0
mov eax, dword [ebp - 0x430]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e852
mov esp, ebp
pop ebp
ret 0x58
Function at 0x408660
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c33d
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x42a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x424], ecx
mov dword [ebp - 4], 0
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.0040fb70
add esp, 0xc
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x208
push 0
lea edx, [ebp - 0x420]
push edx
call fcn.0040fb70
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
sub esp, 0x10
mov ecx, esp
mov edx, dword [ebp + 8]
mov dword [ecx], edx
mov eax, dword [ebp + 0xc]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 0x10]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 0x14]
mov dword [ecx + 0xc], eax
call fcn.0040aff0
add esp, 0x14
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x218]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402ab0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e852
mov esp, ebp
pop ebp
ret 0x54
Function at 0x408a00
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x42a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x224], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0x104
jle 0x408a3c
xor eax, eax
jmp 0x408b37
push 0x208
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0040fb70
add esp, 0xc
mov dword [ebp - 0x21c], 0
jmp 0x408a6d
mov edx, dword [ebp - 0x21c]
add edx, 1
mov dword [ebp - 0x21c], edx
mov eax, dword [ebp - 0x21c]
cmp eax, dword [ebp - 0x220]
jge 0x408b32
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ebp - 0x21c]
mov eax, dword [ebp + 8]
mov dx, word [eax + edx*2]
mov word [ebp + ecx*2 - 0x20c], dx
mov eax, dword [ebp - 0x21c]
movzx ecx, word [ebp + eax*2 - 0x20c]
cmp ecx, 0x5c
je 0x408ad1
mov edx, dword [ebp - 0x21c]
movzx eax, word [ebp + edx*2 - 0x20c]
cmp eax, 0x2f
je 0x408ad1
mov ecx, dword [ebp - 0x220]
sub ecx, 1
cmp dword [ebp - 0x21c], ecx
jne 0x408b2d
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x408b2d
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x224]
call fcn.004054d0
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x224]
call fcn.00405670
cmp dword [ebp - 0x228], 0
jne 0x408b2d
xor eax, eax
jmp 0x408b37
jmp 0x408a5e
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e852
mov esp, ebp
pop ebp
ret 4

Function at 0x408b50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x42a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], ecx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov word [ebp - 8], ax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor edx, edx
mov ecx, dword [ebp + 8]
mov word [ecx + eax*2 + 2], dx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], 3
mov eax, 0x614
mov word [ebp - 0x14], ax
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x408bbf
mov dword [ebp - 0x28], 1
jmp 0x408bc6
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e852
mov esp, ebp
pop ebp
ret 4
Function at 0x408cc0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x408ce4
mov eax, 1
jmp 0x408d1d
push str.RegDeleteKeyExW
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x408d0f
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 8]
jmp 0x408d1d
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408d30
Capabilities:
Check if file exists
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x42a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x424], ecx
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.0040fb70
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408da1
lea eax, [ebp - 0x20c]
push eax
call fcn.0040af20
add esp, 4
mov dword [ebp - 0x418], 0
lea ecx, [ebp - 0x418]
push ecx
push 0x422008
push 1
push 0
push 0x4220f8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0
jl 0x408f50
cmp dword [ebp - 0x418], 0
je 0x408f50
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x418]
push edx
mov eax, dword [ecx + 0x50]
call eax
push 1
mov ecx, dword [ebp - 0x418]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x418]
push eax
mov ecx, dword [edx + 0x3c]
call ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x418]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x418]
push eax
mov ecx, dword [edx + 0x44]
call ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x418]
push edx
mov eax, dword [ecx + 0x2c]
call eax
push 0x208
push 0
lea ecx, [ebp - 0x414]
push ecx
call fcn.0040fb70
add esp, 0xc
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [ebp - 0x414]
push edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x418]
push edx
mov eax, dword [ecx + 0x24]
call eax
mov dword [ebp - 0x41c], 0
lea ecx, [ebp - 0x41c]
push ecx
push 0x4220c8
mov edx, dword [ebp - 0x418]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x418]
push ecx
mov edx, dword [eax]
call edx
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0
jl 0x408f19
cmp dword [ebp - 0x41c], 0
je 0x408f19
push 1
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp - 0x41c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x41c]
push eax
mov ecx, dword [edx + 0x18]
call ecx
mov dword [ebp - 0x420], eax
mov edx, dword [ebp - 0x41c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x41c]
push ecx
mov edx, dword [eax + 8]
call edx
mov dword [ebp - 0x41c], 0
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x418]
push edx
mov eax, dword [ecx + 8]
call eax
mov dword [ebp - 0x418], 0
push 0
lea ecx, [ebp - 0x20c]
push ecx
push 0x1005
push 0x80000002
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e852
mov esp, ebp
pop ebp
ret 0x14
Function at 0x408f70
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
push str.IIME_MUTEX_ACTIVED
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x408fc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x408fa9
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x409700
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 1
push 0x423da8
call fcn.00409630
add esp, 8
push 0
mov eax, dword [ebp + 8]
or eax, 4
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0
push str.SeShutdownPrivilege
call fcn.00409630
add esp, 8
pop ebp
ret

Function at 0x409c40
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x42a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409c62
xor eax, eax
jmp 0x409cc2
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x409c8b
xor eax, eax
jmp 0x409cc2
mov dword [ebp - 8], 0
push 0
lea edx, [ebp - 8]
push edx
push 0x564
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e852
mov esp, ebp
pop ebp
ret

Function at 0x409cd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x42a040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x409d09
xor eax, eax
jmp 0x409d55
mov dword [ebp - 8], 0
push 0
lea ecx, [ebp - 8]
push ecx
push 0x14e
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x34]
cmp edx, 0xa
jne 0x409d41
xor eax, eax
mov ecx, dword [ebp + 8]
mov word [ecx + 0x34], ax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e852
mov esp, ebp
pop ebp
ret
Function at 0x409d70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x42a040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.0040fb70
add esp, 0xc
push 0xf
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0040ac90
add esp, 8
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
je 0x409e36
mov dword [ebp - 0x210], 0
mov eax, 0x14e
mov word [ebp + 8], ax
push 0
lea ecx, [ebp - 0x210]
push ecx
push 0x14e
lea edx, [ebp + 8]
push edx
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x214], 0
push 0
push 0
push 0x10
call fcn.0040c040
add esp, 0xc
mov eax, 1
jmp 0x409e38
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e852
mov esp, ebp
pop ebp
ret
Function at 0x40a1c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x42a040]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
push 0x20219
push 0
push str.SoftwareIime
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x40a207
xor eax, eax
jmp 0x40a425
push 0x208
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0040fb70
add esp, 0xc
mov dword [ebp - 0x210], 0x208
mov dword [ebp - 0x214], 1
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
push ecx
push 0
push str.Clsid
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40a270
push str.83DB39EE_30A2_4143_9062_0C4FD8274968
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x20c]
push edx
call fcn.0040b090
add esp, 8
mov dword [ebp - 0x210], 0x208
mov dword [ebp - 0x214], 1
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x214]
push edx
push 0
push str.Guid
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40a2d6
push str.F0970D4D_3985_46B0_B882_0EC7BA3D3BD1
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [ebp + 8]
add edx, 0x10
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.0040b090
add esp, 8
mov dword [ebp - 0x210], 0x208
mov dword [ebp - 0x214], 1
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x214]
push eax
push 0
push str.SetupLocation
mov ecx, dword [ebp - 0x218]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40a33c
lea edx, [ebp - 0x20c]
push edx
call fcn.0040ad40
add esp, 4
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x20
call fcn.004042d0
mov dword [ebp - 0x210], 0x208
mov dword [ebp - 0x214], 1
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x214]
push eax
push 0
push str.DataLocation
mov ecx, dword [ebp - 0x218]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40a3ba
mov ecx, dword [ebp + 8]
add ecx, 0x20
call fcn.004042c0
push eax
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.IimeData
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x38
call fcn.004042d0
mov edx, dword [ebp + 8]
mov dword [edx + 0x50], 0
mov dword [ebp - 0x210], 4
mov dword [ebp - 0x214], 4
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x50
push ecx
lea edx, [ebp - 0x214]
push edx
push 0
push str.Portable
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x218]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e852
mov esp, ebp
pop ebp
ret