joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4052d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x45f4c8]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
cmp ebx, 0x110
ja 0x4053e8
je 0x405338
mov eax, ebx
sub eax, 2
je 0x405328
dec eax
je 0x405396
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
push ebx
call fcn.00405260
mov ecx, dword [esp + 0x2c]
pop edi
pop ebx
xor ecx, esp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x405307
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x405307
mov ecx, dword [0x462120]
call fcn.0040ac90
test al, al
je 0x405396
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40537f
push 0
push eax
push 0
push dword [edi + 4]
push 0x1e
push 0x5a
push 0
push 0
push 0x90000000
push str.Exit
push str.Button
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [edi + 0x4c], eax
jmp 0x405396
push str.Couldnt_create_Exit_button_window__handle_to_module_is_invalid_
push 0x451150
push 0x46064c
call fcn.00417ac0
add esp, 0xc
cmp dword [edi + 0x4c], 0
je 0x405307
lea eax, [esp + 0x1c]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0xc]
push eax
push dword [edi + 0x4c]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
sub ecx, dword [esp + 0x18]
add eax, 0xfffffff2
push 0x15
push 0
push 0
add eax, ecx
push eax
push dword [esp + 0x2c]
push 0
push dword [edi + 0x4c]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x405307
cmp ebx, 0x111
jne 0x405307
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x405307
cmp dword [ebp + 0x10], eax
jne 0x405307
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x407750
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446386
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x45f4c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x104
push esi
mov dword [esi + 0x208], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4077e3
push 0x4c
call fcn.0042f52e
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4077c9
push 0xb2
push str.WinResources.cpp
push str.Error_reading_system_directory_path
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00407310
jmp 0x4077cb
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push 0x45d118
push eax
call fcn.00431dcb
push dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jne 0x407840
push 0x4c
call fcn.0042f52e
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x407826
push 0xbf
push str.WinResources.cpp
push str.Error_creating_DLLibrary_object
push 0x10b
mov ecx, eax
call fcn.00407310
jmp 0x407828
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 0x45d118
push eax
call fcn.00431dcb
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x409d30
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x45f4c8]
xor eax, ebp
mov dword [ebp - 4], eax
push str.IIF_CACHELOC
add ecx, 4
call fcn.004146e0
push eax
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0042ffd1
add esp, 0xc
lea eax, [ebp - 0x210]
push str.Prop.data
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.Deleting_private_properties_file
push 0x450cfc
push 0x46064c
call fcn.00417ac0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret
Function at 0x4162d0
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x45f4c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], 0
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x454854
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x20c], ax
je 0x41636f
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416360
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00404410
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042f51f
mov esp, ebp
pop ebp
ret
Function at 0x416390
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x45f4c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x4c], eax
mov ebx, ecx
lea eax, [ebp - 0x58]
mov dword [ebp - 0x50], edx
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x4164d1
push edi
push esi
call fcn.0042effb
mov edi, eax
add esp, 4
test edi, edi
je 0x4164bb
push edi
push esi
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x48]
push eax
push 0x4516e8
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ecx, dword [ebp - 0x48]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
lea eax, [ebp - 0x44]
push 0x45485c
push eax
call esi
add esp, 0x18
cmp word [ebp - 0x44], 0
jne 0x41642b
xor ecx, ecx
jmp 0x416440
lea ecx, [ebp - 0x44]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416431
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x44]
push eax
call fcn.00404410
mov ecx, dword [ebp - 0x48]
movzx eax, word [ecx + 0x14]
push eax
movzx eax, word [ecx + 0x16]
push eax
movzx eax, word [ecx + 0x10]
push eax
movzx eax, word [ecx + 0x12]
push eax
lea eax, [ebp - 0x44]
push 0x45485c
push eax
call esi
add esp, 0x18
cmp word [ebp - 0x44], 0
jne 0x41647d
xor ecx, ecx
jmp 0x416492
lea ecx, [ebp - 0x44]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416483
sub ecx, edx
sar ecx, 1
push ecx
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x4c]
call fcn.00404410
push edi
call fcn.00430b42
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f51f
mov esp, ebp
pop ebp
ret
Function at 0x4164f0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x45f4c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 0x50]
mov dword [ebp - 0x48], edx
mov ebx, ecx
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x4165ce
push esi
push edi
call fcn.0042effb
mov esi, eax
add esp, 4
test esi, esi
je 0x4165b8
push esi
push edi
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0x4516e8
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ecx, dword [ebp - 0x4c]
movzx eax, word [ecx + 0x10]
push eax
movzx eax, word [ecx + 0x12]
push eax
lea eax, [ebp - 0x44]
push str._d._d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
cmp word [ebp - 0x44], 0
jne 0x416579
xor ecx, ecx
jmp 0x41658f
lea ecx, [ebp - 0x44]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416580
sub ecx, edx
sar ecx, 1
push ecx
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x48]
call fcn.00404410
push esi
call fcn.00430b42
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret
pop esi
pop edi
mov eax, 0xe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0042f51f
mov esp, ebp
pop ebp
ret

Function at 0x4165f0
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x45f4c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x414]
mov esi, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x454854
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
pop esi
test eax, eax
je 0x416678
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x416678
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret
Function at 0x416690
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 4], 1
jne 0x4166e0
push 0xe
push 0
push str._ProgramFiles_
mov ecx, esi
call fcn.00402a50
cmp eax, 0xffffffff
je 0x416708
push 0xe
push str._ProgramW6432_
push 0xe
push eax
mov ecx, esi
call fcn.004032d0
jmp 0x4166b6
push 0x13
push 0
push str._ProgramFiles_x86__
mov ecx, esi
call fcn.00402a50
cmp eax, 0xffffffff
je 0x416708
push 0xe
push str._ProgramFiles_
push 0x13
push eax
mov ecx, esi
call fcn.004032d0
jmp 0x4166e0
cmp dword [esi + 0x14], 8
jb 0x416712
mov eax, dword [esi]
jmp 0x416714
mov eax, esi
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
mov dword [ebp - 4], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042effb
mov edi, eax
add esp, 4
test edi, edi
je 0x416788
cmp dword [esi + 0x14], 8
jb 0x41674b
mov eax, dword [esi]
jmp 0x41674d
mov eax, esi
push dword [ebp - 4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp word [edi], 0
jne 0x416762
xor ecx, ecx
jmp 0x416776
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416767
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.00404410
push edi
call fcn.00430b42
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x416790
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], edx
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41686e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov dword [ebp - 0xc], ecx
lea eax, [ecx - 1]
cmp eax, 0xffffe
ja 0x41685b
lea eax, [ecx + 2]
push eax
mov dword [ebp - 8], eax
call fcn.0042effb
mov esi, eax
add esp, 4
test esi, esi
je 0x41685b
push dword [ebp - 8]
push ebx
push esi
call fcn.00433da0
add esp, 0xc
lea eax, [ebp - 0x10]
push ebx
push eax
push dword [ebp - 0xc]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416843
cmp byte [esi], 0xff
jne 0x416821
cmp byte [esi + 1], 0xfe
jne 0x416821
lea eax, [esi + 2]
push eax
jmp 0x416822
push esi
mov ecx, dword [ebp - 4]
call fcn.00402990
push esi
call fcn.00430b42
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 0xe
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov ebx, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416880
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 0x41693e
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, 1
jbe 0x416932
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea edi, [ebx + 2]
mov dword [ebp - 4], eax
push edi
call fcn.0042effb
mov esi, eax
add esp, 4
test esi, esi
je 0x416926
push edi
push 0
push esi
call fcn.00433da0
push ebx
push dword [ebp - 4]
push esi
call fcn.004316f0
add esp, 0x18
cmp byte [esi], 0
jne 0x4168fc
xor ecx, ecx
jmp 0x41690a
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416901
sub ecx, edx
push ecx
mov ecx, dword [ebp + 8]
push esi
call fcn.004049a0
push esi
call fcn.00430b42
add esp, 4
xor eax, eax
pop ebx
pop edi
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 0x416950
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 0xb
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4169ee
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, 1
jbe 0x4169e2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea edi, [ebx + 2]
mov dword [ebp - 4], eax
push edi
call fcn.0042effb
mov esi, eax
add esp, 4
test esi, esi
je 0x4169d6
push edi
push 0
push esi
call fcn.00433da0
push ebx
push dword [ebp - 4]
push esi
call fcn.004316f0
mov ecx, dword [ebp + 8]
add esp, 0x18
push esi
call fcn.00402990
push esi
call fcn.00430b42
add esp, 4
xor eax, eax
pop ebx
pop edi
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
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x416a00
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 [0x45f4c8]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
test edi, edi
je 0x416bf3
cmp word [edi], si
je 0x416bf3
push edi
lea eax, [esp + 0x46c]
push 0x104
push eax
call fcn.0042ffd1
add esp, 0xc
lea eax, [esp + 0x468]
push 0x4548e8
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x416a90
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret
mov ecx, 0x4516dc
lea eax, [esp + 0x3c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x416ac6
test dx, dx
je 0x416ac2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x416ac6
add eax, 4
add ecx, 4
test dx, dx
jne 0x416aa0
xor eax, eax
jmp 0x416acb
sbb eax, eax
or eax, 1
test eax, eax
je 0x416ba1
mov ecx, 0x4516e0
lea eax, [esp + 0x3c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x416b06
test dx, dx
je 0x416b02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x416b06
add eax, 4
add ecx, 4
test dx, dx
jne 0x416ae0
xor eax, eax
jmp 0x416b0b
sbb eax, eax
or eax, 1
test eax, eax
je 0x416ba1
push edi
lea eax, [esp + 0x264]
push 0x104
push eax
call fcn.0042ffd1
add esp, 0xc
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test byte [esp + 0x10], 0x10
je 0x416b73
lea ecx, [esp + 0x260]
call fcn.00416a00
mov esi, eax
test esi, esi
je 0x416ba1
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.0042f51f
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x260]
push eax
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 eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x416bbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x416bc6
cmp esi, 0x12
jne 0x416a90
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
cmp esi, 0x12
cmove esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x674]
mov eax, 3
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret
Function at 0x416c10
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x45f4c8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x416c6b
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x10], 0
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret

Function at 0x416ca0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x45f4c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
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
jne 0x416cdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
push 0x4548ec
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0
push dword [ebp - 0x18]
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 0x416d26
xor esi, esi
jmp 0x416d2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x416d3c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042f51f
mov esp, ebp
pop ebp
ret
Function at 0x417230
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
push 0x44
lea eax, [ebp - 0x5c]
mov esi, ecx
push 0
push eax
call fcn.00433da0
add esp, 0xc
mov dword [ebp - 0x5c], 0x44
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x14], xmm0
push eax
lea eax, [ebp - 0x5c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4172a7
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4172c0
Capabilities:
Get common file path

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

Function at 0x417340
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x45f4c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov bl, 1
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x41739d
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0042ffd1
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
setne bl
test bl, bl
je 0x4173eb
push esi
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
mov esi, eax
test esi, esi
je 0x4173eb
movzx eax, word [esi]
test ax, ax
je 0x4173eb
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathGetCharTypeW]
lea esp, [esp]
test bl, bl
je 0x4173d8
push eax
call edi
test al, 0xb
movzx eax, word [esi + 2]
setne bl
add esi, 2
test ax, ax
jne 0x4173c0
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f51f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f51f
mov esp, ebp
pop ebp
ret