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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x434f48
mov eax, esi
call fcn.0044a6ac
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x434f48
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x434f48
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x435087
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x434f88
cmp eax, 0x108
ja 0x434f88
mov eax, esi
call fcn.0044a6ac
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x43507e
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x435087
jmp 0x43507e
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x435067
cmp eax, 0x20a
ja 0x435067
test byte [esi + 0x50], 0x80
jne 0x434fba
sub eax, 0x203
je 0x434fb7
sub eax, 3
je 0x434fb7
sub eax, 3
jne 0x434fba
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x434fce
dec eax
je 0x434fe3
dec eax
je 0x435000
dec eax
je 0x434fe3
jmp 0x435007
mov ecx, ebx
mov eax, dword [0x457090]
mov eax, dword [eax]
mov edx, esi
call fcn.00453e58
jmp 0x43507e
cmp byte [esi + 0x5d], 1
jne 0x434ff9
mov eax, esi
mov si, 0xffed
call fcn.004039e4
jmp 0x435087
or word [esi + 0x54], 1
jmp 0x43507e
and word [esi + 0x54], 0xfffe
jmp 0x43507e
mov eax, dword [0x458b3c]
cmp byte [eax + 0x20], 0
je 0x43507e
mov eax, dword [0x458b3c]
cmp dword [eax + 0x1c], 0
je 0x43507e
mov eax, dword [ebx]
mov edx, dword [0x458b3c]
cmp eax, dword [edx + 0x1c]
jne 0x43507e
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.0044a5f0
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.004039e4
jmp 0x435087
cmp eax, 0xb00b
jne 0x43507e
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0043381c
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4385f4
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x438610
cmp dword [esi + 4], 0
je 0x43863d
test byte [ebx + 0x55], 1
jne 0x43862f
mov eax, ebx
call fcn.00437194
test eax, eax
jne 0x43862f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x43874d
mov edx, esi
mov eax, ebx
call fcn.00438118
jmp 0x43874d
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x438746
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043a464
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00434e30
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004385f4
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043a464
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43874d
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43eddc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4571f8]
cmp byte [eax + 0xc], 0
je 0x43ef49
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43ef42
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x458b90], 0
jne 0x43ee30
push 0x43ef50
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43ef58
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b90], eax
cmp dword [0x456bc4], 0
jne 0x43ef2b
push 0x43ef68
call sub.kernel32.dll_LoadLibraryA
mov dword [0x456bc4], eax
cmp dword [0x456bc4], 0
je 0x43ef2b
push 0x43ef74
mov eax, dword [0x456bc4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b94], eax
push 0x43ef84
mov eax, dword [0x456bc4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b98], eax
push 0x43ef98
mov eax, dword [0x456bc4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b9c], eax
push 0x43efb0
mov eax, dword [0x456bc4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458ba0], eax
push 0x43efc8
mov eax, dword [0x456bc4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458ba4], eax
push 0x43efdc
mov eax, dword [0x456bc4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458ba8], eax
push 0x43eff4
mov eax, dword [0x456bc4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458bac], eax
push 0x43f00c
mov eax, dword [0x456bc4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458bb0], eax
push 0x43f028
mov eax, dword [0x456bc4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458bb4], eax
push 0x43f034
mov eax, dword [0x456bc4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458bb8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ef49
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x442dd4
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404538
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x442e23
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004047a8
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44a560
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44a5b0]
test si, 4
je 0x44a574
or bl, 1
test si, 8
je 0x44a57e
or bl, 4
test si, 1
je 0x44a588
or bl, 8
test si, 2
je 0x44a592
or bl, 0x10
test si, 0x10
je 0x44a59c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44a5ab
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44a5b4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44a5ec]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44a5cd
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44a5dc
or bl, 4
test esi, 0x20000000
je 0x44a5e7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x450c94
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x450ca6
add esp, 0xfffffff0
call fcn.00403b0c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419b3c
mov eax, dword [0x456ec8]
mov dword [eax + 4], ebx
mov dword [eax], 0x451038
mov eax, dword [0x456ed4]
mov dword [eax + 4], ebx
mov dword [eax], 0x451044
mov eax, ebx
call fcn.00451050
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411e34]
call fcn.004037b8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411e34]
call fcn.004037b8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411e34]
call fcn.004037b8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411e34]
call fcn.004037b8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411e34]
call fcn.004037b8
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, 0x44d46c
push eax
push 0
push 0
mov eax, dword [0x457014]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b598]
call fcn.0041cd0c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b598]
call fcn.0041cd0c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b598]
call fcn.0041cd0c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00451470
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45134c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45134c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45134c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x450de3
call fcn.00403b64
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x451130
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 0x4512db
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4512bc
mov dl, 1
mov eax, dword [0x412250]
call fcn.004037b8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404538
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4512ab
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.0043f13c
test al, al
je 0x45129e
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, 0x4512ec
lea eax, [ebp - 0x254]
call fcn.004091d4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45129e
xor eax, eax
push ebp
push 0x451297
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 0x451324
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x451280
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004047a8
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 0x451280
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004047a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45129e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4511a1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415d2c
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 0x4512e2
lea eax, [ebp - 0x260]
call fcn.00404538
ret

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

Disassembly:
push ecx
mov eax, dword [0x458bdc]
cmp byte [eax + 0xa5], 0
jne 0x451c81
cmp dword [0x458bf4], 0
jne 0x451c42
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x451bcc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x458bf4], eax
cmp dword [0x458bf0], 0
jne 0x451c5d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x458bf0], eax
cmp dword [0x458bf8], 0
jne 0x451c81
push esp
push 0
push 0
push 0x451b70
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x458bf8], eax
pop edx
ret
Function at 0x451d78
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x451d8f
add esp, 0xfffffff0
call fcn.00403b0c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419b3c
mov eax, dword [0x457000]
cmp word [eax + 2], 0
jne 0x451db7
mov eax, dword [0x457000]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00453450
mov eax, dword [0x4570ac]
cmp word [eax + 2], 0
jne 0x451dd1
mov eax, dword [0x4570ac]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00453648
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411e34]
call fcn.004037b8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411e34]
call fcn.004037b8
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], 0xff000018
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 [0x41c078]
call fcn.004233f0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x451f58
mov eax, dword [0x456f28]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004237c0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x453be8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x456f28]
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.0040c8a4
test eax, eax
je 0x451ec6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408bc8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c8cc
test eax, eax
je 0x451eda
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.004047a8
mov eax, dword [0x456e1c]
cmp byte [eax], 0
jne 0x451f0e
mov eax, ebx
call fcn.00452080
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.00453dc4
mov eax, ebx
call fcn.00454788
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x451f4e
call fcn.00403b64
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452300
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x458bdc]
cmp dword [eax + 0x30], 0
je 0x4523aa
cmp dword [ebx + 0x94], 0
jne 0x4523a4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x452290
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4523a4
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 0x45236a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4523a4
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.0041419c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x452379
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x452f0c
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 0x452f41
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.00404628
jmp 0x452f4e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040458c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x453fa0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x453fe1
mov eax, esi
call fcn.0043a768
test al, al
je 0x453fe1
mov eax, dword [ebx + 0x84]
call fcn.0043a464
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x453fe1
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043a464
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4033a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4033b9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4033f4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4033f0
lea ebx, [ebx]
cmp esi, eax
jae 0x4033f4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4033e0
cmp esi, eax
jb 0x4033fa
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4049b0
Capabilities:
Shutdown system

Disassembly:
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
je 0x404a16
lea ecx, [esp + 8]
push ecx
push 0x450c54
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp]
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x404a16
push eax
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret

Function at 0x404f50
Capabilities:
Delete service
Query service status

Disassembly:
sub esp, 0x24
push ebx
push edi
mov edi, ecx
push str.Stopping_Hardware_Server
lea ecx, [edi + 0x244]
mov dword [esp + 0x10], edi
call fcn.0041a281
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [esp + 8], ebx
test ebx, ebx
je 0x405014
push esi
push 0xf01ff
push 0x451058
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x40500c
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push ebp
lea eax, [esp + 0x18]
push eax
push esi
call edi
mov ebp, 1
cmp dword [esp + 0x1c], ebp
je 0x404ff9
lea ecx, [esp + 0x18]
push ecx
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
lea edx, [esp + 0x18]
push edx
push esi
call edi
cmp dword [esp + 0x1c], ebp
je 0x404ff9
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x404fe0
mov eax, dword [esp + 0x30]
push eax
call ebx
lea ecx, [esp + 0x18]
push ecx
push esi
call edi
cmp dword [esp + 0x1c], ebp
jne 0x404fe0
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [esp + 0x14]
pop ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov ecx, edi
call fcn.00404d80
pop edi
pop ebx
add esp, 0x24
ret
Function at 0x4065f0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x44d688
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4628d0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
call fcn.004108c4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406631
push 0x80004005
call fcn.004037e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0x20006
push 0
push 0
push 0
push 0x4510f0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x44], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x406715
mov edx, dword [esp + 0x28]
test edx, edx
je 0x406694
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406685
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.00403830
mov esi, dword [esp + 0xc]
mov eax, dword [esi - 0xc]
lea edx, [eax + 1]
mov dword [esp + 0x10], edx
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x4066d0
push edx
lea ecx, [esp + 0x10]
call fcn.00403760
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 0xb8]
lea ecx, [edx + edx]
mov edx, dword [esp + 0x14]
push ecx
push esi
push 1
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0042c4f9
add esp, 8
test eax, eax
jl 0x40674d
cmp eax, dword [esi - 8]
jg 0x40674d
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406739
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret 4
push 0x80070057
call fcn.004037e0
int3