joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ede0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x51c080]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetVersion]
push edi
push esi
push str.Remove_Device___s__s_
mov ecx, 0x527b30
mov dword [esp + 0x14], eax
movzx ebx, al
call fcn.00449000
add esp, 0xc
cmp ebx, 6
ja 0x42ef10
jne 0x42ee2c
cmp byte [esp + 9], 1
jae 0x42ef10
mov ecx, dword [0x4e772c]
mov eax, dword [0x4e7728]
mov edx, dword [0x4e7730]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [0x4e7734]
mov dword [esp + 0x14], edx
push ecx
mov edx, edi
mov ecx, esi
mov dword [esp + 0x1c], eax
call fcn.0042ef40
mov edx, dword [0x4e7718]
mov eax, dword [0x4e771c]
mov ecx, dword [0x4e7720]
mov dword [esp + 0xc], edx
mov edx, dword [0x4e7724]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
push eax
mov edx, edi
mov ecx, esi
call fcn.0042ef40
mov ecx, dword [0x4e76f8]
mov edx, dword [0x4e76fc]
mov eax, dword [0x4e7700]
mov dword [esp + 0xc], ecx
mov ecx, dword [0x4e7704]
mov dword [esp + 0x10], edx
lea edx, [esp + 0xc]
mov dword [esp + 0x18], ecx
push edx
mov edx, edi
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.0042ef40
mov ecx, dword [0x4e770c]
mov eax, dword [0x4e7708]
mov edx, dword [0x4e7710]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [0x4e7714]
mov dword [esp + 0x14], edx
push ecx
mov edx, edi
mov ecx, esi
mov dword [esp + 0x1c], eax
call fcn.0042ef40
mov al, 1
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004a998e
mov esp, ebp
pop ebp
ret
push str._RemoveUnknownDevice::RemoveUnknownDevice__Call_Windows_7_Remove_Unknown_Device_Function
mov ecx, 0x527b30
call fcn.00449000
add esp, 4
mov edx, edi
mov ecx, esi
call fcn.0042f320
mov ecx, dword [esp + 0x1c]
pop ebx
xor ecx, esp
mov al, 1
call fcn.004a998e
mov esp, ebp
pop ebp
ret
Function at 0x439670
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4c9e0b
mov eax, dword fs:[0]
push eax
mov eax, 0x1238
call fcn.004ab4d0
mov eax, dword [0x51c080]
xor eax, esp
mov dword [esp + 0x1234], eax
push ebx
push esi
push edi
mov eax, dword [0x51c080]
xor eax, esp
push eax
lea eax, [esp + 0x1248]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebx + 0xb618]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4396c0
sub eax, edx
sar eax, 1
je 0x4397ee
lea eax, [ebx + 0xb618]
push eax
push str.Set_Driver_Version_:__s
mov ecx, 0x527b30
call fcn.00449000
lea esi, [ebx + 0xfe18]
mov eax, esi
add esp, 8
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x439700
sub eax, edx
sar eax, 1
je 0x439746
push esi
push 0x100
lea edi, [ebx + 0xd018]
push edi
push 0x4dd578
push str.MainVersion
push str.Version
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x439746
push 0x200
push eax
push edi
call fcn.004ab450
add esp, 0xc
mov eax, esi
lea edx, [eax + 2]
jmp 0x439750
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x439750
sub eax, edx
sar eax, 1
jne 0x4397d5
or edi, 0xffffffff
lea esi, [esp + 0x14]
mov dword [esp + 0x14], vtable.CInfInfo.0
mov dword [esp + 0x1240], edi
call fcn.0045f4c0
mov dword [esp + 0x1250], 0
mov eax, dword [ebx + 0x10618]
push 0
push 0
push 0
push eax
lea eax, [ebx + 0xb618]
push eax
mov ecx, esi
call fcn.0045ebb0
test al, al
je 0x4397b4
mov edx, esi
lea ecx, [ebx + 0xd018]
push edx
call fcn.00460860
mov dword [esp + 0x1250], edi
mov eax, dword [esp + 0x1240]
cmp eax, edi
mov dword [esp + 0x14], vtable.CInfInfo.0
je 0x4397d5
push eax
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
add ebx, 0xd018
push ebx
push str.___Version:__s
mov ecx, 0x527b30
call fcn.00449000
add esp, 8
mov ecx, dword [esp + 0x1248]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1234]
xor ecx, esp
call fcn.004a998e
add esp, 0x1244
ret
Function at 0x43c2e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4c7a2b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x51c080]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004c46f4
mov dword [esp + 0x14], 0
push 4
call fcn.004993b2
mov edi, eax
add esp, 4
test edi, edi
je 0x43c341
call fcn.004c495a
mov dword [edi], eax
call fcn.004c478e
mov ecx, eax
call fcn.0043f370
jmp 0x43c343
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x441230
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x120
push 0xffffffffffffffff
push 0x4c78e0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x51c080]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
push 0x11c
push esi
lea eax, [ebp]
push eax
call fcn.004ab450
add esp, 0xc
mov dword [ebp], 0x11c
lea ecx, [ebp]
push ecx
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
call edi
mov ebx, eax
test ebx, ebx
jne 0x4412b4
mov dword [ebp], 0x114
lea edx, [ebp]
push edx
call edi
test eax, eax
je 0x441477
mov eax, dword [ebp + 0x10]
sub eax, 0
je 0x441445
sub eax, 1
je 0x4413a5
sub eax, 1
jne 0x44144a
mov eax, dword [ebp + 4]
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x4412e1
jmp dword [eax*4 + 0x44149c]
mov esi, 0x20001
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x441475
mov esi, 0x20002
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x441475
mov eax, dword [ebp + 8]
sub eax, 0
je 0x44135f
sub eax, 1
je 0x44134b
sub eax, 1
jne 0x44134b
mov esi, 0x40003
mov dword [ebp - 0x14], esi
cmp byte [0x52c25c], al
je 0x44144a
test ebx, ebx
je 0x44144a
cmp byte [ebp + 0x11a], 1
jne 0x44144a
mov esi, 0x40002
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x441475
mov esi, 0x40001
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x441475
xor eax, eax
cmp dword [ebp + 8], eax
setne al
add eax, 0x100001
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x441475
mov esi, 0x100001
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x441475
mov esi, dword [ebp + 8]
test esi, esi
je 0x4413f9
cmp esi, 0xa
je 0x4413d0
sub esi, 0x5a
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x10005
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x441475
push 0x4dccc0
lea ecx, [ebp + 0x14]
push ecx
call fcn.004a9af1
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
add esi, 0x10004
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x441475
push 0x4dea94
lea edx, [ebp + 0x14]
push edx
call fcn.004a9af1
add esp, 8
test eax, eax
je 0x441434
push 0x4e4b40
lea eax, [ebp + 0x14]
push eax
call fcn.004a9af1
add esp, 8
test eax, eax
je 0x441434
mov esi, 0x10001
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x441475
mov esi, 0x10002
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x441475
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x441475
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.004a998e
add ebp, 0x120
mov esp, ebp
pop ebp
ret
Function at 0x441850
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2004]
mov eax, 0x2004
call fcn.004ab4d0
push 0xffffffffffffffff
push 0x4c7880
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x51c080]
xor eax, ebp
mov dword [ebp + 0x2000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [ebp + 0x200c]
mov dword [ebp - 0x18], eax
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x441a04
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4418b0
sub eax, edx
sar eax, 1
je 0x441a04
push esi
push 0x1000
lea ecx, [ebp]
push ecx
call fcn.004a9ecb
mov ecx, 0x4ea2c0
lea edx, [ebp]
call fcn.00442540
mov ecx, 0x4ea2c0
lea edx, [ebp]
call fcn.004426f0
push 0x1000
lea edx, [ebp]
push edx
call fcn.004aa61b
push str..EXE
lea eax, [ebp]
push eax
call fcn.004a9b82
add esp, 0x1c
cmp eax, ebx
je 0x44192e
mov word [eax], bx
push 0x5c
lea ecx, [ebp]
push ecx
call fcn.004a9ce4
add esp, 8
cmp eax, ebx
je 0x44192e
mov word [eax], bx
lea edi, [ebp]
jmp 0x441930
xor edi, edi
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jne 0x44193c
mov eax, str.NULL
mov edx, dword [ebp + 0x2010]
push edx
push eax
push esi
push str._RunShellExecute__Command_Line____s___Parameter____s____wait_time___d
mov ecx, 0x527b30
call fcn.00449000
add esp, 0x10
mov eax, 0x4140
mov dword [ebp - 0x54], eax
cmp dword [ebp + 0x2010], ebx
je 0x44196a
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], str.open
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x40], edi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x58], 0x3c
lea ecx, [ebp - 0x58]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4419b8
mov eax, dword [ebp + 0x2010]
cmp eax, ebx
je 0x4419d5
push ebx
push eax
mov ebx, dword [ebp - 0x20]
call fcn.00441b90
add esp, 8
mov dword [ebp - 0x14], eax
jmp 0x4419d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push str.Run_Command_Line_Fail__
mov ecx, eax
mov edx, 0x527b30
call fcn.00448ec0
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2000]
xor ecx, ebp
call fcn.004a998e
add ebp, 0x2004
mov esp, ebp
pop ebp
ret
push str.Fail_____Invalid_Parameter_in_RunExecute____
mov ecx, 0x527b30
call fcn.00449000
add esp, 4
mov eax, 0x57
jmp 0x4419df
Function at 0x442a00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c91c0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2018
call fcn.004ab4d0
mov eax, dword [0x51c080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
mov byte [ebp - 0x2021], bl
mov eax, dword [str..EXE]
mov dword [ebp - 0x20], eax
mov ecx, dword [0x4e9438]
mov dword [ebp - 0x1c], ecx
mov dx, word [0x4e943c]
mov word [ebp - 0x18], dx
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x442b4b
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x442a70
sub eax, edx
sar eax, 1
je 0x442b4b
push 0x2000
push ebx
lea eax, [ebp - 0x2020]
push eax
call fcn.004ab450
push esi
push 0x1000
lea ecx, [ebp - 0x2020]
push ecx
call fcn.004a9ecb
push 0x1000
lea edx, [ebp - 0x2020]
push edx
call fcn.004aa61b
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x2020]
push ecx
call fcn.004a9b82
add esp, 0x28
cmp eax, ebx
je 0x442b22
lea ecx, [ebp - 0x20]
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x442ad7
sub ecx, esi
sar ecx, 1
mov word [eax + ecx*2], bx
mov ecx, 0x4e944c
lea edx, [ebp - 0x2020]
call fcn.00442540
mov ecx, 0x4e944c
lea edx, [ebp - 0x2020]
call fcn.004426f0
lea edx, [ebp - 0x2020]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x442b22
mov byte [ebp - 0x2021], 1
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x2021]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a998e
mov esp, ebp
pop ebp
ret
xor al, al
jmp 0x442b2f
Function at 0x442e40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c9c48
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x51c080]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
test edx, edx
je 0x442f25
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x442e77
sub eax, esi
sar eax, 1
je 0x442f25
test edi, edi
je 0x442f25
mov eax, edi
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x442ea0
sub eax, esi
sar eax, 1
je 0x442f25
cmp dword [0x52b9f0], 0
je 0x442ef1
cmp dword [esp + 0x30], 0
jne 0x442ed4
push edi
push edx
mov ecx, 0x4dd578
push 0x52b9f0
call fcn.00440ff0
jmp 0x442f03
cmp dword [esp + 0x34], 8
mov ecx, dword [esp + 0x20]
jae 0x442ee3
lea ecx, [esp + 0x20]
push edi
push edx
push 0x52b9f0
call fcn.00440ff0
jmp 0x442f03
push str.Set_Registry_Data_fail__Invalid_Data_
mov ecx, 0x527b30
call fcn.00449000
add esp, 4
mov dword [esp + 0x14], 0xffffffff
lea esi, [esp + 0x1c]
call fcn.00411bb0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
push str.Set_Registry_Data_fail__Invalid_Data_
mov ecx, 0x527b30
call fcn.00449000
add esp, 4
mov dword [esp + 0x14], 0xffffffff
cmp dword [esp + 0x34], 8
jb 0x442f53
mov eax, dword [esp + 0x20]
push eax
call fcn.004993dd
add esp, 4
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], 0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x443580
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x1c
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4435a1
xor eax, eax
add esp, 0x1c
ret
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 4]
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 dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x44359b
push 0x80040002
push 0x12
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
add esp, 0x1c
ret
Function at 0x447970
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x4ca790
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x51c080]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x18], esi
xor bl, bl
mov dword [ebp - 4], esi
push 0x800
push esi
lea eax, [ebp]
push eax
call fcn.004ab450
add esp, 0xc
mov dword [ebp - 0x1c], 0x400
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push esi
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x447a2b
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x20]
push ecx
push esi
push str.SystemRoot
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x447a1d
push edi
lea edx, [ebp]
call fcn.00410270
mov bl, 1
mov byte [ebp - 0x11], bl
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x447a73
push 0x800
push esi
lea ecx, [ebp]
push ecx
call fcn.004ab450
add esp, 0xc
push 0x400
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x447a73
push 0x5c
lea eax, [ebp]
push eax
call fcn.004a9ce4
add esp, 8
cmp eax, esi
je 0x447a65
mov word [eax], si
push edi
lea edx, [ebp]
call fcn.00410270
mov bl, 1
mov byte [ebp - 0x11], bl
mov dword [ebp - 4], 0xffffffff
jmp 0x447aa2
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.004a998e
add ebp, 0x804
mov esp, ebp
pop ebp
ret
Function at 0x448620
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4c9c01
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x51c080]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
xor ebx, ebx
mov dword [esp + 0xc], ebx
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
call fcn.0040f4f0
mov dword [esp + 0x34], 1
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x448680
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.00448700
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push ebx
mov ecx, esi
mov word [esi + 4], bx
call fcn.0040f4f0
mov dword [esp + 0xc], 1
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 8
jb 0x4486d2
mov eax, dword [esp + 0x14]
push eax
call fcn.004993dd
add esp, 4
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], bx
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret
Function at 0x448ce0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1804]
mov eax, 0x1804
call fcn.004ab4d0
push 0xffffffffffffffff
push 0x4c76e0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x51c080]
xor eax, ebp
mov dword [ebp + 0x1800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
push 0x800
xor edi, edi
push edi
lea eax, [ebp + 0x1000]
push eax
call fcn.004ab450
push 0x800
push edi
lea ecx, [ebp]
push ecx
call fcn.004ab450
push 0x800
push edi
lea edx, [ebp + 0x800]
push edx
call fcn.004ab450
add esp, 0x24
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
cmp dword [esi], edi
je 0x448d6b
mov al, 1
jmp 0x448e6b
push 0x400
lea eax, [ebp + 0x1000]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x448d93
mov byte [ebp - 0x12], al
push 0x5043f0
lea ecx, [ebp - 0x12]
push ecx
call fcn.004abd6e
push 0x5c
lea edx, [ebp + 0x1000]
push edx
call fcn.004a9ce4
add esp, 8
mov ebx, eax
cmp ebx, edi
je 0x448daf
add ebx, 2
jmp 0x448db4
mov ebx, str.SSLog
lea eax, [ebp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
lea ecx, [ebp]
push ecx
push str._s_s.log
lea edx, [ebp + 0x800]
call fcn.00411a00
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
lea edx, [ebp + 0x800]
push edx
call edi
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x448e30
mov eax, dword [ebp - 0x18]
cmp eax, 0x64
jge 0x448e2a
push eax
push ebx
lea eax, [ebp]
push eax
push str._s_s__d.log
lea edx, [ebp + 0x800]
call fcn.00411a00
add esp, 0x10
add dword [ebp - 0x18], 1
jmp 0x448de1
mov byte [ebp - 0x11], 0
jmp 0x448e34
mov byte [ebp - 0x11], 1
mov byte [esi + 0x204], 1
mov eax, str.Printer_Lite_Installer
test eax, eax
je 0x448e56
push eax
push 0x100
lea ecx, [esi + 4]
push ecx
call fcn.004a9ecb
add esp, 0xc
mov ecx, esi
call fcn.004491d0
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1800]
xor ecx, ebp
call fcn.004a998e
add ebp, 0x1804
mov esp, ebp
pop ebp
ret
Function at 0x448ec0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c76b0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x4008
call fcn.004ab4d0
mov eax, dword [0x51c080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, edx
cmp dword [esi], 0
je 0x448fcc
mov dword [ebp - 4], 0
push 0x2000
push 0
lea eax, [ebp - 0x2014]
push eax
call fcn.004ab450
push 0x2000
push 0
lea ecx, [ebp - 0x4014]
push ecx
call fcn.004ab450
lea edx, [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x1000
lea ecx, [ebp - 0x2014]
push ecx
call fcn.004aa0b4
add esp, 0x28
test edi, edi
je 0x448f9e
push 0
push 0
lea edx, [ebp - 0x4018]
push edx
push 0x409
push edi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, dword [ebp - 0x4018]
test eax, eax
je 0x448f9e
push eax
push edi
lea eax, [esi + 4]
push eax
push str.___s___Error_Code___d_:_s
lea edx, [ebp - 0x4014]
call fcn.00418a80
add esp, 0x10
mov ecx, dword [ebp - 0x4018]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea edx, [ebp - 0x2014]
mov ecx, esi
call fcn.004490e0
test edi, edi
je 0x448fc5
lea edx, [ebp - 0x4014]
mov ecx, esi
call fcn.004490e0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a998e
mov esp, ebp
pop ebp
ret

Function at 0x449490
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6e80
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x51c080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, edx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x449531
cmp eax, ebx
je 0x449531
mov dword [ebp - 4], ebx
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4494e3
sub eax, edx
sar eax, 1
push ebx
lea ecx, [ebp - 0x18]
push ecx
lea edx, [eax + eax]
push edx
push edi
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
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
pop ebx
mov esp, ebp
pop ebp
ret