joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001008
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov dl, 1
mov cl, dl
call sub.jli.dll_JLI_InitArgProcessing
lea rcx, str._JAVA_LAUNCHER_DEBUG
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140001072
lea rcx, str.Windows_original_main_args:_n
call fcn.14000114c
xor ebx, ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
cmp dword [rax], ebx
jle 0x140001072
xor edi, edi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argv]
mov edx, ebx
lea rcx, str.wwwd_args__d____s_n
mov r8, qword [rax]
mov r8, qword [r8 + rdi]
call fcn.14000114c
inc ebx
lea rdi, [rdi + 8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
cmp ebx, dword [rax]
jl 0x140001047
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
movsxd rdi, eax
lea ecx, [rdi + 1]
movsxd rcx, ecx
shl rcx, 3
call sub.jli.dll_JLI_MemAlloc
mov rbx, rax
call sub.jli.dll_JLI_GetStdArgs
xor r9d, r9d
test edi, edi
jle 0x1400010be
xor edx, edx
mov r9d, edi
mov rcx, qword [rax]
lea rax, [rax + 0x10]
mov qword [rbx + rdx*8], rcx
inc rdx
cmp rdx, rdi
jl 0x1400010ab
mov rcx, qword [str.openjdk]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rcx, rcx
jne 0x1400010d5
mov rcx, qword [rbx]
mov rax, qword [section..data]
test rax, rax
jne 0x1400010e4
mov rax, qword [rbx]
and dword [rsp + 0x68], 0
lea r9, str._J_ms8m
mov byte [rsp + 0x60], 0
mov r8d, 3
mov byte [rsp + 0x58], 1
mov rdx, rbx
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x48], rcx
mov ecx, edi
mov qword [rsp + 0x40], rax
lea rax, [0x140002304]
mov qword [rsp + 0x38], rax
lea rax, [0x140002308]
mov qword [rsp + 0x30], rax
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
call sub.jli.dll_JLI_Launch
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x1e26a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov ecx, dword [0x0031d5c4]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x1e27c0
mov rax, qword [0x0031d5c8]
xor ebx, ebx
add rax, 0x18
mov rdx, qword [rax]
cmp rsi, rdx
jb 0x1e26ec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rsi, rdx
jb 0x1e27a6
add ebx, 1
add rax, 0x28
cmp ebx, ecx
jne 0x1e26d0
mov rcx, rsi
call fcn.001e32e0
test rax, rax
mov r12, rax
je 0x1e27f8
movsxd rbx, ebx
lea rbx, [rbx + rbx*4]
shl rbx, 3
mov r13, rbx
add r13, qword [0x0031d5c8]
mov qword [r13 + 0x20], rax
mov dword [r13], 0
call fcn.001e3430
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
mov qword [r13 + 0x18], rax
mov rax, qword [0x0031d5c8]
lea rdx, [rsp + 0x20]
mov rcx, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1e27db
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1e279f
sub eax, 0x40
and eax, 0xffffffbf
je 0x1e279f
add rbx, qword [0x0031d5c8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1e27c7
add dword [0x0031d5c4], 1
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp 0x1e3670
xor ebx, ebx
jmp 0x1e26f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.001e2630
mov rax, qword [0x0031d5c8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.001e2630
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call fcn.001e2630
nop
nop dword [rax + rax]
jmp qword [sym.imp.msvcrt.dll_memcpy]

Function at 0x1e2f50
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0031d8a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0031d880]
test rbx, rbx
je 0x1e2fa4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1e2f9b
test rsi, rsi
je 0x1e2f9b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1e2f80
lea rcx, [0x0031d8a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1e32e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x0031a1b0]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
je 0x1e3300
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call fcn.001e31c0
test eax, eax
je 0x1e32f8
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add rax, r9
movzx edx, word [rax + 0x14]
lea rdx, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x1e335d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x1e3354
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1e32f8
add rdx, 0x28
cmp rdx, r9
jne 0x1e3340
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push rdi
sub rsp, 0x80
mov rdi, rcx
test rcx, rcx
je 0x140001270
xor r8d, r8d
mov qword [rsp + 0x78], rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test eax, eax
je 0x14000125d
mov edx, ebx
mov qword [rsp + 0x50], r14
add rdx, rdx
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
je 0x14000106b
mov r8d, ebx
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp ebx, eax
je 0x140001074
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, rax
test r14, r14
je 0x140001245
movzx eax, word [r14]
cmp ax, 0x21
je 0x14000109b
cmp ax, 0x2a
je 0x14000108b
xor ebx, ebx
jmp 0x140001227
lea rcx, [r14 + 2]
call fcn.140003280
mov ebx, eax
jmp 0x140001227
mov qword [rsp + 0x70], rbp
lea rdx, [rsp + 0x90]
xor ebx, ebx
mov qword [rsp + 0x60], r12
lea rcx, [r14 + 2]
mov qword [rsp + 0x58], r13
mov ebp, ebx
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0xa8], rax
mov r13d, ebx
test rax, rax
je 0x140001216
cmp dword [rsp + 0x90], ebx
jle 0x140001216
mov qword [rsp + 0x68], rsi
movzx edi, bx
mov qword [rsp + 0x48], r15
lea rcx, [0x140060470]
mov ebp, ebx
cmp di, 0x13
jae 0x1400011a8
movzx esi, di
shl rsi, 5
mov rdx, qword [rsi + rcx + 0x10]
mov rcx, qword [rax]
call fcn.140037194
test eax, eax
mov r13d, ebx
mov r15d, eax
sete r13b
test eax, eax
jne 0x14000116a
lea rdx, [0x140060470]
mov rax, qword [rsi + rdx]
test rax, rax
jne 0x14000118f
mov edx, dword [rsi + rdx + 8]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0xa0]
mov qword [rsp + 0xa0], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
call fcn.140007010
test eax, eax
jne 0x14000117f
inc di
test r15d, r15d
je 0x1400011a8
mov rax, qword [rsp + 0xa8]
jmp 0x1400010ee
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400011a8
mov ecx, dword [rsp + 0x90]
mov rdx, qword [rsp + 0xa8]
add rdx, 8
dec ecx
call rax
mov ebp, eax
mov r15, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x68]
test r13d, r13d
jne 0x140001216
mov r9, 0xffffffffffffffff
nop
cmp word [r14 + r9*2 + 4], bx
lea r9, [r9 + 1]
jne 0x1400011c0
lea rax, [rsp + 0x98]
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0x28], rax
lea r9d, [r9*2 + 2]
lea rax, [rsp + 0xa0]
mov edx, 0x22c003
lea r8, [r14 + 2]
mov qword [rsp + 0x20], rax
call fcn.140007010
test eax, eax
je 0x140001216
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r13, qword [rsp + 0x58]
mov ebx, ebp
mov rbp, qword [rsp + 0x70]
mov r12, qword [rsp + 0x60]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x80
pop rdi
ret
mov r14, qword [rsp + 0x50]
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x78]
add rsp, 0x80
pop rdi
ret
mov rbx, qword [rsp + 0x78]
mov eax, 0xc0000001
add rsp, 0x80
pop rdi
ret
mov eax, 0xc0000001
add rsp, 0x80
pop rdi
ret
Function at 0x140001280
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, dword [0x140079eb0]
call fcn.140001320
xor edx, edx
lea rcx, [0x140001310]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov ecx, 1
call fcn.14003dc88
mov rcx, rax
call fcn.14003df34
mov edx, dword [0x140079e58]
mov ecx, eax
call fcn.14003dd50
mov ecx, 2
call fcn.14003dc88
mov rcx, rax
call fcn.14003df34
mov edx, dword [0x140079e50]
mov ecx, eax
call fcn.14003dd50
mov ecx, dword [0x140079e54]
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
xor ecx, ecx
cmp ebx, 0xc000004b
jne 0x1400012fb
call qword [sym.imp.KERNEL32.dll_ExitThread]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140003280
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r14
sub rsp, 0x60
mov r14, rcx
xor ebx, ebx
mov qword [rsp + 0x58], rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [rax*2 + 2]
mov dword [rsp + 0x98], ebx
cmp qword [0x140079ea8], rbx
je 0x140003487
cmp qword [0x140079e68], rbx
je 0x140003487
mov dword [rsp + 0x90], edx
mov rax, qword [0x140079e60]
mov rcx, qword [rax + 0x20]
mov esi, ebx
mov edi, ebx
mov dword [rsp + 0x88], edx
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
je 0x1400033a1
mov dword [rsp + 0x30], ebx
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor edx, edx
lea r8d, [rbx + 1]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x140003396
mov edx, dword [rsp + 0x88]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140003396
mov r8d, dword [rsp + 0x90]
mov rdx, r14
mov rcx, rax
call fcn.1400351a0
mov ecx, dword [rsp + 0x88]
mov dword [rsp + 0x30], ecx
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor edx, edx
lea r8d, [rbx + 1]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov esi, eax
test eax, eax
jne 0x140003396
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdi, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test esi, esi
je 0x140003487
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov r9d, dword [rsp + 0x88]
mov r8, qword [0x140079e68]
lea rdx, [0x140061bb4]
lea rcx, [0x140061a90]
call qword [sym.imp.RPCRT4.dll_NdrClientCall2]
mov qword [rsp + 0x90], rax
mov r8d, dword [rsp + 0x98]
test r8d, r8d
je 0x140003469
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x140003469
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x90]
mov rcx, qword [0x140079e60]
mov rcx, qword [rcx + 0x20]
call fcn.14000b0f0
test eax, eax
je 0x140003459
mov dword [rsp + 0x44], ebx
mov ecx, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x90]
nop dword [rax]
mov eax, ecx
shr eax, 1
cmp ebx, eax
jae 0x140003459
mov eax, ebx
cmp word [rdx + rax*2], 0
je 0x140003459
inc ebx
mov dword [rsp + 0x44], ebx
jmp 0x140003440
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140003469
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140003487
xor eax, eax
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
Function at 0x140006a40
Capabilities:
Encode data using base64 via winapi
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
xor r9d, r9d
cmp dword [0x140079ae8], ebx
mov esi, r8d
mov rbp, rdx
mov dword [rsp + 0x68], ebx
je 0x140006ad1
lea rax, [rsp + 0x68]
mov edx, esi
lea r8d, [rbx + 1]
mov qword [rsp + 0x20], rax
mov rcx, rbp
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x140006b34
mov edx, dword [rsp + 0x68]
lea ecx, [rbx + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140006b34
lea rax, [rsp + 0x68]
mov r9, rdi
lea r8d, [rbx + 1]
mov qword [rsp + 0x20], rax
mov edx, esi
mov rcx, rbp
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140006b34
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140006b34
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rbx
mov r8d, esi
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140006b2b
cmp esi, dword [rsp + 0x68]
jne 0x140006b2b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140006b50
Capabilities:
Decode data using base64 via winapi
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
xor ebx, ebx
xor r9d, r9d
cmp dword [0x140079aec], ebx
mov rsi, r8
mov rdi, rdx
mov qword [rsp + 0x30], rbx
mov rbp, rcx
je 0x140006bf6
mov qword [rdx], rbx
xor edx, edx
mov dword [r8], ebx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r8
lea r8d, [rbx + 1]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x140006c92
mov edx, dword [rsi]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rdi], rax
test rax, rax
je 0x140006c92
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
mov qword [rsp + 0x28], rbx
mov r9, rax
xor edx, edx
mov qword [rsp + 0x20], rsi
mov rcx, rbp
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov ebx, eax
test eax, eax
jne 0x140006c92
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rdi], rax
jmp 0x140006c92
mov dword [rsp + 0x28], ebx
mov edx, 0x80000000
mov r8d, 3
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140006c92
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140006c89
cmp dword [rsp + 0x44], ebx
jne 0x140006c89
mov rax, qword [rsp + 0x40]
mov ecx, 0x40
mov edx, eax
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rdi], rax
test rax, rax
je 0x140006c89
mov r8d, dword [rsi]
lea r9, [rsp + 0x78]
mov rdx, rax
mov qword [rsp + 0x20], rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140006c80
mov eax, dword [rsp + 0x78]
cmp dword [rsi], eax
jne 0x140006c80
mov ebx, 1
jmp 0x140006c89
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140006d30
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x40
xor ebx, ebx
lea rdx, str.ServicesActive
xor ecx, ecx
lea r8d, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x140006da2
lea r8d, [rbx + 0x20]
mov qword [rsp + 0x50], rdi
lea rdx, str.mimidrv
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x140006d94
lea r8, [rsp + 0x20]
mov rcx, rax
lea edx, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
ret
Function at 0x140008740
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x30
mov r15, rdx
xor r12d, r12d
mov rdx, rcx
mov ebp, r12d
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov esi, 0xc0000004
mov qword [rsp + 0x60], r14
mov ebx, 0x1000
nop word [rax + rax]
mov edx, ebx
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140008803
lea r9, [rsp + 0x68]
mov r8d, ebx
mov rdx, rax
mov ecx, 5
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
mov r14d, eax
test eax, eax
jns 0x1400087bd
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
add ebx, ebx
cmp esi, 0xc0000004
je 0x140008780
test r14d, r14d
js 0x140008803
mov rbx, rdi
nop
lea rcx, [rbx + 0x38]
mov r8b, 1
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_RtlEqualUnicodeString]
movzx ebp, al
test al, al
jne 0x1400087f4
mov eax, dword [rbx]
test eax, eax
je 0x1400087fa
add rbx, rax
jmp 0x1400087d0
mov ecx, dword [rbx + 0x50]
mov dword [r15], ecx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rsp + 0x60]
test esi, esi
mov rbx, qword [rsp + 0x70]
cmovs ebp, r12d
mov eax, ebp
add rsp, 0x30
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400091d0
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x50
mov ebx, 1
mov qword [rax + 0x20], 0
mov rsi, r8
lea r9, [rax + 8]
mov rbp, rdx
mov r14, rcx
lea rdx, [rax + 0x20]
lea r8d, [rbx + 7]
lea ecx, [rbx + 0x31]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x140009222
movabs rdx, 0xffff080000000000
mov qword [rsp + 0x88], rdx
jmp 0x14000922a
mov rdx, qword [rsp + 0x88]
mov ecx, dword [r14]
mov qword [rsp + 0x78], rdi
test ecx, ecx
je 0x14000935b
sub ecx, ebx
je 0x14000930a
cmp ecx, ebx
jne 0x140009276
mov rax, qword [r14 + 8]
mov rcx, qword [rax]
mov r10, qword [rcx + 8]
xor ecx, ecx
mov r9d, dword [r10 + 0xc]
mov r8d, dword [r10 + 8]
add r9, r10
test r8d, r8d
je 0x140009276
mov rdx, r9
cmp dword [rdx], 0x10
je 0x140009280
inc ecx
add rdx, 0xc
cmp ecx, r8d
jb 0x140009266
mov eax, 0xc0000225
jmp 0x14000939d
lea rcx, [rcx + rcx*2]
mov edi, dword [r9 + rcx*4 + 8]
add rdi, r10
je 0x140009276
xor r14d, r14d
cmp qword [rdi + 8], r14
jbe 0x14000939b
nop dword [rax + rax]
test ebx, ebx
je 0x14000939b
mov edx, dword [rdi]
mov eax, r14d
imul eax, dword [rdi + 4]
add rax, rdi
add rdx, rax
mov rax, qword [rdx + 8]
mov qword [rsp + 0x28], rax
mov eax, dword [rdx + 0x10]
mov dword [rsp + 0x30], eax
mov rax, qword [rdx]
mov qword [rsp + 0x20], rax
mov eax, dword [rdx + 0x24]
mov dword [rsp + 0x44], eax
mov rax, qword [rdx + 0x18]
mov qword [rsp + 0x38], rax
mov eax, dword [rdx + 0x20]
mov dword [rsp + 0x40], eax
mov ecx, dword [rdx + 0x28]
mov rdx, rsi
mov dword [rsp + 0x48], ecx
lea rcx, [rsp + 0x20]
call rbp
inc r14d
mov ebx, eax
mov ecx, r14d
cmp rcx, qword [rdi + 8]
jb 0x1400092a0
jmp 0x14000939b
xor edi, edi
test rdx, rdx
je 0x14000939b
test ebx, ebx
je 0x14000939b
mov rcx, qword [r14 + 8]
lea r8, [rsp + 0x20]
mov r9d, 0x30
mov rdx, rdi
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp rax, 0x30
jne 0x14000939b
mov rdx, rsi
lea rcx, [rsp + 0x20]
call rbp
add rdi, qword [rsp + 0x38]
mov ebx, eax
cmp rdi, qword [rsp + 0x88]
jb 0x140009315
jmp 0x14000939b
xor edi, edi
test rdx, rdx
je 0x14000939b
test ebx, ebx
je 0x14000939b
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp rax, 0x30
jne 0x14000939b
mov rdx, rsi
lea rcx, [rsp + 0x20]
call rbp
add rdi, qword [rsp + 0x38]
mov ebx, eax
cmp rdi, qword [rsp + 0x88]
jb 0x140009362
xor eax, eax
mov rdi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rsi
pop rbp
ret
Function at 0x140009bf0
Capabilities:
Get domain controller name

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x30
or edx, 0x40020000
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov rsi, r8
mov dword [rsp + 0x20], edx
xor ebx, ebx
mov rdx, rcx
mov qword [rsp + 0x58], rbx
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.NETAPI32.dll_DsGetDcNameW]
test eax, eax
jne 0x140009c96
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x40], rdi
mov rcx, qword [rax]
mov rax, 0xffffffffffffffff
cmp word [rcx + rax*2 + 6], bx
lea rax, [rax + 1]
jne 0x140009c41
lea eax, [rax*2 + 2]
mov ecx, 0x40
mov edx, eax
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
test rax, rax
je 0x140009c86
mov rcx, qword [rsp + 0x58]
mov r8d, edi
mov ebx, 1
mov rdx, qword [rcx]
mov rcx, rax
add rdx, 4
call fcn.1400351a0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov rdi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret
Function at 0x140009cb0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
xor ebx, ebx
mov r14, r9
mov esi, r8d
mov rbp, rdx
mov edi, ecx
cmp ecx, 0x8000
jne 0x140009d4f
cmp dword [rsp + 0x90], 4
jne 0x140009e45
lea rdx, [rsp + 0x30]
mov ecx, 0xffffff7c
call qword [sym.imp.cryptdll.dll_CDLocateCheckSum]
test eax, eax
js 0x140009e45
mov rax, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [rax + 0x10]
test eax, eax
js 0x140009e45
mov rax, qword [rsp + 0x30]
mov r8, rbp
mov rcx, qword [rsp + 0x40]
mov edx, esi
call qword [rax + Ordinal_26]
mov rax, qword [rsp + 0x30]
mov rdx, r14
mov rcx, qword [rsp + 0x40]
call qword [rax + 0x20]
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
mov ebx, eax
not ebx
shr ebx, 0x1f
call qword [rdx + Ordinal_41]
jmp 0x140009e45
mov r9d, Ordinal_26
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140009e45
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140009e38
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140009e2d
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x70]
xor r8d, r8d
mov dword [rsp + 0x20], ebx
lea edx, [r8 + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140009e2d
mov edx, dword [rsp + 0x70]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140009e2d
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x70]
mov r8, rax
mov dword [rsp + 0x20], ebx
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov edx, dword [rsp + 0x90]
mov rcx, r14
cmp dword [rsp + 0x70], edx
mov ebx, eax
cmovb edx, dword [rsp + 0x70]
mov r8d, edx
mov rdx, rdi
call fcn.1400351a0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbp, qword [rsp + 0x80]
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret