joyce8/EMBER2024-capa huggingface dataset:
Function at 0x76e4fde3
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path
Get file attributes
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x76e5f514]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x76e4ff5b
push esi
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
push ebx
call edi
mov esi, eax
lea eax, [ebp - 0x210]
push eax
add esi, 5
call edi
lea eax, [eax + eax + 0x10]
lea eax, [eax + esi*2 + 2]
cmp eax, 0x20a
pop ecx
pop ecx
ja 0x76e4ff57
mov esi, dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x210]
push 0x76e4ff8c
push eax
call esi
pop ecx
pop ecx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x76e4fe8e
call edi
cmp eax, 2
jne 0x76e4ff57
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x76e4fe90
test al, 0x10
je 0x76e4ff57
push ebx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x41c]
push 0x76e4ff74
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
lea eax, [ebp - 0x210]
push 0x76e4473c
push eax
call esi
lea eax, [ebp - 0x210]
push ebx
push eax
call esi
lea eax, [ebp - 0x210]
push 0x76e4ff68
push eax
call esi
mov bl, byte [ebp + 0xc]
add esp, 0x28
test bl, bl
je 0x76e4ff18
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x76e4fefa
call edi
cmp eax, 2
je 0x76e4fefa
xor bl, bl
test bl, bl
je 0x76e4ff18
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x76e4ff18
xor bl, bl
xor eax, eax
xor edi, edi
test bl, bl
sete al
push edi
push 0x80
lea eax, [eax + eax + 2]
push eax
push edi
push 3
push 0x40000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x76e4ff57
push 2
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, esi
jmp 0x76e4ff59
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.76e42a30
leave
ret 8
Function at 0x76e4ff9f
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x76e5f514]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x414], eax
mov eax, dword [ebp + 0x14]
push esi
push edi
mov dword [ebp - 0x410], eax
xor eax, eax
xor esi, esi
cmp edx, esi
mov ecx, 0x100
lea edi, [ebp - 0x407]
mov byte [ebp - 0x408], 0
mov dword [ebp - 0x40c], edx
rep stosd dword es:[edi], eax
je 0x76e50102
push 0x76e5f560
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x76e5fa8c], esi
je 0x76e50078
push ebx
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x418]
push eax
movzx eax, word [ebp - 0x41a]
mov edi, dword [sym.imp.msvcrt.dll_sprintf]
push eax
movzx eax, word [ebp - 0x41c]
push eax
movzx eax, word [ebp - 0x41e]
push eax
movzx eax, word [ebp - 0x422]
push eax
lea eax, [ebp - 0x408]
push 0x76e50128
push eax
call edi
mov ebx, dword [ebp + 0xc]
add esp, 0x1c
test ebx, ebx
mov esi, eax
je 0x76e50077
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
je 0x76e50077
push eax
lea eax, [ebp + esi - 0x408]
push 0x76e5011c
push eax
call edi
add esp, 0xc
add esi, eax
pop ebx
push dword [ebp - 0x410]
mov edi, 0x3ff
push dword [ebp - 0x414]
mov eax, edi
sub eax, esi
push eax
lea eax, [ebp + esi - 0x408]
push eax
call dword [sym.imp.msvcrt.dll__vsnprintf]
add esp, 0x10
test eax, eax
jge 0x76e500af
mov esi, edi
mov byte [ebp - 0xa], 0xa
mov byte [ebp - 0xb], 0x23
jmp 0x76e500b3
add esi, eax
je 0x76e50110
lea eax, [ebp + esi - 0x408]
cmp byte [eax - 1], 0xa
jne 0x76e50110
mov byte [ebp + esi - 0x407], 0
mov dword [0x76e5fa8c], 1
mov byte [eax - 1], 0xd
mov byte [eax], 0xa
inc esi
push 0
lea eax, [ebp - 0x428]
push eax
push esi
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x76e5f560
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.76e42a30
leave
ret 0x10
and dword [0x76e5fa8c], 0
jmp 0x76e500da

Function at 0x76e5099a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 0x57
xor esi, esi
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test al, al
jne 0x76e509b5
xor eax, eax
jmp 0x76e50a0c
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push 0x76e50a28
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x76e50a01
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x76e50a10
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x76e50a01
cmp dword [ebp - 0xc], esi
jne 0x76e50a01
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x76e50d47
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
push 1
push ebx
push ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x76e50d88
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x76e50f90
call fcn.76e42867
add esp, 0xc
jmp 0x76e50e88
push esi
push 5
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x76e50dbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x76e50f60
call fcn.76e42867
add esp, 0xc
jmp 0x76e50e70
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x24
push ebx
call edi
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x76e50dda
mov dword [ebp - 4], 8
jmp 0x76e50e6f
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
lea ecx, [ebp - 0x10]
push ecx
push 0x24
push eax
push dword [ebp - 0xc]
call esi
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x76e50e4b
call ebx
cmp eax, 0x7a
mov dword [ebp - 4], eax
je 0x76e50e13
push eax
push dword [ebp + 8]
push 0x76e50f28
call fcn.76e42867
add esp, 0xc
jmp 0x76e50e6f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x10]
push 0
call edi
test eax, eax
mov dword [ebp - 8], eax
je 0x76e50dce
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0x10]
push eax
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x76e50e4b
call ebx
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x76e50ee8
jmp 0x76e50e09
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x76e50e6b
call ebx
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x76e50eb0
jmp 0x76e50e09
and dword [ebp - 4], 0
pop edi
push dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
xor ebx, ebx
cmp dword [ebp - 0xc], ebx
je 0x76e50e87
push dword [ebp - 0xc]
call esi
pop esi
cmp dword [ebp - 4], ebx
jne 0x76e50e97
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
jmp 0x76e50ea5
cmp dword [ebp - 8], ebx
je 0x76e50ea5
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0xc
Function at 0x76e51739
Capabilities:
Get domain controller name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x76e5f514]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x1c]
push edi
push dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x28]
push edi
xor esi, esi
push 0x76e51970
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], eax
call fcn.76e42867
add esp, 0xc
test ebx, ebx
jne 0x76e51799
push 0x10
lea eax, [ebp - 0x2c]
push eax
call fcn.76e57af5
mov esi, eax
jmp 0x76e517c6
push ebx
call dword [sym.imp.msvcrt.dll_wcslen]
cmp eax, 0xf
pop ecx
jbe 0x76e517ba
lea ecx, [ebp - 0x2c]
push ecx
lea eax, [eax + eax + 4]
push eax
call sub.NETAPI32.dll_NetApiBufferAllocate
mov esi, eax
test esi, esi
jne 0x76e517da
push ebx
push dword [ebp - 0x2c]
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
test esi, esi
jne 0x76e517da
push 0x76e49df8
push dword [ebp - 0x2c]
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
test esi, esi
mov ebx, dword [ebp - 0x2c]
jne 0x76e5186e
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0x14]
push esi
push esi
push edi
push 0x3000
push ebx
push dword [ebp - 0x34]
call sub.NETAPI32.dll_DsGetDcNameWithAccountW
mov esi, eax
mov eax, 0x525
cmp esi, eax
jne 0x76e5182d
push eax
push ebx
push 0x76e51928
call fcn.76e42867
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0x14]
push 0
push 0
push edi
push dword [ebp - 0x34]
call sub.NETAPI32.dll_DsGetDcNameW
mov esi, eax
test esi, esi
jne 0x76e5186e
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x40]
mov ecx, dword [eax + 0x24]
mov edx, dword [ebp - 0x38]
push edi
push 0xffffffffffffffff
mov dword [edx], ecx
push dword [eax]
call fcn.76e428cc
mov esi, eax
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x76e51859
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
jmp 0x76e51861
push dword [ebp - 0x30]
call sub.NETAPI32.dll_NetApiBufferFree
test esi, esi
jne 0x76e5186e
push dword [edi]
push 0x76e518e8
jmp 0x76e51874
push esi
push 0x76e518a0
call fcn.76e42867
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x2c], eax
pop ecx
pop ecx
je 0x76e5188b
push dword [ebp - 0x2c]
call sub.NETAPI32.dll_NetApiBufferFree
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.76e42a30
leave
ret 0x1c
Function at 0x76e519b7
Capabilities:
Enumerate services
Query service status
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push 0x2c
push dword [ebp + 8]
xor esi, esi
push dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, esi
mov dword [ebp - 0x14], eax
jne 0x76e519fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x76e51b6c
call fcn.76e42867
pop ecx
pop ecx
jmp 0x76e51b01
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push esi
push esi
push 1
push eax
call edi
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x76e51a94
call ebx
mov esi, eax
cmp esi, 0xea
jne 0x76e51a90
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call sub.NETAPI32.dll_NetApiBufferAllocate
mov esi, eax
test esi, esi
jne 0x76e51aee
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xc]
push 1
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x76e51a5c
call ebx
mov esi, eax
jmp 0x76e51a88
xor edi, edi
cmp dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
jbe 0x76e51a88
push dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
push dword [edi + eax]
call fcn.76e519b7
mov esi, eax
test esi, esi
jne 0x76e51a88
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add edi, 0x24
cmp eax, dword [ebp - 8]
jb 0x76e51a66
push dword [ebp - 0xc]
call sub.NETAPI32.dll_NetApiBufferFree
test esi, esi
jne 0x76e51aee
lea eax, [ebp - 0x30]
push eax
push 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x76e51ac2
call ebx
mov esi, eax
cmp esi, 0x426
jne 0x76e51ab7
xor esi, esi
jmp 0x76e51aff
push esi
push dword [ebp + 8]
push 0x76e51b40
jmp 0x76e51af7
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x76e51adb
call ebx
mov esi, eax
test esi, esi
jne 0x76e51aff
cmp dword [ebp - 0x2c], 1
je 0x76e51aff
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x76e51ac2
push esi
push dword [ebp + 8]
push 0x76e51b08
call fcn.76e42867
add esp, 0xc
pop edi
pop ebx
mov eax, esi
pop esi
leave
ret 8
Function at 0x76e51cd9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 8]
push eax
push 0x20019
xor esi, esi
push esi
push 0x76e51d80
push 0x80000002
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
cmp ebx, esi
jne 0x76e51d5b
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, 0x76e51d64
push edi
push dword [ebp - 8]
call esi
mov ebx, eax
test ebx, ebx
jne 0x76e51d51
push dword [ebp + 8]
push dword [ebp - 4]
call sub.NETAPI32.dll_NetApiBufferAllocate
mov ebx, eax
test ebx, ebx
jne 0x76e51d51
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push dword [ebp - 8]
call esi
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x76e51e48
Capabilities:
Modify service
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push 0xe0000000
xor esi, esi
push 0x76e46bb4
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], 0x76e49d9c
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 0x10], eax
jne 0x76e51e90
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x76e520a4
mov dword [ebp - 4], eax
call fcn.76e42867
pop ecx
pop ecx
jmp 0x76e51fdf
cmp dword [ebp + 0xc], esi
mov dword [ebp - 8], esi
je 0x76e51fd6
push ebx
push edi
test byte [ebp + 0xc], 1
je 0x76e51fbf
cmp dword [ebp - 8], 1
ja 0x76e51fcd
mov ecx, dword [ebp + 8]
mov eax, ecx
xor esi, esi
and eax, 1
je 0x76e51ec2
push 0x2e
jmp 0x76e51ec9
test cl, 2
je 0x76e51eca
push 0x10
pop esi
mov dword [ebp - 0xc], ecx
and dword [ebp - 0xc], 0x1c
je 0x76e51ed6
or esi, 3
test eax, eax
je 0x76e51ef4
push dword [ebp - 0x10]
mov eax, dword [ebp - 8]
push dword [ebp + eax*4 - 0x14]
call fcn.76e519b7
test eax, eax
mov dword [ebp - 4], eax
jne 0x76e51fd4
mov eax, dword [ebp - 8]
mov edi, dword [ebp + eax*4 - 0x14]
push esi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
xor esi, esi
cmp ebx, esi
jne 0x76e51f2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x76e5206c
mov dword [ebp - 4], eax
call fcn.76e42867
add esp, 0xc
jmp 0x76e51fbf
cmp dword [ebp - 0xc], esi
je 0x76e51f7f
test byte [ebp + 8], 4
je 0x76e51f3a
push 2
jmp 0x76e51f4c
test byte [ebp + 8], 8
je 0x76e51f44
push 4
jmp 0x76e51f4c
test byte [ebp + 8], 0x10
je 0x76e51f4d
push 3
pop esi
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push esi
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x76e51f7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push edi
push 0x76e52020
mov dword [ebp - 4], eax
call fcn.76e42867
add esp, 0x10
test byte [ebp + 8], 2
je 0x76e51fb8
xor esi, esi
push esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x76e51fb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
mov dword [ebp - 4], eax
jne 0x76e51fa9
mov dword [ebp - 4], esi
jmp 0x76e51fb8
push eax
push edi
push 0x76e51fe8
call fcn.76e42867
add esp, 0xc
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
inc dword [ebp - 8]
shr dword [ebp + 0xc], 1
jne 0x76e51e9e
jmp 0x76e51fd4
mov dword [ebp - 4], 0x57
pop edi
pop ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
Function at 0x76e55ce7
Capabilities:
Get domain trust relationships
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x3f
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call sub.NETAPI32.dll_DsEnumerateDomainTrustsW
mov esi, eax
cmp esi, 0x32
jne 0x76e55d38
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0xa
push dword [ebp + 8]
call sub.NETAPI32.dll_DsEnumerateDomainTrustsW
mov esi, eax
cmp esi, 0x32
jne 0x76e55d38
push 0x76e55f10
call fcn.76e42867
pop ecx
xor esi, esi
cmp esi, edi
jne 0x76e55d55
cmp dword [ebp - 8], edi
je 0x76e55d55
push dword [ebp - 8]
push dword [ebp - 4]
push 0x76e55ed0
call fcn.76e5c4f0
mov esi, eax
jmp 0x76e55d62
push esi
push 0x76e55e88
call fcn.76e42867
pop ecx
pop ecx
cmp esi, edi
jne 0x76e55db8
lea eax, [ebp + 8]
push eax
push 0x76e55e18
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
cmp esi, edi
jne 0x76e55da9
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push edi
push 0x76e55e00
push dword [ebp + 8]
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x76e55db8
push esi
push 0x76e55dd0
call fcn.76e42867
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 4], edi
je 0x76e55dc5
push dword [ebp - 4]
call sub.NETAPI32.dll_NetApiBufferFree
pop edi
mov eax, esi
pop esi
leave
ret 4
Function at 0x76e5647b
Capabilities:
Get domain controller name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 1
xor edi, edi
push edi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
push edi
call sub.NETAPI32.dll_DsGetDcNameW
mov esi, eax
cmp esi, edi
je 0x76e564ab
cmp esi, 0x525
jne 0x76e564b3
xor esi, esi
jmp 0x76e564b3
push dword [ebp - 4]
call sub.NETAPI32.dll_NetApiBufferFree
cmp dword [ebp + 0x14], edi
je 0x76e564cb
cmp esi, edi
je 0x76e564e7
cmp esi, 0x51f
je 0x76e564e7
mov esi, 0x54b
jmp 0x76e564f2
cmp esi, edi
je 0x76e564eb
cmp esi, 0x51f
je 0x76e564eb
cmp esi, 0x995
je 0x76e564e7
cmp esi, 0x54b
jne 0x76e564ee
xor esi, esi
jmp 0x76e56503
push 0x34
pop esi
cmp esi, edi
je 0x76e56503
push esi
push dword [ebp + 8]
push 0x76e5650c
call fcn.76e42867
add esp, 0xc
pop edi
mov eax, esi
pop esi
leave
ret 0x10
Function at 0x76e577b3
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push 0xf003f
xor esi, esi
push esi
push 0x76e49eb8
push 0x80000002
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x76e5782d
cmp dword [ebp + 8], esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x76e57819
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x20006
push 1
push esi
push esi
push 0x76e57834
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x76e57827
push dword [ebp - 8]
call edi
jmp 0x76e57827
push 0x76e57834
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 4]
call edi
pop edi
pop esi
leave
ret 4

Function at 0x76e57851
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [eax], ebx
cmp word [edi], 0x5c
mov dword [ebp - 4], ebx
je 0x76e578a1
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 6]
push eax
call sub.NETAPI32.dll_NetApiBufferAllocate
mov esi, eax
cmp esi, ebx
jne 0x76e578a4
push edi
push 0x76e57ae4
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
jmp 0x76e578a4
mov dword [ebp - 4], edi
push dword [ebp - 4]
push 0x76e57aa0
call fcn.76e42867
cmp esi, ebx
pop ecx
pop ecx
jne 0x76e57947
lea eax, [ebp - 0xc]
push eax
push 0x80000002
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov esi, eax
cmp esi, ebx
jne 0x76e57947
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push 0x76e57a30
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x76e57942
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x76e57a04
push dword [ebp - 8]
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x76e5793d
push dword [ebp + 8]
push 0x76e579c0
call fcn.76e42867
cmp dword [ebp + 8], esi
pop ecx
pop ecx
je 0x76e5793d
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
push dword [ebp - 8]
call ebx
push dword [ebp - 0xc]
call ebx
cmp dword [ebp - 4], edi
je 0x76e57954
push dword [ebp - 4]
call sub.NETAPI32.dll_NetApiBufferFree
test esi, esi
je 0x76e57967
push esi
push 0x76e57970
call fcn.76e42867
pop ecx
pop ecx
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x76e5c00b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
xor bl, bl
cmp dword [ebp + 8], edi
jne 0x76e5c026
push 0x57
pop eax
jmp 0x76e5c0e5
lea eax, [ebp - 8]
push eax
push 1
push edi
push 0x76e49e50
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x76e5c0e2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push 0x76e49e18
push dword [ebp - 8]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x76e5c079
cmp dword [ebp - 0x10], 1
jne 0x76e5c083
jmp 0x76e5c081
cmp eax, 2
jne 0x76e5c083
mov dword [ebp - 4], edi
mov bl, 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], edi
jne 0x76e5c0e2
cmp bl, 1
jne 0x76e5c0e2
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
call esi
test eax, eax
pop ecx
jbe 0x76e5c0c0
mov edi, dword [ebp + 8]
push edi
call esi
lea edi, [edi + eax*2 - 2]
cmp word [edi], 0x2e
pop ecx
jne 0x76e5c0be
and word [edi], 0
jmp 0x76e5c0c0
xor edi, edi
push dword [ebp + 8]
push 6
call dword [sym.imp.KERNEL32.dll_SetComputerNameExW]
test eax, eax
pop esi
jne 0x76e5c0d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
test edi, edi
je 0x76e5c0e2
mov word [edi], 0x2e
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 4

Function at 0x76e5c421
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
or dword [ebp - 4], 0xffffffff
push esi
push edi
mov esi, 0x20a
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x76e5c44a
push 8
pop esi
jmp 0x76e5c4e3
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov esi, eax
test esi, esi
je 0x76e5c4b6
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [eax + esi + 1]
cmp eax, 0x104
pop ecx
jb 0x76e5c472
push 0x7b
pop esi
jmp 0x76e5c4cd
push dword [ebp + 8]
push edi
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x76e5c4b6
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x76e5c4c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x76e5c4cd
mov esi, dword [ebp - 8]
sub esi, dword [ebp + 0x10]
neg esi
sbb esi, esi
and esi, 0x7a
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 4], 0xffffffff
je 0x76e5c4e3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
leave
ret 0xc