joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.004015cd
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x401b78
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
mov ebx, esi
add ebx, 0xc8
mov edi, dword [ebp + 0xc]
mov eax, edi
or eax, esi
cdq
idiv ebx
mov dword [ebp - 8], eax
and dword [ebp - 4], 0
jmp 0x401c25
and dword [ebp - 0xc], 0
and dword [ebp - 0x10], 0
jmp 0x401bb2
add dword [ebp - 0xc], ebx
inc dword [ebp - 0x10]
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x10], eax
jl 0x401bac
mov ecx, dword [ebp - 8]
cmp eax, ecx
jne 0x401bcf
mov eax, dword [ebp + 0xc]
mov edx, esi
inc edx
imul eax, edx
mov ebx, eax
sub ebx, dword [ebp - 0xc]
or ebx, ebx
je 0x401c35
and dword [ebp - 0x14], 0
push ebx
push dword [ebp - 0xc]
push esi
call fcn.00401b35
mov dword [ebp - 0x18], eax
push ebx
push dword [ebp - 0xc]
push esi
call fcn.00401b35
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
xor edx, esi
add edx, eax
push edx
mov edx, dword [ebp - 0x18]
mov ecx, edx
or cl, 1
mov edi, esi
imul edi, ecx
sub edx, edi
add edx, eax
push edx
call fcn.00401b1b
add esp, 0x20
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x7e8
jl 0x401bd7
inc dword [ebp - 4]
mov edi, dword [ebp - 8]
mov ecx, esi
sar edi, cl
cmp dword [ebp - 4], edi
jle 0x401ba2
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404bc0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x494
mov eax, dword [0x43b010]
xor eax, ebp
mov dword [ebp - 4], eax
movdqu xmm0, xmmword [str.HPPresetRoot]
movzx eax, word [0x434bf0]
mov word [ebp - 8], ax
movzx eax, word [0x434c1c]
movdqu xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x24], ax
movq xmm0, qword [0x434be8]
mov eax, dword [0x434c50]
movq qword [ebp - 0x10], xmm0
movdqu xmm0, xmmword [str.HPRestrictedUserGuid]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x494]
push eax
movdqu xmmword [ebp - 0x4c], xmm0
push 0x208
movdqu xmm0, xmmword [0x434c04]
lea eax, [ebp - 0x490]
mov dword [ebp - 0x494], 0
push eax
movdqu xmmword [ebp - 0x3c], xmm0
lea eax, [ebp - 0x4c]
movq xmm0, qword [0x434c14]
movq qword [ebp - 0x2c], xmm0
movdqu xmm0, xmmword [str.SoftwareHewlett_Packard_]
push 0
push eax
movdqu xmmword [ebp - 0x80], xmm0
lea eax, [ebp - 0x20]
movdqu xmm0, xmmword [0x434c30]
push eax
push ecx
movdqu xmmword [ebp - 0x70], xmm0
movdqu xmm0, xmmword [0x434c40]
movdqu xmmword [ebp - 0x60], xmm0
call dword [sym.imp.WINSPOOL.DRV_GetPrinterDataExW]
test eax, eax
jne 0x404cf4
jmp 0x404c90
movzx ecx, word [ebp + eax - 0x80]
lea eax, [eax + 2]
mov word [ebp + eax - 0x28a], cx
test cx, cx
jne 0x404c90
push esi
lea edx, [ebp - 0x490]
push edi
mov esi, edx
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x404cb0
lea edi, [ebp - 0x288]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x404cc6
mov ecx, edx
lea eax, [ebp - 0x288]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041729b
mov esp, ebp
pop ebp
ret
Function at 0x404d70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x43b010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x806
push eax
mov word [ebp - 0x80c], ax
mov ebx, edx
lea eax, [ebp - 0x80a]
movzx esi, cx
push eax
call fcn.0041a7b0
add esp, 0xc
mov eax, ebx
shr eax, 4
and ebx, 0xf
inc eax
movzx eax, ax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceExW]
push eax
push 6
push dword [0x43e5b4]
mov dword [ebp - 0x810], eax
call esi
test eax, eax
jne 0x404dfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x717
jne 0x404e2a
push 0x400
push dword [ebp - 0x810]
push 6
push dword [0x43e5b4]
call esi
test eax, eax
je 0x404e2a
push eax
push dword [0x43e5b4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404e2a
xor ecx, ecx
lea ecx, [ecx]
movzx edx, word [eax]
add eax, 2
test dx, dx
je 0x404e24
mov esi, edx
cmp ecx, ebx
je 0x404e3d
lea eax, [eax + esi*2]
inc ecx
cmp ecx, 0x10
jl 0x404e10
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041729b
mov esp, ebp
pop ebp
ret
mov ecx, 0x403
cmp esi, ecx
cmovg esi, ecx
push esi
push eax
lea eax, [ebp - 0x80c]
push eax
call fcn.00417c33
lea edx, [ebp - 0x80c]
add esp, 0xc
mov eax, edx
sub edi, eax
movzx ecx, word [edx]
lea edx, [edx + 2]
mov word [edi + edx - 2], cx
test cx, cx
jne 0x404e62
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041729b
mov esp, ebp
pop ebp
ret

Function at 0x404eb0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push 0x44
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.0041a7b0
add esp, 0xc
mov dword [ebp - 0x5c], 0x44
mov eax, 5
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push str.Control_printers
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x404f16
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x404f20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x40503b
mov eax, dword [esi + 0x10]
mov dword [ebp - 4], 0
test eax, eax
je 0x404f83
push str._empa
push eax
call fcn.00417e59
add esp, 8
test eax, eax
jne 0x404f7c
push str._mppqs
push dword [esi + 0x10]
call fcn.00417e59
add esp, 8
test eax, eax
jne 0x404f7c
push str._policy
push dword [esi + 0x10]
call fcn.00417e59
add esp, 8
test eax, eax
je 0x404f83
push str.19728374
jmp 0x404fa1
mov eax, dword [esi + 0x10]
test eax, eax
je 0x404fac
push str._dmpa
push eax
call fcn.00417e59
add esp, 8
test eax, eax
je 0x404fac
push 0x435484
call fcn.004178fd
mov dword [ebp - 4], eax
add esp, 4
cmp dword [ebp - 4], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
je 0x404fca
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push str.UPDMPA
push edi
call esi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
push 0xf003f
push 0
push str.SoftwarePoliciesHewlett_PackardHP_Print_SettingsADSPrintPolicy
push 0x80000001
mov dword [ebp - 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405015
push str.19728374
call fcn.004178fd
add esp, 4
mov dword [ebp - 8], eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
jmp 0x405025
push 0x435484
call fcn.004178fd
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
je 0x40503b
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.UPDADS
push edi
call esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405770
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push str._dst
push edx
mov esi, ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.00417e59
add esp, 8
test eax, eax
mov eax, dword [ebp - 8]
je 0x4057eb
test eax, eax
jne 0x4057c4
lea eax, [ebp - 8]
push eax
push str.SoftwareHewlett_PackardHP_Print_Settings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
sete al
test al, al
je 0x405851
mov eax, dword [ebp - 8]
push 4
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push 4
push 0
push dword [0x435370]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x405851
mov dword [ebp - 4], eax
jmp 0x405838
test eax, eax
jne 0x40580f
lea eax, [ebp - 8]
push eax
push str.SoftwareHewlett_PackardHP_Print_Settings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
sete al
test al, al
je 0x405851
mov eax, dword [ebp - 8]
push 4
lea ecx, [ebp - 4]
mov dword [ebp - 4], 1
push ecx
push 4
push 0
push dword [0x435370]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x405851
mov dword [ebp - 4], 1
test esi, esi
je 0x405851
push 4
lea eax, [ebp - 4]
push eax
push 4
push dword [0x435374]
push esi
call dword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
mov eax, dword [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x405861
push eax
call esi
mov eax, dword [ebp - 8]
test eax, eax
je 0x40586b
push eax
call esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405870
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push str._dod
push edx
mov esi, ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.00417e59
add esp, 8
test eax, eax
mov eax, dword [ebp - 8]
je 0x4058eb
test eax, eax
jne 0x4058c4
lea eax, [ebp - 8]
push eax
push str.SoftwareHewlett_PackardHP_Print_Settings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
sete al
test al, al
je 0x405951
mov eax, dword [ebp - 8]
push 4
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push 4
push 0
push dword [0x435378]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x405951
mov dword [ebp - 4], eax
jmp 0x405938
test eax, eax
jne 0x40590f
lea eax, [ebp - 8]
push eax
push str.SoftwareHewlett_PackardHP_Print_Settings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
sete al
test al, al
je 0x405951
mov eax, dword [ebp - 8]
push 4
lea ecx, [ebp - 4]
mov dword [ebp - 4], 1
push ecx
push 4
push 0
push dword [0x435378]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x405951
mov dword [ebp - 4], 1
test esi, esi
je 0x405951
push 4
lea eax, [ebp - 4]
push eax
push 4
push dword [0x43537c]
push esi
call dword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
mov eax, dword [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x405961
push eax
call esi
mov eax, dword [ebp - 8]
test eax, eax
je 0x40596b
push eax
call esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405970
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push str._dos
push edx
mov esi, ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.00417e59
add esp, 8
test eax, eax
mov eax, dword [ebp - 8]
je 0x4059eb
test eax, eax
jne 0x4059c4
lea eax, [ebp - 8]
push eax
push str.SoftwareHewlett_PackardHP_Print_Settings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
sete al
test al, al
je 0x405a51
mov eax, dword [ebp - 8]
push 4
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push 4
push 0
push dword [0x435380]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x405a51
mov dword [ebp - 4], eax
jmp 0x405a38
test eax, eax
jne 0x405a0f
lea eax, [ebp - 8]
push eax
push str.SoftwareHewlett_PackardHP_Print_Settings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
sete al
test al, al
je 0x405a51
mov eax, dword [ebp - 8]
push 4
lea ecx, [ebp - 4]
mov dword [ebp - 4], 1
push ecx
push 4
push 0
push dword [0x435380]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x405a51
mov dword [ebp - 4], 1
test esi, esi
je 0x405a51
push 4
lea eax, [ebp - 4]
push eax
push 4
push dword [0x435384]
push esi
call dword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
mov eax, dword [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x405a61
push eax
call esi
mov eax, dword [ebp - 8]
test eax, eax
je 0x405a6b
push eax
call esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405a70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push str._dpm
push edx
mov esi, ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.00417e59
add esp, 8
test eax, eax
mov eax, dword [ebp - 8]
je 0x405aeb
test eax, eax
jne 0x405ac4
lea eax, [ebp - 8]
push eax
push str.SoftwareHewlett_PackardHP_Print_Settings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
sete al
test al, al
je 0x405b51
mov eax, dword [ebp - 8]
push 4
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push 4
push 0
push dword [0x435388]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x405b51
mov dword [ebp - 4], eax
jmp 0x405b38
test eax, eax
jne 0x405b0f
lea eax, [ebp - 8]
push eax
push str.SoftwareHewlett_PackardHP_Print_Settings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
sete al
test al, al
je 0x405b51
mov eax, dword [ebp - 8]
push 4
lea ecx, [ebp - 4]
mov dword [ebp - 4], 1
push ecx
push 4
push 0
push dword [0x435388]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x405b51
mov dword [ebp - 4], 1
test esi, esi
je 0x405b51
push 4
lea eax, [ebp - 4]
push eax
push 4
push dword [0x43538c]
push esi
call dword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
mov eax, dword [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x405b61
push eax
call esi
mov eax, dword [ebp - 8]
test eax, eax
je 0x405b6b
push eax
call esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405b70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push str._ddu
push edx
mov esi, ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.00417e59
add esp, 8
test eax, eax
mov eax, dword [ebp - 8]
je 0x405beb
test eax, eax
jne 0x405bc4
lea eax, [ebp - 8]
push eax
push str.SoftwareHewlett_PackardHP_Print_Settings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
sete al
test al, al
je 0x405c51
mov eax, dword [ebp - 8]
push 4
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push 4
push 0
push dword [0x435390]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x405c51
mov dword [ebp - 4], eax
jmp 0x405c38
test eax, eax
jne 0x405c0f
lea eax, [ebp - 8]
push eax
push str.SoftwareHewlett_PackardHP_Print_Settings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
sete al
test al, al
je 0x405c51
mov eax, dword [ebp - 8]
push 4
lea ecx, [ebp - 4]
mov dword [ebp - 4], 1
push ecx
push 4
push 0
push dword [0x435390]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x405c51
mov dword [ebp - 4], 1
test esi, esi
je 0x405c51
push 4
lea eax, [ebp - 4]
push eax
push 4
push dword [0x435394]
push esi
call dword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
mov eax, dword [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x405c61
push eax
call esi
mov eax, dword [ebp - 8]
test eax, eax
je 0x405c6b
push eax
call esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405c70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push str._dso
push edx
mov esi, ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.00417e59
add esp, 8
test eax, eax
mov eax, dword [ebp - 8]
je 0x405ceb
test eax, eax
jne 0x405cc4
lea eax, [ebp - 8]
push eax
push str.SoftwareHewlett_PackardHP_Print_Settings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
sete al
test al, al
je 0x405d51
mov eax, dword [ebp - 8]
push 4
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push 4
push 0
push dword [0x435398]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x405d51
mov dword [ebp - 4], eax
jmp 0x405d38
test eax, eax
jne 0x405d0f
lea eax, [ebp - 8]
push eax
push str.SoftwareHewlett_PackardHP_Print_Settings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
sete al
test al, al
je 0x405d51
mov eax, dword [ebp - 8]
push 4
lea ecx, [ebp - 4]
mov dword [ebp - 4], 1
push ecx
push 4
push 0
push dword [0x435398]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x405d51
mov dword [ebp - 4], 1
test esi, esi
je 0x405d51
push 4
lea eax, [ebp - 4]
push eax
push 4
push dword [0x43539c]
push esi
call dword [sym.imp.WINSPOOL.DRV_SetPrinterDataW]
mov eax, dword [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x405d61
push eax
call esi
mov eax, dword [ebp - 8]
test eax, eax
je 0x405d6b
push eax
call esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405d70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ebx, ecx
mov esi, edx
push edi
test ebx, ebx
je 0x405e72
test esi, esi
je 0x405e72
push str._dgst
push dword [esi + 0x10]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.00417e59
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
test eax, eax
je 0x405e00
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x405de0
lea eax, [ebp - 0xc]
push eax
push str.SoftwareHewlett_PackardHP_Print_Settings
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
sete al
test al, al
je 0x405e5e
mov eax, dword [ebp - 0xc]
push 4
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push 4
push 0
push dword [0x435370]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x405e5e
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x405e22
mov edx, dword [str.ServicesTab]
test edx, edx
je 0x405e22
call fcn.00414430
push dword [ebp - 0xc]
call edi
mov dword [ebp - 0xc], 0
mov edx, dword [esi + 0x10]
mov ecx, ebx
call fcn.00405770
mov edx, dword [esi + 0x10]
mov ecx, ebx
call fcn.00405870
mov edx, dword [esi + 0x10]
mov ecx, ebx
call fcn.00405970
mov edx, dword [esi + 0x10]
mov ecx, ebx
call fcn.00405a70
mov edx, dword [esi + 0x10]
mov ecx, ebx
call fcn.00405b70
mov edx, dword [esi + 0x10]
mov ecx, ebx
call fcn.00405c70
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x405e68
push eax
call edi
mov eax, dword [ebp - 8]
test eax, eax
je 0x405e72
push eax
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406af0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a4c3
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x43b010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 8
call fcn.00414540
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x406b71
mov byte [ebp - 4], 1
mov ecx, 0x208
mov dword [edi], vtable.CUnload.0
call fcn.00414590
mov dword [edi + 4], eax
test eax, eax
je 0x406b73
push 0x104
push 0
push eax
call fcn.0041a7b0
add esp, 0xc
push 0x104
push dword [edi + 4]
push str._WinDir_Inf
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x406b73
xor edi, edi
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x406ba8
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
push edi
mov esi, eax
mov dword [edi], vtable.CDriverLoad.0
call fcn.004144c0
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406cf0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x43b010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov edi, ecx
push 0x7fe
push eax
mov word [ebp - 0x808], ax
lea eax, [ebp - 0x806]
push eax
call fcn.0041a7b0
push 0x400
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.0041a7b0
mov eax, dword [edi + 0x38]
add esp, 0x18
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [eax + 0xc], 1
jne 0x406d7f
mov ecx, dword [0x43e928]
lea eax, [ebp - 0x808]
push eax
mov edx, 0x3e
call fcn.00404d70
add esp, 4
test eax, eax
je 0x406e6d
lea eax, [ebp - 0x808]
push eax
push dword [edi + 0x1c]
jmp 0x406e6b
push 0x137
push dword [edi + 0x20]
call ebx
mov ecx, dword [0x43e928]
mov edx, 0xd
mov dword [ebp - 0x81c], eax
lea eax, [ebp - 0x808]
push eax
call fcn.00404d70
add esp, 4
lea eax, [ebp - 0x808]
push eax
push 0x136
push dword [edi + 0x20]
call ebx
push eax
call esi
push 0x400
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.0041a7b0
mov esi, dword [ebp - 0x81c]
lea eax, [ebp - 0x818]
add esp, 0xc
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x406e1a
mov eax, dword [ebp - 0x80c]
sub eax, dword [ebp - 0x814]
push 0x206
add eax, 0x6e
push eax
mov eax, dword [ebp - 0x810]
sub eax, dword [ebp - 0x818]
push eax
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push 0x135
push dword [edi + 0x20]
call ebx
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push 0
push 0x12d
push dword [edi + 0x20]
call ebx
push eax
call esi
mov ecx, dword [0x43e928]
lea eax, [ebp - 0x808]
push eax
mov edx, 0x3d
call fcn.00404d70
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [ebp - 0x808]
add esp, 4
push eax
push dword [ebp - 0x81c]
call esi
push 0x400
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.0041a7b0
mov ecx, dword [0x43e928]
lea eax, [ebp - 0x808]
push eax
mov edx, 0x40
call fcn.00404d70
add esp, 0x10
lea eax, [ebp - 0x808]
push eax
push 0x134
push dword [edi + 0x20]
call ebx
push eax
call esi
push 1
push 1
push dword [edi + 0x20]
call ebx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041729b
mov esp, ebp
pop ebp
ret