joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800798d0
Capabilities:
Execute anti-debugging instructions

Disassembly:
sub rsp, 0x28
call fcn.18000cd00
test al, al
je 0x180079905
call fcn.180013f00
mov ecx, eax
lea rax, [0x18050ec10]
movzx edx, word [rax + rcx*2]
mov ecx, dword [0x18050e6dc]
cmp edx, ecx
jl 0x1800798fe
mov eax, edx
cdq
idiv ecx
mov eax, edx
add rsp, 0x28
ret
mov qword [rsp + 0x30], rbx
mov eax, 1
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x20], r14
lock xadd dword [0x18050ec0c], eax
mov esi, dword [0x18050ec08]
inc eax
mov edi, dword [0x18050e6dc]
xor edx, edx
mov r14, qword [0x18050ec00]
xor r11d, r11d
div esi
mov ebx, 0x3b9aca00
mov r10d, r11d
mov ebp, edx
mov ecx, ebx
test edi, edi
jle 0x1800799c8
nop word [rax + rax]
rdtsc
shl rdx, 0x20
or rax, rdx
mov r9, rax
rdtsc
mov r8d, r10d
shl rdx, 0x20
imul r8d, esi
or rax, rdx
inc r8d
add r8d, ebp
shl r8d, 7
movzx r8d, byte [r8 + r14]
sub r8d, r9d
add r8d, eax
cmp r8d, ebx
jge 0x1800799a0
mov ecx, ebx
mov r11d, r10d
mov ebx, r8d
jmp 0x1800799a7
cmp r8d, ecx
cmovl ecx, r8d
inc r10d
cmp r10d, edi
jl 0x180079960
lea eax, [rbx + rbx]
cmp eax, ecx
jge 0x1800799c8
mov ecx, r11d
imul ecx, esi
inc ecx
add ecx, ebp
shl ecx, 7
and byte [rcx + r14], 1
mov r14, qword [rsp + 0x20]
mov eax, r11d
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
Function at 0x18007ec80
Capabilities:
Execute anti-debugging instructions

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x20], r15
mov r15d, ecx
call fcn.18000e9c0
mov edx, dword [0x18050e6d8]
xor ebx, ebx
movzx r12d, al
test edx, edx
je 0x18007edf5
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x30], r13
lea r13, [0x18050ec10]
mov qword [rsp + 0x28], r14
nop dword [rax]
call fcn.18000cd00
test al, al
je 0x18007ed03
call fcn.180013f00
mov ecx, eax
movzx r11d, word [r13 + rcx*2]
mov ecx, dword [0x18050e6dc]
cmp r11d, ecx
jl 0x18007eda8
mov eax, r11d
cdq
idiv ecx
mov r11d, edx
jmp 0x18007eda8
mov eax, 1
lock xadd dword [0x18050ec0c], eax
mov esi, dword [0x18050ec08]
inc eax
mov edi, dword [0x18050e6dc]
xor edx, edx
mov r14, qword [0x18050ec00]
xor r11d, r11d
div esi
xor r10d, r10d
mov ebx, 0x3b9aca00
mov ebp, edx
mov ecx, ebx
test edi, edi
jle 0x18007eda8
nop dword [rax]
rdtsc
shl rdx, 0x20
or rax, rdx
mov r9, rax
rdtsc
mov r8d, r10d
shl rdx, 0x20
imul r8d, esi
or rax, rdx
inc r8d
add r8d, ebp
shl r8d, 7
movzx r8d, byte [r8 + r14]
sub r8d, r9d
add r8d, eax
cmp r8d, ebx
jge 0x18007ed80
mov ecx, ebx
mov r11d, r10d
mov ebx, r8d
jmp 0x18007ed87
cmp r8d, ecx
cmovl ecx, r8d
inc r10d
cmp r10d, edi
jl 0x18007ed40
lea eax, [rbx + rbx]
cmp eax, ecx
jge 0x18007eda8
mov ecx, r11d
imul ecx, esi
inc ecx
add ecx, ebp
shl ecx, 7
and byte [rcx + r14], 1
mov rax, qword [0x18050de10]
xor r8d, r8d
movsxd rcx, r11d
mov edx, r15d
mov rcx, qword [rax + rcx*8]
mov rax, qword [rcx + 0x1588]
mov rcx, qword [rax + 8]
call fcn.1800151e0
mov ecx, dword [0x18050e6d8]
mov ebx, eax
test ecx, ecx
jne 0x18007ecd0
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov r15, qword [rsp + 0x20]
test r12b, r12b
mov r12, qword [rsp + 0x38]
je 0x18007ee09
call fcn.18000e930
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x18008f400
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x90
mov r8d, dword [rdx + 0x50]
lea r14, [rdx + 0x50]
mov rax, qword [rcx + 0x50]
lea rbp, [r14 + 8]
mov r10, qword [rcx + 0x60]
mov rsi, rcx
shl r8d, 3
mov ecx, 0x1505
mov dword [rsp + 0x2c], r8d
add r8, rbp
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xb0], r10
mov qword [rsp + 0x20], rbp
cmp rbp, r8
jae 0x18008f461
mov rdx, rbp
movzx eax, byte [rdx]
inc rdx
imul ecx, ecx, 0x21
xor ecx, eax
cmp rdx, r8
jb 0x18008f451
mov dword [rsp + 0x28], ecx
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov rdx, r10
call fcn.18009b0b0
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x18008f5ae
mov qword [rsp + 0xc0], rbx
lea rdx, [0x18043a450]
mov qword [rsp + 0x88], rdi
mov edi, dword [rsi + 0x80]
mov qword [rsp + 0x80], r12
inc edi
mov r12d, dword [rsp + 0x28]
mov qword [rsp + 0x78], r13
mov dword [rsi + 0x80], edi
mov qword [rsp + 0x70], r15
mov r15d, dword [r14]
shl r15d, 3
mov r13d, r15d
lea rcx, [r15 + 0x14]
call fcn.1800b9c84
mov rbx, rax
test rax, rax
jne 0x18008f4e1
jmp 0x18008f4fe
lea rcx, [rax + 0x14]
mov dword [rax + 0x10], edi
mov r8, r13
mov qword [rax], rcx
mov rdx, rbp
mov dword [rax + 8], r12d
mov dword [rax + 0xc], r15d
call fcn.1800ba9d0
mov r15, qword [rsp + 0x70]
mov r13, qword [rsp + 0x78]
mov r12, qword [rsp + 0x80]
test rbx, rbx
je 0x18008f53c
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x30]
mov r9, rbx
mov r8, rbx
call fcn.18009b410
mov eax, dword [rax + 0x18]
test al, al
jne 0x18008f53c
mov rcx, rbx
call fcn.1800b9bb0
mov rbx, qword [rsp + 0xb8]
mov r8, r14
mov rcx, rbx
mov edx, edi
call fcn.18008e900
test al, al
jne 0x18008f590
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x18008f583
cmp byte [rcx + 0xc], al
jne 0x18008f583
mov rdx, qword [rsi + 0x50]
test rdx, rdx
je 0x18008f583
mov eax, dword [rdx + 0x20]
cmp eax, dword [rdx + 0x18]
je 0x18008f583
call fcn.18008bf20
mov rcx, qword [rsi + 0x50]
mov rdx, qword [rcx]
call qword [rdx + 0x18]
mov r8, r14
mov edx, edi
mov rcx, rbx
call fcn.18008e900
mov rbx, qword [rsp + 0xc0]
mov eax, edi
mov rdi, qword [rsp + 0x88]
add rsp, 0x90
pop r14
pop rsi
pop rbp
ret
mov rax, qword [rax + 8]
mov eax, dword [rax + 0x10]
add rsp, 0x90
pop r14
pop rsi
pop rbp
ret

Function at 0x180090190
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
add rsp, 0x28
jmp fcn.18008d650

Function at 0x180090330
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
add rsp, 0x38
ret
Function at 0x1800903b0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov r14, rax
test rax, rax
je 0x180090476
cmp word [rax], 0
mov qword [rsp + 0x40], rdi
mov rdi, rax
je 0x180090468
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
nop dword [rax]
mov rcx, rdi
call fcn.180090760
lea rbp, [rax*2 + 2]
mov rcx, rbp
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rsi, rax
test rax, rax
je 0x18009041e
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call fcn.1800ba9d0
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 0x14]
inc rdx
cmp rdx, rcx
jbe 0x18009043b
mov r8b, 1
mov rcx, rbx
call fcn.18009a1f0
test al, al
je 0x180090448
mov ecx, dword [rbx + 8]
mov rax, qword [rbx]
mov qword [rax + rcx*8], rsi
inc dword [rbx + 8]
mov rcx, rdi
call fcn.180090760
lea rdi, [rdi + rax*2]
add rdi, 2
cmp word [rdi], 0
jne 0x1800903f0
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x18009deb0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x250
mov rax, qword [0x1804fe9c0]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor esi, esi
mov rbp, r9
mov r12d, r8d
mov r14, rdx
mov r15, rcx
mov edi, esi
test rdx, rdx
je 0x18009df90
lea rbx, [rcx + 8]
mov rax, qword [rbx - 8]
mov byte [rbx + 8], sil
test rax, rax
je 0x18009df16
mov rax, qword [rax + 0x118]
mov qword [rsp + rdi*8 + 0x40], rax
cmp rax, 0xffffffffffffffff
jne 0x18009df80
mov byte [rbx + 8], 4
jmp 0x18009df80
mov rcx, qword [rbx]
mov dword [rsp + 0x30], 1
cmp byte [rcx + 0x30], sil
jne 0x18009df77
lea rax, [rcx + 8]
xor r8d, r8d
mov rcx, qword [rcx + 0x28]
lea r9, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, eax
mov rax, qword [rbx]
mov byte [rax + 0x30], 1
test ecx, ecx
jne 0x18009df69
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe9
je 0x18009dfee
cmp eax, 0x3e5
jne 0x18009dfd5
mov rax, qword [rbx]
mov rcx, qword [rax + 0x20]
mov qword [rsp + rdi*8 + 0x40], rcx
jmp 0x18009df80
mov rax, qword [rcx + 0x20]
mov qword [rsp + rdi*8 + 0x40], rax
inc rdi
add rbx, 0x20
cmp rdi, r14
jb 0x18009def1
mov r9d, r12d
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, eax
cmp eax, 0x102
je 0x18009e0dd
cmp ecx, 0xffffffff
jne 0x18009dffd
test rbp, rbp
je 0x18009e0d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.WaitForMultipleObjects_failed
call rbp
jmp 0x18009e0d8
test rbp, rbp
je 0x18009e0d8
mov edx, eax
lea rcx, str.0_byte_async_read_on_client_connection_failed
call rbp
jmp 0x18009e0d8
shl rdi, 5
mov byte [rdi + r15 + 0x10], 2
jmp 0x18009e0d8
lea rdx, [r14 - 1]
mov rax, rcx
cmp rcx, rdx
ja 0x18009e0bc
shl rax, 5
cmp qword [rax + r15], rsi
lea rbx, [rax + r15]
jne 0x18009e0ab
mov rcx, qword [rbx + 8]
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], esi
xor r9d, r9d
lea rdx, [rcx + 8]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov edi, eax
test eax, eax
jne 0x18009e073
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
jne 0x18009e073
mov rcx, qword [rbx + 8]
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], esi
mov r9d, 1
lea rdx, [rcx + 8]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov edi, eax
mov rax, qword [rbx + 8]
mov byte [rax + 0x30], sil
test edi, edi
jne 0x18009e0ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe9
je 0x18009e0a7
cmp eax, 0x6d
je 0x18009e0a7
test rbp, rbp
je 0x18009e0a1
mov edx, eax
lea rcx, str.Client_connection_error
call rbp
mov byte [rbx + 0x10], 4
jmp 0x18009e0d8
mov cl, 2
jmp 0x18009e0ad
mov cl, 1
mov eax, 0x10
mov byte [rax + rbx], cl
mov eax, 1
jmp 0x18009e0df
lea eax, [rcx - 0x80]
mov ecx, eax
test eax, eax
jne 0x18009e0ce
cmp rcx, rdx
jae 0x18009dfb6
shl rcx, 5
mov byte [rcx + r15 + 0x10], 2
mov esi, 0xffffffff
mov eax, esi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1800b9c50
add rsp, 0x250
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18009e300
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
lea rsi, [rcx + 8]
mov dword [rsp + 0x40], 0
mov r14, r9
mov qword [rsp + 0x20], rsi
mov rdi, rcx
lea r9, [rsp + 0x40]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne bl
test eax, eax
jne 0x18009e396
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x18009e396
mov edx, dword [rsp + 0x60]
cmp edx, 0xffffffff
je 0x18009e379
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rdi + 0x28]
mov rdx, rsi
test eax, eax
je 0x18009e380
call qword [sym.imp.KERNEL32.dll_CancelIoEx]
test eax, eax
je 0x18009e396
mov rcx, qword [rdi + 0x28]
mov rdx, rsi
mov r9d, 1
lea r8, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
setne bl
mov ecx, dword [rsp + 0x40]
movzx eax, bl
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov dword [r14], ecx
add rsp, 0x30
pop r14
ret

Function at 0x18009e400
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
lea rsi, [rcx + 8]
mov dword [rsp + 0x40], 0
mov r14, r9
mov qword [rsp + 0x20], rsi
mov rdi, rcx
lea r9, [rsp + 0x40]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bl
test eax, eax
jne 0x18009e496
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x18009e496
mov edx, dword [rsp + 0x60]
cmp edx, 0xffffffff
je 0x18009e479
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rdi + 0x28]
mov rdx, rsi
test eax, eax
je 0x18009e480
call qword [sym.imp.KERNEL32.dll_CancelIoEx]
test eax, eax
je 0x18009e496
mov rcx, qword [rdi + 0x28]
mov rdx, rsi
mov r9d, 1
lea r8, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
setne bl
mov ecx, dword [rsp + 0x40]
movzx eax, bl
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov dword [r14], ecx
add rsp, 0x30
pop r14
ret

Function at 0x18009e590
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x18009e5a5
xor eax, eax
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x18009e5b7
movzx eax, ax
or eax, 0x80070000
add rsp, 0x28
ret
Function at 0x1800b5b10
Capabilities:
Get number of processors

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r15, r9
mov r12, r8
mov r13, rdx
call fcn.1800b37b0
mov r14, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov r9, r14
mov rdi, qword [rsp + 0x78]
mov r8, rsi
mov rbx, qword [rsp + 0x70]
mov rdx, rdi
mov rcx, rbx
call fcn.1800b3ee0
vmovdqu32 zmm3, zmmword [rbx]
vpmaxsd zmm1, zmm3, zmmword [r15]
mov rax, qword [rsp + 0x50]
mov r9, r15
vmovdqu32 zmmword [rbx], zmm1
vpminsd zmm0, zmm3, zmmword [r15]
vmovdqu32 zmmword [r15], zmm0
vmovdqu32 zmm4, zmmword [rdi]
vpmaxsd zmm0, zmm4, zmmword [r12]
vmovdqu32 zmmword [rdi], zmm0
vpminsd zmm1, zmm4, zmmword [r12]
vmovdqu32 zmmword [r12], zmm1
vmovdqu32 zmm3, zmmword [rsi]
vpmaxsd zmm1, zmm3, zmmword [r13]
vmovdqu32 zmmword [rsi], zmm1
vpminsd zmm0, zmm3, zmmword [r13]
vmovdqu32 zmmword [r13], zmm0
vmovdqu32 zmm4, zmmword [r14]
vpmaxsd zmm0, zmm4, zmmword [rax]
vmovdqu32 zmmword [r14], zmm0
vpminsd zmm1, zmm4, zmmword [rax]
vmovdqu32 zmmword [rax], zmm1
mov r8, r12
mov rdx, r13
mov rcx, rax
vzeroupper
call fcn.1800b4610
mov r9, r14
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
jmp fcn.1800b4610

Function at 0x1800b5c30
Capabilities:
Get number of processors

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r15, r9
mov r12, r8
mov r13, rdx
call fcn.1800b3ee0
mov r14, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov r9, r14
mov rdi, qword [rsp + 0x78]
mov r8, rsi
mov rbx, qword [rsp + 0x70]
mov rdx, rdi
mov rcx, rbx
call fcn.1800b37b0
vmovdqu32 zmm3, zmmword [rbx]
vpmaxsd zmm1, zmm3, zmmword [r15]
mov rax, qword [rsp + 0x50]
mov r9, r15
vmovdqu32 zmmword [rbx], zmm1
vpminsd zmm0, zmm3, zmmword [r15]
vmovdqu32 zmmword [r15], zmm0
vmovdqu32 zmm4, zmmword [rdi]
vpmaxsd zmm0, zmm4, zmmword [r12]
vmovdqu32 zmmword [rdi], zmm0
vpminsd zmm1, zmm4, zmmword [r12]
vmovdqu32 zmmword [r12], zmm1
vmovdqu32 zmm3, zmmword [rsi]
vpmaxsd zmm1, zmm3, zmmword [r13]
vmovdqu32 zmmword [rsi], zmm1
vpminsd zmm0, zmm3, zmmword [r13]
vmovdqu32 zmmword [r13], zmm0
vmovdqu32 zmm4, zmmword [r14]
vpmaxsd zmm0, zmm4, zmmword [rax]
vmovdqu32 zmmword [r14], zmm0
vpminsd zmm1, zmm4, zmmword [rax]
vmovdqu32 zmmword [rax], zmm1
mov r8, r12
mov rdx, r13
mov rcx, rax
vzeroupper
call fcn.1800b4810
mov r9, r14
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
jmp fcn.1800b4810
Function at 0x1800b7310
Capabilities:
Get number of processors

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [rsp + 0xb8]
mov r13, qword [rsp + 0xb0]
mov r12, qword [rsp + 0xa8]
mov r14, qword [rsp + 0xa0]
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x48], r13
mov qword [r11 - 0x50], r12
mov qword [r11 - 0x58], r14
call fcn.1800b5b10
mov r15, qword [rsp + 0xd8]
mov rsi, qword [rsp + 0xd0]
mov r9, r15
mov rdi, qword [rsp + 0xc8]
mov r8, rsi
mov rbx, qword [rsp + 0xc0]
mov rdx, rdi
mov rcx, rbx
call fcn.1800b3ee0
vmovdqu32 zmm3, zmmword [rbx]
mov rax, qword [rsp + 0xb8]
mov r9, qword [rsp + 0x98]
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
vpmaxsd zmm1, zmm3, zmmword [rax]
mov rcx, qword [rsp + 0x80]
vmovdqu32 zmmword [rbx], zmm1
vpminsd zmm0, zmm3, zmmword [rax]
vmovdqu32 zmmword [rax], zmm0
vmovdqu32 zmm4, zmmword [rdi]
vpmaxsd zmm0, zmm4, zmmword [r13]
vmovdqu32 zmmword [rdi], zmm0
vpminsd zmm1, zmm4, zmmword [r13]
vmovdqu32 zmmword [r13], zmm1
vmovdqu32 zmm3, zmmword [rsi]
vpmaxsd zmm1, zmm3, zmmword [r12]
vmovdqu32 zmmword [rsi], zmm1
vpminsd zmm0, zmm3, zmmword [r12]
vmovdqu32 zmmword [r12], zmm0
vmovdqu32 zmm4, zmmword [r15]
vpmaxsd zmm0, zmm4, zmmword [r14]
vmovdqu32 zmmword [r15], zmm0
vpminsd zmm1, zmm4, zmmword [r14]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r12
vmovdqu32 zmmword [r14], zmm1
mov qword [rsp + 0x20], r14
vzeroupper
call fcn.1800b5d50
mov r9, r15
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
jmp fcn.1800b4610
Function at 0x1800b9210
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [rsp + 0xb8]
mov qword [r11 - 0x40], rax
mov rax, qword [rsp + 0xb0]
mov qword [r11 - 0x48], rax
mov rax, qword [rsp + 0xa8]
mov qword [r11 - 0x50], rax
mov rax, qword [rsp + 0xa0]
mov qword [r11 - 0x58], rax
call fcn.1800b5b10
mov rax, qword [rsp + 0xf8]
mov r13, qword [rsp + 0xf0]
mov r12, qword [rsp + 0xe8]
mov r14, qword [rsp + 0xd8]
mov rsi, qword [rsp + 0xd0]
mov r9, r14
mov rdi, qword [rsp + 0xc8]
mov r8, rsi
mov rbx, qword [rsp + 0xc0]
mov rdx, rdi
mov r15, qword [rsp + 0xe0]
mov rcx, rbx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r15
call fcn.1800b5c30
vmovdqu32 zmm3, zmmword [rbx]
mov r9, qword [rsp + 0xb8]
mov r8, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
mov rax, qword [rsp + 0xa0]
vpmaxsd zmm1, zmm3, zmmword [r9]
vmovdqu32 zmmword [rbx], zmm1
vpminsd zmm0, zmm3, zmmword [r9]
vmovdqu32 zmmword [r9], zmm0
vmovdqu32 zmm4, zmmword [rdi]
vpmaxsd zmm0, zmm4, zmmword [r8]
mov r10, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x80]
mov r11, qword [rsp + 0x90]
vmovdqu32 zmmword [rdi], zmm0
vpminsd zmm1, zmm4, zmmword [r8]
vmovdqu32 zmmword [r8], zmm1
vmovdqu32 zmm3, zmmword [rsi]
vpmaxsd zmm1, zmm3, zmmword [rdx]
vmovdqu32 zmmword [rsi], zmm1
vpminsd zmm0, zmm3, zmmword [rdx]
vmovdqu32 zmmword [rdx], zmm0
vmovdqu32 zmm4, zmmword [r14]
vpmaxsd zmm0, zmm4, zmmword [rax]
vmovdqu32 zmmword [r14], zmm0
vpminsd zmm1, zmm4, zmmword [rax]
vmovdqu32 zmmword [rax], zmm1
vmovdqu32 zmm3, zmmword [r15]
vpmaxsd zmm1, zmm3, zmmword [r10]
vmovdqu32 zmmword [r15], zmm1
vpminsd zmm0, zmm3, zmmword [r10]
vmovdqu32 zmmword [r10], zmm0
vmovdqu32 zmm4, zmmword [r12]
vpmaxsd zmm0, zmm4, zmmword [r11]
vmovdqu32 zmmword [r12], zmm0
vpminsd zmm1, zmm4, zmmword [r11]
vmovdqu32 zmmword [r11], zmm1
vmovdqu32 zmm3, zmmword [r13]
vpmaxsd zmm1, zmm3, zmmword [rcx]
vmovdqu32 zmmword [r13], zmm1
vpminsd zmm0, zmm3, zmmword [rcx]
vmovdqu32 zmmword [rcx], zmm0
mov rcx, qword [rsp + 0xf8]
mov qword [rsp + 0x38], r9
mov r9, r10
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], rdx
vmovdqu32 zmm4, zmmword [rcx]
vpmaxsd zmm0, zmm4, zmmword [rbx]
vmovdqu32 zmmword [rcx], zmm0
vpminsd zmm1, zmm4, zmmword [rbx]
vmovdqu32 zmmword [rbx], zmm1
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x88]
mov r8, r11
vzeroupper
call fcn.1800b5d50
mov rax, qword [rsp + 0xf8]
mov r9, r14
mov rcx, qword [rsp + 0xc0]
mov r8, rsi
mov qword [rsp + 0xb8], rax
mov rdx, rdi
mov qword [rsp + 0xb0], r13
mov qword [rsp + 0xa8], r12
mov qword [rsp + 0xa0], r15
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
jmp fcn.1800b5d50
Function at 0x18014ce70
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
mov r8d, edx
mov dword [rbp - 0x64], r8d
mov rdx, rcx
mov qword [rbp - 0x70], rdx
xor ecx, ecx
mov qword [rbp - 0x78], rcx
mov r9d, 2
mov dword [rbp - 0x68], r9d
lea rcx, [rbp - 0x60]
call fcn.180007330
mov r8d, dword [rbp - 0x64]
mov rdx, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x78]
mov r9d, dword [rbp - 0x68]
call sub.bcrypt.dll_BCryptGenRandom
mov ebx, eax
lea rcx, [rbp - 0x60]
call fcn.180007380
test ebx, ebx
jne 0x18014cee4
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
cmp ebx, 0xc0000017
je 0x18014cf0c
lea rcx, [0x1802cd488]
call fcn.180005620
mov rbx, rax
mov rcx, rbx
call fcn.180173f00
mov rcx, rbx
call fcn.180005b90
int3
lea rcx, [0x1802cdd00]
call fcn.180005620
mov rbx, rax
mov rcx, rbx
call fcn.1801788e0
mov rcx, rbx
call fcn.180005b90
int3

Function at 0x180152ce0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x180152cf2
add rsp, 0x28
jmp fcn.180153ac0
lea rcx, [0x1802be940]
call fcn.180162400
int3

Function at 0x1801741a0
Capabilities:
Encode data using xor

Disassembly:
cmp edx, 8
jae 0x1801741dd
cmp edx, 4
jae 0x18017423a
mov eax, 0x80
test dl, 1
je 0x1801741c7
mov eax, edx
and rax, 2
movzx eax, byte [rcx + rax]
or eax, 0x8000
test dl, 2
je 0x180174274
shl eax, 0x10
movzx edx, word [rcx]
or eax, edx
jmp 0x180174274
mov eax, edx
shr eax, 3
add r8d, dword [rcx]
mov r10d, dword [rcx + 4]
xor r9d, r8d
rol r8d, 0x14
add r8d, r9d
rol r9d, 9
xor r9d, r8d
rol r8d, 0x1b
add r8d, r9d
rol r9d, 0x13
add r10d, r8d
mov r8d, r9d
xor r8d, r10d
rol r10d, 0x14
add r10d, r8d
rol r8d, 9
xor r8d, r10d
rol r10d, 0x1b
add r10d, r8d
rol r8d, 0x13
mov r9d, r8d
add rcx, 8
dec eax
mov r8d, r10d
jne 0x1801741e2
test dl, 4
je 0x180174259
add r8d, dword [rcx]
xor r9d, r8d
rol r8d, 0x14
add r8d, r9d
rol r9d, 9
xor r9d, r8d
rol r8d, 0x1b
add r8d, r9d
rol r9d, 0x13
mov eax, edx
and rax, 7
mov eax, dword [rcx + rax - 4]
shr eax, 8
or eax, 0x80000000
mov ecx, edx
not ecx
shl ecx, 3
shr eax, cl
add eax, r8d
mov ecx, r9d
xor ecx, eax
rol eax, 0x14
add eax, ecx
rol ecx, 9
xor ecx, eax
rol eax, 0x1b
add eax, ecx
rol ecx, 0x13
xor ecx, eax
rol eax, 0x14
add eax, ecx
rol ecx, 9
xor ecx, eax
rol eax, 0x1b
add eax, ecx
rol ecx, 0x13
xor eax, ecx
ret