joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454b1c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x454b54]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x454b35
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x454b44
or bl, 4
test esi, 0x20000000
je 0x454b4f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45b158
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45b16a
add esp, 0xfffffff0
call fcn.00403b84
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042095c
mov eax, dword [0x488e6c]
mov dword [eax + 4], ebx
mov dword [eax], 0x45b4fc
mov eax, dword [0x488e7c]
mov dword [eax + 4], ebx
mov dword [eax], 0x45b508
mov eax, ebx
call fcn.0045b514
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x415d38]
call fcn.004037f0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x415d38]
call fcn.004037f0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x415d38]
call fcn.004037f0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x415d38]
call fcn.004037f0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x415d38]
call fcn.004037f0
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x4579dc
push eax
push 0
push 0
mov eax, dword [0x4890d8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4223ac]
call fcn.00423a80
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4223ac]
call fcn.00423a80
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4223ac]
call fcn.00423a80
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045b934
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45b810
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45b810
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45b810
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45b2a7
call fcn.00403bdc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45b5f4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45b79f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45b780
mov dl, 1
mov eax, dword [0x41639c]
call fcn.004037f0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404610
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45b76f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004491fc
test al, al
je 0x45b762
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45b7b0
lea eax, [ebp - 0x254]
call fcn.00409a84
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45b762
xor eax, eax
push ebp
push 0x45b75b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45b7e8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45b744
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404878
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45b744
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404878
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b762
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45b665
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041aac0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b7a6
lea eax, [ebp - 0x260]
call fcn.00404610
ret

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

Disassembly:
push ecx
mov eax, dword [0x48ac38]
cmp byte [eax + 0xa5], 0
jne 0x45c145
cmp dword [0x48ac50], 0
jne 0x45c106
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45c090
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x48ac50], eax
cmp dword [0x48ac4c], 0
jne 0x45c121
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x48ac4c], eax
cmp dword [0x48ac54], 0
jne 0x45c145
push esp
push 0
push 0
push 0x45c034
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x48ac54], eax
pop edx
ret
Function at 0x45c23c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45c253
add esp, 0xfffffff0
call fcn.00403b84
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042095c
mov eax, dword [0x4890ac]
cmp word [eax + 2], 0
jne 0x45c27b
mov eax, dword [0x4890ac]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045d918
mov eax, dword [0x4891dc]
cmp word [eax + 2], 0
jne 0x45c295
mov eax, dword [0x4891dc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045db10
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x415d38]
call fcn.004037f0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x415d38]
call fcn.004037f0
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x422e2c]
call fcn.0042a1a8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45c41c
mov eax, dword [0x488f10]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042a578
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45e080
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x488f10]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d68c
test eax, eax
je 0x45c38a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004093e0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d6b4
test eax, eax
je 0x45c39e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404878
mov eax, dword [0x488d38]
cmp byte [eax], 0
jne 0x45c3d2
mov eax, ebx
call fcn.0045c544
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045e25c
mov eax, ebx
call fcn.0045eb9c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45c412
call fcn.00403bdc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45c7b8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x48ac38]
cmp dword [eax + 0x30], 0
je 0x45c862
cmp dword [ebx + 0x94], 0
jne 0x45c85c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45c748
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45c85c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45c822
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45c85c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004185a8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45c831
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45d340
Capabilities:
Get graphical window text

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

Function at 0x45e438
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45e479
mov eax, esi
call fcn.00444934
test al, al
je 0x45e479
mov eax, dword [ebx + 0x84]
call fcn.00444630
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45e479
push 0
mov eax, dword [ebx + 0x84]
call fcn.00444630
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45f248
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45f3b1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.004046a8
mov eax, dword [ebp - 0x10]
call fcn.0045efe0
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x45f29a
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00404b60
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0045f638
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x45f36f
xor eax, eax
push ebp
push 0x45f368
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0045f120
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0045f3e0
test al, al
je 0x45f346
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00404700
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x45f346
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404ac0
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x45f340
mov eax, dword [ebp - 0x14]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404800
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0045f248
dec ebx
cmp ebx, 0xffffffff
jne 0x45f2f9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f36f
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0045f120
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00404ac0
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.0045f10c
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f3b8
lea eax, [ebp - 0x3c]
call fcn.00404610
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404634
ret
Function at 0x45f36f
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45f3b1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.004046a8
mov eax, dword [ebp - 0x10]
call fcn.0045efe0
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x45f29a
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00404b60
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0045f638
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x45f36f
xor eax, eax
push ebp
push 0x45f368
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0045f120
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0045f3e0
test al, al
je 0x45f346
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00404700
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x45f346
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404ac0
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x45f340
mov eax, dword [ebp - 0x14]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404800
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0045f248
dec ebx
cmp ebx, 0xffffffff
jne 0x45f2f9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f36f
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0045f120
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00404ac0
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.0045f10c
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f3b8
lea eax, [ebp - 0x3c]
call fcn.00404610
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404634
ret

Function at 0x45f3e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00403090
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x489448]
cmp byte [edx + 0xc], 0
je 0x45f444
mov edx, dword [0x489438]
cmp dword [edx], 2
jne 0x45f444
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x45f448
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x45f500
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.0045f3e0
test al, al
je 0x45f4e2
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00404700
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x45f4e2
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404ac0
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 0xc]
call fcn.00404ac0
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00404800
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x45f49b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f507
lea eax, [ebp - 0x2c]
call fcn.00404610
lea eax, [ebp - 0xc]
call fcn.00404610
ret

Function at 0x45f5c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404ac0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x45f61c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x489454]
mov dl, 1
mov eax, dword [0x45eeec]
call fcn.0040caa4
call fcn.00403fec
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0045eff4
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4821a4
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ab0
xor eax, eax
push ebp
push 0x48222d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov edi, eax
test edi, edi
je 0x482217
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.00404ac0
push eax
push edi
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
je 0x48220b
lea eax, [ebp - 0x20]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x48220b
cmp dword [ebp - 0x1c], 4
sete bl
push esi
call sub.advapi32.dll_CloseServiceHandle
push edi
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482234
lea eax, [ebp - 4]
call fcn.00404610
ret
Function at 0x4845b8
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor edx, edx
mov dword [ebp - 8], edx
xor edx, edx
push ebp
push 0x484644
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [eax + 0x38a], 0
je 0x4845e9
lea eax, [ebp - 8]
mov edx, 0x484658
call fcn.004046a8
jmp 0x4845f6
lea eax, [ebp - 8]
mov edx, 0x4846a0
call fcn.004046a8
mov eax, 0xf003f
lea edx, [ebp - 4]
push edx
push eax
push 0
push 0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x484625
mov eax, dword [ebp - 8]
call fcn.00404ac0
push eax
push 0x80000002
call sub.advapi32.dll_RegDeleteKeyA
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48464b
lea eax, [ebp - 8]
call fcn.00404610
ret
Function at 0x401f80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x43ae58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [esp + 0x28], 0
call fcn.0041c6bb
test eax, eax
je 0x401fb4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
test eax, eax
jne 0x401fd8
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.00420c30
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
push esi
push 0
push 1
lea ecx, [eax + 0xbc]
call fcn.004284ae
mov esi, eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.00404d07
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov eax, dword [eax + 8]
push 0x44c1a4
lea ecx, [esp + 8]
mov dword [esp + 0x18], eax
call fcn.00420c9e
push 0x400
lea ecx, [esp + 0xc]
push 0
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 1
call fcn.00404e17
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x30], 2
call fcn.00420fd4
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 1
call fcn.00420c30
lea edx, [esp + 4]
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
call fcn.00420e5f
mov eax, dword [eax]
mov edx, dword [esi + 0x98]
push eax
push 0
push 0x180
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 8]
call fcn.00420c30
mov ecx, esi
call fcn.00403c10
lea ecx, [esp + 4]
mov byte [esp + 0x2c], 0
call fcn.00420c30
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00420c30
mov ecx, dword [esp + 0x24]
mov al, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x4113d5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x44ddd0
cmp edx, dword [eax]
je 0x4113f7
add eax, 8
inc ecx
cmp eax, 0x44de60
jl 0x4113e8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x44ddd0]
jne 0x411525
mov eax, dword [0x450c88]
cmp eax, 1
je 0x4114ff
test eax, eax
jne 0x411428
cmp dword [0x44d8c8], 1
je 0x4114ff
cmp edx, 0xfc
je 0x411525
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41145f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00411530
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00410a40
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4114a2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00410a40
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x443160
push edi
call fcn.00414360
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00411530
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00411540
lea eax, [ebp - 0xa0]
push 0x443140
push eax
call fcn.00411540
push dword [esi + 0x44ddd4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00411540
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004142cb
add esp, 0x2c
pop edi
jmp 0x411525
lea eax, [ebp + 8]
lea esi, [esi + 0x44ddd4]
push 0
push eax
push dword [esi]
call fcn.00410a40
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x419180
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040c7d0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41924b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41924b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4191fe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x419209
or bh, 8
and edi, 0x8000000
je 0x419224
mov eax, dword [0x45241c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41924b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret