joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418df0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
test edi, edi
setne al
mov ecx, eax
or ecx, 2
cmp dword [ebp + 0x14], esi
cmove ecx, eax
push ecx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x418f50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test edi, edi
jne 0x418e50
cmp esi, 0x50
je 0x418e40
cmp esi, 0xb7
jne 0x418e50
mov esi, 1
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp esi, 3
jne 0x418f43
movzx eax, word [ebx]
xor edi, edi
mov ecx, ebx
test ax, ax
je 0x418f33
mov edx, eax
nop dword [eax + eax]
cmp dx, 0x5c
mov eax, ecx
cmovne eax, edi
add ecx, 2
mov edi, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x418e70
test edi, edi
je 0x418f33
xor eax, eax
push eax
push ebx
mov word [edi], ax
call fcn.004181b0
mov esi, eax
mov eax, 0x5c
mov word [edi], ax
mov edi, dword [ebp + 8]
test esi, esi
jns 0x418ed4
push ebx
push edi
push str.failed_to_create_directory_while_moving_file:__S_to:__S
push esi
push 3
push 0x269
push str.c:jenkins_fct1_svn_forticlienthsinstallationwix_fct_enterprise_fcsetupexedutil_fileutil.cpp
call fcn.004188c0
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp - 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x418f50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x418efa
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x418f50
push esi
push 0x26e
push str.c:jenkins_fct1_svn_forticlienthsinstallationwix_fct_enterprise_fcsetupexedutil_fileutil.cpp
call fcn.00418700
push ebx
push edi
push str.failed_to_move_file:__S_to:__S
push esi
push 3
push 0x26e
push str.c:jenkins_fct1_svn_forticlienthsinstallationwix_fct_enterprise_fcsetupexedutil_fileutil.cpp
call fcn.004188c0
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, 0x80070003
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
test esi, esi
jle 0x418f50
movzx esi, si
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4197b0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push edi
push 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
call fcn.00419910
mov ebx, dword [ebp + 0xc]
mov esi, eax
test esi, esi
jns 0x41980c
push edi
push str.Failed_to_GetData_from__s.
push esi
push 4
push 0xd9
push str.c:jenkins_fct1_svn_forticlienthsinstallationwix_fct_enterprise_fcsetupexedutil_resrutil.cpp
call fcn.004188c0
add esp, 0x18
xor edi, edi
jmp 0x4198eb
push 0
push 0x80
push dword [ebp + 0x10]
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x41987c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x419843
movzx esi, si
or esi, 0x80070000
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0xde
push str.c:jenkins_fct1_svn_forticlienthsinstallationwix_fct_enterprise_fcsetupexedutil_resrutil.cpp
call fcn.00418700
push ebx
push str.Failed_to_CreateFileW_for__S.
push esi
push 4
push 0xde
push str.c:jenkins_fct1_svn_forticlienthsinstallationwix_fct_enterprise_fcsetupexedutil_resrutil.cpp
call fcn.004188c0
add esp, 0x18
xor edi, edi
jmp 0x4198eb
push 0
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 4]
push dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4198dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4198a8
movzx esi, si
or esi, 0x80070000
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0xe4
push str.c:jenkins_fct1_svn_forticlienthsinstallationwix_fct_enterprise_fcsetupexedutil_resrutil.cpp
call fcn.00418700
push ebx
push str.Failed_to_::WriteFile_for__S.
push esi
push 4
push 0xe4
push str.c:jenkins_fct1_svn_forticlienthsinstallationwix_fct_enterprise_fcsetupexedutil_resrutil.cpp
call fcn.004188c0
add esp, 0x18
push dword [ebp - 0x10]
mov edi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jns 0x4198fa
test edi, edi
je 0x4198fa
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41bc00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
mov eax, dword [0x47a42c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x2d8], eax
test edi, edi
jne 0x41bc38
push 0x71f
push 0x460280
call fcn.00418400
cmp dword [ebp + 0x10], 0
lea eax, [ebp - 0x2d4]
push eax
push 0
mov ecx, 0x23
mov eax, 0x1c
cmovne eax, ecx
push 0
or eax, 0x8000
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
jns 0x41bc7c
push 0
push str.Failed_to_get_local_app_data_folder.
push esi
push 4
push 0x729
jmp 0x41bd82
push 0x40
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebx + 0x8c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
mov esi, eax
test esi, esi
jns 0x41bcac
push 0
push str.Failed_to_convert_ProductCode_GUID_to_string.
push esi
push 4
push 0x72c
jmp 0x41bd82
mov ecx, dword [ebx + 0xa0]
mov edx, dword [ebx + 0x9c]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
lea eax, [ebp - 0x4c]
push edx
push 0x45c9b4
push 0x24
push eax
call fcn.00411480
mov esi, eax
add esp, 0x1c
test esi, esi
jns 0x41bcf5
push 0
push str.Failed_to_format_version_string.
push esi
push 4
push 0x730
jmp 0x41bd82
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x2d4]
push eax
push str._sApplicationsCache_s_s_s.mst
push edi
call fcn.004285e0
mov esi, eax
add esp, 0x18
test esi, esi
jns 0x41bd33
push 0
push str.Failed_to_allocate_formatted.
push esi
push 4
push 0x733
jmp 0x41bd82
push 1
push 1
push dword [edi]
push dword [ebp - 0x2d8]
call fcn.00418df0
mov esi, eax
test esi, esi
jns 0x41bd8f
cmp dword [ebp + 0x10], 1
jne 0x41bd73
mov eax, dword [edi]
test eax, eax
je 0x41bd5c
push eax
call fcn.00428900
push 0
push str.Failed_to_move_MST_to_cache__second_chance.
push esi
push 4
mov dword [edi], 0
push 0x73b
jmp 0x41bd82
push 0
push str.Failed_to_move_MST_to_cache.
push esi
push 4
push 0x73f
push 0x460280
call fcn.004188c0
add esp, 0x18
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428a27
mov esp, ebp
pop ebp
ret
Function at 0x41d180
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x47a42c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x47c2e4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], edi
jne 0x41d21f
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0042b800
add esp, 0xc
mov dword [0x47c2e4], 1
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0041d180
add esp, 8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0043afb8
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0041d180
add esp, 0x14
xor esi, esi
call fcn.00403200
push edi
push esi
mov ecx, eax
push ebx
push esi
push esi
mov eax, dword [ecx]
push dword [ecx + 4]
or eax, 2
mov dword [ebp - 0x21c], ecx
push eax
call fcn.00432710
mov ebx, eax
or eax, 0xffffffff
test ebx, ebx
cmovs ebx, eax
lea eax, [ebx*2 + 0xe]
push eax
call fcn.0043b175
mov edi, eax
add esp, 0x20
test edi, edi
je 0x41d29c
push dword [ebp - 0x214]
mov ecx, dword [ebp - 0x21c]
xor eax, eax
push eax
push dword [ebp - 0x218]
mov dword [edi + ebx*2 + 0xa], eax
lea eax, [edi + 0xa]
push ebx
push eax
mov eax, dword [ecx]
push dword [ecx + 4]
or eax, 1
push eax
call fcn.00432710
mov esi, eax
add esp, 0x1c
test esi, esi
mov eax, 0xffffffff
cmovs esi, eax
test esi, esi
cmovs esi, ebx
add esi, 5
test edi, edi
je 0x41d2f2
push dword [0x479b9c]
push 0x45d81c
push 5
push edi
call fcn.00410d00
add esp, 0x10
mov ebx, esi
test esi, esi
jle 0x41d2d6
cmp word [edi + esi*2 - 2], 0xa
je 0x41d2d6
mov dword [edi + esi*2], 0xa
lea ebx, [esi + 1]
push edi
call fcn.0043b170
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428a27
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428a27
mov esp, ebp
pop ebp
ret

Function at 0x41d580
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41d5fc
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d610
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x47a42c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x104
push edi
call fcn.004283b0
mov esi, eax
test esi, esi
jns 0x41d64e
push 0
push str.Failed_to_allocate_string_for_temp_path.
push esi
push 4
push 0x7b8
jmp 0x41d7ac
push dword [edi]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x41d76e
cmp eax, 0x104
jae 0x41d76e
push 0
push 0x459794
push edi
call fcn.00428450
mov esi, eax
test esi, esi
jns 0x41d695
push 0
push str.Failed_to_append_to_temporary_directory.
push esi
push 4
push 0x7c1
jmp 0x41d7ac
push 0x27
lea eax, [ebp - 0x54]
push eax
lea eax, [ebx + 0x8c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
mov esi, eax
push 0
test esi, esi
jns 0x41d6c2
push str.Failed_to_convert_ProductCode_GUID_to_string.
push esi
push 4
push 0x7c4
jmp 0x41d7ac
lea eax, [ebp - 0x54]
push eax
push edi
call fcn.00428450
mov esi, eax
push 0
test esi, esi
jns 0x41d6e6
push str.Failed_to_append_to_temporary_directory.
push esi
push 4
push 0x7c7
jmp 0x41d7ac
push 0x459794
push edi
call fcn.00428450
mov esi, eax
push 0
test esi, esi
jns 0x41d70b
push str.Failed_to_append_to_temporary_directory.
push esi
push 4
push 0x7ca
jmp 0x41d7ac
push dword [edi]
call fcn.004181b0
mov esi, eax
push 0
test esi, esi
jns 0x41d72c
push str.Failed_to_create_temporary_directory.
push esi
push 4
push 0x7cd
jmp 0x41d7ac
lea eax, [ebx + 0xc]
push eax
push edi
call fcn.00428450
mov esi, eax
test esi, esi
jns 0x41d74d
push 0
push str.Failed_to_append_MSI_to_temporary_directory.
push esi
push 4
push 0x7d1
jmp 0x41d7ac
push 2
push dword [edi]
push ebx
call fcn.004197b0
mov esi, eax
test esi, esi
jns 0x41d7b9
push dword [edi]
push str.Failed_to_write_MSI_package_to__S.
push esi
push 4
push 0x7d4
jmp 0x41d7ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x41d783
movzx esi, si
or esi, 0x80070000
test esi, esi
mov eax, 0x80004005
cmovns esi, eax
push esi
push 0x7bd
push 0x460280
call fcn.00418700
push 0
push str.Failed_to_GetTempPath.
push esi
push 4
push 0x7bd
push 0x460280
call fcn.004188c0
add esp, 0x18
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428a27
mov esp, ebp
pop ebp
ret
Function at 0x41d9f0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x41da97
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x41da97
cmp dword [ebp + 0x10], 0
je 0x41da97
push ebx
push esi
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41da8c
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41da8c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x41da8c
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x41da8c
push 0x459820
push dword [ebp + 0x10]
call fcn.0042f470
mov esi, eax
add esp, 8
test esi, esi
jne 0x41da6f
lea eax, [esi - 3]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push ebx
push 1
push dword [ebp - 4]
call fcn.00433596
push esi
call fcn.004327aa
add esp, 0x14
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x422610
Capabilities:
Shutdown system

Disassembly:
push str.setupexe_calls_SetRebootNeededFlag
call fcn.00420880
call fcn.004170a0
push 1
push 0
push 0
push 0x122
call fcn.00422af0
push 1
push str.SeShutdownPrivilege
call fcn.00414440
add esp, 0x1c
push 1
push 1
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
test eax, eax
jne 0x422666
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InitiateSystemShutdown___failed__err_d
call fcn.00420880
add esp, 8
ret
Function at 0x425d70
Capabilities:
Terminate process

Disassembly:
push dword [0x47bc48]
push str.closeUserDialog
push str._ws____g_hReSchProcess___d
call fcn.00420880
add esp, 0xc
cmp dword [0x47bc48], 0
je 0x425dc0
push str.closeUserDialog
push str._ws____found_existing_UserDialog.exe
call fcn.00420880
push str.closeUserDialog
push str._ws____terminate_existing_UserDialog.exe
call fcn.00420880
add esp, 0x10
push 0
push dword [0x47bc48]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [0x47bc4c], 0
je 0x425df8
push str.closeUserDialog
push str._ws____found_existing_UserDialog.exe
call fcn.00420880
push str.closeUserDialog
push str._ws____terminate_existing_UserDialog.exe
call fcn.00420880
add esp, 0x10
push 0
push dword [0x47bc4c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
ret
Function at 0x426bb0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x47a42c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
push str.reboot_os__
push 1
push 0xdc
push 0x460280
xor bl, bl
call fcn.00418730
add esp, 0x14
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 0x426cb5
push 0
push str.OpenProcessToken___OK
push 1
push 0xdf
push 0x460280
call fcn.00418730
add esp, 0x14
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x426cb5
push 0
push str.LookupPrivilegeValue___OK
push 1
push 0xe3
push 0x460280
call fcn.00418730
add esp, 0x14
mov dword [ebp - 0x14], 1
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push 0
push 0
push 0
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x426cb5
push 0
push str.AdjustTokenPrivileges___OK
push 1
push 0xea
push 0x460280
call fcn.00418730
add esp, 0x14
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x426cb5
push 0
push str.ExitWindowsEx___OK
push 1
push 0xed
push 0x460280
call fcn.00418730
add esp, 0x14
mov bl, 1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x426cc3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00428a27
mov esp, ebp
pop ebp
ret
Function at 0x443f8e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00443e0d

Function at 0x447f63
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00447c23

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x3a571de9
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
mov ecx, 0x71d827c1
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x40d588
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408d3c
mov dword [ebp - 0x14], eax
cmp dword [0x4b3198], esi
jne 0x40d67b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d608
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d75b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d75b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d75b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4b3198], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4b319c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4b31a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4b31a8], eax
test eax, eax
je 0x40d678
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4b31a4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d6a0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d693
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d6b5
push 4
pop eax
jmp 0x40d75d
cmp dword [ebp - 0x14], esi
je 0x40d6b5
push dword [0x4b3198]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d69a
mov eax, dword [0x4b31a4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d713
cmp dword [0x4b31a8], edi
je 0x40d713
push eax
call ebx
push dword [0x4b31a8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d713
test eax, eax
je 0x40d713
call ecx
test eax, eax
je 0x40d708
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d708
test byte [ebp - 8], 1
jne 0x40d713
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d743
mov eax, dword [0x4b319c]
cmp eax, edi
je 0x40d740
push eax
call ebx
test eax, eax
je 0x40d740
call eax
mov esi, eax
test esi, esi
je 0x40d740
mov eax, dword [0x4b31a0]
cmp eax, edi
je 0x40d740
push eax
call ebx
test eax, eax
je 0x40d740
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4b3198]
call ebx
test eax, eax
je 0x40d75b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d75d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004040f0
mov esp, ebp
pop ebp
ret
Function at 0x1000bc2a
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1006f8ab
call fcn.1006f278
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 0x14], 0x5611
cmp dword [ebp - 0x14], 0x58d1
push edi
mov dword [ebp - 0x10], esp
jle 0x1000bc73
xor esi, esi
xor edi, edi
mov eax, edi
mov ecx, 0x106605f8
xor eax, esi
cdq
push edx
push eax
call fcn.1000be98
inc edi
cmp edi, 0x3322
jl 0x1000bc50
inc esi
cmp esi, 0x33ab
jl 0x1000bc4e
and dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x54bb
jge 0x1000bc8f
mov edx, 0x10009b20
mov ecx, 0x106605f8
call fcn.1000d867
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000bcbc
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1006f8b5
call fcn.1006f278
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 0x14], 0x108a
cmp dword [ebp - 0x14], 0x1099
push edi
mov dword [ebp - 0x10], esp
jle 0x1000bd14
push 0
push 0
push 0x1b1b
call dword [sym.imp.ADVAPI32.dll_CopySid]
xor esi, esi
xor edi, edi
mov eax, edi
mov ecx, 0x106605f8
xor eax, esi
cdq
push edx
push eax
call fcn.1000be98
inc edi
cmp edi, 0x5c93
jl 0x1000bcf1
inc esi
cmp esi, 0x6bb9
jl 0x1000bcef
and dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0xe8b
jge 0x1000bd30
mov edx, 0x10009ba0
mov ecx, 0x106605f8
call fcn.1000d867
fldz
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001cc32
Capabilities:
Get disk information
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x1001cd44
push ebx
push dword [esi]
xor ebx, ebx
push ebx
push dword [esi + 4]
call fcn.1002a209
mov dword [ebp - 8], 0xfffffffa
add esp, 0xc
mov dword [ebp - 8], ebx
cmp dword [ebp - 8], 0xfffffffe
jne 0x1001ccc3
push edi
xor edi, edi
inc edi
push 2
lea ecx, [ebp - 0x20]
call fcn.10011475
mov dword [ebp - 0xc], edi
mov dword [ebp - 0xc], ebx
jmp 0x1001cc8b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
mov dword [eax + ecx*4], 0xad95
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 2
jl 0x1001cc7b
mov dword [ebp - 0xc], ebx
jmp 0x1001cca9
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x1001cca6
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], edi
jle 0x1001cc96
mov dword [ebp - 0xc], edi
lea ecx, [ebp - 0x20]
call fcn.10011c4a
dec dword [ebp - 8]
cmp dword [ebp - 8], 0xfffffffe
je 0x1001cc69
pop edi
mov dword [ebp - 8], ebx
cmp dword [ebp - 8], 0xffffffea
jl 0x1001cd08
push 0xfffffffffffffff7
pop edx
mov dword [ebp - 0xc], 0x98f01ba0
mov dword [ebp - 0xc], ebx
jmp 0x1001cce9
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x14], 0x3617
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 2
jl 0x1001ccdb
mov dword [ebp - 0x10], edx
xor ecx, ecx
mov eax, dword [ebp - 8]
cmp eax, edx
setle cl
mov dword [ebp - 0xc], ecx
dec dword [ebp - 8]
cmp dword [ebp - 8], 0xffffffea
jge 0x1001cccf
push dword [esi + 4]
call fcn.10055a57
mov dword [esi + 4], ebx
mov dword [ebp - 0xc], 0xffffffff
pop ecx
mov dword [ebp - 0xc], 0xfffffffa
jmp 0x1001cd3b
cmp dword [ebp - 0xc], ebx
jne 0x1001cd41
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x1001cd38
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xffffffe2
jge 0x1001cd24
mov dword [esi], ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret