joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4039eb
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x898c
call fcn.00420a50
push ebx
lea eax, [ebp - 0x898c]
push dword [ebp + 0xc]
push 0x7fff
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
test eax, eax
je 0x403bfb
lea ecx, [ebp - 8]
inc eax
push ecx
push eax
lea eax, [ebp - 0x898c]
push eax
call fcn.0040d77f
mov ebx, eax
add esp, 0xc
test ebx, ebx
mov dword [ebp - 4], ebx
je 0x403bfb
push 1
push 0xff000000
push dword [0x441fa4]
push dword [ebp + 0x10]
call fcn.00403bfe
add esp, 0x10
cmp eax, 0xffffffff
jne 0x403a5b
push 0x12
pop eax
push esi
push edi
push dword [ebp + 8]
push eax
push 1
push dword [ebp + 0x14]
push 0x4394a8
push 0x438008
call fcn.004038a6
mov esi, eax
add esp, 0x18
test esi, esi
mov dword [ebp + 0xc], esi
je 0x403bf0
mov eax, dword [esi + 0xa4]
mov dword [ebp + 8], eax
cmp dword [ebx], 0
je 0x403bf0
push 0x400
push 0x80
lea eax, [ebp - 0x98c]
push str.___d_____d__n_
push eax
call fcn.004223e0
lea eax, [ebp - 0x58c]
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x98c]
push eax
push dword [ebx]
call fcn.004209be
and byte [ebp - 9], 0
and byte [ebp - 0x18d], 0
add esp, 0x20
cmp eax, 2
je 0x403ae6
add ebx, 4
jmp 0x403a8e
lea eax, [ebp - 0x88]
push 0x60
push eax
call fcn.00421470
pop ecx
test eax, eax
pop ecx
jne 0x403b0f
lea eax, [ebp - 0x18c]
push 0x437ea8
push eax
call fcn.00420680
pop ecx
pop ecx
jmp 0x403b39
and byte [eax], 0
inc eax
push eax
push 0x4395b0
push 0x4320f0
lea eax, [ebp - 0x18c]
push 0x104
push eax
call fcn.004209f2
add esp, 0x14
and byte [ebp - 0x89], 0
push 1
push 0xff000000
push dword [0x441fa4]
lea eax, [ebp - 0x18c]
push eax
call fcn.00403bfe
add esp, 0x10
cmp eax, 0xffffffff
jne 0x403b96
push 7
lea eax, [ebp - 0x58c]
push str.http:__
push eax
call fcn.00420b60
add esp, 0xc
test eax, eax
jne 0x403b79
push 0x13
pop eax
jmp 0x403b96
push 7
lea eax, [ebp - 0x58c]
push str.mailto:
push eax
call fcn.00420b60
add esp, 0xc
neg eax
sbb eax, eax
add eax, 0x14
lea ecx, [ebp - 0x88]
add esi, 0xa8
push ecx
push eax
push 2
push 0
push esi
push dword [ebp + 8]
call fcn.004038a6
mov edi, eax
add esp, 0x18
test edi, edi
je 0x403bf0
mov esi, dword [edi + 0xac]
lea eax, [ebp - 0x58c]
push eax
lea eax, [esi + 8]
push eax
call fcn.00420680
mov eax, dword [edi + 8]
and dword [esi + 0x408], 0
pop ecx
mov dword [esi], eax
mov dword [esi + 4], 2
mov esi, dword [ebp + 0xc]
pop ecx
add ebx, 4
jmp 0x403a8e
push dword [ebp - 4]
call fcn.00421dfa
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403c5e
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
push ebp
push esi
test ebx, ebx
push edi
jne 0x403c7f
mov ecx, 0x439d88
call fcn.0041f7ad
mov ebx, eax
push str.custom.ini
push ebx
mov esi, 0x104
push 0x4320f0
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.004209f2
add esp, 0x14
lea eax, [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
and byte [esp + 0x113], 0
push eax
lea eax, [esp + 0x118]
push esi
push eax
push ebx
push str.CustomPath
push 0x432b8c
call edi
lea eax, [esp + 0x114]
push esi
push eax
push 0x4394ac
call fcn.004208c0
and byte [0x4395af], 0
lea eax, [esp + 0x120]
push eax
push ebx
push str._s_s_
push esi
push 0x4395b0
call fcn.004209f2
add esp, 0x20
lea eax, [esp + 0x10]
and byte [0x4396b3], 0
mov ebp, 0x437ea8
push eax
lea eax, [esp + 0x118]
push esi
push eax
push ebp
mov ebx, str.Logo
push str.LogoBmp
push ebx
call edi
lea eax, [esp + 0x114]
push eax
push 0x4394ac
push str._s_s
push esi
push 0x4396b4
call fcn.004209f2
and byte [0x4397b7], 0
lea eax, [esp + 0x128]
push eax
push 0x4395b0
push 0x4320f0
push esi
push 0x4397b8
call fcn.004209f2
add esp, 0x28
and byte [0x4398bb], 0
lea eax, [esp + 0x10]
push eax
push 0x30
push 0x4398bc
push ebp
push str.LogoText
push ebx
call edi
test eax, eax
jne 0x403d9d
push 0x30
push 0x4398bc
push 0x53
push dword [0x441fe4]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esp + 0x10]
push eax
push 1
push str.License
push 0x432b8c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
setne al
mov byte [0x432a98], al
lea eax, [esp + 0x10]
mov ebx, 0x100
push eax
push ebx
push 0x4399f0
push ebp
mov ebp, str.HomePage
push str.Text
push ebp
call edi
test eax, eax
jne 0x403df4
push ebx
push 0x4399f0
push 0x5b
push dword [0x441fe4]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esp + 0x10]
push eax
push ebx
push 0x439af0
push str.http:__www.3721.com_
push 0x432b30
push ebp
call edi
lea eax, [esp + 0x10]
push eax
push esi
push 0x4398ec
push 0x432b28
push str.Partner
push 0x432b8c
call edi
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
Function at 0x403e35
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x851c
call fcn.00420a50
push ebx
push esi
push edi
push str.custom.ini
mov ecx, 0x439d88
call fcn.0041f7ad
mov ebx, 0x4320f0
push eax
mov esi, 0x104
push ebx
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.004209f2
add esp, 0x14
and byte [ebp - 0xd], 0
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x851c]
push 0x7fff
push eax
push str.MenuExt
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
test eax, eax
je 0x403f62
lea ecx, [ebp - 0xc]
inc eax
push ecx
push eax
lea eax, [ebp - 0x851c]
push eax
call fcn.0040d77f
mov edi, eax
add esp, 0xc
test edi, edi
mov dword [ebp - 4], edi
je 0x403f62
cmp dword [edi], 0
je 0x403f59
push esi
push esi
lea eax, [ebp - 0x51c]
push str.___d_____d__n_
push eax
call fcn.004223e0
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x51c]
push eax
push dword [edi]
call fcn.004209be
mov dword [ebp - 8], eax
and byte [ebp - 0x215], 0
and byte [ebp - 0x319], 0
lea eax, [ebp - 0x41c]
push eax
push 0x4395b0
push ebx
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.004209f2
and byte [ebp - 0x111], 0
add esp, 0x34
cmp dword [ebp - 8], 2
jne 0x403f51
lea eax, [ebp - 0x214]
push 0x400
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.004039eb
add esp, 0x10
add edi, 4
jmp 0x403ebc
push dword [ebp - 4]
call fcn.00421dfa
pop ecx
pop edi
pop esi
mov al, 1
pop ebx
leave
ret
Function at 0x404803
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 4]
dec ecx
je 0x404833
dec ecx
je 0x404821
dec ecx
jne 0x404852
push dword [eax]
mov ecx, 0x437fe0
call fcn.0041c90d
jmp 0x404852
push 0
add eax, 8
push 0
push eax
call fcn.0040b906
add esp, 0xc
jmp 0x404852
push 0xa
push 0
add eax, 8
push 0x437ea8
push eax
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
ret

Function at 0x404c75
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push ebx
push esi
push edi
mov edi, 0x4320f0
push dword [ebp + 0xc]
mov esi, 0x104
lea eax, [ebp - 0x348]
push dword [ebp + 8]
push edi
push esi
push eax
call fcn.004209f2
and byte [ebp - 0x245], 0
add esp, 0x14
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404d18
mov eax, dword [ebp - 0x140]
and eax, 0x10
test al, al
jne 0x404cff
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x244]
push dword [ebp + 8]
push edi
push esi
push eax
call fcn.004209f2
and byte [ebp - 0x141], 0
lea eax, [ebp - 0x244]
push eax
call fcn.00404ba1
add esp, 0x18
lea eax, [ebp - 0x140]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x404cc4
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404f0b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push dword [ebp + 8]
call fcn.00420cc0
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.00421c57
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
je 0x404f99
push edi
push dword [ebp + 0xc]
call fcn.00421923
test esi, esi
pop ecx
jle 0x404f5e
mov eax, dword [ebp + 8]
mov edi, ebx
sub eax, ebx
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], eax
call fcn.00421930
mov ecx, dword [ebp + 0xc]
add al, 2
xor al, byte [ecx + edi]
xor al, 0x26
mov byte [edi], al
inc edi
dec dword [ebp + 8]
jne 0x404f47
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
push esi
push ebx
call fcn.00401a3a
push dword [ebp - 4]
call fcn.00421c57
mov edi, eax
add esp, 0x14
test edi, edi
je 0x404f8f
lea eax, [ebp - 4]
push eax
push edi
push esi
push ebx
call fcn.00401a3a
add esp, 0x10
push ebx
call fcn.00421dfa
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404f9d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push 0
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401b17
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.00421c57
mov esi, eax
add esp, 0x14
test esi, esi
je 0x405017
push dword [ebp + 0xc]
call fcn.00421923
lea eax, [ebp - 4]
push eax
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401b17
add esp, 0x14
test eax, eax
jle 0x40500e
push edi
xor edi, edi
cmp dword [ebp - 4], edi
jle 0x405004
call fcn.00421930
add al, 2
xor al, byte [edi + esi]
xor al, 0x26
mov byte [edi + esi], al
inc edi
cmp edi, dword [ebp - 4]
jl 0x404fef
mov eax, dword [ebp - 4]
pop edi
and byte [esi + eax], 0
jmp 0x405017
push esi
call fcn.00421dfa
pop ecx
xor esi, esi
mov eax, esi
pop esi
leave
ret

Function at 0x40514a
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push esi
push edi
call fcn.004050d1
push 4
mov dword [ebp - 0xc], eax
pop edi
lea eax, [ebp - 0xc]
push edi
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00420f70
lea eax, [ebp - 0x64]
push 8
push eax
call fcn.0040526f
add esp, 0x14
lea esi, [ebp + eax - 0x64]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x4051cc
lea eax, [ebp - 0x28]
push 0x10
push eax
push esi
call fcn.00420f70
lea eax, [ebp - 8]
add esi, 0x10
push eax
call fcn.004225f0
lea eax, [ebp - 8]
push edi
push eax
push esi
call fcn.00420f70
add esp, 0x1c
add esi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push edi
push eax
push esi
call fcn.00420f70
add esp, 0xc
jmp 0x40524a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push edi
push eax
push esi
call fcn.00420f70
lea eax, [ebp - 8]
add esi, edi
push eax
call fcn.004225f0
lea eax, [ebp - 8]
push edi
push eax
push esi
call fcn.00420f70
add esp, 0x1c
lea eax, [ebp - 0x18]
add esi, edi
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x18]
push edi
push eax
push esi
call fcn.00420f70
lea eax, [ebp - 0x14]
add esi, edi
push edi
push eax
push esi
call fcn.00420f70
add esp, 0x18
add esi, edi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push edi
push eax
push esi
call fcn.00420f70
add esi, edi
push edi
push 0
push esi
call fcn.00420b00
add esp, 0x18
add esi, edi
lea eax, [ebp - 0x68]
sub esi, eax
cmp esi, dword [ebp + 0xc]
jl 0x405259
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x68]
push esi
push eax
push dword [ebp + 8]
call fcn.00420f70
add esp, 0xc
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x40526f
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x42c950
call fcn.00421904
sub esp, 0x630
push esi
lea ecx, [ebp - 0x34]
call fcn.0041f830
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], esi
call fcn.00401ccb
test eax, eax
je 0x4052a6
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
jmp 0x4052ab
push str.SOFTWAREMicrosoftWindowsCurrentVersion
lea eax, [ebp - 0x138]
push eax
call fcn.00420680
pop ecx
lea eax, [ebp - 0x138]
pop ecx
push eax
push 0x80000002
lea ecx, [ebp - 0x34]
call fcn.0041f8a1
test eax, eax
jne 0x40539f
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x63c]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x10]
push esi
push ecx
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x1c], esi
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], 0x104
mov dword [ebp - 0x14], 0x400
push eax
call esi
test eax, eax
jne 0x40539f
lea eax, [ebp - 0x23c]
push eax
call fcn.004053d5
test al, al
pop ecx
je 0x405367
and dword [ebp - 0x10], 0
cmp dword [ebp - 0x14], 0
jbe 0x405367
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
movzx eax, byte [ebp + eax - 0x63c]
cdq
call fcn.004226d0
add dword [ebp - 0x24], eax
adc dword [ebp - 0x20], edx
add dword [ebp - 0x18], 8
cmp dword [ebp - 0x18], 0x40
jb 0x40535c
and dword [ebp - 0x18], 0
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jb 0x405334
lea eax, [ebp - 0x14]
inc dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
push 0
push eax
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x10], 0x104
push eax
mov dword [ebp - 0x14], 0x400
push dword [ebp - 0x1c]
push dword [ebp - 0x28]
jmp 0x40530f
mov esi, dword [ebp + 0xc]
cmp esi, 8
jbe 0x4053aa
push 8
pop esi
lea eax, [ebp - 0x24]
push esi
push eax
push dword [ebp + 8]
call fcn.00420f70
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0x34]
call fcn.0041f859
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x406f22
Capabilities:
Create directory

Disassembly:
push esi
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
test esi, esi
jne 0x406f47
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406f47
push 1
pop eax
pop esi
ret
mov eax, esi
pop esi
ret
Function at 0x40733e
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e518
push 0x422518
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x35c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
or edi, 0xffffffff
mov dword [ebp - 0x22c], edi
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.00420cc0
pop ecx
mov esi, eax
mov dword [ebp - 0x228], esi
cmp esi, 0x101
jg 0x407403
push dword [ebp + 8]
lea eax, [ebp - 0x224]
push eax
call fcn.00420680
pop ecx
pop ecx
cmp byte [ebp + esi - 0x225], 0x5c
je 0x4073bc
push 0x432a4c
lea eax, [ebp - 0x224]
push eax
call fcn.00420690
pop ecx
pop ecx
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.00420680
push 0x432f4c
lea eax, [ebp - 0x120]
push eax
call fcn.00420690
add esp, 0x10
lea eax, [ebp - 0x36c]
push eax
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x22c], esi
cmp esi, edi
jne 0x40740d
mov dword [ebp - 4], edi
xor eax, eax
jmp 0x4074de
push 0x432a88
lea eax, [ebp - 0x340]
push eax
call fcn.00420ba0
pop ecx
pop ecx
test eax, eax
je 0x407494
push 0x432a84
lea eax, [ebp - 0x340]
push eax
call fcn.00420ba0
pop ecx
pop ecx
test eax, eax
je 0x407494
cmp dword [ebp + 0xc], 0
je 0x407456
push dword [ebp + 0xc]
lea eax, [ebp - 0x368]
push eax
call fcn.004072d1
pop ecx
pop ecx
test al, al
je 0x407494
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.00420680
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.00420690
add esp, 0x10
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x407494
inc ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x36c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40740d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x22c], edi
jmp 0x4074d9
mov dword [ebp - 4], edi
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4074ed
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x40759a
push dword [ebp + 8]
call fcn.00420cc0
cmp eax, 2
pop ecx
jb 0x40759a
push 0x105
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00420b00
push 0x104
lea eax, [ebp - 0x108]
push dword [ebp + 8]
push eax
call fcn.004208c0
lea eax, [ebp - 0x108]
push eax
call fcn.00420cc0
add esp, 0x1c
cmp eax, 2
jne 0x40756b
cmp byte [ebp - 0x107], 0x3a
jne 0x40759a
lea eax, [ebp - 0x108]
push 0x432a4c
push eax
call fcn.00420690
pop ecx
pop ecx
jmp 0x40757f
cmp byte [ebp + eax - 0x109], 0x5c
lea eax, [ebp + eax - 0x109]
jne 0x40757f
and byte [eax], 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40759a
test al, 0x10
je 0x40759a
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x4075ee
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0x2b
push esi
jne 0x407748
mov eax, dword [ebp + 0x14]
cmp dword [eax], 5
jne 0x407748
mov ecx, dword [eax + 0x18]
mov esi, dword [eax + 0x14]
lea eax, [ebp - 0x48]
push 0x14
push eax
push esi
mov dword [ebp + 0x14], ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x48]
push eax
call fcn.00420caf
test eax, eax
pop ecx
mov dword [ebp - 4], eax
jl 0x407748
cmp eax, 0x64
jg 0x407748
push ebx
lea eax, [ebp - 0x24]
push edi
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [sym.imp.USER32.dll_CopyRect]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
call esi
mov edi, dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0
call edi
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x407686
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.USER32.dll_FrameRect]
push dword [ebp + 0xc]
call ebx
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_InflateRect]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x34]
push eax
call esi
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
sub eax, ecx
push 0x64
imul eax, dword [ebp - 4]
cdq
pop esi
idiv esi
mov esi, dword [sym.imp.USER32.dll_FillRect]
add eax, ecx
mov ecx, dword [ebp - 0x24]
inc ecx
mov dword [ebp - 0xc], eax
cmp eax, ecx
mov dword [ebp - 0x34], eax
jle 0x40771e
push 0
call dword [sym.imp.USER32.dll_GetDC]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x407701
push 0xc
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push dword [ebp + 0xc]
xor ecx, ecx
cmp eax, 0x10
setge cl
push 0
mov dword [ebp - 4], ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp - 4], 0
je 0x407701
push 0xffbaba
jmp 0x407706
push 0x800000
call edi
test eax, eax
mov dword [ebp + 0xc], eax
je 0x40771e
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x14]
call esi
push dword [ebp + 0xc]
call ebx
mov eax, dword [ebp - 0x1c]
dec eax
cmp dword [ebp - 0x34], eax
jg 0x407741
push 0xffffff
call edi
mov edi, eax
test edi, edi
je 0x407741
lea eax, [ebp - 0x34]
push edi
push eax
push dword [ebp + 0x14]
call esi
push edi
call ebx
push 1
pop eax
pop edi
pop ebx
jmp 0x40774a
xor eax, eax
pop esi
leave
ret

Function at 0x40774d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
push dword [ebp + 8]
call fcn.0040795a
test al, al
pop ecx
je 0x4077cc
lea eax, [ebp - 0x104]
push 0x104
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x4077cc
lea eax, [ebp - 0x104]
push eax
push 0x432f60
lea eax, [ebp - 0x504]
push 0x400
push eax
call fcn.004209f2
add esp, 0x10
xor eax, eax
mov byte [ebp - 0x105], al
push eax
push eax
lea eax, [ebp - 0x504]
push eax
push str.regedit
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
setg al
leave
ret
xor al, al
leave
ret
Function at 0x4077d0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x407954
cmp dword [ebp + 0xc], esi
je 0x407954
push ebx
lea eax, [ebp - 0x28]
push edi
push eax
push esi
push esi
lea eax, [ebp - 0x10]
push esi
push eax
lea eax, [ebp - 0x130]
push eax
push esi
push dword [ebp + 8]
mov ebx, 0x104
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4078b3
mov edi, 0x2001f
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 8]
push eax
push esi
push edi
push esi
push esi
lea eax, [ebp - 0x130]
push esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x130]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x407879
cmp dword [ebp - 0x20], esi
jne 0x407870
push dword [ebp - 8]
push dword [ebp - 0x1c]
call fcn.004077d0
pop ecx
pop ecx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x20], esi
jne 0x407887
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x28]
inc dword [ebp - 4]
push eax
push esi
push esi
lea eax, [ebp - 0x10]
push esi
push eax
lea eax, [ebp - 0x130]
mov dword [ebp - 0x10], ebx
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x407824
lea eax, [ebp - 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push eax
lea eax, [ebp - 0x18]
push esi
push eax
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x234]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], esi
call edi
test eax, eax
jne 0x40794e
push dword [ebp - 0xc]
call fcn.00421c57
pop ecx
mov dword [ebp - 8], eax
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x234]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407922
push dword [ebp - 0xc]
lea eax, [ebp - 0x234]
push dword [ebp - 8]
push dword [ebp - 0x18]
push esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call fcn.00421dfa
pop ecx
lea eax, [ebp - 0xc]
push eax
inc dword [ebp - 4]
lea eax, [ebp - 0x18]
push esi
push eax
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x234]
mov dword [ebp - 0x14], ebx
push eax
push dword [ebp - 4]
push dword [ebp + 8]
jmp 0x4078d8
pop edi
xor eax, eax
pop ebx
jmp 0x407957
push 6
pop eax
pop esi
leave
ret