joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004900
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x140020008]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [rsp + 0x24]
xor eax, eax
cmp dword [rsp + 0x30], 2
mov dword [0x140021dbc], ecx
sete al
mov dword [0x140021dc0], eax
test eax, eax
je 0x140004959
mov dword [0x140021dac], 1
cmp ecx, 6
jae 0x140004963
mov dword [0x140021dac], 0
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140006200
add rsp, 0x158
ret
Function at 0x140004db0
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x50
mov rax, qword [0x140020008]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebp, ebp
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov edi, ebp
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x140004ec6
lea r8d, [rbp + 1]
mov rcx, rax
lea rdx, str.XfServer
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x140004e13
mov rcx, rax
lea edi, [rbp + 1]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x140004ec6
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x140004e6f
mov r8d, 0x10020
mov qword [rsp + 0x60], rsi
lea rdx, str.XfServer
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x140004e8c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov rsi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140006200
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
setne bpl
mov eax, ebp
jmp 0x140004e6a
mov eax, 1
jmp 0x140004e6f

Function at 0x140004ed0
Capabilities:
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x140004f00
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r8d, 0xf01ff
mov qword [rsp + 0x30], rsi
lea rdx, str.XfServer
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x140004f52
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x30]
xor eax, eax
cmp ebx, 0x424
setne al
add eax, 0xfffffffe
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
or ebx, 0xffffffff
mov ecx, 1
test eax, eax
cmovne ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
mov ecx, 0xfffffffd
cmove ebx, ecx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x30]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400066b8
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140006749
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140006749
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006749
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x14000672d
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140006727
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14000672f
add rdx, 0x28
jmp 0x14000670c
xor edx, edx
test rdx, rdx
jne 0x140006738
xor al, al
jmp 0x14000674f
test dword [rdx + 0x24], 0x80000000
je 0x140006745
xor al, al
jmp 0x14000674f
mov al, 1
jmp 0x14000674f
xor al, al
jmp 0x14000674f
add rsp, 0x18
ret

Function at 0x14000b4a0
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14000b274
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000b274
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000b274
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000b274
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000b274
cmp dword [rcx + 0x84], 0xe
jbe 0x14000b274
cmp dword [rcx + 0xf8], esi
je 0x14000b274
mov ecx, r14d
call fcn.14000b3bc
mov ecx, 2
call fcn.14000d3b8
nop
cmp byte [0x1400213a0], 0
jne 0x14000b33e
mov r15d, 1
mov eax, r15d
xchg dword [0x140021390], eax
test ebx, ebx
jne 0x14000b2e7
mov rdi, qword [0x140020008]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140021398]
cmp rcx, rax
je 0x14000b2de
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.14000a41c]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400213c8]
jmp 0x14000b2f3
cmp ebx, r15d
jne 0x14000b2f9
lea rcx, [0x1400213e0]
call fcn.14000ba98
nop
test ebx, ebx
jne 0x14000b310
lea rdx, [0x140014490]
lea rcx, [0x140014470]
call fcn.14000c16c
lea rdx, [0x1400144a0]
lea rcx, [0x140014498]
call fcn.14000c16c
movzx eax, byte [0x1400213a0]
test esi, esi
cmove eax, r15d
mov byte [0x1400213a0], al
jmp 0x14000b33e
mov ecx, 2
call fcn.14000d40c
test esi, esi
jne 0x14000b355
mov ecx, r14d
call fcn.14000b370
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14000b204
Function at 0x1400055e0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x140013040]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rcx
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000561f
xor al, al
jmp 0x1400056a9
xor edx, edx
mov qword [rsp + 0x288], rsi
mov r8d, 0x234
lea rcx, [rsp + 0x24]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rbx
xor sil, sil
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140005689
nop word [rax + rax]
lea rdx, [rsp + 0x4c]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140005686
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140005660
jmp 0x140005689
mov sil, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test sil, sil
mov rsi, qword [rsp + 0x288]
cmovne eax, dword [rsp + 0x28]
test eax, eax
setne al
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14000cd50
mov rbx, qword [rsp + 0x290]
add rsp, 0x270
pop rdi
ret
Function at 0x140005b90
Capabilities:
Access peb ldr_data
Encode data using xor
Get number of processors
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x30
mov r9, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov rbx, rcx
mov byte [rax - 0x18], 0xa5
xor r8d, r8d
mov byte [rax - 0x17], 0xbc
mov r11d, 0xf
mov byte [rax - 0x16], 0xb8
movabs r10, 0xf4e6a050cdae99c1
mov byte [rax - 0x15], 0xa2
mov byte [rax - 0x14], 0xb9
mov byte [rax - 0x13], 0xec
mov byte [rax - 0x12], 0xf0
mov byte [rax - 0x11], 0xe4
mov byte [rax - 0x10], 0xc9
movzx eax, byte [rax - 0x18]
movzx eax, byte [rsp + r8 + 0x20]
mov rcx, r8
and ecx, r11d
mov rdx, r10
cmp rcx, r11
cmovae rcx, r11
shl cl, 2
shr rdx, cl
and dl, r11b
xor dl, al
lea eax, [r8 - 0x3f]
xor dl, al
mov byte [rsp + r8 + 0x20], dl
inc r8
cmp r8, 9
jb 0x140005be1
lea rdx, [rsp + 0x20]
mov rcx, r9
call fcn.14000c790
mov rcx, rax
mov rdx, rbx
call fcn.14000c790
lea rdx, [0x14000c970]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140005cc7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140005cc7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x712d5f4
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x140005cc2
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x140005ca0
cmp r8d, 0xfdeb4ef7
je 0x140005ccc
test r9d, r9d
jne 0x140005c80
mov rax, qword [rax]
jmp 0x140005c50
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
mov ecx, 0xbb8
add rax, r10
call rax
mov rbx, qword [rsp + 0x40]
mov qword [0], 1
add rsp, 0x30
pop rdi
ret
Function at 0x140008d00
Capabilities:
Access peb ldr_data
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x140013af0]
test rax, rax
jne 0x140008f36
xor ebx, ebx
mov dword [rsp + 0xb8], ebx
mov r11d, 0xd19f7f18
mov dword [rsp + 0xbc], r11d
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rcx, qword [rax + 0x10]
mov rdx, qword [rcx]
mov qword [rsp + 0x40], rdx
mov r15, rdx
mov qword [rsp + 0x48], rdx
mov rax, rdx
nop word [rax + rax]
movups xmm0, xmmword [rax + 0x58]
movups xmmword [rsp + 0x50], xmm0
movd eax, xmm0
sub ax, 8
mov word [rsp + 0x50], ax
test ebx, ebx
je 0x140008db5
mov rcx, qword [rsp + 0x58]
movzx eax, ax
shr rax, 1
lea r9, [rcx + rax*2]
mov r8d, 0xd4b9eb12
mov qword [rsp + 0x30], rcx
cmp rcx, r9
je 0x140008dac
movsx eax, byte [rcx]
xor eax, r8d
imul r8d, eax, 0x1000193
add rcx, 2
jmp 0x140008d8f
cmp r8d, ebx
jne 0x140008f0f
mov r10, qword [rdx + 0x30]
mov qword [rsp + 0x68], r10
movsxd rax, dword [r10 + 0x3c]
mov r14, qword [rax + r10 + 0x88]
mov qword [rsp + 0xc0], r14
mov r8d, r14d
add r8, r10
mov qword [rsp + 0x70], r8
shr r14, 0x20
mov dword [rsp + 0x60], r14d
cmp r8, r10
je 0x140008f0f
mov edi, dword [r8 + 0x18]
mov dword [rsp + 0x20], edi
nop word [rax + rax]
mov eax, edi
dec edi
mov dword [rsp + 0x20], edi
test eax, eax
je 0x140008f0f
mov ecx, dword [r8 + 0x20]
add rcx, r10
mov eax, dword [rcx + rdi*4]
add rax, r10
mov qword [rsp + 0x38], rax
mov r9d, 0xd4b9eb12
nop dword [rax + rax]
movsx ecx, byte [rax]
inc rax
mov qword [rsp + 0x38], rax
test cl, cl
jne 0x140008f00
cmp r9d, r11d
jne 0x140008efb
mov ecx, dword [r8 + 0x1c]
add rcx, r10
mov eax, dword [r8 + 0x24]
add rax, r10
movzx eax, word [rax + rdi*2]
mov edx, dword [rcx + rax*4]
add rdx, r10
cmp rdx, r8
jbe 0x140008f2c
lea rax, [r8 + r14]
cmp rdx, rax
jae 0x140008f2c
mov dword [rsp + 0xb0], 0xd4b9eb12
mov ecx, 0xd4b9eb12
mov dword [rsp + 0xb4], ecx
mov r8d, ecx
mov qword [rsp + 0x28], rdx
movsx eax, byte [rdx]
cmp al, 0x2e
je 0x140008eb7
xor eax, r8d
imul r8d, eax, 0x1000193
mov dword [rsp + 0xb0], r8d
inc rdx
jmp 0x140008e94
inc rdx
mov qword [rsp + 0x28], rdx
movsx eax, byte [rdx]
test al, al
je 0x140008ed7
xor eax, ecx
imul ecx, eax, 0x1000193
mov dword [rsp + 0xb4], ecx
jmp 0x140008eb7
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov rdx, qword [r15]
mov qword [rsp + 0x40], rdx
mov r11d, dword [rsp + 0xbc]
mov ebx, eax
jmp 0x140008f0f
jmp 0x140008e00
xor ecx, r9d
imul r9d, ecx, 0x1000193
jmp 0x140008e30
mov rdx, qword [rdx]
mov rax, rdx
mov qword [rsp + 0x40], rdx
cmp rdx, r15
je 0x140008f2a
cmp qword [rdx + 0x30], 0
jne 0x140008d60
xor edx, edx
mov qword [0x140013af0], rdx
mov rax, rdx
mov ecx, 0x13333337
call rax
jmp 0x140008f41
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000ab90
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
mov ecx, 0xbeef
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000abaa
test ebx, ebx
je 0x14000abb7
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
add rsp, 0x20
pop rbx
ret
Function at 0x14000cb60
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x14000cbc1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14000cb80
mov ecx, dword [r9]
jmp 0x14000ccab
cmp ecx, 0x4e0
jb 0x14000ccab
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14000cbe0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14000cc30
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x14000d894
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d8de
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d8de
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d8de
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d8de
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d8de
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000d8e0
xor al, al
add rsp, 0x28
ret
Function at 0x1400111f4
Capabilities:
Terminate process

Disassembly:
jmp 0x140013120
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x140011226
Capabilities:
Add user account

Disassembly:
jmp 0x140011ce4
jmp qword [sym.imp.NETAPI32.dll_NetUserAdd]

Function at 0x140011276
Capabilities:
Add user account
Add user account to group

Disassembly:
jmp 0x140011af0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x1f8]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x198], rax
lea rcx, [0x1400240b7]
call fcn.14001137f
nop
mov dword [rbp + 0x54], 1
mov dword [rbp + 0x74], 0
lea rax, str.newusername
mov qword [rbp + 8], rax
lea rax, str.password
mov qword [rbp + 0x10], rax
mov dword [rbp + 0x1c], 1
mov qword [rbp + 0x20], 0
mov qword [rbp + 0x28], 0
mov dword [rbp + 0x30], 1
mov qword [rbp + 0x38], 0
lea r9, [rbp + 0x74]
lea r8, [rbp + 8]
mov edx, dword [rbp + 0x54]
xor ecx, ecx
call fcn.140011226
mov dword [rbp + 0x94], eax
cmp dword [rbp + 0x94], 0
jne 0x140011c09
mov eax, 8
imul rax, rax, 1
mov qword [rbp + 0x188], rax
mov ecx, 8
imul rcx, rcx, 2
mov qword [rbp + 0x190], rcx
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
mov rcx, qword [rbp + 0x1c8]
mov rdx, qword [rbp + 0x188]
mov r9, qword [rcx + rdx]
mov rcx, qword [rbp + 0x1c8]
mov rdx, qword [rbp + 0x190]
mov r8, qword [rcx + rdx]
lea rdx, str.User__s_has_been_successfully_added_on__s_n
mov rcx, rax
call fcn.140011041
nop
jmp 0x140011c2b
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
mov r8d, dword [rbp + 0x94]
lea rdx, str.A_system_error_has_occurred_in_add_user:__d_n
mov rcx, rax
call fcn.140011339
nop
mov r8d, 8
xor edx, edx
lea rcx, [rbp + 0xb8]
call fcn.1400113ed
nop
mov rax, qword [rbp + 8]
mov qword [rbp + 0xb8], rax
mov dword [rsp + 0x20], 1
lea r9, [rbp + 0xb8]
mov r8d, 3
lea rdx, str.Users
xor ecx, ecx
call fcn.1400113e8
mov dword [rbp + 0x94], eax
cmp dword [rbp + 0x94], 0
je 0x140011c9f
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
mov r8d, dword [rbp + 0x94]
lea rdx, str.A_system_error_has_occurred_in_add_group:__d_n
mov rcx, rax
call fcn.140011339
nop
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001bb30]
call fcn.140011311
mov eax, edi
mov rcx, qword [rbp + 0x198]
xor rcx, rbp
call fcn.1400111b3
lea rsp, [rbp + 0x1a8]
pop rdi
pop rbp
ret
Function at 0x1400113e8
Capabilities:
Add user account to group

Disassembly:
jmp 0x1400117d9
jmp qword [sym.imp.NETAPI32.dll_NetLocalGroupAddMembers]

Function at 0x140012360
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113a7
movzx eax, al
test eax, eax
jne 0x140012380
mov ecx, 7
call fcn.14001131b
nop
mov byte [rsp + 0x20], 0
call fcn.14001132f
mov byte [rsp + 0x21], al
cmp dword [0x14001e868], 1
jne 0x1400123a4
mov ecx, 7
call fcn.14001131b
nop
jmp 0x1400123fc
cmp dword [0x14001e868], 0
jne 0x1400123f7
mov dword [0x14001e868], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.14001119f
test eax, eax
je 0x1400123d8
mov eax, 0xff
jmp 0x140012501
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.140011325
mov dword [0x14001e868], 2
jmp 0x1400123fc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011307
call fcn.1400112a3
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012459
mov rcx, qword [rsp + 0x30]
call fcn.140011159
movzx eax, al
test eax, eax
je 0x140012459
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140025020]
nop
call fcn.1400112d5
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001248d
mov rcx, qword [rsp + 0x38]
call fcn.140011159
movzx eax, al
test eax, eax
je 0x14001248d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011366
nop
call fcn.1400125b0
mov dword [rsp + 0x28], eax
call fcn.140011280
movzx eax, al
test eax, eax
jne 0x1400124ac
mov ecx, dword [rsp + 0x28]
call fcn.14001105a
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400124bb
call fcn.140011370
nop
xor edx, edx
mov cl, 1
call fcn.14001114a
mov eax, dword [rsp + 0x28]
jmp 0x140012501
add rsp, 0x68
ret
Function at 0x4013b0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0xd0
xor edx, edx
mov r8d, 0x68
lea r9, [rsp + 0x68]
mov r10, rcx
mov rcx, r9
call fcn.00401030
lea r11, [rsp + 0x50]
xor edx, edx
mov r8d, 0x18
mov rcx, r11
mov dword [rsp + 0x68], 0x68
mov dword [rsp + 0xa4], 1
mov word [rsp + 0xa8], 0
call fcn.00401030
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], r9
mov rdx, r10
xor r9d, r9d
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401467
mov rcx, qword [rsp + 0x50]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rcx, qword [rsp + 0x58]
call rbx
nop
add rsp, 0xd0
pop rbx
ret

Function at 0x401470
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x290
mov rbx, rcx
mov esi, edx
lea rcx, str.2.zal_b8eb1e7e_b524_41eb_bb0f_242489e274cd.
lea rdx, [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x401566
lea r10, [rsp + 0x4c]
lea rdx, [0x004030b6]
mov rcx, r10
call fcn.00401140
lea rdx, [rsp + 0x17c]
mov rcx, r10
call fcn.00401000
xor r9d, r9d
mov edx, 0x80000000
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov r8d, 1
mov rcx, r10
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, qword [sym.imp.KERNEL32.dll_FindClose]
cmp rax, 0xffffffffffffffff
mov r13, rax
jne 0x401510
mov rcx, r12
call rdi
jmp 0x401566
mov r8d, esi
lea r9, [rsp + 0x48]
mov rdx, rbx
mov rcx, rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, r13
mov esi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call rdi
test esi, esi
je 0x401566
mov r8d, dword [rsp + 0x48]
xor eax, eax
cmp r8d, eax
jle 0x40156a
mov dl, byte [rbx + rax]
lea rcx, [rbx + rax]
inc rax
cmp dl, 0xa
je 0x401561
cmp dl, 0xd
jne 0x401548
mov byte [rcx], 0
jmp 0x40156a
xor eax, eax
jmp 0x40156f
mov eax, 1
add rsp, 0x290
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret

Function at 0x401580
Capabilities:
Check os version

Disassembly:
sub rsp, 0xc8
mov dword [rsp + 0x2c], 0x94
lea rcx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
cmp dword [rsp + 0x30], 6
jne 0x4015ab
cmp dword [rsp + 0x34], 1
sete al
add rsp, 0xc8
ret
Function at 0x140001284
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x1400012c8
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.140003a30
lea rax, [rsi + 1]
cmp rax, 2
jb 0x1400012b8
mov qword [rdi], rsi
call fcn.140004b90
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x14000c1e0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1400eb280]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rcx, [rsp + 0x34]
mov r8d, 0x118
xor edx, edx
call fcn.1400bf140
mov dword [rsp + 0x30], 0x11c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rsp + 0x2c], 0
mov ecx, dword [rsp + 0x34]
mov edx, dword [rsp + 0x38]
lea rax, [rsp + 0x2c]
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x98
call fcn.140093af0
mov rsi, rax
mov edi, dword [rsp + 0x2c]
mov eax, dword [0x1400ef0a0]
mov ecx, dword [0x1400ee910]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x10]
jg 0x14000c2ac
lea r8, [0x1400ef070]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.14000c300
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140093e10
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1400ef0a0]
call fcn.140093ea4
cmp dword [0x1400ef0a0], 0xffffffff
jne 0x14000c278
xorps xmm0, xmm0
movups xmmword [0x1400ef090], xmm0
movups xmmword [0x1400ef080], xmm0
movups xmmword [0x1400ef070], xmm0
lea rcx, [0x1400ef070]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1400ef0a0]
call fcn.140093e38
jmp 0x14000c278