joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405f76
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x41f024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x214], eax
push ecx
mov esi, 0x104
mov dword [eax], edi
mov edx, esi
mov dword [eax + 4], edi
lea ecx, [ebp - 0x20c]
call fcn.004051fc
push 0x4018b0
mov edx, esi
lea ecx, [ebp - 0x20c]
call fcn.00405231
lea eax, [ebp - 0x20c]
push eax
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x405ff9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x406027
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xc9
call fcn.00405cde
mov edi, eax
jmp 0x406027
lea edx, [ebp - 0x210]
mov dword [ebp - 0x210], edi
mov ecx, esi
call fcn.00405e58
mov ebx, eax
test ebx, ebx
jns 0x40602d
mov ecx, dword [ebp + 4]
mov edx, 0xcf
push ebx
push 0x401854
call fcn.00405ca2
mov edi, ebx
test esi, esi
je 0x406045
jmp 0x40603f
mov ecx, dword [ebp - 0x214]
mov eax, dword [ebp - 0x210]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
push esi
call fcn.00405d56
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041dc30
leave
ret 8

Function at 0x406535
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push edi
cmp word [0x4018c8], bx
je 0x40656e
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push 0x4018c8
push reloc.COMCTL32.dll_MenuHelp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
jne 0x40659e
mov eax, dword [ebp - 4]
jmp 0x406576
mov eax, reloc.COMCTL32.dll_MenuHelp
mov dword [ebp - 4], eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 4], 0x80000002
mov edi, eax
je 0x40659e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
leave
ret 0x10
Function at 0x406718
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x41f024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, reloc.COMCTL32.dll_MenuHelp
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10c], eax
cmp word [0x4018c8], di
je 0x406779
lea ecx, [ebp - 0x10c]
push ecx
xor ecx, ecx
inc ecx
push ecx
push edi
push 0x4018c8
push eax
mov dword [ebp - 0x110], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x406833
mov eax, dword [ebp - 0x10c]
jmp 0x40677f
mov dword [ebp - 0x110], edi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], 0x100
push ecx
lea ecx, [ebp - 0x104]
push ecx
push edi
push 2
push 0x401b74
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov esi, eax
test esi, esi
je 0x4067b5
cmp esi, 0xea
jne 0x40681a
push dword [ebp - 0x108]
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [ebx], eax
test eax, eax
je 0x406817
test esi, esi
jne 0x4067e3
push dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x40681a
lea ecx, [ebp - 0x108]
push ecx
push eax
push edi
push 2
push 0x401b74
push edi
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x406808
mov esi, edi
jmp 0x40681a
push dword [ebx]
mov esi, 0x3eb
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x40681a
push 0xe
pop esi
cmp dword [ebp - 0x110], 0
je 0x40682f
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x406842
mov dword [ebx], edi
test esi, esi
jle 0x406842
movzx esi, si
or esi, 0x80070000
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041dc30
leave
ret 0x10

Function at 0x406967
Capabilities:
Inspect load icon resource

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x41fe14]
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
push 0x64
push eax
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], 0x4008
mov dword [ebp - 0x28], 0x406950
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x64
push dword [0x41fe14]
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x10
mov dword [ebp - 0x14], eax
pop eax
push 0
push eax
push eax
push 1
push 0x64
push dword [0x41fe14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0x67
mov dword [ebp - 8], 0x401890
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
setne al
leave
ret
Function at 0x407a3c
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x41f024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 9
push 0x110a
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
push 3
mov edi, 0x104
lea ecx, [ebp - 0x418]
push edi
push ecx
mov ecx, dword [esi + 0x60]
mov edx, eax
call fcn.0040ebe0
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push edi
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x407aa5
sub ecx, edx
sar ecx, 1
lea ebx, [ecx - 1]
test ebx, ebx
je 0x407af7
lea edi, [ebx + ebx]
movzx eax, word [ebp + edi - 0x210]
push eax
call dword [sym.imp.msvcrt.dll_isspace]
pop ecx
test eax, eax
jne 0x407add
cmp word [ebp + edi - 0x210], 0x5c
jne 0x407af7
cmp edi, 0x208
jae 0x407b4a
xor eax, eax
mov word [ebp + edi - 0x210], ax
sub edi, 2
sub ebx, 1
jne 0x407abe
lea eax, [ebp - 0x210]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.00407306
test eax, eax
je 0x407b23
mov eax, dword [esi + 0x60]
mov dword [esi + 8], eax
jmp 0x407b2b
push 0x30
call dword [sym.imp.USER32.dll_MessageBeep]
mov ecx, esi
call fcn.0040eaba
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041dc30
leave
ret
call fcn.0041dd8a
int3
Function at 0x40891d
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x204c
call fcn.0041e500
mov eax, dword [0x41f024]
xor eax, esp
mov dword [esp + 0x2048], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0xc]
push eax
push 0x401930
xor ebx, ebx
mov esi, ecx
push MenuHelp
mov dword [esp + 0x58], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x408a90
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x2c
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov eax, dword [esi + 0xc]
mov edi, 0x101d
push ebx
push ebx
push edi
push dword [esi]
mov dword [esp + 0x4c], eax
call dword [sym.imp.USER32.dll_SendMessageW]
movzx ecx, word [esi + 0x10dc]
push ecx
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push ebx
push 1
push edi
push dword [esi]
mov dword [esp + 0x50], eax
call dword [sym.imp.USER32.dll_SendMessageW]
movzx ecx, word [esi + 0x10dc]
push ecx
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push ebx
push 2
push edi
push dword [esi]
mov dword [esp + 0x54], eax
call dword [sym.imp.USER32.dll_SendMessageW]
movzx ecx, word [esi + 0x10dc]
push ecx
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x48], eax
xor eax, eax
cmp dword [esi + 0x18], ebx
push 0x40
setne al
add eax, 2
mov dword [esp + 0x50], eax
lea eax, [esp + 0x14]
push eax
push 3
push ebx
push 0x401a30
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [esi + 0x4c]
push eax
push 4
push ebx
push 0x401a3c
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
push 9
push 0x110a
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
push 3
push 0x1000
lea ecx, [esp + 0x58]
mov edx, eax
push ecx
mov ecx, dword [esi + 0x60]
call fcn.0040ebe0
lea ecx, [esp + 0x50]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x408a58
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [esp + 0x54]
push eax
push 1
push ebx
push 0x401a50
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 9
push 0x110b
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, dword [esp + 0x2054]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041dc30
mov esp, ebp
pop ebp
ret 4
Function at 0x408bc9
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword fs:[0x30]
push ebx
push esi
push edi
mov esi, 0x2000
xor ebx, ebx
push esi
push ebx
push dword [eax + 0x18]
mov edi, ecx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0xc], eax
mov eax, dword fs:[0x30]
push esi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
lea ecx, [ebp - 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x18], ecx
push ebx
lea ecx, [ebp - 4]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x14], 1
mov dword [ebp - 4], ebx
call fcn.0040ace6
lea eax, [ebp - 4]
push eax
push 0x4019a8
push MenuHelp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x408d15
mov esi, dword [ebp - 0xc]
push ebx
push 9
push 0x110a
push dword [edi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x60]
mov edx, eax
push 3
push 0x1000
push esi
call fcn.0040ebe0
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x408cb9
push 0x5c
push edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x408cb9
lea edi, [eax + 1]
add edi, 1
jne 0x408c6a
jmp 0x408cb9
cmp word [esi], bx
je 0x408cb9
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push ecx
push esi
push dword [ebp - 4]
call fcn.0040fbf3
test eax, eax
jne 0x408ce8
push 0x10
push 0xac
push 0xab
push dword [ebp + 8]
push dword [0x41fe14]
call fcn.0040fa08
add esp, 0x14
mov ecx, dword [ebp - 8]
mov edx, 0x1000
push edi
call fcn.004051fc
mov esi, dword [ebp - 8]
push esi
push 0x408ad0
push dword [ebp + 8]
push 0x70
push dword [0x41fe14]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 1
je 0x408c83
jmp 0x408d15
mov ecx, dword [ebp - 0xc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x408cee
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push dword [ebp - 0xc]
push 1
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 4], ebx
je 0x408d23
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1c]
call fcn.0040aade
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x409195
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword fs:[0x30]
push ebx
push esi
push edi
mov ebx, 0x2000
xor edi, edi
push ebx
push edi
push dword [eax + 0x18]
mov esi, ecx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 8], eax
mov eax, dword fs:[0x30]
push ebx
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0xc]
lea eax, [ebp - 8]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x1c], 1
mov dword [ebp - 4], edi
call fcn.00408f06
push edi
lea ecx, [ebp - 4]
call fcn.0040ace6
lea eax, [ebp - 4]
push eax
push 0x4019a8
push MenuHelp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x409254
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0x1000
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], ebx
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffafe
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x409254
cmp dword [ebp - 0x18], 1
jne 0x409254
cmp dword [ebp - 0x10], edi
jbe 0x409254
push 1
push dword [ebp - 8]
mov ecx, esi
call fcn.00407306
cmp dword [ebp - 4], edi
je 0x409262
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x24]
call fcn.0040aade
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40a701
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push esi
push 0xe
mov esi, ecx
call dword [sym.imp.USER32.dll_GetSysColor]
push 0xd
mov dword [esi + 0x1084], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 8
mov dword [esi + 0x1080], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 5
mov dword [esi + 0x107c], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push dword [esi + 0x10]
mov dword [esi + 0x1078], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
push dword [esi + 0x1078]
push 0
push 0x1001
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
ret

Function at 0x40a93e
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1050
call fcn.0041e500
mov eax, dword [0x41f024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x5c
pop eax
push 8
mov esi, ecx
mov word [ebp - 0x28], ax
pop ecx
push 0
mov word [ebp - 0x26], ax
lea edi, [ebp - 0x24]
push 9
xor eax, eax
push 0x110a
push dword [esi + 0x60]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x830]
mov dword [ebp - 0x1044], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
push edi
push 3
push 0x110a
push dword [esi + 0x60]
mov dword [ebp - 0x103c], edi
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
mov ecx, esi
mov dword [ebp - 0x1040], eax
call fcn.0040a839
mov ecx, dword [ebp - 0x103c]
lea edx, [ebp - 0x830]
push 0x401
mov edi, eax
call fcn.0040ef91
xor eax, eax
cmp edi, dword [esi + 0x40]
setne al
mov dword [ebp - 0x104c], eax
je 0x40a9ef
push 0x10
lea edx, [ebp - 0x24]
mov ecx, edi
call fcn.0040ef91
jmp 0x40aa0a
lea eax, [ebp - 0x1048]
mov dword [ebp - 0x1048], 0x10
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov eax, dword [ebp - 0x1040]
cmp eax, edi
jne 0x40aa1d
and dword [ebp - 0x1044], 0
jmp 0x40aa32
push eax
push 3
push 0x110a
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, edi
jne 0x40aa36
xor edi, edi
jmp 0x40aa58
mov edx, dword [ebp - 0x1040]
lea eax, [ebp - 0x1038]
mov ecx, dword [esi + 0x60]
push 0
push 0x401
push eax
call fcn.0040ebe0
lea edi, [ebp - 0x1038]
push dword [ebp - 0x103c]
mov ecx, esi
call fcn.0040a86a
lea ecx, [ebp - 0x103c]
mov edx, edi
push ecx
push ebx
push ecx
mov ecx, dword [ebp - 0x1044]
push eax
push dword [ebp - 0x104c]
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00411723
test eax, eax
jne 0x40aaaa
push dword [ebp - 0x103c]
push ebx
call dword [sym.imp.ACLUI.dll_EditSecurity]
push dword [esi + 0x60]
mov ecx, esi
call fcn.0040d738
jmp 0x40aac7
push 0
push 0x10
push 0x1b58
push 0x1b8c
push ebx
push dword [0x41fe14]
call fcn.0040fa08
add esp, 0x18
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041dc30
leave
ret 4
Function at 0x40d906
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041e500
mov eax, dword [0x41f024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x1004]
push esi
push ecx
mov ecx, dword [0x461250]
xor edi, edi
push eax
push 0
inc edi
call fcn.0040d55f
test eax, eax
je 0x40d975
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x1004]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40d975
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x1004]
xor edi, edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0041dc30
leave
ret
Function at 0x40eb23
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041e500
mov eax, dword [0x41f024]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x1008]
mov ecx, dword [ecx + 0x60]
push esi
mov esi, dword [ebp + 8]
push edi
push 1
push 0x800
push eax
call fcn.0040ebe0
lea ecx, [ebp - 0x1008]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40eb63
sub ecx, edx
sar ecx, 1
push esi
lea edi, [ecx*2 + 2]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40ebca
push edi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40ebc4
push edi
lea eax, [ebp - 0x1008]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041dc30
leave
ret 8

Function at 0x40ed3f
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x41f024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
push edi
push 3
push 0x110a
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x40ee4d
xor ebx, ebx
lea eax, [ebp - 0x808]
push ebx
push 0x400
push eax
mov edx, edi
mov ecx, esi
call fcn.0040ebe0
lea ecx, [ebp - 0x80c]
push ecx
push 8
push ebx
lea ecx, [ebp - 0x808]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40edad
xor eax, eax
jmp 0x40ee50
lea ecx, [ebp - 0x808]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40edb6
sub ecx, edx
mov dword [ebp - 0x810], 1
sar ecx, 1
lea eax, [ebp - 0x808]
mov ebx, 0x3ff
sub ebx, ecx
push ebx
push eax
push 0
jmp 0x40ee22
push ecx
mov ecx, dword [ebp - 0x80c]
lea edx, [ebp - 0x808]
call fcn.0040ee65
push eax
lea eax, [ebp - 0x808]
mov edx, edi
push eax
push 0xffff0001
mov ecx, esi
call fcn.0040eced
mov ecx, dword [ebp - 0x810]
mov eax, ecx
inc ecx
mov dword [ebp - 0x810], ecx
lea ecx, [ebp - 0x808]
push ebx
push ecx
push eax
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x40ede2
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push 0
push 0x1113
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041dc30
leave
ret
Function at 0x40f342
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x41fe14], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], 8
mov dword [ebp - 4], 0xffff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0x10e0
call fcn.004166b5
pop ecx
test eax, eax
je 0x40f394
mov ecx, eax
call fcn.0040f4a7
jmp 0x40f396
mov eax, edi
push eax
mov ecx, 0x461250
call fcn.0040afba
call fcn.0040f2c2
cmp eax, 2
jne 0x40f3b5
call fcn.0040efe1
jmp 0x40f493
mov ecx, eax
call fcn.0040effe
sub eax, 1
je 0x40f465
sub eax, 1
je 0x40f493
call fcn.0040465a
mov ecx, eax
call fcn.0040efd7
test eax, eax
je 0x40f457
call fcn.0040465a
mov ecx, eax
call fcn.0040efd7
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x40f40f
push 9
call fcn.0040465a
mov ecx, eax
call fcn.0040efd7
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40f493
call fcn.0040465a
mov ecx, eax
call fcn.0040efd7
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
call fcn.0040465a
mov ecx, eax
call fcn.0040efd7
push eax
call dword [sym.imp.USER32.dll_GetLastActivePopup]
mov esi, eax
call fcn.0040465a
mov ecx, eax
call fcn.0040efd7
cmp esi, eax
je 0x40f44e
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x40f493
call fcn.0040465a
mov ecx, eax
call fcn.0040685b
jmp 0x40f493
call fcn.0040465a
mov ecx, eax
call fcn.0040efd7
test eax, eax
je 0x40f493
push edi
push 0x288
push 0x111
call fcn.0040465a
mov ecx, eax
call fcn.0040efd7
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push ecx
call fcn.0040f55e
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40f72a
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x1c], edx
inc eax
mov dword [ebp - 0xc], 0x400
push edi
mov esi, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
xor edi, edi
push eax
push edi
lea eax, [ebp - 4]
mov ebx, ecx
push eax
push edi
lea eax, [ebp - 0xc]
push eax
mov eax, dword [0x461250]
add eax, 0x878
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40f82b
cmp dword [ebp - 4], 1
je 0x40f78a
cmp dword [ebp - 4], 2
je 0x40f78a
cmp dword [ebp - 4], 7
je 0x40f78a
mov ecx, edi
jmp 0x40f78d
push 2
pop ecx
mov eax, dword [ebp - 8]
add eax, ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x40f7e9
mov eax, dword [0x461250]
lea ecx, [ebp - 8]
push ecx
push edi
lea ecx, [ebp - 4]
add eax, 0x878
push ecx
push ecx
push eax
push ebx
call fcn.0040fbf3
test eax, eax
jne 0x40f7de
push dword [ebp - 8]
push edi
push dword [ebp - 4]
push eax
mov eax, dword [0x461250]
add eax, 0x878
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40f7e0
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40f7eb
xor esi, esi
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 8]
push eax
mov ecx, edi
mov dword [ebp - 0xc], 0x400
inc edi
lea eax, [ebp - 4]
mov dword [ebp - 0x18], edi
xor edi, edi
push edi
push eax
push edi
lea eax, [ebp - 0xc]
push eax
mov eax, dword [0x461250]
add eax, 0x878
push eax
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x40f774
jmp 0x40f8ae
mov eax, dword [0x461250]
mov ecx, edi
push 0x400
add eax, 0x78
inc edi
push eax
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x40f8b6
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x461250]
push 9
push 0
add eax, 0x78
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f8ae
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x461250]
add eax, 0x78
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40f8a5
push dword [ebp + 8]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0040f670
push dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov esi, eax
mov ecx, dword [ebp - 0x14]
call fcn.0040f72a
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40f82b
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4