joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4486b1
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi], ebx
jne 0x448738
push dword [esi + 8]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esi], eax
test eax, eax
jne 0x448738
push 2
call fcn.00413e90
pop ecx
test al, al
je 0x448721
inc ebx
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0xd9
push str.d:webapps_b_build_slave_repo_build_srcwow_tools_servicepublicwow_launch_process_with_token.cc
lea ecx, [ebp - 0xbc]
call fcn.00414780
push dword [esi + 8]
add eax, 0x10
push str.Failed_to_open_the_process
push eax
call fcn.0040b370
pop ecx
pop ecx
mov ecx, eax
call fcn.0040f2e0
test bl, 1
je 0x448731
lea ecx, [ebp - 0xbc]
call fcn.004147b0
xor al, al
jmp 0x448800
cmp dword [esi + 4], ebx
jne 0x44879d
push dword [esi + 0xc]
push ebx
push 0x1f03fb
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [esi + 4], eax
test eax, eax
jne 0x44879d
push 2
call fcn.00413e90
pop ecx
test al, al
je 0x448798
push 2
pop ebx
call sub.KERNEL32.dll_GetLastError
push eax
push ebx
push 0xf4
push str.d:webapps_b_build_slave_repo_build_srcwow_tools_servicepublicwow_launch_process_with_token.cc
lea ecx, [ebp - 0xbc]
call fcn.00414780
push dword [esi + 0xc]
add eax, 0x10
push str.Failed_to_open_the_thread
push eax
call fcn.0040b370
pop ecx
pop ecx
mov ecx, eax
call fcn.0040f2e0
test bl, 2
jmp 0x448724
test byte [ebp + 8], 4
jne 0x4487fe
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jne 0x4487fe
push 2
call fcn.00413e90
pop ecx
test al, al
je 0x4487f6
push 4
pop ebx
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0xfd
push str.d:webapps_b_build_slave_repo_build_srcwow_tools_servicepublicwow_launch_process_with_token.cc
lea ecx, [ebp - 0xbc]
call fcn.00414780
push dword [esi + 0xc]
add eax, 0x10
push str.Failed_to_resume_the_thread
push eax
call fcn.0040b370
pop ecx
pop ecx
mov ecx, eax
call fcn.0040f2e0
test bl, 4
jmp 0x448724
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x448806
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push ebx
push eax
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 4], ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44887b
push 2
call fcn.00413e90
pop ecx
test al, al
je 0x448867
inc ebx
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x114
push str.d:webapps_b_build_slave_repo_build_srcwow_tools_servicepublicwow_launch_process_with_token.cc
lea ecx, [ebp - 0xd8]
call fcn.00414780
add eax, 0x10
push str.Failed_to_receive_CreateProcessAsUser_response
push eax
call fcn.0040b370
pop ecx
pop ecx
test bl, 1
je 0x448877
lea ecx, [ebp - 0xd8]
call fcn.004147b0
xor al, al
jmp 0x4488a8
cmp dword [ebp - 4], 0x1c
je 0x44888e
push 0x2c3
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x448877
cmp dword [ebp - 0x1c], ebx
jne 0x448898
push dword [ebp - 0x18]
jmp 0x448886
push esi
push edi
mov edi, dword [ebp + 0xc]
lea esi, [ebp - 0x14]
mov al, 1
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44a799
Capabilities:
Modify service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0x492250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x28]
xor ebx, ebx
push eax
push 0x17
lea esi, [ecx + 0x1c]
mov dword [ebp - 0x24], ebx
push 0xf003f
push esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], esi
call fcn.0044a55c
add esp, 0x10
test eax, eax
js 0x44a95e
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push edi
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x44a8b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x44a8b4
push dword [ebp - 0x2c]
call fcn.0045a324
pop ecx
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x44a8a6
cmp dword [esi + 4], 2
je 0x44a8a6
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [esi + 8]
push 2
push dword [esi]
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x44a8a6
push 2
call fcn.00413e90
pop ecx
test al, al
je 0x44a88e
xor eax, eax
inc eax
mov dword [ebp - 0x24], eax
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0xe1
push str.d:webapps_b_build_slave_repo_build_srcwow_tools_servicewow_nt_service.cc
lea ecx, [ebp - 0xe8]
call fcn.00414780
push dword [ebp - 0x30]
add eax, 0x10
push str.Failed_change_service_config:
push eax
call fcn.0040b370
pop ecx
pop ecx
push eax
call fcn.00447986
pop ecx
pop ecx
mov eax, dword [ebp - 0x24]
test al, 1
je 0x44a8a6
and eax, 0xfffffffe
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0x24], eax
call fcn.004147b0
test esi, esi
je 0x44a8b1
push esi
call fcn.0045a32d
pop ecx
mov esi, dword [ebp - 0x30]
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x44a92c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x44a95c
push 2
call fcn.00413e90
pop ecx
test al, al
je 0x44a918
or dword [ebp - 0x24], 2
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0xeb
push str.d:webapps_b_build_slave_repo_build_srcwow_tools_servicewow_nt_service.cc
lea ecx, [ebp - 0xe8]
call fcn.00414780
push esi
add eax, 0x10
push str.Failed_start_service:
push eax
call fcn.0040b370
pop ecx
pop ecx
push eax
call fcn.00447986
pop ecx
pop ecx
mov eax, dword [ebp - 0x24]
test al, 2
je 0x44a95e
lea ecx, [ebp - 0xe8]
call fcn.004147b0
jmp 0x44a95e
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea edi, [ebp - 0x1c]
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x20], ebx
rep stosd dword es:[edi], eax
jmp 0x44a94f
cmp dword [ebp - 0x1c], 2
jne 0x44a95c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x28]
call esi
test eax, eax
jne 0x44a941
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.00449b08
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045a313
mov esp, ebp
pop ebp
ret
Function at 0x44a9c9
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x492250]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x24], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push eax
push esi
call fcn.0044a358
pop ecx
pop ecx
test al, al
jne 0x44aa45
push 0
call fcn.00413e90
xor ebx, ebx
inc ebx
pop ecx
test al, al
je 0x44aa2e
push 0
push 0x12f
push str.d:webapps_b_build_slave_repo_build_srcwow_tools_servicewow_nt_service.cc
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0x24], ebx
call fcn.00413f50
add eax, 8
push str.Service_not_installed.
push eax
call fcn.0040b370
pop ecx
pop ecx
test byte [ebp - 0x24], 1
je 0x44aabf
lea ecx, [ebp - 0xd4]
call fcn.00414010
jmp 0x44aabf
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push edi
push eax
push 0x24
push 0xf003f
push esi
call fcn.0044a55c
add esp, 0x10
test eax, eax
js 0x44aab4
and dword [ebp - 0x20], 0
lea edi, [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
xor eax, eax
push 6
pop ecx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
xor ebx, ebx
push eax
inc ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x44aab4
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
jmp 0x44aaa7
cmp dword [ebp - 0x1c], ebx
jbe 0x44aab6
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
lea eax, [ebp - 0x20]
push eax
push esi
call edi
test eax, eax
jne 0x44aa8e
jmp 0x44aab6
xor bl, bl
lea ecx, [ebp - 0x24]
call fcn.00449b08
pop edi
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.0045a313
mov esp, ebp
pop ebp
ret
Function at 0x44ab6e
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push ebx
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call fcn.0044a358
pop ecx
pop ecx
test al, al
jne 0x44abd9
push ebx
call fcn.00413e90
pop ecx
test al, al
je 0x44abc1
push 0
push 0x147
push str.d:webapps_b_build_slave_repo_build_srcwow_tools_servicewow_nt_service.cc
lea ecx, [ebp - 0xb8]
inc ebx
call fcn.00413f50
add eax, 8
push str.Service_not_installed.
push eax
call fcn.0040b370
pop ecx
pop ecx
test bl, 1
je 0x44abd1
lea ecx, [ebp - 0xb8]
call fcn.00414010
xor eax, eax
inc eax
jmp 0x44ad64
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044a9c9
pop ecx
pop ecx
xor ecx, ecx
mov edi, str.d:webapps_b_build_slave_repo_build_srcwow_tools_servicewow_nt_service.cc
inc ecx
mov dword [ebp - 8], ecx
test al, al
jne 0x44ac42
push ecx
call fcn.00413e90
pop ecx
test al, al
je 0x44ac2f
push 2
pop ebx
call sub.KERNEL32.dll_GetLastError
push eax
xor eax, eax
lea ecx, [ebp - 0xc0]
inc eax
push eax
push 0x14c
push edi
call fcn.00414780
add eax, 0x10
push str.Unable_to_stop_service.
push eax
call fcn.0040b370
pop ecx
pop ecx
test bl, 2
je 0x44ac42
lea ecx, [ebp - 0xc0]
and ebx, 0xfffffffd
call fcn.004147b0
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x10020
push 0xf003f
push dword [ebp + 8]
call fcn.0044a55c
add esp, 0x10
test eax, eax
js 0x44ad0c
cmp dword [ebp - 4], 0
je 0x44ad0c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x44acc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
je 0x44acc8
push 2
call fcn.00413e90
pop ecx
test al, al
je 0x44acc3
or ebx, 8
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x158
push edi
lea ecx, [ebp - 0xc0]
call fcn.00414780
add eax, 0x10
push str.Unable_to_delete_service.
push eax
call fcn.0040b370
pop ecx
pop ecx
test bl, 8
jmp 0x44ad47
push 0
call fcn.00413e90
pop ecx
test al, al
je 0x44acfa
push 0
push 0x15c
push edi
lea ecx, [ebp - 0xb8]
or ebx, 0x10
call fcn.00413f50
add eax, 8
push str.Service_uninstalled.
push eax
call fcn.0040b370
pop ecx
pop ecx
test bl, 0x10
je 0x44ad58
lea ecx, [ebp - 0xb8]
call fcn.00414010
jmp 0x44ad58
push 1
call fcn.00413e90
pop ecx
test al, al
je 0x44ad44
or ebx, 4
call sub.KERNEL32.dll_GetLastError
push eax
push 1
push 0x153
push edi
lea ecx, [ebp - 0xc0]
call fcn.00414780
add eax, 0x10
push str.Unable_to_open_service.
push eax
call fcn.0040b370
pop ecx
pop ecx
test bl, 4
je 0x44ad54
lea ecx, [ebp - 0xc0]
call fcn.004147b0
mov byte [ebp - 8], 0
lea ecx, [ebp - 4]
call fcn.00449b08
mov al, byte [ebp - 8]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44b874
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push str.SYSTEM
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov ebx, eax
test ebx, ebx
je 0x44ba10
push edi
push esi
call fcn.0046303a
pop ecx
push 0
push 0x15180
mov edi, edx
mov esi, eax
push edi
push esi
call fcn.0045a480
sub esi, eax
lea eax, [ebp - 8]
push eax
sbb edi, edx
mov dword [ebp - 0x10], esi
xor ecx, ecx
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0xc]
mov dword [ebp - 4], ecx
push eax
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 0xc], ecx
push eax
push ecx
push 9
push ebx
mov dword [ebp - 8], ecx
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00462f47
pop ecx
pop ecx
mov edi, eax
jmp 0x44b9d9
test edi, edi
je 0x44b9e8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push edi
push 0
push 9
push ebx
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
test eax, eax
je 0x44b9e8
xor ecx, ecx
mov eax, edi
mov dword [ebp - 4], eax
cmp dword [ebp - 0x14], ecx
jg 0x44b9eb
jl 0x44b930
cmp esi, dword [edi + 0xc]
ja 0x44b9eb
cmp dword [edi + 0x14], 0x400003e9
jne 0x44b972
cmp word [edi + 0x18], 1
jne 0x44b972
mov esi, dword [edi + 0x24]
mov edx, ecx
add esi, edi
test esi, esi
je 0x44b966
mov ecx, esi
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44b953
sub ecx, dword [ebp - 0x18]
inc esi
add esi, ecx
inc edx
cmp edx, 2
jl 0x44b947
push esi
call fcn.00405580
pop ecx
mov ecx, dword [ebp + 0xc]
jmp 0x44b98d
cmp dword [edi + 0x14], 0x29
jne 0x44b99b
cmp word [edi + 0x18], cx
jne 0x44b99b
mov esi, dword [edi + 0x24]
add esi, edi
push esi
call fcn.00405580
pop ecx
mov ecx, dword [ebp + 8]
push eax
push esi
call fcn.00409fc0
mov esi, dword [ebp - 0x10]
xor ecx, ecx
jmp 0x44b9a8
cmp dword [edi + 0x14], 0xc
jne 0x44b9a8
cmp word [edi + 0x18], 4
je 0x44b9eb
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ecx
push edi
push ecx
push 9
push ebx
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00462f47
pop ecx
pop ecx
xor ecx, ecx
mov edi, eax
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], ecx
cmove eax, ecx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x44b8ee
mov eax, dword [ebp - 4]
test eax, eax
je 0x44b9f9
push eax
call fcn.0045ffec
mov eax, dword [ebp - 4]
pop ecx
test edi, edi
je 0x44ba08
cmp edi, eax
je 0x44ba08
push edi
call fcn.0045ffec
pop ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452fe6
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x492250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
cmp dword [edi], ebx
jne 0x45300b
mov al, 1
jmp 0x4530c1
push str.D:_A__GA___WD_
lea ecx, [ebp - 0x1c]
call fcn.004086a0
lea eax, [ebp - 0x1c]
push eax
call fcn.004569e8
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.004099c0
mov dword [ebp - 0x28], 0xc
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ebx
cmp dword [edi + 0xc], ebx
jne 0x4530a1
push ecx
push ecx
mov ecx, esp
push dword [edi + 8]
call fcn.00408500
lea eax, [ebp - 0x1c]
push eax
call fcn.00416590
push str.lock
call fcn.004054f0
add esp, 0x10
lea ecx, [ebp - 0x1c]
push eax
push str.lock
call fcn.0040bc50
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi + 0xc], eax
lea ecx, [ebp - 0x1c]
push ebx
push 1
test eax, eax
jne 0x45309c
call fcn.004099c0
jmp 0x4530b4
call fcn.004099c0
push dword [ebp + 8]
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb al, al
lea ebx, [eax + 1]
test esi, esi
je 0x4530bf
push esi
call fcn.0045a32d
pop ecx
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045a313
mov esp, ebp
pop ebp
ret 4
Function at 0x454637
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
and dword [ebp - 4], 0
push ebx
push 0x38
call fcn.0045a053
pop ecx
test eax, eax
je 0x454659
mov ecx, eax
call fcn.0042c950
mov ebx, eax
jmp 0x45465b
xor ebx, ebx
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.0041e350
test al, al
je 0x4546bb
push edi
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [ebp - 0x24]
mov eax, 0x1000
test edx, edx
cmove edx, eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x28]
dec eax
push edx
add eax, ecx
push eax
push ecx
call fcn.004546c5
add esp, 0xc
pop edi
test eax, eax
jne 0x4546bb
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
push ebx
and dword [esi], eax
call fcn.00445000
mov eax, esi
pop esi
jmp 0x4546c0
mov eax, dword [ebp + 8]
mov dword [eax], ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4548c3
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x492250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
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
pop edi
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x45494c
push edi
call fcn.00413e90
pop ecx
test al, al
je 0x454938
push edi
push 0x2c
push str.d:webapps_b_build_slave_repo_build_srcwow_basewinwow_priviledge_utils.cc
lea ecx, [ebp - 0xc4]
inc ebx
call fcn.00413f50
add eax, 8
push str.AllocateAndInitializeSid_failed.
push eax
call fcn.0040b370
pop ecx
pop ecx
test bl, 1
je 0x454948
lea ecx, [ebp - 0xc4]
call fcn.00414010
xor al, al
jmp 0x4549a9
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test esi, esi
pop esi
jne 0x4549a3
push edi
call fcn.00413e90
pop ecx
test al, al
je 0x45499e
push edi
push 0x34
push str.d:webapps_b_build_slave_repo_build_srcwow_basewinwow_priviledge_utils.cc
lea ecx, [ebp - 0xc4]
mov ebx, edi
call fcn.00413f50
add eax, 8
push str.CheckTokenMembership_failed.
push eax
call fcn.0040b370
pop ecx
pop ecx
test bl, 2
jmp 0x45493b
cmp dword [ebp - 0x10], ebx
setne al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0045a313
mov esp, ebp
pop ebp
ret
Function at 0x456366
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x492250]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ebx
cmp dword [eax + 0x10], ebx
jne 0x456391
xor al, al
jmp 0x4564a6
cmp dword [eax + 0x14], 8
jb 0x456399
mov eax, dword [eax]
movzx eax, word [eax]
push esi
push edi
mov esi, str..X:
lea edi, [ebp - 0x14]
push ebx
push ebx
push 3
movsd dword es:[edi], dword [esi]
push ebx
push 3
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x4c], esi
cmp esi, 0xffffffff
jne 0x4563d2
xor al, al
jmp 0x4564a4
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
push eax
push 0x28
lea eax, [ebp - 0x48]
mov dword [ebp - 0x20], ebx
push eax
push 0xc
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], ebx
push eax
push 0x2d1400
push esi
mov edi, ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x45640b
mov edi, dword [ebp - 0x2c]
jmp 0x456495
push 2
call fcn.00413e90
pop ecx
test al, al
je 0x456485
push 4
pop ebx
push 2
push 0x96
push str.d:webapps_b_build_slave_repo_build_srcwow_basewinwow_machine_info_utils_win.cc
lea ecx, [ebp - 0x104]
call fcn.00413f50
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.__DeviceIoControl_failed_with_error_code:
push dword [ebp - 0x50]
lea eax, [ebp - 0x14]
push str.__volume_path:
push eax
lea eax, [esi + 8]
push str.When_volume_access_path:
push eax
call fcn.0040b370
pop ecx
pop ecx
push eax
call fcn.00414830
pop ecx
pop ecx
push eax
call fcn.0040b370
pop ecx
pop ecx
push eax
call fcn.00447986
pop ecx
pop ecx
push eax
call fcn.0040b370
pop ecx
pop ecx
mov ecx, eax
call fcn.0040f2e0
mov esi, dword [ebp - 0x4c]
test bl, 4
je 0x456495
lea ecx, [ebp - 0x104]
call fcn.00414010
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp edi, 7
sete al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0045a313
mov esp, ebp
pop ebp
ret
Function at 0x4570ce
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37c8
call fcn.0045a360
mov eax, dword [0x492250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov ebx, edi
mov esi, edi
push esi
lea eax, [ebp - 0x104]
push str..PhysicalDrive_d
push eax
call fcn.00457453
add esp, 0xc
lea eax, [ebp - 0x104]
push edi
push edi
push 3
push edi
push 3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x37c8], eax
cmp eax, 0xffffffff
je 0x4572b7
mov dword [ebp - 0x37c4], edi
xor eax, eax
lea edi, [ebp - 0x37c0]
stosd dword es:[edi], eax
push 0x2710
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x37b4]
xor edi, edi
push edi
push eax
mov dword [ebp - 0x37c0], edi
mov dword [ebp - 0x37bc], edi
call fcn.0045c050
add esp, 0xc
lea eax, [ebp - 0x37c4]
push edi
mov edi, dword [ebp - 0x37c8]
push eax
push 0x2710
lea eax, [ebp - 0x37b4]
push eax
push 0xc
lea eax, [ebp - 0x37c0]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4572ae
lea eax, [ebp - 0xcbc]
push eax
push 0
push dword [ebp - 0x37a8]
lea eax, [ebp - 0x37b4]
push eax
call fcn.004572d4
lea eax, [ebp - 0x8d4]
push eax
push 0
push dword [ebp - 0x37a4]
lea eax, [ebp - 0x37b4]
push eax
call fcn.004572d4
lea eax, [ebp - 0x10a4]
push eax
push 0
push dword [ebp - 0x37a0]
lea eax, [ebp - 0x37b4]
push eax
call fcn.004572d4
lea eax, [ebp - 0x4ec]
push eax
push 1
push dword [ebp - 0x379c]
lea eax, [ebp - 0x37b4]
push eax
call fcn.004572d4
add esp, 0x40
cmp byte [0x493490], 0
jne 0x457274
movsx eax, byte [ebp - 0x4ec]
push eax
call fcn.004653a2
pop ecx
test eax, eax
jne 0x45722e
movsx eax, byte [ebp - 0x4d9]
push eax
call fcn.004653a2
pop ecx
test eax, eax
je 0x457274
xor eax, eax
cmp byte [ebp - 0x4ec], 0x20
jne 0x457244
inc eax
cmp byte [ebp + eax - 0x4ec], 0x20
je 0x457239
lea ecx, [ebp - 0x4ec]
mov edx, 0x493490
add ecx, eax
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x457253
xor ecx, ecx
mov al, byte [ebp + ecx - 0x8d4]
mov byte [ecx + 0x493890], al
inc ecx
test al, al
jne 0x45725f
xor ebx, ebx
inc ebx
push 0x2710
lea eax, [ebp - 0x37b4]
push 0
push eax
call fcn.0045c050
add esp, 0xc
lea eax, [ebp - 0x37c4]
xor ecx, ecx
push ecx
push eax
push 0x2710
lea eax, [ebp - 0x37b4]
push eax
push ecx
push ecx
push 0x700a0
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
inc esi
cmp esi, 0x10
jl 0x4570ee
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045a313
mov esp, ebp
pop ebp
ret

Function at 0x457497
Capabilities:
Hash data with md5

Disassembly:
push esi
push 0x40
mov esi, ecx
push 0
push esi
call fcn.0045c050
and dword [esi + 0x44], 0
add esp, 0xc
and dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x48], 0x67452301
mov dword [esi + 0x4c], 0xefcdab89
mov dword [esi + 0x50], 0x98badcfe
mov dword [esi + 0x54], 0x10325476
pop esi
ret

Function at 0x470928
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004707a7
Function at 0x472dc1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00472a81