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

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.004075ec
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.0043edac
test ebx, ebx
jne 0x44474b
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0044458c
mov ebx, eax
test ebx, ebx
je 0x444836
cmp esi, ebx
je 0x444774
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x444789
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x4447c1
add eax, 0xffffff5f
sub eax, 2
jb 0x4447d9
dec eax
sub eax, 2
jb 0x4447ed
dec eax
sub eax, 2
jb 0x4447e3
jmp 0x4447f7
add eax, 0xfffffdff
sub eax, 2
jb 0x4447d9
dec eax
sub eax, 2
jb 0x4447ed
dec eax
sub eax, 2
jb 0x4447e3
jmp 0x4447f7
mov byte [esp + 0x120], 0
jmp 0x4447ff
mov byte [esp + 0x120], 2
jmp 0x4447ff
mov byte [esp + 0x120], 1
jmp 0x4447ff
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.00454a34
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.00440554
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x444838
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x45453c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
mov edi, eax
test bl, bl
je 0x45455d
test edi, 0x40000
je 0x454577
test bl, bl
jne 0x4545f8
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x4545f8
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x4545aa
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x4545bf
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x4545ce
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x4545df
cmp byte [esp + 2], 0
je 0x4545f8
cmp byte [esp + 2], 0
je 0x4545f0
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x4545f8
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4548a0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x4548c6
mov eax, esp
push eax
push 0x454868
call sub.user32.dll_EnumWindows
jmp 0x4548d9
mov eax, esp
push eax
push 0x454848
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x45499c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4549f0]
test si, 4
je 0x4549b1
or bl, 1
test si, 8
je 0x4549bb
or bl, 4
test si, 1
je 0x4549c5
or bl, 8
test si, 2
je 0x4549cf
or bl, 0x10
test si, 0x10
je 0x4549d9
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4549e8
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4549f4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x454a30]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x454a0e
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x454a1d
or bl, 4
test esi, 0x20000000
je 0x454a28
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x45cd68
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45cd7a
add esp, 0xfffffff0
call fcn.00403f50
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041fd14
mov eax, dword [0x4c7a98]
mov dword [eax + 4], ebx
mov dword [eax], 0x45d17c
mov eax, dword [0x4c7aa4]
mov dword [eax + 4], ebx
mov dword [eax], 0x45d188
mov eax, ebx
call fcn.0045d194
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4166f4]
call fcn.00403a8c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4166f4]
call fcn.00403a8c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4166f4]
call fcn.00403a8c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4166f4]
call fcn.00403a8c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4166f4]
call fcn.00403a8c
mov dword [ebx + 0x74], 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, 0x4581b8
push eax
push 0
push 0
mov eax, dword [0x4c7c24]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x42412c]
call fcn.00425bac
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x42412c]
call fcn.00425bac
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x42412c]
call fcn.00425bac
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x42412c]
call fcn.00425bac
mov dword [ebx + 0x84], eax
mov eax, ebx
call fcn.0045d68c
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45d564
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45d564
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45d564
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45d564
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45cecd
call fcn.00403fa8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45d304
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45d4b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45d492
mov dl, 1
mov eax, dword [0x416b6c]
call fcn.0041b058
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
xor edx, edx
call fcn.0040545c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45d481
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.0044d250
test al, al
je 0x45d474
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x45d4c0
lea eax, [ebp - 0x394]
call fcn.0040b36c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x45d474
xor eax, eax
push ebp
push 0x45d46d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x45d530
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x45d456
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00405614
mov edx, dword [ebp - 0x3a0]
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 0x45d456
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00405614
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d474
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45d377
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.0041ae44
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 0x45d4b8
lea eax, [ebp - 0x3a0]
call fcn.0040544c
ret

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

Disassembly:
push ecx
mov eax, dword [0x4cd17c]
cmp byte [eax + 0xa9], 0
jne 0x45df12
cmp dword [0x4cd194], 0
jne 0x45ded2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x4c7988]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x4cd194], eax
cmp dword [0x4cd190], 0
jne 0x45deed
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x4cd190], eax
cmp dword [0x4cd198], 0
jne 0x45df12
push esp
push 0
push 0
mov eax, dword [0x4c7984]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4cd198], eax
pop edx
ret
Function at 0x45e128
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x45e13f
add esp, 0xfffffff0
call fcn.00403f50
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041fd14
mov eax, dword [0x4c79ec]
cmp byte [eax], 0
jne 0x45e16c
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x4c7c08]
cmp word [eax + 2], 0
jne 0x45e186
mov eax, dword [0x4c7c08]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00460018
mov eax, dword [0x4c7cc8]
cmp word [eax + 2], 0
jne 0x45e1a0
mov eax, dword [0x4c7cc8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00460228
mov byte [ebx + 0x31], 0
mov dl, 1
mov eax, dword [0x42412c]
call fcn.00425bac
mov esi, eax
mov dword [ebx + 0x38], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4606ac
mov dl, 1
mov eax, dword [0x4166f4]
call fcn.00403a8c
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x4166f4]
call fcn.00403a8c
mov dword [ebx + 0xac], eax
xor eax, eax
mov dword [ebx + 0x5c], eax
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x58], 0xff000018
mov dword [ebx + 0x74], 0x1f4
mov byte [ebx + 0x78], 1
xor eax, eax
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x70], 0x9c4
mov byte [ebx + 0x84], 0
mov byte [ebx + 0xa1], 1
mov byte [ebx + 0xb8], 1
mov dl, 1
mov eax, dword [0x424984]
call fcn.0042b5d0
mov esi, eax
mov dword [ebx + 0x9c], esi
push 0x45e37c
mov eax, dword [0x4c7b04]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0042b9d4
mov eax, dword [ebx + 0x9c]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46095c
mov dl, 1
mov eax, dword [0x4166f4]
call fcn.00403a8c
mov dword [ebx + 0x94], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x4c7b04]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0040b1b8
test eax, eax
je 0x45e2ae
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0040afb8
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0040b1a0
test eax, eax
je 0x45e2c6
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x88]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00405614
push ebx
push 0x45fa2c
call fcn.00454980
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xcc], 0
mov eax, dword [0x4c79ec]
cmp byte [eax], 0
jne 0x45e317
mov eax, ebx
call fcn.0045e4f0
mov byte [ebx + 0x55], 1
mov byte [ebx + 0x56], 1
mov byte [ebx + 0x57], 1
mov byte [ebx + 0xa2], 1
mov byte [ebx + 0xcd], 0
mov byte [ebx + 0xd8], 0
xor eax, eax
mov dword [ebx + 0xd0], eax
mov byte [ebx + 0xcf], 0
xor eax, eax
mov dword [ebx + 0xa4], eax
mov eax, ebx
call fcn.00460b84
mov eax, ebx
call fcn.00461748
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45e374
call fcn.00403fa8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45e798
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x45e83a
cmp dword [ebx + 0x90], 0
jne 0x45e834
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45e710
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x8c]
cmp dword [eax + 8], 0
je 0x45e834
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_GetWindowLongW
test al, 8
je 0x45e7fa
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x8c]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45e834
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x8c]
call fcn.00418d70
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45e809
inc dword [ebx + 0x90]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45ea58
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4cd17c]
cmp dword [eax + 0x170], 0
je 0x45ebbd
test bl, bl
jne 0x45eb0b
cmp dword [esi + 0x98], 0
jne 0x45eb00
mov eax, esi
call fcn.00461598
push eax
push 0x45e964
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x40], 0
je 0x45ead1
mov eax, dword [0x4cd17c]
cmp byte [eax + 0xcf], 0
je 0x45ead1
mov eax, dword [esi + 0xd4]
call fcn.004062b0
mov edi, eax
cmp edi, 0
jl 0x45ead1
push 0
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45eaba
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x45eb00
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.00418d70
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x45eae0
inc dword [esi + 0x98]
jmp 0x45ebbd
cmp dword [esi + 0x98], 0
jle 0x45ebbd
dec dword [esi + 0x98]
cmp dword [esi + 0x98], 0
jne 0x45ebbd
cmp dword [esi + 0x40], 0
je 0x45eb68
mov eax, dword [0x4cd17c]
cmp byte [eax + 0xcf], 0
je 0x45eb68
mov eax, dword [esi + 0xd4]
call fcn.004062b0
mov edi, eax
cmp edi, 0
jl 0x45eb68
push 5
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45eb51
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x45eb97
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.00418d70
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x45eb77
mov eax, dword [esi + 0x94]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd4]
mov ecx, 1
mov edx, dword [0x45438c]
call fcn.00406470
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x45f778
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa8], 0
je 0x45f7e3
cmp byte [ebx + 0xcf], 0
jne 0x45f7e3
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00405598
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x45f7d0
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x45f7f0
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.0040545c
jmp 0x45f7f0
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.0040545c
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x460d58
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x460dc6
mov eax, esi
call fcn.00447d14
test al, al
je 0x460dc6
mov eax, dword [ebx + 0x80]
call fcn.00447a0c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x460dc6
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x460dba
push 0
mov eax, dword [ebx + 0x80]
call fcn.00447a0c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x80]
call fcn.0043f18c
jmp 0x460dc6
mov cl, 1
mov edx, dword [ebx + 0x70]
mov eax, ebx
call fcn.00460ba4
pop esi
pop ebx
ret
Function at 0x401930
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 4]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftDriver_Signing
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 8]
lea edx, [esp + 3]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.Policy
push ecx
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 3]
add esp, 0x10
ret

Function at 0x401990
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x20006
push 0
push str.SOFTWAREMicrosoftDriver_Signing
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [esp]
lea ecx, [esp + 8]
push 1
push ecx
push 3
push 0
push str.Policy
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
and eax, 0xff
push eax
push str.Set_driver_signing__0x_02X__n
push 0x407b40
call fcn.00401aa0
push 0x407b40
call fcn.00401000
mov ecx, dword [esp + 0x10]
add esp, 0x10
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret
Function at 0x401b1d
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x406128
call fcn.00403248
mov edi, 0x94
mov eax, edi
call fcn.004032a0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x407cec], ecx
mov eax, dword [esi + 4]
mov dword [0x407cf8], eax
mov edx, dword [esi + 8]
mov dword [0x407cfc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x407cf0], esi
cmp ecx, 2
je 0x401b7d
or esi, 0x8000
mov dword [0x407cf0], esi
shl eax, 8
add eax, edx
mov dword [0x407cf4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x401bb8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401bb8
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401bd0
cmp eax, 0x20b
je 0x401bbd
mov dword [ebp - 0x1c], esi
jmp 0x401be4
cmp dword [ecx + 0x84], 0xe
jbe 0x401bb8
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x401bde
cmp dword [ecx + 0x74], 0xe
jbe 0x401bb8
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004031f5
pop ecx
test eax, eax
jne 0x401c10
cmp dword [0x407cdc], 1
jne 0x401bfd
call fcn.00402a09
push 0x1c
call fcn.00402840
push 0xff
call fcn.004026c1
pop ecx
pop ecx
mov dword [ebp - 4], esi
call fcn.00403030
test eax, eax
jge 0x401c24
push 0x1b
call fcn.00401af8
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x409234], eax
call fcn.00402f0a
mov dword [0x407cd4], eax
call fcn.00402e68
test eax, eax
jge 0x401c4a
push 8
call fcn.00401af8
pop ecx
call fcn.00402c1c
test eax, eax
jge 0x401c5b
push 9
call fcn.00401af8
pop ecx
call fcn.004026f1
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x401c6e
push eax
call fcn.00401af8
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402bb3
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x401c8f
movzx eax, word [ebp - 0x34]
jmp 0x401c92
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00401010
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x401cb0
push edi
call fcn.00402800
call fcn.00402822
jmp 0x401ce2
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00403281
ret
Function at 0x402840
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
xor eax, eax
cmp edx, dword [eax*8 + 0x4074f8]
je 0x402860
inc eax
cmp eax, 0x12
jb 0x402851
shl eax, 3
cmp edx, dword [eax + 0x4074f8]
mov dword [ebp + 8], eax
jne 0x4029fe
mov ecx, dword [0x407cdc]
cmp ecx, 1
je 0x4029d3
test ecx, ecx
jne 0x402892
cmp dword [0x4074e4], 1
je 0x4029d3
cmp edx, 0xfc
je 0x4029fe
and byte [ebp - 8], 0
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4028cd
push 5
pop ecx
mov esi, str._program_name_unknown_
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10c]
lea ebx, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4028dc
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x402914
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4028f4
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x406510
push ebx
call fcn.00403830
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402919
sub eax, edx
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x4074fc]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402930
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.004032a0
mov edx, esp
push 6
pop ecx
mov esi, str.Runtime_Error__n_nProgram:
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40295c
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402968
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402981
mov eax, dword [ebp + 8]
mov esi, 0x4064f0
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x4074fc]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40299c
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4029a8
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.00403735
add esp, 0xc
jmp 0x4029fe
mov ecx, dword [eax + 0x4074fc]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4029de
push 0
lea edx, [ebp - 4]
push edx
sub eax, esi
push eax
push ecx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
pop edi
pop esi
pop ebx
leave
ret