joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f920
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x4513a8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0040f880
push 0x44
push 0
lea eax, [ebp - 0x290]
push eax
call fcn.00421260
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x248]
push ecx
call fcn.00421260
add esp, 0xc
mov dword [ebp - 0x290], 0x44
push 0x22c
push 0
lea edx, [ebp - 0x238]
push edx
call fcn.00421260
add esp, 0xc
mov dword [ebp - 0x238], 0x22c
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x294], eax
cmp dword [ebp - 0x294], 0xffffffff
jne 0x40f9c1
mov eax, dword [ebp + 0x24]
mov dword [eax], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x28]
mov dword [ecx], eax
lea ecx, [ebp + 8]
call fcn.0040a2d0
jmp 0x40fae9
lea edx, [ebp - 0x238]
push edx
mov eax, dword [ebp - 0x294]
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x40f9f9
mov ecx, dword [ebp + 0x24]
mov dword [ecx], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x28]
mov dword [edx], eax
lea ecx, [ebp + 8]
call fcn.0040a2d0
jmp 0x40fae9
mov dword [ebp - 0x298], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x29c], eax
lea ecx, [ebp + 8]
call fcn.0040a370
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40fa80
mov ecx, dword [ebp - 0x29c]
cmp ecx, dword [ebp - 0x230]
je 0x40fa80
mov edx, dword [ebp - 0x230]
mov dword [ebp - 0x2a0], edx
mov eax, dword [ebp - 0x2a0]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x2a4], eax
push 0
mov ecx, dword [ebp - 0x2a4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 0x2a4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x298], 1
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x294]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40fa0f
mov edx, dword [ebp - 0x294]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x298], 0
je 0x40fac5
mov eax, dword [ebp + 0x24]
mov dword [eax], 1
mov ecx, dword [ebp + 0x28]
mov dword [ecx], 1
jmp 0x40fad7
mov edx, dword [ebp + 0x24]
mov dword [edx], 0
mov eax, dword [ebp + 0x28]
mov dword [eax], 0
lea ecx, [ebp + 8]
call fcn.0040a2d0
jmp 0x40fae9
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004208a1
mov esp, ebp
pop ebp
ret
Function at 0x40fb00
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
push 0x1c
push 0
lea eax, [ebp - 0x2c]
push eax
call fcn.00421260
add esp, 0xc
mov dword [ebp - 0x2c], 0x1c
mov ecx, dword [ebp + 8]
push ecx
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40fb46
xor eax, eax
jmp 0x40fc4d
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 8], 0
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x40fc32
mov ecx, dword [ebp - 0x24]
push ecx
push 0
push 0x1f03ff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x40fb8c
jmp 0x40fbfd
mov edx, dword [ebp + 8]
cmp edx, dword [ebp - 0x20]
je 0x40fba7
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x44], 0
jmp 0x40fbfd
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_GetThreadTimes]
test eax, eax
jne 0x40fbc7
jmp 0x40fbfd
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
jne 0x40fbec
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x40fb70
cmp dword [ebp - 8], 0
je 0x40fc29
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov dword [ebp - 0x30], 1
jmp 0x40fc30
mov dword [ebp - 0x30], 0
jmp 0x40fc39
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x30]
mov esp, ebp
pop ebp
ret
Function at 0x40fc60
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a8
mov eax, dword [0x4513a8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0040f880
push 0x44
push 0
lea eax, [ebp - 0x290]
push eax
call fcn.00421260
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x248]
push ecx
call fcn.00421260
add esp, 0xc
mov dword [ebp - 0x290], 0x44
push 0x22c
push 0
lea edx, [ebp - 0x238]
push edx
call fcn.00421260
add esp, 0xc
mov dword [ebp - 0x238], 0x22c
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x294], eax
cmp dword [ebp - 0x294], 0xffffffff
jne 0x40fced
lea ecx, [ebp + 8]
call fcn.0040a2d0
jmp 0x40fe3a
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x294]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x40fd11
lea ecx, [ebp + 8]
call fcn.0040a2d0
jmp 0x40fe3a
mov dword [ebp - 0x298], 0
lea ecx, [ebp + 8]
call fcn.0040a370
push eax
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40fe00
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x29c], 0
mov ecx, dword [ebp - 0x2a0]
push ecx
push 0
push 0x20
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x29c], eax
cmp dword [ebp - 0x29c], 0
jne 0x40fd7c
lea ecx, [ebp + 8]
call fcn.0040a2d0
jmp 0x40fe3a
mov dword [ebp - 0x2a8], 0
lea edx, [ebp - 0x2a8]
push edx
mov eax, dword [ebp - 0x2a0]
push eax
call fcn.0040fb00
add esp, 8
mov ecx, dword [ebp - 0x2a8]
push ecx
push 0
push 0x1f03ff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 0x2a4], eax
cmp dword [ebp - 0x2a4], 0
je 0x40fdd2
push 0
push 0
push 0x12
mov edx, dword [ebp - 0x2a8]
push edx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov eax, dword [ebp - 0x2a4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2a4], 0
mov ecx, dword [ebp - 0x29c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x29c], 0
lea edx, [ebp - 0x238]
push edx
mov eax, dword [ebp - 0x294]
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40fd1b
mov ecx, dword [ebp - 0x294]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 8]
call fcn.0040a2d0
jmp 0x40fe3a
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004208a1
mov esp, ebp
pop ebp
ret

Function at 0x410410
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4513a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov word [ebp - 0x218], 0
push 0x208
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.00421260
add esp, 0xc
mov dword [ebp - 0x21c], 0
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push str._ALLUSERSPROFILE_Application_Data
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x21c], eax
lea edx, [ebp - 0x218]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040a310
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004208a1
mov esp, ebp
pop ebp
ret
Function at 0x410490
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4513a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov word [ebp - 0x218], 0
push 0x208
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.00421260
add esp, 0xc
mov dword [ebp - 0x21c], 0
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push str._ALLUSERSPROFILE_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x21c], eax
lea edx, [ebp - 0x218]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040a310
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004208a1
mov esp, ebp
pop ebp
ret

Function at 0x410510
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4513a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov word [ebp - 0x218], 0
push 0x208
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.00421260
add esp, 0xc
mov dword [ebp - 0x21c], 0
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0x4486cc
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x21c], eax
lea edx, [ebp - 0x218]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040a310
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004208a1
mov esp, ebp
pop ebp
ret

Function at 0x410680
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00410650
add esp, 4
test eax, eax
je 0x4106c0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
and edx, 1
je 0x4106c0
mov eax, dword [ebp - 4]
xor eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esp, ebp
pop ebp
ret

Function at 0x4106d0
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 4]
call fcn.0040cda0
lea ecx, [ebp - 4]
call fcn.004129d0
movzx ecx, al
test ecx, ecx
jne 0x41073f
lea ecx, [ebp - 4]
call fcn.0040d000
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x410712
cmp dword [ebp + 0x14], 0
jne 0x41073f
mov edx, dword [ebp + 8]
push edx
call fcn.00410680
add esp, 4
mov eax, dword [ebp + 0xc]
push eax
call fcn.00410680
add esp, 4
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 4]
call fcn.0040ce20
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x410e50
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x410e96
mov eax, dword [ebp + 0x24]
mov dword [eax], 7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x28]
mov dword [ecx], eax
mov dword [ebp - 0x10], 0
lea ecx, [ebp + 8]
call fcn.0040a2d0
mov eax, dword [ebp - 0x10]
jmp 0x410f15
push 0xf01ff
lea ecx, [ebp + 8]
call fcn.0040a370
push eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x410ecd
mov eax, dword [ebp + 0x24]
mov dword [eax], 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x28]
mov dword [ecx], eax
jmp 0x410ef9
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x410eef
mov eax, dword [ebp + 0x24]
mov dword [eax], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x28]
mov dword [ecx], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x14], 1
lea ecx, [ebp + 8]
call fcn.0040a2d0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret

Function at 0x410f20
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x410f59
mov eax, dword [ebp + 0x18]
mov dword [eax], 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x410fd4
push 0
push 0
push 0
push 0
push 0x448718
mov ecx, dword [ebp + 8]
push ecx
push 1
push 2
push 0x110
push 0xf01ff
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x410fa7
mov edx, dword [ebp + 0x18]
mov dword [edx], 0xb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x410fc7
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x411bc0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x4513a8]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x128], 0
push 0x118
push 0
lea eax, [ebp - 0x124]
push eax
call fcn.00421260
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x128], 0x11c
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x124], 5
jne 0x411c3e
cmp dword [ebp - 0x120], 0
jne 0x411c3e
push str.win2000
mov ecx, dword [ebp + 8]
call fcn.0040a310
mov edx, dword [ebp + 0xc]
mov dword [edx], 0x32
jmp 0x411d86
cmp dword [ebp - 0x124], 5
jne 0x411c6b
cmp dword [ebp - 0x120], 1
jne 0x411c6b
push 0x4487f4
mov ecx, dword [ebp + 8]
call fcn.0040a310
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x33
jmp 0x411d86
cmp dword [ebp - 0x124], 5
jne 0x411c98
cmp dword [ebp - 0x120], 2
jne 0x411c98
push str.winxpprof
mov ecx, dword [ebp + 8]
call fcn.0040a310
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x34
jmp 0x411d86
cmp dword [ebp - 0x124], 6
jne 0x411cc5
cmp dword [ebp - 0x120], 0
jne 0x411cc5
push str.vista
mov ecx, dword [ebp + 8]
call fcn.0040a310
mov edx, dword [ebp + 0xc]
mov dword [edx], 0x3c
jmp 0x411d86
cmp dword [ebp - 0x124], 6
jne 0x411cf2
cmp dword [ebp - 0x120], 1
jne 0x411cf2
push 0x448820
mov ecx, dword [ebp + 8]
call fcn.0040a310
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x3d
jmp 0x411d86
cmp dword [ebp - 0x124], 6
jne 0x411d1c
cmp dword [ebp - 0x120], 2
jne 0x411d1c
push str.win8
mov ecx, dword [ebp + 8]
call fcn.0040a310
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x3e
jmp 0x411d86
cmp dword [ebp - 0x124], 6
jne 0x411d46
cmp dword [ebp - 0x120], 3
jne 0x411d46
push str.win8.1
mov ecx, dword [ebp + 8]
call fcn.0040a310
mov edx, dword [ebp + 0xc]
mov dword [edx], 0x3f
jmp 0x411d86
cmp dword [ebp - 0x124], 6
jne 0x411d70
cmp dword [ebp - 0x120], 4
jne 0x411d70
push str.win8.2
mov ecx, dword [ebp + 8]
call fcn.0040a310
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x40
jmp 0x411d86
push str.unknowntype
mov ecx, dword [ebp + 8]
call fcn.0040a310
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x64
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004208a1
mov esp, ebp
pop ebp
ret
Function at 0x411da0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4513a8]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 1
mov word [ebp - 0x218], 0
push 0x206
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.00421260
add esp, 0xc
mov ecx, dword [ebp + 0x10]
call fcn.0040a370
push eax
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call fcn.00421c2b
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 8]
push eax
push 0
push 2
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0040a370
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x411e91
lea edx, [ebp - 0x218]
push edx
call fcn.004210cd
add esp, 4
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0
mov ecx, dword [ebp + 0xc]
call fcn.0040a370
push eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x411e6d
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x411ea7
mov edx, dword [ebp + 0x14]
mov dword [edx], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x411ea7
mov eax, dword [ebp + 0x14]
mov dword [eax], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004208a1
mov esp, ebp
pop ebp
ret

Function at 0x411f90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push 2
push 0
push 0
push 0
lea ecx, [ebp + 8]
call fcn.0040a370
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x412043
push 4
lea edx, [ebp + 0x40]
push edx
mov eax, dword [ebp - 8]
push eax
push 0
lea ecx, [ebp + 0x24]
call fcn.0040a370
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x412012
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], 1
lea ecx, [ebp + 8]
call fcn.0040a2d0
lea ecx, [ebp + 0x24]
call fcn.0040a2d0
mov eax, dword [ebp - 0x18]
jmp 0x41206f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
lea ecx, [ebp + 8]
call fcn.0040a2d0
lea ecx, [ebp + 0x24]
call fcn.0040a2d0
mov eax, dword [ebp - 0x1c]
jmp 0x41206f
mov dword [ebp - 0x20], 0
lea ecx, [ebp + 8]
call fcn.0040a2d0
lea ecx, [ebp + 0x24]
call fcn.0040a2d0
mov eax, dword [ebp - 0x20]
jmp 0x41206f
mov esp, ebp
pop ebp
ret
Function at 0x412080
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 4
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0x10]
push eax
push 2
push 0
lea ecx, [ebp + 8]
call fcn.0040a370
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412108
lea ecx, [ebp + 0x24]
call fcn.0040a370
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x4120d7
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x412106
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], 0
lea ecx, [ebp + 8]
call fcn.0040a2d0
lea ecx, [ebp + 0x24]
call fcn.0040a2d0
mov eax, dword [ebp - 0x18]
jmp 0x41213e
jmp 0x412124
mov dword [ebp - 0x1c], 0
lea ecx, [ebp + 8]
call fcn.0040a2d0
lea ecx, [ebp + 0x24]
call fcn.0040a2d0
mov eax, dword [ebp - 0x1c]
jmp 0x41213e
mov dword [ebp - 0x20], 1
lea ecx, [ebp + 8]
call fcn.0040a2d0
lea ecx, [ebp + 0x24]
call fcn.0040a2d0
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret
Function at 0x412520
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4513a8]
xor eax, ebp
mov dword [ebp - 8], eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
cmp dword [ebp + 0xc], 0
jne 0x412548
xor eax, eax
jmp 0x4126f6
lea eax, [ebp - 0x214]
push eax
push 0x444c2c
push 1
push 0
push 0x444f0c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jge 0x412579
xor eax, eax
jmp 0x4126f6
lea ecx, [ebp - 4]
push ecx
push 0x44533c
mov edx, dword [ebp - 0x214]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x214]
push ecx
mov edx, dword [eax]
call edx
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jge 0x4125bf
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x214]
push edx
mov eax, dword [ecx + 8]
call eax
xor eax, eax
jmp 0x4126f6
cmp dword [ebp + 8], 0
jne 0x412601
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push 0xffffffffffffffff
mov edx, dword [0x452358]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x420]
push eax
mov ecx, dword [ebp - 0x214]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [edx + 0x50]
call ecx
jmp 0x412619
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x214]
push edx
mov eax, dword [ecx + 0x50]
call eax
cmp dword [ebp + 0x14], 0
je 0x412637
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x214]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x214]
push ecx
mov edx, dword [eax + 0x50]
call edx
movzx eax, word [ebp + 0x18]
test eax, eax
je 0x412658
mov cx, word [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x214]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x214]
push ecx
mov edx, dword [eax + 0x34]
call edx
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp - 0x214]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [edx + 0x3c]
call ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x214]
push edx
mov eax, dword [ecx + 0x1c]
call eax
cmp dword [ebp + 0x10], 0
je 0x4126ab
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push str._s_s
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 1
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [eax + 0x18]
call edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x214]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [edx + 8]
call ecx
xor eax, eax
cmp dword [ebp - 0x218], 0
setge al
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004208a1
mov esp, ebp
pop ebp
ret