joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b7ac0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x408d000
lea edi, [esi - 0xac000]
push edi
or ebp, 0xffffffff
jmp 0x4b7ae2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b7ae9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b7ad8
mov eax, 1
add ebx, ebx
jne 0x4b7afb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b7b0c
jne 0x4b7b2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b7b2b
dec eax
add ebx, ebx
jne 0x4b7b18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b7af0
add ebx, ebx
jne 0x4b7b27
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b7b7d
xor ecx, ecx
sub eax, 3
jb 0x4b7b43
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b7bb2
sar eax, 1
mov ebp, eax
jmp 0x4b7b4e
add ebx, ebx
jne 0x4b7b4e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b7b1c
inc ecx
add ebx, ebx
jne 0x4b7b5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b7b1c
add ebx, ebx
jne 0x4b7b69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b7b5e
jne 0x4b7b7a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b7b5e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b7b9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b7b8e
jmp 0x4b7ade
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b7b9c
add edi, ecx
jmp 0x4b7ade
pop esi
mov edi, esi
mov ecx, 0x48f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b7bba
cmp byte [edi], 6
jne 0x4b7bba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4b7bbf
lea edi, [esi + 0xb4000]
mov eax, dword [edi]
or eax, eax
je 0x4b7c37
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb7000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb708c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b7bec
mov ecx, edi
jns 0x4b7c1b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb7090]
or eax, eax
je 0x4b7c31
mov dword [ebx], eax
add ebx, 4
jmp 0x4b7c09
call dword [esi + 0xb7098]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4b7c68
cmp al, 0xef
ja 0x4b7c5b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4b7c3d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4b7c4a
mov ebp, dword [esi + 0xb7094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b7c9c
sub esp, 0xffffff80
jmp 0x434567
Function at 0x4031bc
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 [0x41b58c]
xor edx, edx
mov ecx, dword [0x41b550]
test ax, ax
sets dl
mov dword [ebp - 8], edx
cmp edi, 0x26
ja 0x4032f1
je 0x4032d6
cmp edi, 0x21
jb 0x4033a5
cmp edi, 0x22
jbe 0x4032a0
cmp edi, 0x23
je 0x403264
cmp edi, 0x24
je 0x40323b
cmp edi, 0x25
jne 0x4033a5
and dword [0x41b550], 0xffffffef
dec esi
jmp 0x4032e1
mov eax, dword [0x41b550]
test ebx, ebx
je 0x403248
xor esi, esi
jmp 0x403254
test al, 0x10
je 0x403251
sub esi, 8
jmp 0x403254
and esi, 0xfffffff8
and eax, 0xffffffef
mov dword [0x41b550], eax
mov ebx, dword [ebp - 4]
jmp 0x40339b
test ebx, ebx
jne 0x40336c
mov eax, dword [0x41b550]
test al, 0x10
jne 0x4033a5
mov ecx, dword [0x41b558]
and esi, 0xfffffff8
mov ebx, dword [ebp - 4]
add esi, 8
cmp esi, ecx
jle 0x403293
mov esi, ecx
jmp 0x40339b
or eax, 0x10
mov dword [0x41b550], eax
jmp 0x40339b
imul eax, dword [0x41b57c], 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.00402c29
mov eax, dword [0x41b57c]
mov edx, dword [ebp - 8]
lea esi, [esi + eax*8]
cmp edi, 0x21
je 0x4032e4
jmp 0x403390
test ebx, ebx
jne 0x4033a5
sub esi, 8
mov ebx, dword [ebp - 4]
test esi, esi
js 0x4033a5
jmp 0x40339b
sub edi, 0x27
je 0x403380
sub edi, 1
je 0x40334a
sub edi, 5
je 0x40332b
sub edi, 1
jne 0x4033a5
test ebx, ebx
jne 0x4033a5
test edx, edx
je 0x40331e
push ecx
push 0x18
jmp 0x403336
mov ecx, dword [ebp - 4]
push 0x2e
pop edx
call fcn.004038c7
jmp 0x4033a5
test edx, edx
je 0x403341
test ebx, ebx
jne 0x4033a5
push ecx
push 0x16
mov ecx, dword [ebp - 4]
pop edx
call fcn.004033ae
jmp 0x4033a5
test ebx, ebx
je 0x4033a5
push ecx
push 3
jmp 0x403336
test ebx, ebx
jne 0x4033a5
add esi, 8
mov eax, esi
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, dword [0x41b578]
jle 0x40338a
test cl, 0x10
je 0x4033a5
mov edx, dword [ebp - 8]
mov esi, dword [0x41b558]
and ecx, 0xffffffef
mov dword [0x41b550], ecx
jmp 0x40325c
and dword [0x41b550], 0xffffffef
inc esi
jmp 0x40338d
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov eax, dword [0x41b558]
cmp esi, eax
jle 0x40339b
mov esi, eax
push edx
mov edx, esi
mov ecx, ebx
call fcn.0040370b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403a08
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov edx, dword [0x41b590]
push esi
push edi
mov edi, dword [0x41b594]
xor esi, esi
sub edi, edx
je 0x403a8c
mov eax, dword [0x41b554]
add eax, edx
push ecx
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x403a8c
push ebx
lea eax, [edi + 7]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x403a85
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 [0x41b5a0]
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
mov esp, ebp
pop ebp
ret
Function at 0x403a94
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x41b550]
push ebx
push esi
mov ebx, ecx
xor esi, esi
mov dword [ebp - 0x18], ebx
test al, 8
je 0x403abc
and eax, 0xfffffff7
inc dword [0x41b58c]
mov dword [0x41b550], eax
push ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x403c47
push dword [0x41b5a0]
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x403c41
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x403c38
mov eax, dword [eax]
mov esi, dword [0x41b55c]
push edi
mov edi, dword [0x41b558]
add eax, edi
cmp eax, esi
jle 0x403b5c
xor esi, esi
mov dword [ebp - 0x10], esi
cmp eax, edi
jb 0x403b40
push 2
mov esi, eax
push esi
push dword [0x41b554]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x403b3d
mov edi, dword [0x41b558]
mov dword [0x41b554], edx
mov dword [0x41b55c], esi
jmp 0x403b62
mov esi, dword [ebp - 0x10]
push 0
push 0x10
push 0x70
push 0x76
push ebx
push dword [0x41be1c]
call fcn.0040bbba
add esp, 0x18
jmp 0x403c37
mov edx, dword [0x41b554]
mov eax, dword [0x41b590]
cmp eax, dword [0x41b594]
je 0x403b8b
push 8
pop edx
mov ecx, ebx
call fcn.004038c7
mov esi, dword [0x41b55c]
mov edi, dword [0x41b558]
mov edx, dword [0x41b554]
mov ebx, dword [0x41b58c]
sub edi, ebx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], edi
lea ecx, [edx + ebx]
mov eax, dword [eax]
mov dword [ebp - 8], eax
add eax, ecx
mov dword [ebp - 0x10], ecx
add edi, eax
lea ecx, [edx + esi]
mov dword [ebp - 4], eax
cmp edi, ecx
mov edi, dword [0x41b558]
ja 0x403beb
mov eax, dword [ebp - 0x14]
cmp eax, esi
jge 0x403beb
test eax, eax
js 0x403beb
push eax
push dword [ebp - 0x10]
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_memmove]
mov ebx, dword [0x41b58c]
add esp, 0xc
mov esi, dword [0x41b55c]
mov edi, dword [0x41b558]
mov edx, dword [0x41b554]
lea eax, [edx + esi]
cmp dword [ebp - 4], eax
mov eax, dword [ebp - 8]
jae 0x403c10
cmp eax, esi
jae 0x403c10
push eax
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
push dword [ebp - 0x10]
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
mov ecx, dword [ebp - 0x18]
add ebx, eax
add edi, eax
mov dword [0x41b58c], ebx
mov dword [0x41b558], edi
mov dword [0x41b590], ebx
mov dword [0x41b594], ebx
call fcn.00402bbe
xor esi, esi
inc esi
pop edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404011
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x41b014]
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 [0x41b5a4], eax
test eax, eax
jne 0x4040f8
push 0x428
mov ebx, 0x41b5a8
push ebx
push 0x502
push esi
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
cmp word [0x41b5a8], 0
jne 0x40407a
mov dword [0x41b5a4], 1
jmp 0x4040f8
push 0
push 9
push 0x110a
push dword [0x41b080]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push ebx
mov ecx, eax
call fcn.00407dc7
lea edx, [ebp - 0x80c]
mov ecx, eax
call fcn.0040dd4f
test eax, eax
je 0x4040ec
test edi, edi
je 0x4040b7
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 [0x41be1c]
call fcn.0040bbba
xor eax, eax
add esp, 0x14
inc eax
jmp 0x4040fa
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.00419cc0
mov esp, ebp
pop ebp
ret

Function at 0x404974
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 [0x401600], bx
je 0x4049ab
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push 0x401600
push reloc.COMCTL32.dll_MenuHelp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
mov eax, dword [ebp - 4]
jmp 0x4049b3
mov eax, reloc.COMCTL32.dll_MenuHelp
mov dword [ebp - 4], eax
test esi, esi
jne 0x4049df
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 0x4049df
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404b3f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x41b014]
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 [0x401600], di
je 0x404b98
lea ecx, [ebp - 0x10c]
push ecx
xor ecx, ecx
inc ecx
push ecx
push edi
push 0x401600
push eax
mov dword [ebp - 0x110], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [ebp - 0x10c]
jmp 0x404ba0
mov esi, edi
mov dword [ebp - 0x110], edi
test esi, esi
jne 0x404c5c
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], 0x100
push ecx
lea ecx, [ebp - 0x104]
push ecx
push edi
push 2
push 0x401724
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov esi, eax
test esi, esi
je 0x404bde
cmp esi, 0xea
jne 0x404c43
push dword [ebp - 0x108]
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [ebx], eax
test eax, eax
je 0x404c40
test esi, esi
jne 0x404c0c
push dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x404c43
lea ecx, [ebp - 0x108]
push ecx
push eax
push edi
push 2
push 0x401724
push edi
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x404c31
mov esi, edi
jmp 0x404c43
push dword [ebx]
mov esi, 0x3eb
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x404c43
push 0xe
pop esi
cmp dword [ebp - 0x110], 0
je 0x404c58
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x404c6b
mov dword [ebx], edi
test esi, esi
jle 0x404c6b
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.00419cc0
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404e12
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push ebx
push esi
push edi
push eax
push 1
xor ebx, ebx
mov edi, ecx
push ebx
push 0x4018d8
push MenuHelp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 3
pop esi
test eax, eax
jne 0x404ec7
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
push 0x41b0f0
lea eax, [ebp - 8]
push eax
push ebx
push 0x40194c
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404e7b
lea eax, [ebp - 4]
mov edx, 0x41b0f0
push eax
lea ecx, [ebp - 8]
call fcn.0040bd9d
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x40
push eax
push edi
lea eax, [ebp - 8]
push eax
push ebx
push 0x4017ec
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404ebe
lea eax, [ebp - 4]
mov edx, edi
push eax
lea ecx, [ebp - 8]
call fcn.0040bd9d
test eax, eax
jne 0x404ebe
cmp dword [ebp - 8], esi
jne 0x404ebe
cmp dword [ebp - 4], 0x40
jne 0x404ebe
xor ebx, ebx
inc ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x404f3d
test byte [edi + 0x3c], 2
jne 0x404f19
call dword [sym.imp.USER32.dll_GetDpiForSystem]
mov esi, eax
push esi
push 0x60
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_MulDiv]
push esi
push 0x60
push dword [edi + 0x30]
mov dword [edi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push esi
push 0x60
push dword [edi + 0x34]
mov dword [edi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push esi
push 0x60
push dword [edi + 0x38]
mov dword [edi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
or dword [edi + 0x3c], 2
mov dword [edi + 0x38], eax
push 0x60
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetricsForDpi]
cmp dword [edi + 0x30], eax
jge 0x404f2b
mov dword [edi + 0x30], eax
cmp dword [edi + 0x38], eax
jge 0x404f33
mov dword [edi + 0x38], eax
cmp dword [edi + 0x2c], eax
jge 0x404f57
mov dword [edi + 0x2c], eax
jmp 0x404f57
push 0x78
pop eax
mov dword [edi + 0x3c], esi
mov dword [edi + 0x2c], 0xd8
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], 0x120
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4060e3
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x204c
call fcn.0041a3e0
mov eax, dword [0x41b014]
xor eax, esp
mov dword [esp + 0x2048], eax
push ebx
push esi
push edi
lea eax, [esp + 0xc]
mov esi, ecx
push eax
push 0x4018d8
push MenuHelp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
xor ebx, ebx
test eax, eax
jne 0x40623d
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x2c
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov esi, dword [0x41b084]
mov edi, 0x101d
mov eax, dword [0x41b090]
push ebx
push ebx
push edi
push esi
mov dword [esp + 0x4c], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, eax
call fcn.00404dee
push ebx
push 1
push edi
push esi
mov dword [esp + 0x50], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, eax
call fcn.00404dee
push ebx
push 2
push edi
push esi
mov dword [esp + 0x54], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, eax
call fcn.00404dee
mov dword [esp + 0x48], eax
xor eax, eax
cmp dword [0x41b0a0], eax
push 0x40
setne al
add eax, 2
mov dword [esp + 0x50], eax
lea eax, [esp + 0x14]
push eax
push 3
push ebx
push 0x4017ec
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
push 0x41b0f0
push 4
push ebx
push 0x40194c
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [0x41b080]
lea eax, [esp + 0x50]
push 3
push 0x1000
push eax
push ebx
push 9
push 0x110a
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, eax
mov ecx, esi
call fcn.0040af0b
lea ecx, [esp + 0x50]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x406205
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [esp + 0x54]
push eax
push 1
push ebx
push 0x4018c8
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 [0x41b080]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x41b098]
test eax, eax
je 0x406261
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x41b094]
test eax, eax
je 0x406271
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
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.00419cc0
mov esp, ebp
pop ebp
ret
Function at 0x40636d
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, 0x2000
mov dword [ebp - 8], ecx
push esi
call dword [sym.imp.msvcrt.dll_malloc]
push esi
mov edi, eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
pop ecx
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x401828
push MenuHelp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4064a3
push 3
push 0x1000
push edi
xor ebx, ebx
push ebx
push 9
push 0x110a
push dword [0x41b080]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [0x41b080]
mov edx, eax
call fcn.0040af0b
mov ebx, edi
test edi, edi
je 0x406433
push 0x5c
push ebx
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x406433
lea ebx, [eax + 1]
add ebx, 1
jne 0x4063e1
jmp 0x406433
xor ecx, ecx
cmp word [esi], cx
je 0x406433
push ecx
push ecx
lea eax, [ebp - 0xc]
push eax
push ecx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40645e
push 0x10
push 0xac
push 0xab
push dword [ebp - 8]
push dword [0x41be1c]
call fcn.0040bbba
add esp, 0x14
push ebx
mov edx, 0x1000
mov ecx, esi
call fcn.00404881
push esi
push 0x406290
push dword [ebp - 8]
push 0x70
push dword [0x41be1c]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 1
je 0x4063fa
jmp 0x40648a
mov ecx, edi
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x406465
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.msvcrt.dll_free]
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40664a
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2018
call fcn.0041a3e0
mov eax, dword [0x41b014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, 0x2000
push ebx
call dword [sym.imp.msvcrt.dll_malloc]
push ebx
mov edi, eax
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
xor ebx, ebx
xor eax, eax
pop ecx
pop ecx
cmp ax, word [0x45d808]
jne 0x4066dd
push 0x104
push 0x45d808
push 0x22
push dword [0x41be1c]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x4066b3
mov word [0x45d808], ax
jmp 0x406852
mov ecx, 0x45d808
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4066bb
sub ecx, edx
sar ecx, 1
mov dword [0x45da14], ecx
cmp word [0x45d808], bx
je 0x406852
lea eax, [ebp - 0x200c]
push eax
push 0x401828
push MenuHelp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x406852
lea eax, [ebp - 0x2008]
mov dword [ebp - 0x2014], 1
push eax
push esi
lea eax, [ebp - 0x2018]
push eax
push ebx
lea eax, [ebp - 0x2010]
push eax
push edi
push ebx
jmp 0x40681e
cmp dword [ebp - 0x2018], 1
jne 0x406846
cmp dword [ebp - 0x2008], 0
jbe 0x406846
push 0x5c
push esi
call dword [sym.imp.SHLWAPI.dll_StrChrIW]
push 0x45d808
push esi
mov ebx, eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
mov ecx, eax
test ecx, ecx
je 0x4067f4
cmp ecx, esi
jne 0x4067f4
test ebx, ebx
je 0x4067f4
mov eax, dword [0x45da14]
lea eax, [ecx + eax*2]
cmp eax, ebx
jne 0x4067f4
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x13
push dword [0x41be1c]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x1000
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchAddBackslash]
lea eax, [ebx + 2]
mov edx, 0x1000
push eax
lea ecx, [ebp - 0x2004]
call fcn.004048b6
lea ecx, [ebp - 0x2004]
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4067c6
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x2004]
push eax
push 1
push ebx
push edi
push dword [ebp - 0x200c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, dword [ebp - 0x2014]
lea ecx, [ebp - 0x2008]
push ecx
push esi
lea ecx, [ebp - 0x2018]
mov eax, ebx
push ecx
inc ebx
xor ecx, ecx
push ecx
lea ecx, [ebp - 0x2010]
mov dword [ebp - 0x2014], ebx
push ecx
push edi
push eax
push dword [ebp - 0x200c]
mov dword [ebp - 0x2010], 0x1000
mov dword [ebp - 0x2008], 0x2000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x406724
push dword [ebp - 0x200c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.msvcrt.dll_free]
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419cc0
mov esp, ebp
pop ebp
ret
Function at 0x406873
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, 0x2000
mov ebx, edx
push edi
call dword [sym.imp.msvcrt.dll_malloc]
push edi
mov esi, eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
pop ecx
mov edi, eax
call fcn.0040664a
lea eax, [ebp - 8]
push eax
push 0x401828
push MenuHelp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x406905
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 0x1000
push eax
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x2000
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebx - 0x502]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4068fc
xor edx, edx
inc edx
cmp dword [ebp - 0x10], edx
jne 0x4068fc
cmp dword [ebp - 4], eax
jbe 0x4068fc
mov ecx, esi
call fcn.00405209
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.msvcrt.dll_free]
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret