joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448b45
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00448ac1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x448cbd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x448cbd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x448c6c
jg 0x448b9e
test eax, eax
je 0x448c62
push 1
push 0x1000
call fcn.0043b81c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x448bc4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x448c59
push 0x8000
push ebx
call fcn.004387d7
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x448bf0
jg 0x448beb
cmp ecx, 0x1000
jb 0x448bf0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0043da04
add esp, 0x10
cmp eax, 0xffffffff
je 0x448c35
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x448beb
jl 0x448c1c
test ecx, ecx
jne 0x448bdd
push dword [ebp - 0xc]
push ebx
call fcn.004387d7
push esi
call fcn.0043b879
add esp, 0xc
xor edi, edi
jmp 0x448cce
cmp byte [edi + 0x24], 0
je 0x448c4c
cmp dword [edi + 0x20], 5
jne 0x448c4c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x448c57
mov edi, dword [edi + 0x18]
jmp 0x448c59
xor edi, edi
push esi
call fcn.0043b879
pop ecx
jmp 0x448cce
test ecx, ecx
jg 0x448c2e
jl 0x448c6c
test eax, eax
jae 0x448c2e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043ef29
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x448c8f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x448c2e
jmp 0x448cc6
push ebx
call fcn.00442b53
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x448c2e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x448cce
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x448ccb
mov edi, dword [edi + 0x18]
jmp 0x448cce
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0043ef29
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44a170
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44a19d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44a19d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4b649c
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [ebp + 0x10]
jle 0x4b64d9
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x4b64b6
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x4b64f5
dec esi
je 0x4b64ee
dec esi
jne 0x4b64fa
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4038f2
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 [0x41e574]
xor edx, edx
mov ecx, dword [0x41e538]
test ax, ax
sets dl
mov dword [ebp - 8], edx
cmp edi, 0x26
ja 0x403a27
je 0x403a0c
cmp edi, 0x21
jb 0x403adb
cmp edi, 0x22
jbe 0x4039d6
cmp edi, 0x23
je 0x40399a
cmp edi, 0x24
je 0x403971
cmp edi, 0x25
jne 0x403adb
and dword [0x41e538], 0xffffffef
dec esi
jmp 0x403a17
mov eax, dword [0x41e538]
test ebx, ebx
je 0x40397e
xor esi, esi
jmp 0x40398a
test al, 0x10
je 0x403987
sub esi, 8
jmp 0x40398a
and esi, 0xfffffff8
and eax, 0xffffffef
mov dword [0x41e538], eax
mov ebx, dword [ebp - 4]
jmp 0x403ad1
test ebx, ebx
jne 0x403aa2
mov eax, dword [0x41e538]
test al, 0x10
jne 0x403adb
mov ecx, dword [0x41e540]
and esi, 0xfffffff8
mov ebx, dword [ebp - 4]
add esi, 8
cmp esi, ecx
jle 0x4039c9
mov esi, ecx
jmp 0x403ad1
or eax, 0x10
mov dword [0x41e538], eax
jmp 0x403ad1
imul eax, dword [0x41e564], 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.004032f2
mov eax, dword [0x41e564]
mov edx, dword [ebp - 8]
lea esi, [esi + eax*8]
cmp edi, 0x21
je 0x403a1a
jmp 0x403ac6
test ebx, ebx
jne 0x403adb
sub esi, 8
mov ebx, dword [ebp - 4]
test esi, esi
js 0x403adb
jmp 0x403ad1
sub edi, 0x27
je 0x403ab6
sub edi, 1
je 0x403a80
sub edi, 5
je 0x403a61
sub edi, 1
jne 0x403adb
test ebx, ebx
jne 0x403adb
test edx, edx
je 0x403a54
push ecx
push 0x18
jmp 0x403a6c
mov ecx, dword [ebp - 4]
push 0x2e
pop edx
call fcn.00403fee
jmp 0x403adb
test edx, edx
je 0x403a77
test ebx, ebx
jne 0x403adb
push ecx
push 0x16
mov ecx, dword [ebp - 4]
pop edx
call fcn.00403ae2
jmp 0x403adb
test ebx, ebx
je 0x403adb
push ecx
push 3
jmp 0x403a6c
test ebx, ebx
jne 0x403adb
add esi, 8
mov eax, esi
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, dword [0x41e560]
jle 0x403ac0
test cl, 0x10
je 0x403adb
mov edx, dword [ebp - 8]
mov esi, dword [0x41e540]
and ecx, 0xffffffef
mov dword [0x41e538], ecx
jmp 0x403992
and dword [0x41e538], 0xffffffef
inc esi
jmp 0x403ac3
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov eax, dword [0x41e540]
cmp esi, eax
jle 0x403ad1
mov esi, eax
push edx
mov edx, esi
mov ecx, ebx
call fcn.00403e32
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x404126
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov edx, dword [0x41e578]
push esi
push edi
mov edi, dword [0x41e57c]
xor esi, esi
sub edi, edx
je 0x4041aa
mov eax, dword [0x41e53c]
add eax, edx
push ecx
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4041aa
push ebx
lea eax, [edi + 7]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4041a3
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 [0x41e588]
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 0x4041b0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x41e538]
push ebx
push edi
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x1c], ebx
test al, 8
je 0x4041d8
and eax, 0xfffffff7
inc dword [0x41e574]
mov dword [0x41e538], eax
push ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x404349
push dword [0x41e588]
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x404343
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40433a
mov eax, dword [eax]
mov edi, dword [0x41e544]
push esi
mov esi, dword [0x41e540]
add eax, esi
cmp eax, edi
jle 0x404278
xor edi, edi
mov dword [ebp - 0x14], edi
cmp eax, esi
jb 0x40425c
push 2
mov edi, eax
push edi
push dword [0x41e53c]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ecx, eax
test ecx, ecx
je 0x404259
mov esi, dword [0x41e540]
mov dword [0x41e53c], ecx
mov dword [0x41e544], edi
jmp 0x40427e
mov edi, dword [ebp - 0x14]
push 0
push 0x10
push 0x70
push 0x76
push ebx
push dword [0x41edf4]
call fcn.0040eb70
add esp, 0x18
jmp 0x404339
mov ecx, dword [0x41e53c]
mov eax, dword [0x41e578]
cmp eax, dword [0x41e57c]
je 0x4042a7
push 8
pop edx
mov ecx, ebx
call fcn.00403fee
mov edi, dword [0x41e544]
mov esi, dword [0x41e540]
mov ecx, dword [0x41e53c]
mov ebx, dword [0x41e574]
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 0x4042f4
mov eax, dword [ebp - 0x18]
cmp eax, edi
jge 0x4042f4
test eax, eax
js 0x4042f4
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 0x404310
cmp edx, edi
jae 0x404310
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 [0x41e540], esi
mov dword [0x41e574], ebx
mov dword [0x41e578], ebx
mov dword [0x41e57c], ebx
call fcn.00403289
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 0x404716
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 [0x41e58c], eax
test eax, eax
jne 0x404807
push 0x428
mov ebx, 0x41e590
push ebx
push 0x502
push esi
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
cmp word [0x41e590], 0
jne 0x404782
mov dword [0x41e58c], 1
jmp 0x404807
mov eax, dword [0x45ef88]
push 0
push 9
push 0x110a
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [0x45ef88]
push 0
push ebx
push eax
call fcn.0040a335
lea edx, [ebp - 0x80c]
mov ecx, eax
call fcn.00410cb7
test eax, eax
je 0x4047fb
test edi, edi
je 0x4047c6
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 [0x41edf4]
call fcn.0040eb70
xor eax, eax
add esp, 0x14
inc eax
jmp 0x404809
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.0041cc10
leave
ret
Function at 0x405b83
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.00404fa9
push 0x4018a4
mov edx, esi
lea ecx, [esp + 0x1c]
call fcn.00404fde
lea eax, [esp + 0x18]
push eax
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x405c05
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x405c3f
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xc9
call fcn.004058de
mov edi, eax
jmp 0x405c3f
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov ecx, esi
call fcn.00405a6a
mov ebx, eax
test ebx, ebx
jns 0x405c31
mov ecx, dword [ebp + 4]
mov edx, 0xcf
push ebx
push 0x401848
call fcn.004058a9
mov edi, ebx
jmp 0x405c3f
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
test esi, esi
je 0x405c49
push esi
call fcn.0040595c
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041cc10
mov esp, ebp
pop ebp
ret 8

Function at 0x4060ff
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 [0x4018b8], bx
je 0x406136
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push 0x4018b8
push reloc.COMCTL32.dll_MenuHelp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
mov eax, dword [ebp - 4]
jmp 0x40613e
mov eax, reloc.COMCTL32.dll_MenuHelp
mov dword [ebp - 4], eax
test esi, esi
jne 0x40616a
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 0x40616a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4062c4
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 [0x4018b8], di
je 0x40631d
lea ecx, [ebp - 0x10c]
push ecx
xor ecx, ecx
inc ecx
push ecx
push edi
push 0x4018b8
push eax
mov dword [ebp - 0x110], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [ebp - 0x10c]
jmp 0x406325
mov esi, edi
mov dword [ebp - 0x110], edi
test esi, esi
jne 0x4063e1
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], 0x100
push ecx
lea ecx, [ebp - 0x104]
push ecx
push edi
push 2
push 0x401b64
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov esi, eax
test esi, esi
je 0x406363
cmp esi, 0xea
jne 0x4063c8
push dword [ebp - 0x108]
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [ebx], eax
test eax, eax
je 0x4063c5
test esi, esi
jne 0x406391
push dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x4063c8
lea ecx, [ebp - 0x108]
push ecx
push eax
push edi
push 2
push 0x401b64
push edi
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x4063b6
mov esi, edi
jmp 0x4063c8
push dword [ebx]
mov esi, 0x3eb
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x4063c8
push 0xe
pop esi
cmp dword [ebp - 0x110], 0
je 0x4063dd
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4063f0
mov dword [ebx], edi
test esi, esi
jle 0x4063f0
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.0041cc10
leave
ret 0x10

Function at 0x406501
Capabilities:
Inspect load icon resource

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x41edf4]
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], 0x4064f0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x64
push dword [0x41edf4]
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 [0x41edf4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0x67
mov dword [ebp - 8], 0x401884
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 0x40666e
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 esi, ecx
push ebx
push 0x401920
push MenuHelp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [ebp + 8]
test eax, eax
jne 0x406718
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
add esi, 0x4c
lea eax, [ebp - 8]
push esi
push eax
push ebx
push 0x401a2c
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4066ce
lea eax, [ebp - 4]
push eax
push esi
lea ecx, [ebp - 8]
call fcn.0040ed4f
push 0x40
pop esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push edi
lea eax, [ebp - 8]
push eax
push ebx
push 0x401a20
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40670f
lea eax, [ebp - 4]
push eax
push edi
lea ecx, [ebp - 8]
call fcn.0040ed4f
test eax, eax
jne 0x40670f
cmp dword [ebp - 8], 3
jne 0x40670f
cmp dword [ebp - 4], esi
jne 0x40670f
xor ebx, ebx
inc ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x40678e
test byte [edi + 0x3c], 2
jne 0x40676a
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]
mov dword [edi + 0x38], eax
or dword [edi + 0x3c], 2
push 0x60
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetricsForDpi]
cmp dword [edi + 0x30], eax
jge 0x40677c
mov dword [edi + 0x30], eax
cmp dword [edi + 0x38], eax
jge 0x406784
mov dword [edi + 0x38], eax
cmp dword [edi + 0x2c], eax
jge 0x4067ac
mov dword [edi + 0x2c], eax
jmp 0x4067ac
push 0x78
pop eax
mov dword [edi + 0x3c], 3
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
leave
ret 4
Function at 0x4075d4
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 3
mov edi, 0x104
lea eax, [ebp - 0x418]
push edi
push eax
xor ebx, ebx
mov esi, ecx
push ebx
push 9
push 0x110a
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x60]
mov edx, eax
call fcn.0040de58
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 0x40763d
sub ecx, edx
sar ecx, 1
lea ebx, [ecx - 1]
test ebx, ebx
je 0x40768f
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 0x407675
cmp word [ebp + edi - 0x210], 0x5c
jne 0x40768f
cmp edi, 0x208
jae 0x4076e2
xor eax, eax
mov word [ebp + edi - 0x210], ax
sub edi, 2
sub ebx, 1
jne 0x407656
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.00406ebb
test eax, eax
je 0x4076bb
mov eax, dword [esi + 0x60]
mov dword [esi + 8], eax
jmp 0x4076c3
push 0x30
call dword [sym.imp.USER32.dll_MessageBeep]
mov ecx, esi
call fcn.0040dd3e
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.0041cc10
leave
ret
call fcn.0041cd58
int3
Function at 0x4084c7
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x204c
call fcn.0041d440
mov eax, dword [0x41e024]
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 0x401920
xor ebx, ebx
mov esi, ecx
push MenuHelp
mov dword [esp + 0x58], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40863a
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 0x401a20
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [esi + 0x4c]
push eax
push 4
push ebx
push 0x401a2c
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 3
push 0x1000
lea eax, [esp + 0x58]
push eax
push ebx
push 9
push 0x110a
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x60]
mov edx, eax
call fcn.0040de58
lea ecx, [esp + 0x50]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x408602
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [esp + 0x54]
push eax
push 1
push ebx
push 0x401a40
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.0041cc10
mov esp, ebp
pop ebp
ret 4