joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d360
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0x80004005
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 8], 0
jne 0x40d391
jmp 0x40d3f5
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0xc], 0
jne 0x40d3b2
jmp 0x40d3f5
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x40d3be
jmp 0x40d3f5
mov ecx, dword [ebp - 8]
add ecx, 4
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
push 0x40d500
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov edx, dword [ebp - 8]
cmp dword [edx], 0
jne 0x40d3ee
jmp 0x40d3f5
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4159f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0x10]
push eax
movzx ecx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x415a31
jmp 0x415ad8
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x415a52
jmp 0x415ad8
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
cmp eax, dword [ebp - 8]
jae 0x415a6f
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov dword [ebp - 0xc], 1
jmp 0x415ad8
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x415a8a
jmp 0x415ad8
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x415aa1
xor eax, eax
jmp 0x415adb
cmp dword [ebp + 0x14], 0
jne 0x415aab
jmp 0x415ad8
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4168d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x41691d
jmp 0x4169a8
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0044be20
add esp, 4
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x416954
jmp 0x4169a8
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0x4552a0
mov eax, dword [ebp - 4]
push eax
call sub.VERSION.dll_VerQueryValueW
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x416987
cmp dword [ebp - 8], 0
jne 0x41698b
jmp 0x4169a8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
mov dword [ebp - 0x18], 1
cmp dword [ebp - 4], 0
je 0x4169c0
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x4169d0
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f008
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x46ab5c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00401000
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x416a65
mov edx, dword [ebp - 0x14]
and edx, 0x10
je 0x416a4f
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401080
mov eax, dword [ebp - 0x1c]
jmp 0x416b53
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x416b3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x416b3a
lea eax, [ebp - 0x18]
push eax
call fcn.00416520
add esp, 4
lea ecx, [ebp - 0x18]
call fcn.00403440
movzx ecx, al
test ecx, ecx
je 0x416ac8
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401080
mov eax, dword [ebp - 0x20]
jmp 0x416b53
lea ecx, [ebp - 0x18]
call fcn.0040f280
push eax
call fcn.004169d0
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x416afd
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401080
mov eax, dword [ebp - 0x24]
jmp 0x416b53
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x416b3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x416b3a
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401080
mov eax, dword [ebp - 0x28]
jmp 0x416b53
mov dword [ebp - 0x2c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401080
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x416b70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f071
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x46ab5c]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x23c], 0
mov word [ebp - 0x22c], 0
push 0x206
push 0
lea eax, [ebp - 0x22a]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.004068d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004068d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004068d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.004068d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x230]
call fcn.004068d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x234]
push ecx
mov ecx, 0x46b648
call fcn.0042fca0
mov dword [ebp - 0x240], eax
mov edx, dword [ebp - 0x240]
mov dword [ebp - 0x244], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x244]
mov ecx, dword [eax]
push ecx
push str._sdrivermain.ini
lea edx, [ebp - 0x10]
push edx
call fcn.0040a500
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x234]
call fcn.00401080
lea ecx, [ebp - 0x10]
call fcn.0040f280
push eax
push 0x104
lea eax, [ebp - 0x22c]
push eax
push 0x4563e8
push str.version
push str.infos
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004010a0
lea ecx, [ebp - 0x10]
call fcn.0040f280
push eax
push 0x104
lea edx, [ebp - 0x22c]
push edx
push 0x4563e8
push str.Version
push str.DisplayVersions
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x14]
call fcn.004010a0
lea ecx, [ebp - 0x18]
call fcn.00406970
cmp eax, 6
jle 0x416d1a
push 6
lea ecx, [ebp - 0x238]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00406b30
mov dword [ebp - 0x248], eax
mov edx, dword [ebp - 0x248]
mov dword [ebp - 0x24c], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x18]
call fcn.004027e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x238]
call fcn.00401080
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push str._s._s
lea eax, [ebp - 0x230]
push eax
call fcn.0040a500
add esp, 0x10
lea ecx, [ebp - 0x230]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00401de0
mov edx, dword [ebp - 0x23c]
or edx, 1
mov dword [ebp - 0x23c], edx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x230]
call fcn.00401080
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.00401080
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00401080
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00401080
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401080
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0044be2c
mov esp, ebp
pop ebp
ret
Function at 0x416dc0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f0dc
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x46ab5c]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0xf0]
call fcn.004068d0
mov dword [ebp - 4], 0
mov word [ebp - 0xec], 0
push 0xc6
push 0
lea eax, [ebp - 0xea]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.004068d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004068d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xf4]
push ecx
mov ecx, 0x46b648
call fcn.0042fca0
mov dword [ebp - 0x104], eax
mov edx, dword [ebp - 0x104]
mov dword [ebp - 0x108], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x108]
push eax
lea ecx, [ebp - 0xf0]
call fcn.004027e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xf4]
call fcn.00401080
lea ecx, [ebp - 0xf0]
call fcn.004033c0
push str.drivermain.ini
lea ecx, [ebp - 0xf0]
call fcn.00407400
lea ecx, [ebp - 0xf0]
call fcn.0040f280
push eax
push 0x64
lea ecx, [ebp - 0xec]
push ecx
push 0x4563e8
push str.Version
push str.DisplayVersions
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x416ed6
jmp 0x416ffd
lea edx, [ebp - 0xec]
push edx
lea ecx, [ebp - 0x14]
call fcn.004010a0
lea ecx, [ebp - 0x14]
call fcn.004033c0
lea ecx, [ebp - 0x14]
call fcn.00406970
push eax
push 2
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040a3b0
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x110], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x110]
push edx
lea ecx, [ebp - 0x1c]
call fcn.004027e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xf8]
call fcn.00401080
push 0x4563e8
push 0x4552b8
lea ecx, [ebp - 0x1c]
call fcn.0041a990
push 0x4563e8
push 0x4569a8
lea ecx, [ebp - 0x1c]
call fcn.0041a990
lea ecx, [ebp - 0xf0]
call fcn.0040f280
push eax
push 0x64
lea eax, [ebp - 0xec]
push eax
push 0x4563e8
push str.version
push str.infos
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x416f94
jmp 0x416ffd
lea ecx, [ebp - 0xec]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004010a0
push 6
lea edx, [ebp - 0xfc]
push edx
lea ecx, [ebp - 0x14]
call fcn.00406b30
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x118], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00406990
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xfc]
call fcn.00401080
lea ecx, [ebp - 0x1c]
call fcn.0040f280
push eax
call dword [sym.imp.MSVCR80.dll__wtoi]
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x100], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00401080
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00401080
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf0]
call fcn.00401080
mov eax, dword [ebp - 0x100]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0044be2c
mov esp, ebp
pop ebp
ret
Function at 0x417050
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f128
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x46ab5c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x14]
call fcn.004068d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004068d0
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x24], 0
mov word [ebp - 0x10], 0
mov word [ebp - 0x28], 0
mov word [ebp - 0x18], 0
push str.signs.ini
lea eax, [ebp - 0x2c]
push eax
mov ecx, 0x46b648
call fcn.0042fca0
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x38]
mov eax, dword [edx]
push eax
push 0x4552e8
lea ecx, [ebp - 0x14]
push ecx
call fcn.0040a500
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00401080
lea ecx, [ebp - 0x14]
call fcn.0040f280
push eax
push 0
push str.Version
push str.Sign
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x41711f
jmp 0x417194
lea ecx, [ebp - 0x14]
call fcn.0040f280
push eax
push 0
push str.BuildNum
push str.Sign
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov word [ebp - 0x18], ax
movzx edx, word [ebp - 0x18]
test edx, edx
jne 0x417148
jmp 0x417194
mov eax, dword [ebp - 0x1c]
sar eax, 0x10
mov word [ebp - 0x24], ax
mov ecx, dword [ebp - 0x1c]
sar ecx, 8
and ecx, 0xff
mov word [ebp - 0x10], cx
mov edx, dword [ebp - 0x1c]
and edx, 0xff
mov word [ebp - 0x28], dx
movzx eax, word [ebp - 0x18]
push eax
movzx ecx, word [ebp - 0x28]
push ecx
movzx edx, word [ebp - 0x10]
push edx
movzx eax, word [ebp - 0x24]
push eax
push str._04d._02d._02d._02d
lea ecx, [ebp - 0x20]
push ecx
call fcn.0040a500
add esp, 0x18
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp + 8]
call fcn.00401de0
mov eax, dword [ebp - 0x30]
or eax, 1
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00401080
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401080
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x4176a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0xffffffff
push 0
push 0x80
push 3
push 0
push 1
push closesocket
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4176dd
jmp 0x4176f5
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 8], 0xffffffff
je 0x417705
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4177e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x46ab5c]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x214], 0
mov eax, dword [0x46af78]
and eax, 1
jne 0x41782d
mov ecx, dword [0x46af78]
or ecx, 1
mov dword [0x46af78], ecx
mov ecx, 0x46af74
call fcn.004068d0
push 0x4534f0
call fcn.0044c031
add esp, 4
mov ecx, 0x46af74
call fcn.00403440
movzx edx, al
test edx, edx
jne 0x41785f
push 0x46af74
mov ecx, dword [ebp + 8]
call fcn.00401de0
mov eax, dword [ebp - 0x214]
or eax, 1
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 8]
jmp 0x4178cf
mov dword [ebp - 4], 0
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x417883
jmp 0x4178b0
lea edx, [ebp - 0x210]
push edx
mov ecx, 0x46af74
call fcn.004010a0
push 0x46af74
call fcn.004164d0
add esp, 4
push str.drivers_
mov ecx, 0x46af74
call fcn.004069b0
push 0x46af74
mov ecx, dword [ebp + 8]
call fcn.00401de0
mov eax, dword [ebp - 0x214]
or eax, 1
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0044be2c
mov esp, ebp
pop ebp
ret
Function at 0x4178e0
Capabilities:
Copy file
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f210
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x46ab5c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x18], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004068d0
mov dword [ebp - 4], 0
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x417953
mov dword [ebp - 0x14], 0
jmp 0x4179fc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0x456c50
lea ecx, [ebp - 0x10]
push ecx
call fcn.0040a500
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.0040f280
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x10]
call fcn.0040f280
push eax
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR80.dll__wrename]
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4179a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
jmp 0x4179fc
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4179e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x10]
call fcn.0040f280
push eax
call dword [sym.imp.MSVCR80.dll__wrename]
add esp, 8
jmp 0x4179fc
push 4
push 0
lea ecx, [ebp - 0x10]
call fcn.0040f280
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
jne 0x417a3a
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401000
mov byte [ebp - 4], 1
push 0x456c4c
lea ecx, [ebp - 0x1c]
call fcn.004069b0
lea ecx, [ebp - 0x1c]
call fcn.0040f280
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00401080
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
push str.RenameUpdate_return:_d__src:_ws__dst:_ws
push 0x46afbc
call fcn.00420980
add esp, 0x14
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401080
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x417a80
Capabilities:
Copy file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450468
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x46ab5c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x18], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004068d0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.004010a0
push 0x456c4c
lea ecx, [ebp - 0x10]
call fcn.004069b0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR80.dll__waccess]
add esp, 8
test eax, eax
je 0x417b05
push str.RebootUpdate_src_file_is_Not_exsist_
push 0x46afbc
call fcn.00420980
add esp, 8
jmp 0x417b92
push 0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
lea ecx, [ebp - 0x10]
call fcn.0040f280
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
lea ecx, [ebp - 0x10]
call fcn.0040f280
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x417b6d
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RebootUpdate_CopyFile_fail__error:_d__src:_ws__dst:_ws
push 0x46afbc
call fcn.00420980
add esp, 0x14
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.004010a0
push 5
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040f280
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x417b92
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push str.RebootUpdate_return:_d__src:_ws__dst:_ws_errorcode:_d
push 0x46afbc
call fcn.00420980
add esp, 0x18
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401080
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x417be0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f238
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x46ab5c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x6c], 0
push 0x40
push 0
lea eax, [ebp - 0x68]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x20], 0
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x6c], 0x44
mov dword [ebp - 0x40], 1
lea ecx, [ebp - 0x70]
call fcn.004068d0
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str.__s___s
lea ecx, [ebp - 0x70]
push ecx
call fcn.0040a500
add esp, 0x10
cmp dword [ebp + 0x14], 0
je 0x417c79
mov word [ebp - 0x3c], 0xa
jmp 0x417c7f
mov word [ebp - 0x3c], 0
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x70]
call fcn.0040f280
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x417cd8
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KFunction::RunApp_CreateProcessW_error:_d__wait:_d__show:_d__path:_ws__cmd:_ws
push 0x46afbc
call fcn.00420980
add esp, 0x1c
jmp 0x417cf3
cmp dword [ebp + 0x10], 0
je 0x417cec
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x24], 1
cmp dword [ebp - 0x20], 0
je 0x417d0a
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x1c], 0
je 0x417d21
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x74], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00401080
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret