joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b3600
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.1400b4960
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x1400b42d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400d6168]
test eax, eax
je 0x1400b436a
lea rax, [0x1400d6140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400d6170]
mov qword [rbp - 8], rax
jmp 0x1400b434e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400b4342
cmp qword [rbp - 0x10], 0
je 0x1400b4342
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400b4308
lea rax, [0x1400d6140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400b436b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400b4470
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400b4498
mov eax, 0
jmp 0x1400b44e6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400b44c1
mov eax, 0
jmp 0x1400b44e6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400b44e1
mov eax, 0
jmp 0x1400b44e6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400b44ec
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400b456a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400b4561
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400b4561
mov rax, qword [rbp - 8]
jmp 0x1400b457f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400b4534
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1800012fc
Capabilities:
Get domain controller name

Disassembly:
mov edx, 1
jmp 0x180001308
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0xb40]
sub rsp, 0xc40
mov rax, qword [0x180019020]
xor rax, rsp
mov qword [rbp + 0xb30], rax
and qword [rsp + 0x20], 0
mov edi, edx
mov rbx, rcx
test rcx, rcx
jne 0x1800013a2
lea r8, [rsp + 0x20]
xor edx, edx
call sub.NETAPI32.dll_NetGetDCName
mov rcx, qword [rsp + 0x20]
test eax, eax
je 0x1800013c9
test rcx, rcx
je 0x180001362
call sub.NETAPI32.dll_NetApiBufferFree
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.____Error:__d_n
lea rcx, [0x18001b560]
mov r8d, eax
call fcn.18000111c
mov rcx, qword [rbp + 0xb30]
xor rcx, rsp
call fcn.1800048d0
lea r11, [rsp + 0xc40]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
lea rdx, [rbp + 0x330]
mov r8d, 0x400
call fcn.180003734
lea r8, [rsp + 0x20]
lea rdx, [rbp + 0x330]
xor ecx, ecx
call sub.NETAPI32.dll_NetGetAnyDCName
jmp 0x18000134f
test rcx, rcx
je 0x18000137e
lea rdx, [rsp + 0x30]
mov r8d, 0x400
call fcn.1800036a8
mov rcx, qword [rsp + 0x20]
call sub.NETAPI32.dll_NetApiBufferFree
lea r9, str.IP_Address
lea r8, str.Server_Name
lea rdx, str.___23s___32s_n
lea rcx, [0x18001b560]
call fcn.18000111c
lea r9, str.__________
lea r8, str.___________
lea rdx, str.___23s___32s_n
lea rcx, [0x18001b560]
call fcn.18000111c
lea r8, str.Domain_Controllers
lea rcx, [rsp + 0x30]
mov rdx, rbx
call fcn.180001460
test edi, edi
je 0x18000137e
lea r8, str.Domain_Computers
lea rcx, [rsp + 0x30]
mov rdx, rbx
call fcn.180001460
jmp 0x18000137e
Function at 0x180001308
Capabilities:
Get domain controller name

Disassembly:
mov edx, 1
jmp 0x180001308
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0xb40]
sub rsp, 0xc40
mov rax, qword [0x180019020]
xor rax, rsp
mov qword [rbp + 0xb30], rax
and qword [rsp + 0x20], 0
mov edi, edx
mov rbx, rcx
test rcx, rcx
jne 0x1800013a2
lea r8, [rsp + 0x20]
xor edx, edx
call sub.NETAPI32.dll_NetGetDCName
mov rcx, qword [rsp + 0x20]
test eax, eax
je 0x1800013c9
test rcx, rcx
je 0x180001362
call sub.NETAPI32.dll_NetApiBufferFree
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.____Error:__d_n
lea rcx, [0x18001b560]
mov r8d, eax
call fcn.18000111c
mov rcx, qword [rbp + 0xb30]
xor rcx, rsp
call fcn.1800048d0
lea r11, [rsp + 0xc40]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
lea rdx, [rbp + 0x330]
mov r8d, 0x400
call fcn.180003734
lea r8, [rsp + 0x20]
lea rdx, [rbp + 0x330]
xor ecx, ecx
call sub.NETAPI32.dll_NetGetAnyDCName
jmp 0x18000134f
test rcx, rcx
je 0x18000137e
lea rdx, [rsp + 0x30]
mov r8d, 0x400
call fcn.1800036a8
mov rcx, qword [rsp + 0x20]
call sub.NETAPI32.dll_NetApiBufferFree
lea r9, str.IP_Address
lea r8, str.Server_Name
lea rdx, str.___23s___32s_n
lea rcx, [0x18001b560]
call fcn.18000111c
lea r9, str.__________
lea r8, str.___________
lea rdx, str.___23s___32s_n
lea rcx, [0x18001b560]
call fcn.18000111c
lea r8, str.Domain_Controllers
lea rcx, [rsp + 0x30]
mov rdx, rbx
call fcn.180001460
test edi, edi
je 0x18000137e
lea r8, str.Domain_Computers
lea rcx, [rsp + 0x30]
mov rdx, rbx
call fcn.180001460
jmp 0x18000137e
Function at 0x180001460
Capabilities:
List user accounts for group

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x1b70]
mov eax, 0x1c70
call fcn.180004870
sub rsp, rax
mov rax, qword [0x180019020]
xor rax, rsp
mov qword [rbp + 0x1b60], rax
and qword [rsp + 0x48], 0
and dword [rsp + 0x40], 0
and dword [rsp + 0x54], 0
and dword [rsp + 0x50], 0
xor r14d, r14d
mov rbx, r8
mov r15, rdx
mov r13d, 0x400
test rcx, rcx
je 0x1800014c9
lea rdx, [rbp + 0x1360]
mov r8d, r13d
call fcn.180003734
test rbx, rbx
je 0x1800014e0
lea rdx, [rbp + 0xb60]
mov r8d, r13d
mov rcx, rbx
call fcn.180003734
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x48]
lea rdx, [rbp + 0xb60]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x54]
lea rcx, [rbp + 0x1360]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x28], rax
or dword [rsp + 0x20], 0xffffffff
call sub.NETAPI32.dll_NetGroupGetUsers
mov esi, eax
test eax, eax
je 0x18000152f
cmp eax, 0xea
jne 0x180001618
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x180001631
xor edi, edi
cmp dword [rsp + 0x40], edi
jbe 0x18000161d
test rbx, rbx
je 0x180001618
mov rcx, qword [rbx]
lea rdx, [rsp + 0x60]
mov r8, r13
call fcn.1800036a8
test eax, eax
je 0x18000160c
lea rax, [rsp + 0x60]
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], 0
jne 0x180001573
cmp rcx, 1
jbe 0x18000160c
movsxd rax, ecx
cmp byte [rsp + rax + 0x5f], 0x24
jne 0x18000160c
lea eax, [rcx - 1]
movsxd rcx, eax
cmp rcx, r13
jae 0x18000166b
mov byte [rsp + rcx + 0x60], 0
test r15, r15
jne 0x1800015b0
lea rcx, [rsp + 0x60]
jmp 0x1800015d7
lea r9, [rsp + 0x60]
lea r8, str._s._s
lea rcx, [rbp + 0x760]
mov rdx, r13
mov qword [rsp + 0x20], r15
call fcn.18000471c
lea rcx, [rbp + 0x760]
lea rdx, [rbp + 0x360]
mov r8d, r13d
call fcn.18000359c
lea r9, [rbp + 0x360]
lea r8, [rsp + 0x60]
lea rdx, str.___23s__s_n
lea rcx, [0x18001b560]
call fcn.18000111c
add rbx, 8
inc r14d
inc edi
cmp edi, dword [rsp + 0x40]
jb 0x180001549
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x180001631
mov rcx, rbx
call sub.NETAPI32.dll_NetApiBufferFree
xor ebx, ebx
mov qword [rsp + 0x48], rbx
cmp esi, 0xea
je 0x1800014e0
test rbx, rbx
je 0x18000164a
mov rcx, rbx
call sub.NETAPI32.dll_NetApiBufferFree
mov rcx, qword [rbp + 0x1b60]
xor rcx, rsp
call fcn.1800048d0
add rsp, 0x1c70
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.18000466c
int3

Function at 0x180001828
Capabilities:
Get domain controller name

Disassembly:
sub rsp, 0x448
mov rax, qword [0x180019020]
xor rax, rsp
mov qword [rsp + 0x430], rax
and qword [rsp + 0x20], 0
test rcx, rcx
jne 0x180001893
lea r8, [rsp + 0x20]
xor edx, edx
call sub.NETAPI32.dll_NetGetDCName
test eax, eax
jne 0x180001882
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x18000189a
lea rdx, [rsp + 0x30]
mov r8d, 0x400
call fcn.1800036a8
lea rcx, [rsp + 0x30]
xor edx, edx
call fcn.18000167c
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x18000189a
call sub.NETAPI32.dll_NetApiBufferFree
jmp 0x18000189a
xor edx, edx
call fcn.18000167c
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.1800048d0
add rsp, 0x448
ret
Function at 0x1800018b4
Capabilities:
List user account groups

Disassembly:
mov edx, 1
jmp fcn.18000167c

Function at 0x1800018c0
Capabilities:
List user accounts for group

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xf70]
mov eax, 0x1070
call fcn.180004870
sub rsp, rax
mov rax, qword [0x180019020]
xor rax, rsp
mov qword [rbp + 0xf60], rax
and qword [rsp + 0x48], 0
and dword [rsp + 0x40], 0
and dword [rsp + 0x50], 0
and dword [rsp + 0x54], 0
mov rbx, rdx
mov edi, 0x400
test rcx, rcx
je 0x18000191f
lea rdx, [rbp + 0x760]
mov r8d, edi
call fcn.180003734
test rbx, rbx
je 0x180001934
lea rdx, [rsp + 0x60]
mov r8d, edi
mov rcx, rbx
call fcn.180003734
lea rax, [rsp + 0x54]
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
lea rcx, [rbp + 0x760]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x28], rax
or dword [rsp + 0x20], 0xffffffff
call sub.NETAPI32.dll_NetGroupGetUsers
mov esi, eax
test eax, eax
je 0x18000197d
cmp eax, 0xea
jne 0x1800019b6
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x1800019cf
xor edi, edi
cmp dword [rsp + 0x40], edi
jbe 0x1800019bb
test rbx, rbx
je 0x1800019b6
mov r8, qword [rbx]
lea rdx, [0x18000f4b8]
lea rcx, [0x18001b560]
call fcn.180001210
inc edi
add rbx, 8
cmp edi, dword [rsp + 0x40]
jb 0x18000198f
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x1800019cf
mov rcx, rbx
call sub.NETAPI32.dll_NetApiBufferFree
xor ebx, ebx
mov qword [rsp + 0x48], rbx
cmp esi, 0xea
je 0x180001934
test rbx, rbx
je 0x1800019e8
mov rcx, rbx
call sub.NETAPI32.dll_NetApiBufferFree
mov rcx, qword [rbp + 0xf60]
xor rcx, rsp
call fcn.1800048d0
mov rbx, qword [rsp + 0x10a0]
add rsp, 0x1070
pop rdi
pop rsi
pop rbp
ret

Function at 0x180001a0c
Capabilities:
Get domain controller name

Disassembly:
push rbx
sub rsp, 0x440
mov rax, qword [0x180019020]
xor rax, rsp
mov qword [rsp + 0x430], rax
and qword [rsp + 0x20], 0
mov rbx, rdx
test rcx, rcx
jne 0x180001a73
lea r8, [rsp + 0x20]
xor edx, edx
call sub.NETAPI32.dll_NetGetDCName
test eax, eax
jne 0x180001a78
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov r8d, 0x400
call fcn.1800036a8
lea rcx, [rsp + 0x30]
mov rdx, rbx
call fcn.1800018c0
mov rcx, qword [rsp + 0x20]
call sub.NETAPI32.dll_NetApiBufferFree
jmp 0x180001a78
call fcn.1800018c0
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.1800048d0
add rsp, 0x440
pop rbx
ret
Function at 0x180001a94
Capabilities:
List user accounts for group

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xf70]
mov eax, 0x1070
call fcn.180004870
sub rsp, rax
mov rax, qword [0x180019020]
xor rax, rsp
mov qword [rbp + 0xf60], rax
and qword [rsp + 0x48], 0
and dword [rsp + 0x40], 0
and dword [rsp + 0x50], 0
and dword [rsp + 0x54], 0
mov rbx, rdx
mov edi, 0x400
test rcx, rcx
je 0x180001af3
lea rdx, [rbp + 0x760]
mov r8d, edi
call fcn.180003734
test rbx, rbx
je 0x180001b08
lea rdx, [rsp + 0x60]
mov r8d, edi
mov rcx, rbx
call fcn.180003734
lea rax, [rsp + 0x54]
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
lea rcx, [rbp + 0x760]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov r8d, 3
mov qword [rsp + 0x28], rax
or dword [rsp + 0x20], 0xffffffff
call sub.NETAPI32.dll_NetLocalGroupGetMembers
mov edi, eax
test eax, eax
je 0x180001b6c
cmp eax, 0xea
je 0x180001b6c
lea rdx, str.____Error:__d_n
lea rcx, [0x18001b560]
mov r8d, eax
call fcn.18000111c
jmp 0x180001ba5
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x180001bbe
xor esi, esi
cmp dword [rsp + 0x40], esi
jbe 0x180001baa
test rbx, rbx
je 0x180001ba5
mov r8, qword [rbx]
lea rdx, [0x18000f4b8]
lea rcx, [0x18001b560]
call fcn.180001210
inc esi
add rbx, 8
cmp esi, dword [rsp + 0x40]
jb 0x180001b7e
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x180001bbe
mov rcx, rbx
call sub.NETAPI32.dll_NetApiBufferFree
xor ebx, ebx
mov qword [rsp + 0x48], rbx
cmp edi, 0xea
je 0x180001b08
test rbx, rbx
je 0x180001bd7
mov rcx, rbx
call sub.NETAPI32.dll_NetApiBufferFree
mov rcx, qword [rbp + 0xf60]
xor rcx, rsp
call fcn.1800048d0
mov rbx, qword [rsp + 0x10a0]
add rsp, 0x1070
pop rdi
pop rsi
pop rbp
ret

Function at 0x180002498
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x40
and qword [rax - 0x10], 0
and dword [rax - 0x18], 0
or qword [rdx], 0xffffffffffffffff
mov dword [rax - 0x20], r8d
mov rbx, rdx
mov edx, 3
mov dword [rax - 0x28], r8d
lea r9d, [rdx - 2]
lea r8d, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x1800024d8
xor eax, eax
jmp 0x180002500
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1800024fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x217
sete cl
test ecx, ecx
je 0x1800024d8
mov eax, 1
add rsp, 0x40
pop rbx
ret

Function at 0x180002508
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
and dword [rsp + 0x60], ebx
mov rbp, rcx
test r8d, r8d
je 0x180002566
mov r14d, 0x2000
mov r8d, edi
mov edx, ebx
lea r9, [rsp + 0x60]
sub r8d, ebx
mov rcx, rbp
cmp r8d, r14d
cmova r8d, r14d
and qword [rsp + 0x20], 0
add rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18000257e
add ebx, dword [rsp + 0x60]
cmp ebx, edi
jb 0x180002534
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x18000256b
Function at 0x1800026a8
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
cmp dword [rcx], 0xa2a1de0
je 0x1800026c5
cmp dword [rcx], 0x56a2b5f0
jne 0x1800026ce
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]
add rsp, 0x28
ret

Function at 0x180002a20
Capabilities:
Enumerate network shares

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x778]
sub rsp, 0x870
mov rax, qword [0x180019020]
xor rax, rsp
mov qword [rbp + 0x760], rax
and qword [rsp + 0x48], 0
and dword [rsp + 0x40], 0
and dword [rsp + 0x50], 0
and dword [rsp + 0x54], 0
lea rdx, [rsp + 0x60]
mov r8d, 0x400
call fcn.180003734
test eax, eax
je 0x180002b78
lea r9, [0x18000f478]
lea r8, str.Share_name
lea rdx, [0x18000f8d0]
lea rcx, [0x18001b560]
call fcn.18000111c
lea r9, str._______
lea r8, str.__________
lea rdx, [0x18000f8d0]
lea rcx, [0x18001b560]
call fcn.18000111c
lea rax, [rsp + 0x54]
lea r8, [rsp + 0x48]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
or r9d, 0xffffffff
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov edx, 1
mov qword [rsp + 0x20], rax
call sub.NETAPI32.dll_NetShareEnum
mov edi, eax
test eax, eax
je 0x180002b19
cmp eax, 0xea
je 0x180002b19
lea rdx, str.____Error:__ld_n
lea rcx, [0x18001b560]
mov r8d, eax
call fcn.18000111c
jmp 0x180002b54
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x180002b6c
mov esi, 1
cmp dword [rsp + 0x40], esi
jb 0x180002b59
mov r9, qword [rbx + 0x10]
mov r8, qword [rbx]
lea rdx, str.___32s__s_n
lea rcx, [0x18001b560]
call fcn.180001210
inc esi
lea rbx, [rbx + 0x18]
cmp esi, dword [rsp + 0x40]
jbe 0x180002b2e
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x180002b6c
mov rcx, rbx
call sub.NETAPI32.dll_NetApiBufferFree
and qword [rsp + 0x48], 0
cmp edi, 0xea
je 0x180002abe
mov rcx, qword [rbp + 0x760]
xor rcx, rsp
call fcn.1800048d0
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x180002ba0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x50], 0
lea r8, [rsp + 0x50]
mov rbx, rdx
mov rdi, rcx
call fcn.180002c04
test eax, eax
je 0x180002bcb
mov rax, qword [rsp + 0x50]
jmp 0x180002bf6
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180002bdb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, rbx
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x180002c04
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x520
mov rax, qword [0x180019020]
xor rax, rsp
mov qword [rsp + 0x510], rax
mov rdi, qword [rsp + 0x30]
mov esi, dword [rsp + 0x30]
mov rbp, rcx
lea rcx, str.___THREAD.C_____________________________________________________
xor ebx, ebx
mov r15, rdx
mov rax, rcx
mov r14, r8
lea rdx, [0x18000f911]
lea r9d, [rbx + 0x40]
cmp byte [rax], 0x21
jne 0x180002c5c
mov rdi, rdx
jmp 0x180002c65
cmp byte [rax], 0x2b
jne 0x180002c67
movsx esi, byte [rax + 1]
mov byte [rax], bl
inc rdx
inc rax
dec r9
jne 0x180002c52
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180002c84
xor eax, eax
jmp 0x180002d05
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180002c7d
mov r8d, esi
mov r9, r15
xor edx, edx
xor ecx, ecx
add r8, rax
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x180002c7d
lea rdx, [rsp + 0x40]
mov rcx, rax
mov qword [r14], rax
mov dword [rsp + 0x70], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x180002c7d
lea rdx, [rsp + 0x40]
mov rcx, rdi
mov qword [rsp + 0xc0], rbp
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x180002c7d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne bl
mov eax, ebx
mov rcx, qword [rsp + 0x510]
xor rcx, rsp
call fcn.1800048d0
mov rbx, qword [rsp + 0x568]
add rsp, 0x520
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180002e44
Capabilities:
Get domain trust relationships

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
and qword [rax + 0x18], 0
xor esi, esi
lea r9, [rax + 0x10]
lea edx, [rsi + 0x3b]
lea r8, [rax + 0x18]
call qword [sym.imp.NETAPI32.dll_DsEnumerateDomainTrustsA]
test eax, eax
jne 0x180002f61
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180002f86
cmp dword [rsp + 0x48], esi
jbe 0x180002f7c
lea rdi, [rcx + 0x10]
lea rbx, [0x18001b560]
lea r9, [rdi - 0x10]
test r9, r9
je 0x180002f77
mov rax, qword [rdi - 8]
mov r9, qword [r9]
lea rdx, str._____d:__s__s
mov r8d, esi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.18000111c
test byte [rdi], 4
je 0x180002ed8
lea rdx, str.__Forest_tree_root_
mov rcx, rbx
call fcn.18000111c
jmp 0x180002ef0
test byte [rdi], 1
je 0x180002ef0
mov r8d, dword [rdi + 4]
lea rdx, str.__Forest__d_
mov rcx, rbx
call fcn.18000111c
test byte [rdi], 8
je 0x180002f04
lea rdx, str.__Primary_Domain_
mov rcx, rbx
call fcn.18000111c
test byte [rdi], 2
je 0x180002f2c
lea rdx, str.__Direct_Outbound_
mov rcx, rbx
call fcn.18000111c
test byte [rdi], 2
je 0x180002f2c
lea rdx, str.__Direct_Inbound_
mov rcx, rbx
call fcn.18000111c
test byte [rdi], 0x10
je 0x180002f40
lea rdx, str.__Native_
mov rcx, rbx
call fcn.18000111c
lea rdx, [0x18000fa1c]
mov rcx, rbx
call fcn.18000111c
add rdi, 0x38
inc esi
dec dword [rsp + 0x48]
jne 0x180002e97
jmp 0x180002f77
lea rdx, str.____Error:__d_n
lea rcx, [0x18001b560]
mov r8d, eax
call fcn.18000111c
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180002f86
call sub.NETAPI32.dll_NetApiBufferFree
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1800033a4
Capabilities:
List user accounts

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x770]
sub rsp, 0x870
mov rax, qword [0x180019020]
xor rax, rsp
mov qword [rbp + 0x760], rax
and qword [rsp + 0x48], 0
and dword [rsp + 0x40], 0
and dword [rsp + 0x50], 0
and dword [rsp + 0x54], 0
mov rbx, rcx
test rcx, rcx
je 0x1800033ff
lea rdx, [rsp + 0x60]
mov r8d, 0x400
call fcn.180003734
neg rbx
lea rax, [rsp + 0x60]
sbb r14, r14
and r14, rax
lea rax, [rsp + 0x54]
mov edx, 1
lea r9, [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
lea r8d, [rdx + 2]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov rcx, r14
mov qword [rsp + 0x28], rax
or dword [rsp + 0x20], 0xffffffff
call sub.NETAPI32.dll_NetUserEnum
mov esi, eax
test eax, eax
je 0x18000346b
cmp eax, 0xea
je 0x18000346b
lea rdx, str.____Error:__d_n
lea rcx, [0x18001b560]
mov r8d, eax
call fcn.18000111c
jmp 0x1800034b1
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x1800034ca
xor edi, edi
cmp dword [rsp + 0x40], edi
jbe 0x1800034b6
test rbx, rbx
je 0x1800034b1
test byte [rbx + 0x14], 2
mov r8, qword [rbx]
lea rcx, [0x18001b560]
lea rdx, str._s__admin__n
jne 0x1800034a0
lea rdx, [0x18000f4b8]
call fcn.180001210
inc edi
add rbx, 0x38
cmp edi, dword [rsp + 0x40]
jb 0x18000347d
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x1800034ca
mov rcx, rbx
call sub.NETAPI32.dll_NetApiBufferFree
xor ebx, ebx
mov qword [rsp + 0x48], rbx
cmp esi, 0xea
je 0x18000340d
test rbx, rbx
je 0x1800034e3
mov rcx, rbx
call sub.NETAPI32.dll_NetApiBufferFree
mov rcx, qword [rbp + 0x760]
xor rcx, rsp
call fcn.1800048d0
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x180003558
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x180019020]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1800048d0
add rsp, 0x1d8
ret