joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401250
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10
call fcn.00596bf0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
push 0
push 0
push 0xffffffffffffffff
push str.Start
push 0
push 0
mov dword [ebp - 4], 0
call esi
mov ebx, eax
lea eax, [ebx + ebx]
push eax
push 1
call fcn.0057b222
add esp, 8
push ebx
mov edi, eax
push edi
push 0xffffffffffffffff
push str.Start
push 0
push 0
call esi
push 0
push 0
push 0xffffffffffffffff
push 0x5acfa0
push 0
push 0
call esi
mov ebx, eax
lea ecx, [ebx + ebx]
push ecx
push 1
call fcn.0057b222
add esp, 8
push ebx
push eax
push 0xffffffffffffffff
push 0x5acfa0
push 0
push 0
mov dword [ebp - 8], eax
call esi
push 0x5acf08
push edi
call fcn.0057b176
add esp, 8
test eax, eax
jne 0x4012e9
mov edi, 0x5acf10
mov edx, dword [ebp - 8]
push 0x5acf08
push edx
call fcn.0057b176
add esp, 8
test eax, eax
jne 0x401305
mov dword [ebp - 8], 0x5acf10
mov eax, dword [ebp - 8]
push eax
call fcn.0057b217
mov esi, dword [ebp + 8]
add esp, 4
mov edx, esi
mov dword [ebp - 0xc], eax
call fcn.004011b0
test eax, eax
jne 0x401375
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push eax
push esi
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401375
push 4
lea edx, [ebp - 0xc]
push edx
push 4
push eax
mov eax, dword [ebp - 4]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x401369
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4013e0
Capabilities:
Create process on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5c
call fcn.00596bf0
push esi
push edi
push 0x44
lea eax, [ebp - 0x5c]
push 0
push eax
mov esi, ecx
call fcn.0057e420
xor eax, eax
add esp, 0xc
push esi
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x401431
call edi
push eax
push str.SetCurrentDirectory_failed_with_error__ld__n
jmp 0x401437
push esi
push str.SetCurrentDirectory_as__s__n
call fcn.0057b33c
mov eax, dword [ebp + 8]
add esp, 8
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x5c]
push edx
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401480
call edi
call edi
push eax
push str.CreateProcess_failed___d_._n
call fcn.0057b33c
add esp, 8
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x10]
push eax
call esi
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401fc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push ebx
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401fdd
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402012
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x40200e
lea ecx, [ecx]
cmp esi, eax
jae 0x402012
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402000
cmp esi, eax
jb 0x402019
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x405710
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3360
mov eax, dword fs:[0]
push eax
mov eax, 0x24
call fcn.00596bf0
mov eax, dword [0x616930]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov eax, 0xf
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
xor ecx, ecx
mov byte [ebp - 4], 1
mov dword [ebp - 0x30], ecx
lea esi, [eax + 1]
mov edx, 1
shl edx, cl
test edi, edx
je 0x4057e3
lea ebx, [ecx + 0x41]
cmp eax, 1
jae 0x40578e
mov eax, dword [ebp - 0x1c]
push eax
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040ba80
mov eax, dword [ebp - 0x18]
cmp eax, esi
mov eax, dword [ebp - 0x2c]
jae 0x405798
lea eax, [ebp - 0x2c]
mov byte [eax], bl
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x18], esi
jae 0x4057ac
lea eax, [ebp - 0x2c]
push 3
push 0x5ad6e4
lea ecx, [ebp - 0x2c]
mov byte [eax + 1], 0
call fcn.0040b260
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], esi
jae 0x4057ca
lea eax, [ebp + 8]
mov ecx, dword [ebp + 0x18]
push ecx
push eax
lea edx, [ebp - 0x2c]
push edx
call fcn.0040aa90
cmp eax, 0xffffffff
jne 0x405841
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
inc ecx
mov dword [ebp - 0x30], ecx
cmp ecx, 0x1a
jl 0x40576a
cmp eax, esi
jb 0x405800
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0057af7f
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp dword [ebp + 0x1c], esi
jb 0x405823
mov eax, dword [ebp + 8]
push eax
call fcn.0057af7f
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057af8a
mov esp, ebp
pop ebp
ret
push str.Drive_Folder_Cleanup_warning__n
call fcn.0057b33c
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0x40585f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0057af7f
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp dword [ebp + 0x1c], esi
jb 0x405882
mov ecx, dword [ebp + 8]
push ecx
call fcn.0057af7f
add esp, 4
mov eax, 1
jmp 0x405825
Function at 0x407040
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xc
call fcn.00596bf0
mov eax, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push ecx
push closesocket
mov dword [ebp - 4], closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x407082
cmp eax, 2
jne 0x4070aa
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 8]
push edx
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x4070b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xc
call fcn.00596bf0
lea eax, [ebp - 4]
push eax
push 1
push 0
push ecx
push closesocket
mov dword [ebp - 4], closesocket
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 1
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40714c
mov eax, dword [esi]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
lea edx, [ebp - 8]
push edx
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
push ecx
push 0
push edx
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x40713e
mov ecx, dword [ebp - 8]
add ecx, 5
push ecx
push 1
call fcn.0057b222
mov ecx, dword [ebp + 8]
add esp, 8
lea edx, [ebp - 8]
push edx
mov edx, dword [ebp - 4]
push eax
mov dword [esi], eax
lea eax, [ebp - 0xc]
push eax
push edi
push ecx
push edx
call ebx
mov edi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407a00
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x118
call fcn.00596bf0
mov eax, dword [0x616930]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x118], ecx
mov ecx, dword [ebp + 0x10]
push ecx
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407aa9
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push 0x104
lea edx, [ebp - 0x110]
push edx
push eax
mov eax, dword [ebp - 0x114]
push eax
call ebx
test eax, eax
jne 0x407a9c
nop
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x114]
push ecx
mov ecx, dword [ebp - 0x118]
lea edx, [ebp - 0x110]
push edx
push eax
call fcn.00407a00
test eax, eax
je 0x407ad9
mov edx, dword [ebp - 0x114]
push 0x104
lea ecx, [ebp - 0x110]
push ecx
push 0
push edx
call ebx
test eax, eax
je 0x407a60
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x407afb
push eax
push esi
push str.Unable_to_delete_registry_:__s____d
call fcn.00402b00
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057af8a
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057af8a
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0057af8a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407b20
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c
call fcn.00596bf0
mov eax, dword [0x616930]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x24], 1
test esi, esi
je 0x407b77
push ebx
push ebx
push 0xffffffffffffffff
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
lea eax, [edi + edi]
push eax
push 1
call fcn.0057b222
add esp, 8
push edi
mov ebx, eax
push ebx
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
jne 0x407bb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ServiceCleanup:_OpenSCManager_failed_____d_n
call fcn.00402b00
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057af8a
mov esp, ebp
pop ebp
ret
push 0xf01ff
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x407be5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ServiceCleanup:_OpenServiceW_failed_____d_n
mov dword [ebp - 0x24], esi
call fcn.00402b00
add esp, 8
jmp 0x407c9f
lea ecx, [ebp - 0x20]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x407bfe
call edi
jmp 0x407c57
cmp dword [ebp - 0x1c], 1
jne 0x407c0b
push str.ServiceCleanup:_service_is_in_stopped_state._n
jmp 0x407c4f
lea edx, [ebp - 0x20]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x407c57
call edi
lea eax, [ebp - 0x20]
push eax
push 0xc1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x407c78
call edi
push str.ServiceCleanup:_control_service_failed._from_user_stop_control_also_n
mov dword [ebp - 0x28], eax
call fcn.00402b00
add esp, 4
cmp dword [ebp - 0x28], 0
jne 0x407c57
push str.ServiceCleanup:_control_service_failed._n
call fcn.00402b00
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x407c87
call edi
push eax
push str.ServiceCleanup_:_Failed_to_delete_the_service:_d__n
call fcn.00402b00
mov dword [ebp - 0x24], 0
jmp 0x407c92
push str.ServiceCleanup:_Agent_Service_stopped_from_tools._n
call fcn.00402b00
add esp, 4
jmp 0x407c4a
push ebx
push str.ServiceCleanup_:__S_Service_Uninstalled_Successfully__n
call fcn.00402b00
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [ebp - 0x2c]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057af8a
mov esp, ebp
pop ebp
ret
Function at 0x407cc0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x138
call fcn.00596bf0
mov eax, dword [0x616930]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x138], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x124
lea eax, [ebp - 0x12c]
push 0
push eax
mov dword [ebp - 0x134], 0
call fcn.0057e420
add esp, 0xc
lea ecx, [ebp - 0x130]
push ecx
push esi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
xor bl, bl
jmp 0x407d30
lea edx, [ebp - 0x10c]
push edi
push edx
call fcn.0057b679
add esp, 8
test eax, eax
jne 0x407dbd
push edi
push str.Process_name_to_kill_:__s_n
call fcn.00402b00
mov eax, dword [ebp - 0x128]
add esp, 8
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [ebp - 0x134]
mov esi, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x134]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x407d98
push edi
push str._s_was_Killed......_n
call fcn.00402b00
add esp, 8
jmp 0x407dad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str._s_not_killed......due_to_error__d_n
call fcn.00402b00
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebp - 0x138]
mov bl, 1
lea eax, [ebp - 0x130]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x407d30
mov ecx, dword [ebp - 4]
pop esi
movzx eax, bl
xor ecx, ebp
pop ebx
call fcn.0057af8a
mov esp, ebp
pop ebp
ret
Function at 0x407df0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x13c
call fcn.00596bf0
mov eax, dword [0x616930]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x138], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x124
lea eax, [ebp - 0x12c]
push 0
push eax
mov dword [ebp - 0x134], 0
call fcn.0057e420
add esp, 0xc
lea ecx, [ebp - 0x130]
push ecx
push esi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
xor bl, bl
lea edx, [ebp - 0x10c]
push str.DCProcessMonitor.exe
push edx
call fcn.0057b679
add esp, 8
test eax, eax
jne 0x407f20
push 1
call fcn.00407f70
push str.DCProcessMonitor.exe
test eax, eax
jne 0x407f50
push str.System_privilege_process_to_kill_:__s_n
call fcn.00402b00
mov eax, dword [ebp - 0x128]
add esp, 8
push eax
push 0
push 0x1fffff
call edi
lea ecx, [ebp - 0x134]
mov esi, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x134]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x407ee5
push str.DCProcessMonitor.exe
push str._s_was_Killed......_n
call fcn.00402b00
add esp, 8
jmp 0x407efe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DCProcessMonitor.exe
push str._s_not_killed......due_to_error__d_n
call fcn.00402b00
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
mov bl, 1
call fcn.00407f70
test eax, eax
je 0x407f20
push str.Could_not_disable_Privilege..._n
call fcn.00402b00
add esp, 4
mov ecx, dword [ebp - 0x138]
lea eax, [ebp - 0x130]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x407e62
movzx eax, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057af8a
mov esp, ebp
pop ebp
ret
push str.No_privilege_to_kill__s_n
call fcn.00402b00
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0057af8a
mov esp, ebp
pop ebp
ret
Function at 0x407f70
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24
call fcn.00596bf0
mov eax, dword [0x616930]
xor eax, ebp
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40804b
lea ecx, [ebp - 0x24]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x407fdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LookupPrivilegeValue_error:__u_n
call fcn.00402b00
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0057af8a
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0x24]
movzx ecx, byte [ebp + 8]
mov eax, dword [ebp - 0x20]
push 0
push 0
push 0
mov dword [ebp - 0x14], edx
neg ecx
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
sbb ecx, ecx
push 0
and ecx, 2
push eax
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x40804b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40804b
push str.Privileges_successfully_modified_n
call fcn.00402b00
mov ecx, dword [ebp - 0x1c]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0057af8a
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
xor ecx, ebp
mov eax, 0xc0000001
call fcn.0057af8a
mov esp, ebp
pop ebp
ret 4

Function at 0x4080d0
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push 0x104
push 1
mov edi, ecx
call fcn.0057b222
add esp, 8
push edi
mov esi, eax
call fcn.00408060
push 0x2c
push 1
call fcn.0057b222
add esp, 8
mov dword [edi + 4], eax
mov ecx, str.SOFTWAREAdventNetDesktopCentralDCAgent
mov edx, eax
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x408102
mov ecx, edi
call fcn.004082b0
call fcn.004081c0
push edi
call fcn.00408400
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0x104
push esi
push str.TEMP
call ebx
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408136
sub eax, edx
add eax, 3
push eax
push 1
call fcn.0057b222
add esp, 8
mov dword [edi + 0x14], eax
mov ecx, esi
mov edx, eax
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x408154
push 0x104
push 1
call fcn.0057b222
add esp, 8
push 0x104
mov esi, eax
push esi
push str.SYSTEM32
call ebx
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408181
sub eax, edx
add eax, 3
push eax
push 1
call fcn.0057b222
add esp, 8
mov dword [edi + 0x18], eax
mov ecx, esi
mov edx, eax
nop
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4081a0
test esi, esi
je 0x4081b7
push esi
call fcn.0057bec0
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4087b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3cba
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x616930]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [0x616414]
mov edx, dword [eax + 0xc]
mov ecx, 0x616414
call edx
add eax, 0x10
mov dword [ebp + 8], eax
xor eax, eax
mov dword [ebp - 4], eax
mov edx, dword [ebx + 0x14]
cmp edx, eax
je 0x408809
mov eax, edx
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408800
sub eax, esi
push edx
mov edi, eax
lea ecx, [ebp + 8]
call fcn.00401cc0
push str.AgentUpgrader.exe
lea eax, [ebp + 8]
push eax
mov ecx, 0x11
call fcn.00401de0
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x408840
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [ebp + 8]
push edx
call fcn.00401c40
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebx + 0x14]
test edx, edx
jne 0x408852
xor eax, eax
jmp 0x408860
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408857
sub eax, esi
push edx
mov edi, eax
lea ecx, [ebp + 8]
call fcn.00401cc0
push str.DesktopcentralAgent
lea eax, [ebp + 8]
push eax
mov ecx, 0x14
call fcn.00401de0
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x408897
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [ebp + 8]
push edx
call fcn.00401c40
mov eax, dword [ebp + 8]
push 0
push eax
mov ecx, ebx
call fcn.00407160
mov edx, dword [ebx + 0x14]
test edx, edx
jne 0x4088ac
xor eax, eax
jmp 0x4088ba
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4088b1
sub eax, esi
push edx
mov edi, eax
lea ecx, [ebp + 8]
call fcn.00401cc0
push str.UEMS_Agent
lea eax, [ebp + 8]
push eax
mov ecx, 0xb
call fcn.00401de0
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x4088f1
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [ebp + 8]
push edx
call fcn.00401c40
mov eax, dword [ebp + 8]
push 0
push eax
mov ecx, ebx
call fcn.00407160
mov edx, dword [ebx + 0x18]
test edx, edx
jne 0x408906
xor eax, eax
jmp 0x408919
mov eax, edx
lea esi, [eax + 1]
jmp 0x408910
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408910
sub eax, esi
push edx
mov edi, eax
lea ecx, [ebp + 8]
call fcn.00401cc0
push str.dclibxml2.dll
lea eax, [ebp + 8]
push eax
mov ecx, 0xe
call fcn.00401de0
mov esi, dword [ebp + 8]
cmp dword [esi - 4], 1
jle 0x408950
mov ecx, dword [esi - 0xc]
push ecx
lea edx, [ebp + 8]
push edx
call fcn.00401c40
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40897a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408cc0
Capabilities:
Create process on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x58
call fcn.00596bf0
push esi
push edi
push 0x44
lea eax, [ebp - 0x58]
push 0
push eax
mov edi, ecx
mov esi, edx
call fcn.0057e420
xor eax, eax
add esp, 0xc
push esi
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x408d21
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str.SetCurrentD9irectory_failed_with_error__ld__n
call fcn.0057b33c
add esp, 8
call esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
push str.SetCurrentDirectory_as__s__n
call fcn.0057b33c
add esp, 8
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x58]
push edx
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x408d75
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, eax
call esi
push eax
push str.CreateProcess_failed___d_._n
call fcn.0057b33c
add esp, 8
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
push esi
push str.Process_Successfully_created_for__s_____s._n
call fcn.0057b33c
mov eax, dword [ebp - 0x10]
add esp, 0xc
push 0x493e0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0xc]
push edx
call esi
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret