joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415330
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4421a6
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x274], 7
mov dword [ebp - 0x278], esi
mov word [ebp - 0x288], cx
lea edi, [ebx + 0xc4]
mov dword [ebp - 4], esi
cmp dword [edi + 0x14], 8
jb 0x415394
mov eax, dword [edi]
jmp 0x415396
mov eax, edi
lea edx, [ebp - 0x64]
push edx
push esi
push esi
push eax
call dword [sym.imp.msi.dll_MsiSourceListClearAllW]
cmp eax, esi
jne 0x4154dd
cmp dword [ebx + 0x30], 8
jb 0x4153b6
mov esi, dword [ebx + 0x1c]
jmp 0x4153b9
lea esi, [ebx + 0x1c]
mov eax, dword [ebp - 0x2a8]
mov edi, dword [eax + 4]
push str.IIF_CACHELOC
call fcn.00404030
push eax
lea ecx, [ebp - 0x26c]
push 0x104
push ecx
call fcn.0042c4dd
add esp, 0xc
push esi
lea edx, [ebp - 0x26c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.____Removing_from_cache
push 0x4549c0
mov ecx, 0x4462a0
call fcn.00406580
add esp, 8
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x2a8]
mov edx, dword [ecx + 4]
push edx
push 1
lea edx, [ebx + 0x58]
lea ecx, [ebp - 0x2a4]
call fcn.00404e80
mov edi, eax
lea esi, [ebp - 0x288]
mov byte [ebp - 4], 1
call fcn.00405650
mov esi, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0x290], esi
jb 0x41545e
mov eax, dword [ebp - 0x2a4]
push eax
call fcn.0042b948
add esp, 4
mov eax, dword [ebp - 0x288]
cmp dword [ebp - 0x274], esi
jae 0x415472
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x64]
push ecx
push str.__Uninstalling_product_code__s__Properties__s
push 0x4549c0
mov ecx, 0x4462a0
call fcn.00406580
mov edx, dword [ebp - 0x2a8]
add esp, 0x10
mov ecx, ebx
call fcn.004148b0
mov eax, dword [ebp - 0x288]
cmp dword [ebp - 0x274], esi
jae 0x4154af
lea eax, [ebp - 0x288]
push eax
push 2
push 0
lea edx, [ebp - 0x64]
push edx
call dword [sym.imp.msi.dll_MsiGetFileVersionA]
mov edi, eax
test edi, edi
je 0x4154ff
cmp edi, 0xbc2
je 0x4154ff
cmp byte [ebx + 0x120], 0
je 0x4154ff
push edi
push str.____Result_code_was__d_but_ignore_error_is_set
jmp 0x4154eb
cmp dword [edi + 0x14], 8
jb 0x4154e5
mov edi, dword [edi]
push edi
push str.____Upgrade_code__s_is_not_installed
push 0x4549c0
mov ecx, 0x4462a0
call fcn.00406580
add esp, 0xc
xor edi, edi
cmp dword [ebp - 0x274], 8
jb 0x415517
mov eax, dword [ebp - 0x288]
push eax
call fcn.0042b948
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042b939
mov esp, ebp
pop ebp
ret
Function at 0x417370
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x414]
push eax
push 0x104
mov esi, ecx
mov dword [ebp - 0x418], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0x449518
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
lea eax, [ebp - 0x20c]
mov word [esi], dx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4173f5
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
call fcn.00402c70
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042b939
mov esp, ebp
pop ebp
ret

Function at 0x417430
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, edx
push edi
lea edx, [ebp - 0x58]
push edx
push esi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x41755d
push ebx
push edi
call fcn.0042abb9
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x417547
push ebx
push edi
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x48]
push ecx
push 0x44741c
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov eax, dword [ebp - 0x48]
movzx edx, word [eax + 0xc]
movzx ecx, word [eax + 0xe]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push edx
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push edx
push eax
lea ecx, [ebp - 0x44]
push str._d._d._d._d
push ecx
call edi
lea eax, [ebp - 0x44]
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4174c6
mov esi, dword [ebp - 0x50]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x44]
call fcn.00402c70
mov eax, dword [ebp - 0x48]
movzx edx, word [eax + 0x14]
movzx ecx, word [eax + 0x16]
push edx
movzx edx, word [eax + 0x10]
movzx eax, word [eax + 0x12]
push ecx
push edx
push eax
lea ecx, [ebp - 0x44]
push str._d._d._d._d
push ecx
call edi
lea eax, [ebp - 0x44]
add esp, 0x18
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417510
mov esi, dword [ebp - 0x4c]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x44]
call fcn.00402c70
push ebx
call fcn.0042b948
add esp, 4
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b939
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
mov eax, 0xe
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b939
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042b939
mov esp, ebp
pop ebp
ret
Function at 0x417580
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x50]
push ecx
push esi
mov dword [ebp - 0x48], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x417650
push ebx
push edi
call fcn.0042abb9
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41763a
push ebx
push edi
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x4c]
push eax
push 0x44741c
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov eax, dword [ebp - 0x4c]
movzx ecx, word [eax + 0x10]
movzx edx, word [eax + 0x12]
push ecx
push edx
lea eax, [ebp - 0x44]
push str._d._d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x44]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417603
mov esi, dword [ebp - 0x48]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x44]
call fcn.00402c70
push ebx
call fcn.0042b948
add esp, 4
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b939
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
mov eax, 0xe
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b939
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042b939
mov esp, ebp
pop ebp
ret

Function at 0x417710
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
push edi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 4], 1
jne 0x417778
push 0xe
push str._ProgramFiles_
push esi
xor eax, eax
call fcn.00405760
cmp eax, 0xffffffff
je 0x417778
jmp 0x417750
push 0xe
push str._ProgramW6432_
push eax
mov eax, 0xe
mov ecx, esi
call fcn.0040dd60
push 0xe
push str._ProgramFiles_
push esi
xor eax, eax
call fcn.00405760
cmp eax, 0xffffffff
jne 0x417750
cmp dword [esi + 0x14], 8
jb 0x417782
mov eax, dword [esi]
jmp 0x417784
mov eax, esi
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
mov ebx, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042abb9
mov edi, eax
add esp, 4
test edi, edi
je 0x4177f0
cmp dword [esi + 0x14], 8
jb 0x4177ba
mov eax, dword [esi]
jmp 0x4177bc
mov eax, esi
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4177d0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.00402c70
push edi
call fcn.0042c5c5
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417800
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x41790e
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ebx, [esi + 2]
push ebx
call fcn.0042abb9
mov edi, eax
add esp, 4
test edi, edi
jne 0x417866
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 0xe]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push 0
push edi
call fcn.00430500
mov ebx, dword [ebp - 8]
add esp, 0xc
push 0
lea edx, [ebp - 0xc]
push edx
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4178f4
cmp byte [edi], 0xff
jne 0x4178b9
cmp byte [edi + 1], 0xfe
jne 0x4178b9
mov ecx, dword [ebp + 8]
lea eax, [edi + 2]
push ecx
call fcn.00401970
push edi
call fcn.0042c5c5
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4178c0
mov esi, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.00402c70
push edi
call fcn.0042c5c5
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [ebp - 4], eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x417920
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xa
mov esi, eax
push 0xe
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4179d2
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, 1
jbe 0x4179c6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea edi, [ebx + 2]
push edi
mov dword [ebp - 4], eax
call fcn.0042abb9
mov esi, eax
add esp, 4
test esi, esi
je 0x4179ba
push edi
push 0
push esi
call fcn.00430500
mov eax, dword [ebp - 4]
push ebx
push eax
push esi
call fcn.0042d500
mov eax, esi
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417995
mov ecx, dword [ebp + 8]
sub eax, edx
push eax
push esi
call fcn.00411620
push esi
call fcn.0042b948
add esp, 4
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
mov eax, 0xe
pop esi
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4179e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xa
mov esi, eax
push 0xb
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x417a9a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, 1
jbe 0x417a8e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea esi, [ebx + 2]
push esi
mov dword [ebp - 4], eax
call fcn.0042abb9
mov edi, eax
add esp, 4
test edi, edi
je 0x417a82
push esi
push 0
push edi
call fcn.00430500
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call fcn.0042d500
mov eax, edi
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417a56
mov esi, dword [ebp + 8]
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.00402c70
push edi
call fcn.0042b948
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xe
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417ab0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x66c
mov eax, dword [0x4533e4]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
test edi, edi
je 0x417ca6
cmp word [edi], si
je 0x417ca6
push edi
lea eax, [esp + 0x46c]
push 0x104
push eax
call fcn.0042c4dd
add esp, 0xc
push 0x449eb4
lea ecx, [esp + 0x46c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x417b40
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.0042b939
mov esp, ebp
pop ebp
ret
mov ecx, 0x449eb8
lea eax, [esp + 0x3c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x417b76
test dx, dx
je 0x417b72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x417b76
add eax, 4
add ecx, 4
test dx, dx
jne 0x417b50
xor eax, eax
jmp 0x417b7b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x417c55
mov ecx, 0x449ebc
lea eax, [esp + 0x3c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x417bb6
test dx, dx
je 0x417bb2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x417bb6
add eax, 4
add ecx, 4
test dx, dx
jne 0x417b90
xor eax, eax
jmp 0x417bbb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x417c55
push edi
lea ecx, [esp + 0x264]
push 0x104
push ecx
call fcn.0042c4dd
add esp, 0xc
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test byte [esp + 0x10], 0x10
je 0x417c27
lea ecx, [esp + 0x260]
push ecx
call fcn.00417ab0
mov esi, eax
add esp, 4
test esi, esi
je 0x417c55
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.0042b939
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x260]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x260]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x417c71
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x417c7a
cmp esi, 0x12
jne 0x417b40
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp esi, 0x12
jne 0x417c8f
xor esi, esi
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.0042b939
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x674]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 3
call fcn.0042b939
mov esp, ebp
pop ebp
ret
Function at 0x417cc0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x417d11
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b939
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x417d27
mov dword [ebp - 0x10], ebx
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x10], ebx
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop ebx
call fcn.0042b939
mov esp, ebp
pop ebp
ret

Function at 0x417d50
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x417dcd
lea ecx, [ebp - 0x10]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x18]
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0x80040002
push 0x12
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x417dcd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b939
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b939
mov esp, ebp
pop ebp
ret
Function at 0x4180d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x44
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.00430500
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x58]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push esi
mov dword [ebp - 0x58], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41814f
mov ecx, dword [ebp - 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [ebp - 0xc]
push edx
call edi
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x418160
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x4181ad
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
lea ecx, [ebp - 0x20c]
push ecx
push edi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b939
mov esp, ebp
pop ebp
ret
push esi
push 0x104
push edi
call fcn.0042c4dd
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0xc
call fcn.0042b939
mov esp, ebp
pop ebp
ret

Function at 0x4181d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push esi
mov bl, 1
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x41822d
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0042c4dd
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
setne bl
test bl, bl
je 0x41827b
push esi
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
mov esi, eax
test esi, esi
je 0x41827b
movzx eax, word [esi]
test ax, ax
je 0x41827b
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathGetCharTypeW]
lea esp, [esp]
test bl, bl
je 0x418268
push eax
call edi
test al, 0xb
movzx eax, word [esi + 2]
setne bl
add esi, 2
test ax, ax
jne 0x418250
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b939
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0042b939
mov esp, ebp
pop ebp
ret
Function at 0x418290
Capabilities:
Get file size
Move file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4533e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push esi
xor edi, edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x214], edi
mov byte [ebp - 0x20d], 0
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x224], edi
call fcn.0042c4dd
push str..bak
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.0042c92f
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
add esp, 0x18
push edi
push edi
push 4
push edi
push edi
push SysReAllocString
push esi
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x41843c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x300000
jbe 0x4183ef
push 0
push 0
push 4
push 0
push 0
push 0xc0000000
lea edx, [ebp - 0x20c]
push edx
call ebx
mov ebx, eax
mov dword [ebp - 0x21c], ebx
cmp ebx, 0xffffffff
je 0x4183f9
push 0
push 0
add edi, 0xffd00000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x8000
call fcn.0042abb9
add esp, 4
mov edi, eax
push 0
lea eax, [ebp - 0x218]
push eax
push 0x8000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4183a9
mov edx, dword [ebp - 0x218]
push 0
lea ecx, [ebp - 0x224]
push ecx
push edx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4183c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x214], ebx
test ebx, ebx
jne 0x4183d0
mov ebx, dword [ebp - 0x21c]
cmp dword [ebp - 0x218], 0
ja 0x418373
mov ebx, dword [ebp - 0x214]
push edi
call fcn.0042c5c5
mov eax, dword [ebp - 0x21c]
add esp, 4
push eax
mov byte [ebp - 0x20d], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4183ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x4183ff
mov ebx, dword [ebp - 0x214]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x20d], 0
je 0x418429
test ebx, ebx
jne 0x418429
mov ecx, dword [ebp - 0x220]
push 1
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042b939
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b939
mov esp, ebp
pop ebp
ret