joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477804
Capabilities:
Link many functions at runtime

Disassembly:
mov byte [0x487360], 0
mov eax, dword [0x487ae8]
cmp dword [eax], 2
jne 0x4779dd
mov eax, dword [0x4876ac]
cmp dword [eax], 5
jl 0x4779dd
call fcn.004749a0
test al, al
jne 0x477835
call fcn.004749ac
call fcn.00474998
mov dword [0x487368], eax
push 0x4779e0
mov eax, dword [0x487368]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48732c], eax
cmp dword [0x48732c], 0
jne 0x477890
mov edx, 0x8000
mov eax, 0x4779f4
call fcn.0040dfec
mov dword [0x487364], eax
mov eax, dword [0x487364]
mov dword [0x487368], eax
push 0x4779e0
mov eax, dword [0x487368]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48732c], eax
cmp dword [0x48732c], 0
je 0x4779d8
push 0x477a00
mov eax, dword [0x487368]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x487330], eax
cmp dword [0x487330], 0
je 0x4779d8
push 0x477a0c
mov eax, dword [0x487368]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x487334], eax
cmp dword [0x487334], 0
je 0x4779d8
mov byte [0x487360], 1
push 0x477a1c
mov eax, dword [0x487368]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x487338], eax
push 0x477a28
mov eax, dword [0x487368]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48733c], eax
push 0x477a34
mov eax, dword [0x487368]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x487340], eax
push 0x477a44
mov eax, dword [0x487368]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x487344], eax
push 0x477a54
mov eax, dword [0x487368]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x487348], eax
mov edx, 0x8000
mov eax, 0x477a6c
call fcn.0040dfec
mov dword [0x48736c], eax
cmp dword [0x48736c], 0
je 0x4779dd
push 0x477a7c
mov eax, dword [0x48736c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48734c], eax
push 0x477a98
mov eax, dword [0x48736c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x487350], eax
push 0x477ab8
mov eax, dword [0x48736c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x487354], eax
push 0x477ad4
mov eax, dword [0x48736c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x487358], eax
push 0x477aec
mov eax, dword [0x48736c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48735c], eax
ret
call fcn.00477784
ret
Function at 0x47a110
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x47a238
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00479ffc
mov eax, dword [esi]
call fcn.0040513c
add eax, 0x28
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x473544]
call fcn.004052f8
add esp, 4
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x1c]
mov ecx, 0x1c
call fcn.00402968
mov ebx, 0x1c
mov eax, dword [ebp - 8]
lea edx, [eax + ebx]
lea eax, [ebp - 0x2c]
mov ecx, 0x1c
call fcn.00402968
add ebx, 0x1c
mov eax, dword [esi]
call fcn.0040513c
mov dword [ebp - 0xc], eax
mov eax, dword [0x487a14]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea edx, [ebp - 8]
mov ecx, ebx
call fcn.004737d8
add ebx, 4
mov eax, dword [ebp - 8]
add eax, ebx
xor ecx, ecx
mov edx, 3
call fcn.00402d48
add ebx, 3
mov eax, dword [ebp - 8]
mov byte [eax + ebx], 0x3a
inc ebx
mov eax, dword [esi]
mov byte [eax + 2], 0
mov eax, dword [esi]
mov byte [eax + 3], 0
push ebx
mov eax, dword [esi]
call fcn.0040513c
push eax
lea ecx, [ebp - 8]
mov eax, dword [esi]
xor edx, edx
call fcn.00473708
mov edx, dword [ebp - 8]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x94]
mov ebx, eax
mov eax, ebx
call fcn.00473704
mov edx, esi
mov ecx, dword [ebp + 0x10]
call fcn.004737d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a23f
lea eax, [ebp - 8]
mov edx, dword [0x473544]
call fcn.00405304
ret
Function at 0x47e9b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404570
xor eax, eax
push ebp
push 0x47eadc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.004040c0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404580
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x47eab9
mov eax, ebx
call fcn.0040276c
mov esi, eax
push esi
push ebx
push 0
mov eax, dword [ebp - 4]
call fcn.00404580
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x47eaec
push esi
call sub.version.dll_VerQueryValueA
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
shr eax, 0x10
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x14]
call fcn.004085fc
push dword [ebp - 0x14]
push 0x47eaf8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x18]
call fcn.004085fc
push dword [ebp - 0x18]
push 0x47eaf8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
shr eax, 0x10
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1c]
call fcn.004085fc
push dword [ebp - 0x1c]
push 0x47eaf8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
and eax, 0xffff
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.004085fc
push dword [ebp - 0x20]
mov eax, edi
mov edx, 7
call fcn.00404440
mov eax, esi
call fcn.0040278c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47eae3
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.004040e4
lea eax, [ebp - 4]
call fcn.004040c0
ret

Function at 0x47ed00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
xor ecx, ecx
mov dword [ebp - 0x108], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x47ed9d
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 4]
push edx
push eax
mov eax, dword [0x4878d0]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.00408e8c
lea ecx, [ebp - 0x108]
mov eax, dword [ebx]
mov edx, 1
call fcn.0043036c
mov eax, dword [ebp - 0x108]
mov edx, 0x47edb4
call fcn.004044cc
je 0x47ed84
mov eax, ebx
mov edx, 0x47edb4
call fcn.00404388
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47eda4
lea eax, [ebp - 0x108]
call fcn.004040c0
ret
Function at 0x47edb8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
mov dword [esp + 4], 1
push esp
push 0xf003f
push 0
push 0x47ee3c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [esp + 8], pe_nt_image_headers32
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0xc]
push eax
push 0
push 0x47ee80
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x47ee1e
mov eax, ebx
lea edx, [esp + 0xc]
mov ecx, pe_nt_image_headers32
call fcn.00404330
jmp 0x47ee2a
mov eax, ebx
mov edx, 0x47ee8c
call fcn.00404114
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
add esp, 0x10c
pop ebx
ret

Function at 0x47f064
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x47f06d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404570
mov eax, dword [ebp - 8]
call fcn.00404570
xor eax, eax
push ebp
push 0x47f1ae
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov dl, 1
mov eax, dword [0x433b9c]
call fcn.00433c9c
mov dword [ebp - 0xc], eax
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.00433d3c
xor eax, eax
push ebp
push 0x47f16a
push dword fs:[eax]
mov dword fs:[eax], esp
mov cl, 1
mov edx, 0x47f1c8
mov eax, dword [ebp - 0xc]
call fcn.00433da0
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00408b70
mov eax, dword [ebp - 0x14]
call fcn.00404380
sub eax, 4
push eax
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00408b70
mov eax, dword [ebp - 0x18]
mov edx, 1
pop ecx
call fcn.004045e0
mov eax, dword [ebp - 0x10]
call fcn.0047eebc
test al, al
jne 0x47f160
lea edx, [ebp - 0x20]
mov eax, esi
call fcn.00408510
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
call fcn.004043cc
mov eax, dword [ebp - 0x1c]
push eax
push 0x47f200
push dword [ebp - 4]
push 0x47f20c
push dword [ebp - 8]
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00404440
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
pop edx
call fcn.00433f5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47f176
mov eax, dword [ebp - 0xc]
call fcn.00433d0c
mov eax, dword [ebp - 0xc]
call fcn.00403350
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f1b5
lea eax, [ebp - 0x24]
mov edx, 6
call fcn.004040e4
lea eax, [ebp - 8]
mov edx, 2
call fcn.004040e4
ret
Function at 0x47fad0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x40c], ecx
mov dword [ebp - 0x408], ecx
mov dword [ebp - 4], ecx
mov esi, eax
xor eax, eax
push ebp
push 0x47fc88
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x47fc98
push 0
push edx
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x47fc62
push 0
push 0x47fca0
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x47fc62
push 0
push 0x47fcb0
push 0
push eax
call sub.user32.dll_FindWindowExA
mov ebx, eax
push 0
push 0x47fcc4
push 0
push ebx
call sub.user32.dll_FindWindowExA
mov ebx, eax
test ebx, ebx
je 0x47fc62
call fcn.0047e94c
cdq
push edx
push eax
mov eax, ebx
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x47fb75
cmp eax, dword [esp]
pop edx
pop eax
je 0x47fc62
lea eax, [ebp - 0x404]
push eax
push 0x3ff
push 0xd
push ebx
call sub.user32.dll_SendMessageA
lea eax, [ebp - 4]
mov edx, dword [0x488d5c]
call fcn.00404158
lea eax, [ebp - 0x408]
lea edx, [ebp - 0x404]
mov ecx, 0x400
call fcn.00404330
mov eax, dword [ebp - 0x408]
call fcn.00408a18
test al, al
jne 0x47fc62
cmp dword [esi + 0x38c], 0
jle 0x47fbd9
dec dword [esi + 0x38c]
jmp 0x47fbfe
lea eax, [ebp - 0x40c]
lea edx, [ebp - 0x404]
mov ecx, 0x400
call fcn.00404330
mov eax, dword [ebp - 0x40c]
call fcn.0047d97c
test al, al
je 0x47fc62
lea eax, [ebp - 0x410]
lea edx, [ebp - 0x404]
mov ecx, 0x400
call fcn.00404330
mov edx, dword [ebp - 0x410]
mov eax, dword [ebp - 4]
call fcn.0040d218
test eax, eax
jne 0x47fc62
lea eax, [ebp - 0x414]
push eax
mov ecx, 0x46
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004045e0
mov eax, dword [ebp - 0x414]
push eax
push 0x3ff
push 0xc
push ebx
call sub.user32.dll_SendMessageA
push 0
push 0xd
push pe_nt_image_headers32
push ebx
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47fc8f
lea eax, [ebp - 0x414]
mov edx, 4
call fcn.004040e4
lea eax, [ebp - 4]
call fcn.004040c0
ret
Function at 0x47fccc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x40c], ecx
mov dword [ebp - 0x408], ecx
mov dword [ebp - 4], ecx
mov esi, eax
xor eax, eax
push ebp
push 0x47fe84
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x47fe94
push 0
push edx
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x47fe5e
push 0
push 0x47fe9c
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x47fe5e
push 0
push 0x47feac
push 0
push eax
call sub.user32.dll_FindWindowExA
mov ebx, eax
push 0
push 0x47fec0
push 0
push ebx
call sub.user32.dll_FindWindowExA
mov ebx, eax
test ebx, ebx
je 0x47fe5e
call fcn.0047e94c
cdq
push edx
push eax
mov eax, ebx
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x47fd71
cmp eax, dword [esp]
pop edx
pop eax
je 0x47fe5e
lea eax, [ebp - 0x404]
push eax
push 0x3ff
push 0xd
push ebx
call sub.user32.dll_SendMessageA
lea eax, [ebp - 4]
mov edx, dword [0x488d5c]
call fcn.00404158
lea eax, [ebp - 0x408]
lea edx, [ebp - 0x404]
mov ecx, 0x400
call fcn.00404330
mov eax, dword [ebp - 0x408]
call fcn.00408a18
test al, al
jne 0x47fe5e
cmp dword [esi + 0x38c], 0
jle 0x47fdd5
dec dword [esi + 0x38c]
jmp 0x47fdfa
lea eax, [ebp - 0x40c]
lea edx, [ebp - 0x404]
mov ecx, 0x400
call fcn.00404330
mov eax, dword [ebp - 0x40c]
call fcn.0047d97c
test al, al
je 0x47fe5e
lea eax, [ebp - 0x410]
lea edx, [ebp - 0x404]
mov ecx, 0x400
call fcn.00404330
mov edx, dword [ebp - 0x410]
mov eax, dword [ebp - 4]
call fcn.0040d218
test eax, eax
jne 0x47fe5e
lea eax, [ebp - 0x414]
push eax
mov ecx, 0x46
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004045e0
mov eax, dword [ebp - 0x414]
push eax
push 0x3ff
push 0xc
push ebx
call sub.user32.dll_SendMessageA
push 0
push 0xd
push pe_nt_image_headers32
push ebx
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47fe8b
lea eax, [ebp - 0x414]
mov edx, 4
call fcn.004040e4
lea eax, [ebp - 4]
call fcn.004040c0
ret
Function at 0x47fec8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x40c], ecx
mov dword [ebp - 0x408], ecx
mov dword [ebp - 4], ecx
mov esi, eax
xor eax, eax
push ebp
push 0x480091
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x4800a0
push 0
push edx
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x48006b
push 0
push 0x4800a8
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x48006b
push 0
push 0x4800b8
push 0
push eax
call sub.user32.dll_FindWindowExA
mov ebx, eax
push 0
push 0x4800c8
push 0
push ebx
call sub.user32.dll_FindWindowExA
mov ebx, eax
push 0
push 0x4800d4
push 0
push ebx
call sub.user32.dll_FindWindowExA
mov ebx, eax
test ebx, ebx
je 0x48006b
call fcn.0047e94c
cdq
push edx
push eax
mov eax, ebx
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x47ff7e
cmp eax, dword [esp]
pop edx
pop eax
je 0x48006b
lea eax, [ebp - 0x404]
push eax
push 0x3ff
push 0xd
push ebx
call sub.user32.dll_SendMessageA
lea eax, [ebp - 4]
mov edx, dword [0x488d5c]
call fcn.00404158
lea eax, [ebp - 0x408]
lea edx, [ebp - 0x404]
mov ecx, 0x400
call fcn.00404330
mov eax, dword [ebp - 0x408]
call fcn.00408a18
test al, al
jne 0x48006b
cmp dword [esi + 0x38c], 0
jle 0x47ffe2
dec dword [esi + 0x38c]
jmp 0x480007
lea eax, [ebp - 0x40c]
lea edx, [ebp - 0x404]
mov ecx, 0x400
call fcn.00404330
mov eax, dword [ebp - 0x40c]
call fcn.0047d97c
test al, al
je 0x48006b
lea eax, [ebp - 0x410]
lea edx, [ebp - 0x404]
mov ecx, 0x400
call fcn.00404330
mov edx, dword [ebp - 0x410]
mov eax, dword [ebp - 4]
call fcn.0040d218
test eax, eax
jne 0x48006b
lea eax, [ebp - 0x414]
push eax
mov ecx, 0x46
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004045e0
mov eax, dword [ebp - 0x414]
push eax
push 0x3ff
push 0xc
push ebx
call sub.user32.dll_SendMessageA
push 0
push 0xd
push pe_nt_image_headers32
push ebx
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480098
lea eax, [ebp - 0x414]
mov edx, 4
call fcn.004040e4
lea eax, [ebp - 4]
call fcn.004040c0
ret
Function at 0x48024c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x420], ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x48041c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x48042c
push 0
push edi
call sub.user32.dll_FindWindowExA
mov ebx, eax
test ebx, ebx
jne 0x4802f8
lea eax, [ebp - 0xc]
push eax
call sub.user32.dll_GetCursorPos
lea eax, [ebp - 0x41c]
push eax
push edi
call sub.user32.dll_GetWindowRect
mov eax, dword [ebp - 0x418]
add eax, 0x28
push eax
mov eax, dword [ebp - 0x41c]
add eax, 0x190
push eax
call sub.user32.dll_SetCursorPos
push 0
push 0
push 0
push 0
push 2
call sub.user32.dll_mouse_event
push 0
push 0
push 0
push 0
push 4
call sub.user32.dll_mouse_event
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_SetCursorPos
push 0
push 0x48042c
push 0
push edi
call sub.user32.dll_FindWindowExA
mov ebx, eax
test ebx, ebx
je 0x4803f6
lea eax, [ebp - 0x40c]
push eax
push 0x3ff
push 0xd
push ebx
call sub.user32.dll_SendMessageA
lea eax, [ebp - 4]
mov edx, dword [0x488d5c]
call fcn.00404158
lea eax, [ebp - 0x420]
lea edx, [ebp - 0x40c]
mov ecx, 0x400
call fcn.00404330
mov eax, dword [ebp - 0x420]
call fcn.00408a18
test al, al
jne 0x4803f6
cmp dword [esi + 0x38c], 0
jle 0x48036d
dec dword [esi + 0x38c]
jmp 0x480392
lea eax, [ebp - 0x424]
lea edx, [ebp - 0x40c]
mov ecx, 0x400
call fcn.00404330
mov eax, dword [ebp - 0x424]
call fcn.0047e16c
test al, al
je 0x4803f6
lea eax, [ebp - 0x428]
lea edx, [ebp - 0x40c]
mov ecx, 0x400
call fcn.00404330
mov edx, dword [ebp - 0x428]
mov eax, dword [ebp - 4]
call fcn.0040d218
test eax, eax
jne 0x4803f6
lea eax, [ebp - 0x42c]
push eax
mov ecx, 0x46
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004045e0
mov eax, dword [ebp - 0x42c]
push eax
push 0x3ff
push 0xc
push ebx
call sub.user32.dll_SendMessageA
push 0
push 0xd
push pe_nt_image_headers32
push ebx
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480423
lea eax, [ebp - 0x42c]
mov edx, 4
call fcn.004040e4
lea eax, [ebp - 4]
call fcn.004040c0
ret
Function at 0x480440
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x86
push 0
push 0
dec ecx
jne 0x480448
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x4806f5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x480704
push 0
push edx
call sub.user32.dll_FindWindowExA
mov ebx, eax
push 0
push 0x480714
push 0
push ebx
call sub.user32.dll_FindWindowExA
mov ebx, eax
push 0
push 0x480728
push 0
push ebx
call sub.user32.dll_FindWindowExA
mov ebx, eax
test ebx, ebx
je 0x4806ca
call fcn.0047e94c
cdq
push edx
push eax
mov eax, ebx
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4804b2
cmp eax, dword [esp]
pop edx
pop eax
je 0x4806ca
lea eax, [ebp - 0x410]
push eax
push 0x3ff
push 0xd
push ebx
call sub.user32.dll_SendMessageA
push 0x480748
lea edx, [ebp - 0x414]
mov eax, 0x1f3ba8
call fcn.00408510
push dword [ebp - 0x414]
push 0x48075c
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404440
lea eax, [ebp - 8]
mov edx, dword [0x488d5c]
call fcn.00404158
push 0x48076c
lea edx, [ebp - 0x418]
mov eax, 0x57e0b7c
call fcn.00408510
push dword [ebp - 0x418]
push 0x480790
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404440
lea eax, [ebp - 0x41c]
lea edx, [ebp - 0x410]
mov ecx, 0x400
call fcn.00404330
mov eax, dword [ebp - 0x41c]
call fcn.00408a18
test al, al
jne 0x4806ca
cmp dword [esi + 0x38c], 0
jle 0x480570
dec dword [esi + 0x38c]
jmp 0x480599
lea eax, [ebp - 0x420]
lea edx, [ebp - 0x410]
mov ecx, 0x400
call fcn.00404330
mov eax, dword [ebp - 0x420]
call fcn.0047e16c
test al, al
je 0x4806ca
lea eax, [ebp - 0x424]
lea edx, [ebp - 0x410]
mov ecx, 0x400
call fcn.00404330
mov edx, dword [ebp - 0x424]
mov eax, dword [ebp - 4]
call fcn.0040d218
test eax, eax
jg 0x4806ca
lea eax, [ebp - 0x428]
lea edx, [ebp - 0x410]
mov ecx, 0x400
call fcn.00404330
mov edx, dword [ebp - 0x428]
mov eax, dword [ebp - 8]
call fcn.0040d218
test eax, eax
jg 0x4806ca
lea eax, [ebp - 0x42c]
lea edx, [ebp - 0x410]
mov ecx, 0x400
call fcn.00404330
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
call fcn.0040d218
test eax, eax
jg 0x4806ca
mov dword [ebp - 0x10], 6
push 0x480798
push 0xff
push 0xc
push ebx
call sub.user32.dll_SendMessageA
mov eax, dword [ebp - 4]
call fcn.00404380
mov esi, eax
test esi, esi
jle 0x480663
mov edi, 1
push 2
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edi - 1]
push eax
push 0x102
push ebx
call sub.user32.dll_SendMessageA
inc edi
dec esi
jne 0x480649
lea eax, [ebp - 0x410]
push eax
push 0x3ff
push 0xd
push ebx
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x430]
lea edx, [ebp - 0x410]
mov ecx, 0x400
call fcn.00404330
mov eax, dword [ebp - 0x430]
mov edx, dword [ebp - 4]
call fcn.004044cc
je 0x4806a2
dec dword [ebp - 0x10]
jne 0x480624
push 0
push 0xd
push pe_nt_image_headers32
push ebx
call sub.user32.dll_SendMessageA
push 0xc8
call sub.kernel32.dll_Sleep_1
push 0
push 0xd
push pe_nt_image_headers32
push ebx
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4806fc
lea eax, [ebp - 0x430]
mov edx, 8
call fcn.004040e4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004040e4
ret
Function at 0x401032
Capabilities:
Shutdown system

Disassembly:
jmp 0x405bd0
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x405bee
add esp, 0x14
ret
push esi
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x405c49
mov ecx, dword [esp + 0x1c]
push 1
push eax
push eax
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
test eax, eax
jne 0x405c50
xor eax, eax
pop esi
add esp, 0x14
ret
mov eax, dword [esp + 4]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x2c], 0
call esi
mov eax, 1
pop esi
add esp, 0x14
ret

Function at 0x401046
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
jmp 0x402690
sub esp, 0x118
mov eax, dword [0x43b10c]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
mov ebx, dword [esp + 0x120]
push edi
mov edi, dword [esp + 0x128]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x4026ef
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402736
cmp eax, 2
jne 0x40270b
push str.Key_not_found._n
push 0x43cf88
call fcn.00401041
add esp, 8
pop edi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00407adf
add esp, 0x118
ret
push str.Error_opening_key._n
push 0x43cf88
call fcn.00401041
add esp, 8
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00407adf
add esp, 0x118
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, edi
cmp byte [esi - 1], 0x5c
je 0x402751
mov byte [esi], 0x5c
add esi, 1
mov byte [esi], 0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push ecx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4027cb
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x20]
push edx
push esi
call ebp
push edi
push ebx
call fcn.00401046
add esp, 8
test eax, eax
je 0x4027ca
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
push eax
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x402786
pop ebp
mov byte [esi - 1], 0
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [esp + 0x120]
pop esi
neg eax
pop edi
sbb eax, eax
pop ebx
xor ecx, esp
add eax, 1
call fcn.00407adf
add esp, 0x118
ret