joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c9b4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45cb5f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45cb40
mov dl, 1
mov eax, dword [0x41ccc4]
call fcn.00403bf4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404af8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45cb2f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044a9e8
test al, al
je 0x45cb22
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45cb70
lea eax, [ebp - 0x254]
call fcn.0040b2a0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45cb22
xor eax, eax
push ebp
push 0x45cb1b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45cba8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45cb04
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404d68
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45cb04
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404d68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45cb22
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45ca25
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00421840
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45cb66
lea eax, [ebp - 0x260]
call fcn.00404af8
ret

Function at 0x45d494
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4b4be8]
cmp byte [eax + 0xa5], 0
jne 0x45d505
cmp dword [0x4b4c00], 0
jne 0x45d4c6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45d450
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4b4c00], eax
cmp dword [0x4b4bfc], 0
jne 0x45d4e1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4b4bfc], eax
cmp dword [0x4b4c04], 0
jne 0x45d505
push esp
push 0
push 0
push 0x45d3f4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4b4c04], eax
pop edx
ret
Function at 0x45d5fc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45d613
add esp, 0xfffffff0
call fcn.00403f48
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00425dcc
mov eax, dword [0x4b33f8]
cmp word [eax + 2], 0
jne 0x45d63b
mov eax, dword [0x4b33f8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045ebe8
mov eax, dword [0x4b3574]
cmp word [eax + 2], 0
jne 0x45d655
mov eax, dword [0x4b3574]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045ede0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41c4b4]
call fcn.00403bf4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41c4b4]
call fcn.00403bf4
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x428a00]
call fcn.0042fd78
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45d7dc
mov eax, dword [0x4b323c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00430148
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45f380
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4b323c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040f154
test eax, eax
je 0x45d74a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040ac54
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040f17c
test eax, eax
je 0x45d75e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404d68
mov eax, dword [0x4b2fd4]
cmp byte [eax], 0
jne 0x45d792
mov eax, ebx
call fcn.0045d904
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045f55c
mov eax, ebx
call fcn.0045ff20
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45d7d2
call fcn.00403fa0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45db84
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4b4be8]
cmp dword [eax + 0x30], 0
je 0x45dc2e
cmp dword [ebx + 0x94], 0
jne 0x45dc28
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45db14
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45dc28
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45dbee
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45dc28
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041eec8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45dbfd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45e790
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45e7c5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404be8
jmp 0x45e7d2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404b4c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45f738
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45f779
mov eax, esi
call fcn.004460a8
test al, al
je 0x45f779
mov eax, dword [ebx + 0x84]
call fcn.00445dd0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45f779
push 0
mov eax, dword [ebx + 0x84]
call fcn.00445dd0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x460a64
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404fa8
xor eax, eax
push ebp
push 0x460ae2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404fb8
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x460aad
mov eax, dword [ebx + 4]
call fcn.00404fb8
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceA
mov dword [ebx + 8], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
mov ax, word [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_ReportEventA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460ae9
lea eax, [ebp - 4]
call fcn.00404af8
ret
Function at 0x461ae4
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x461c81
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00402c10
cmp word [ebx + 0xa2], 0
je 0x461b2d
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
mov eax, dword [ebx + 0x90]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x461b41
lea esi, [ebp - 8]
jmp 0x461b43
xor esi, esi
cmp dword [ebx + 0x80], 0
jne 0x461b50
xor edi, edi
jmp 0x461b5d
mov eax, dword [ebx + 0x80]
call fcn.00404fb8
mov edi, eax
mov eax, dword [ebx + 0x7c]
call fcn.00404fb8
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0046121c
mov eax, dword [ebp - 0x14]
call fcn.00404fb8
push eax
push esi
mov eax, dword [ebx + 0x74]
call fcn.00404fb8
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404fb8
push eax
mov eax, ebx
call fcn.00461350
push eax
mov eax, ebx
call fcn.00461324
push eax
mov eax, ebx
call fcn.004612d8
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.004610e8
mov eax, dword [ebp - 0x18]
call fcn.00404fb8
push eax
mov eax, dword [ebx + 8]
call fcn.00404fb8
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x90], eax
cmp dword [ebp - 0xc], 0
jne 0x461be6
call fcn.0040f9e0
xor edx, edx
push ebp
push 0x461c5f
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x461c24
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xaa], 0
je 0x461c1a
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x461c48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461c66
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x461c90
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x461cbc
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00404fb8
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x461ce1
call fcn.0040f9e0
xor eax, eax
push ebp
push 0x461d18
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x461d01
call fcn.0040f9e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461d1f
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x47ecbc
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x47ece1
cmp dword [esp + 4], 5
jb 0x47ece1
mov al, 1
jmp 0x47ece3
xor eax, eax
add esp, 0x94
ret
Function at 0x4038b2
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x11
mov edi, edx
mov dword [ebp - 4], ecx
call dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
test ax, ax
push 0x10
sets bl
call dword [sym.imp.USER32.dll_GetKeyState]
mov esi, dword [0x41e56c]
xor edx, edx
mov ecx, dword [0x41e530]
test ax, ax
sets dl
mov dword [ebp - 8], edx
cmp edi, 0x26
ja 0x4039e7
je 0x4039cc
cmp edi, 0x21
jb 0x403a9b
cmp edi, 0x22
jbe 0x403996
cmp edi, 0x23
je 0x40395a
cmp edi, 0x24
je 0x403931
cmp edi, 0x25
jne 0x403a9b
and dword [0x41e530], 0xffffffef
dec esi
jmp 0x4039d7
mov eax, dword [0x41e530]
test ebx, ebx
je 0x40393e
xor esi, esi
jmp 0x40394a
test al, 0x10
je 0x403947
sub esi, 8
jmp 0x40394a
and esi, 0xfffffff8
and eax, 0xffffffef
mov dword [0x41e530], eax
mov ebx, dword [ebp - 4]
jmp 0x403a91
test ebx, ebx
jne 0x403a62
mov eax, dword [0x41e530]
test al, 0x10
jne 0x403a9b
mov ecx, dword [0x41e538]
and esi, 0xfffffff8
mov ebx, dword [ebp - 4]
add esi, 8
cmp esi, ecx
jle 0x403989
mov esi, ecx
jmp 0x403a91
or eax, 0x10
mov dword [0x41e530], eax
jmp 0x403a91
imul eax, dword [0x41e55c], 0xfffffff8
mov ebx, dword [ebp - 4]
mov ecx, ebx
push 0
add esi, eax
xor eax, eax
cmp edi, 0x21
setne al
add eax, 2
push eax
call fcn.004032b2
mov eax, dword [0x41e55c]
mov edx, dword [ebp - 8]
lea esi, [esi + eax*8]
cmp edi, 0x21
je 0x4039da
jmp 0x403a86
test ebx, ebx
jne 0x403a9b
sub esi, 8
mov ebx, dword [ebp - 4]
test esi, esi
js 0x403a9b
jmp 0x403a91
sub edi, 0x27
je 0x403a76
sub edi, 1
je 0x403a40
sub edi, 5
je 0x403a21
sub edi, 1
jne 0x403a9b
test ebx, ebx
jne 0x403a9b
test edx, edx
je 0x403a14
push ecx
push 0x18
jmp 0x403a2c
mov ecx, dword [ebp - 4]
push 0x2e
pop edx
call fcn.00403fae
jmp 0x403a9b
test edx, edx
je 0x403a37
test ebx, ebx
jne 0x403a9b
push ecx
push 0x16
mov ecx, dword [ebp - 4]
pop edx
call fcn.00403aa2
jmp 0x403a9b
test ebx, ebx
je 0x403a9b
push ecx
push 3
jmp 0x403a2c
test ebx, ebx
jne 0x403a9b
add esi, 8
mov eax, esi
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, dword [0x41e558]
jle 0x403a80
test cl, 0x10
je 0x403a9b
mov edx, dword [ebp - 8]
mov esi, dword [0x41e538]
and ecx, 0xffffffef
mov dword [0x41e530], ecx
jmp 0x403952
and dword [0x41e530], 0xffffffef
inc esi
jmp 0x403a83
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov eax, dword [0x41e538]
cmp esi, eax
jle 0x403a91
mov esi, eax
push edx
mov edx, esi
mov ecx, ebx
call fcn.00403df2
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4040e6
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov edx, dword [0x41e570]
push esi
push edi
mov edi, dword [0x41e574]
xor esi, esi
sub edi, edx
je 0x40416a
mov eax, dword [0x41e534]
add eax, edx
push ecx
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40416a
push ebx
lea eax, [edi + 7]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x404163
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
push edi
push dword [ebp - 4]
lea eax, [esi + 4]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [esi], edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push dword [0x41e580]
call dword [sym.imp.USER32.dll_SetClipboardData]
xor esi, esi
inc esi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x404170
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x41e530]
push ebx
push edi
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x1c], ebx
test al, 8
je 0x404198
and eax, 0xfffffff7
inc dword [0x41e56c]
mov dword [0x41e530], eax
push ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x404309
push dword [0x41e580]
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x404303
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4042fa
mov eax, dword [eax]
mov edi, dword [0x41e53c]
push esi
mov esi, dword [0x41e538]
add eax, esi
cmp eax, edi
jle 0x404238
xor edi, edi
mov dword [ebp - 0x14], edi
cmp eax, esi
jb 0x40421c
push 2
mov edi, eax
push edi
push dword [0x41e534]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ecx, eax
test ecx, ecx
je 0x404219
mov esi, dword [0x41e538]
mov dword [0x41e534], ecx
mov dword [0x41e53c], edi
jmp 0x40423e
mov edi, dword [ebp - 0x14]
push 0
push 0x10
push 0x70
push 0x76
push ebx
push dword [0x41edec]
call fcn.0040eae0
add esp, 0x18
jmp 0x4042f9
mov ecx, dword [0x41e534]
mov eax, dword [0x41e570]
cmp eax, dword [0x41e574]
je 0x404267
push 8
pop edx
mov ecx, ebx
call fcn.00403fae
mov edi, dword [0x41e53c]
mov esi, dword [0x41e538]
mov ecx, dword [0x41e534]
mov ebx, dword [0x41e56c]
mov edx, dword [ebp - 0xc]
lea eax, [ecx + ebx]
add ecx, edi
mov edx, dword [edx]
mov dword [ebp - 0x10], eax
add eax, edx
mov dword [ebp - 4], eax
mov eax, esi
sub eax, ebx
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], eax
add eax, ecx
mov dword [ebp - 0x14], edx
cmp eax, dword [ebp - 8]
ja 0x4042b4
mov eax, dword [ebp - 0x18]
cmp eax, edi
jge 0x4042b4
test eax, eax
js 0x4042b4
push eax
push dword [ebp - 0x10]
push ecx
call sub.msvcrt.dll_memmove
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
ja 0x4042d0
cmp edx, edi
jae 0x4042d0
mov eax, dword [ebp - 0xc]
push edx
add eax, 4
push eax
push dword [ebp - 0x10]
call sub.msvcrt.dll_memcpy
add esp, 0xc
add ebx, dword [ebp - 0x14]
add esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov dword [0x41e538], esi
mov dword [0x41e56c], ebx
mov dword [0x41e570], ebx
mov dword [0x41e574], ebx
call fcn.00403249
xor edi, edi
inc edi
pop esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, edi
pop edi
pop ebx
leave
ret
Function at 0x4046d6
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x80c], 0
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
push 0x500
push esi
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
mov dword [0x41e584], eax
test eax, eax
jne 0x4047c7
push 0x428
mov ebx, 0x41e588
push ebx
push 0x502
push esi
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
cmp word [0x41e588], 0
jne 0x404742
mov dword [0x41e584], 1
jmp 0x4047c7
mov eax, dword [0x45ef80]
push 0
push 9
push 0x110a
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [0x45ef80]
push 0
push ebx
push eax
call fcn.0040a2c5
lea edx, [ebp - 0x80c]
mov ecx, eax
call fcn.00410c27
test eax, eax
je 0x4047bb
test edi, edi
je 0x404786
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
push 0x400
lea eax, [ebp - 0x808]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x10
lea eax, [ebp - 0x808]
push eax
push 0x94
push esi
push dword [0x41edec]
call fcn.0040eae0
xor eax, eax
add esp, 0x14
inc eax
jmp 0x4047c9
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ca70
leave
ret
Function at 0x405b0a
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x41e024]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], eax
push ecx
mov esi, 0x104
mov dword [eax], edi
mov edx, esi
mov dword [eax + 4], edi
lea ecx, [esp + 0x1c]
call fcn.00404f69
push 0x4018dc
mov edx, esi
lea ecx, [esp + 0x1c]
call fcn.00404f9e
lea eax, [esp + 0x18]
push eax
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x405b8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x405bc6
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xc0
call fcn.00405863
mov edi, eax
jmp 0x405bc6
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov ecx, esi
call fcn.004059f1
mov ebx, eax
test ebx, ebx
jns 0x405bb8
mov ecx, dword [ebp + 4]
mov edx, 0xc6
push ebx
push 0x401888
call fcn.0040582e
mov edi, ebx
jmp 0x405bc6
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
test esi, esi
je 0x405bd0
push esi
call fcn.004058e3
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041ca70
mov esp, ebp
pop ebp
ret 8

Function at 0x40607f
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, ebx
cmp word [0x4018f0], bx
je 0x4060b6
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push 0x4018f0
push reloc.COMCTL32.dll_MenuHelp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
mov eax, dword [ebp - 4]
jmp 0x4060be
mov eax, reloc.COMCTL32.dll_MenuHelp
mov dword [ebp - 4], eax
test esi, esi
jne 0x4060ea
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 esi, eax
je 0x4060ea
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x406244
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x41e024]
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 [0x4018f0], di
je 0x40629d
lea ecx, [ebp - 0x10c]
push ecx
xor ecx, ecx
inc ecx
push ecx
push edi
push 0x4018f0
push eax
mov dword [ebp - 0x110], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [ebp - 0x10c]
jmp 0x4062a5
mov esi, edi
mov dword [ebp - 0x110], edi
test esi, esi
jne 0x406361
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], 0x100
push ecx
lea ecx, [ebp - 0x104]
push ecx
push edi
push 2
push 0x401b9c
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov esi, eax
test esi, esi
je 0x4062e3
cmp esi, 0xea
jne 0x406348
push dword [ebp - 0x108]
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [ebx], eax
test eax, eax
je 0x406345
test esi, esi
jne 0x406311
push dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x406348
lea ecx, [ebp - 0x108]
push ecx
push eax
push edi
push 2
push 0x401b9c
push edi
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x406336
mov esi, edi
jmp 0x406348
push dword [ebx]
mov esi, 0x3eb
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x406348
push 0xe
pop esi
cmp dword [ebp - 0x110], 0
je 0x40635d
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x406370
mov dword [ebx], edi
test esi, esi
jle 0x406370
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.0041ca70
leave
ret 0x10