joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801027d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x180102800
test ecx, ecx
jne 0x180102850
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x18010280c
test ecx, ecx
jne 0x180102850
mov rcx, rdi
call fcn.1801026c0
movzx ecx, al
test bpl, bpl
jne 0x180102857
lea rdx, [rdi + 0x10]
xor eax, eax
cmp byte [rdi + 0x10], 6
cmove rdx, rax
je case.0x180102843.2
movzx r8d, byte [rdx]
mov eax, 6
lea r9, [0x1801029ac]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rax, qword [rdx + 0x10]
add rax, 4
jmp case.0x180102843.2
xor ecx, ecx
test bpl, bpl
je 0x18010281c
xor eax, eax
add rcx, rax
movzx r10d, bl
lea r9, [rcx + r10]
mov rax, qword [rdi + 8]
cmp rax, r9
jb 0x1801029a7
mov r11, qword [rdi]
lea rdx, [r11 + r9]
cmp rax, r9
jne 0x18010288a
movzx r8d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x180102909
movzx r8d, byte [rdi + 0x10]
add rcx, r10
sub rcx, rax
inc rcx
lea rdi, [rax + r11]
dec rdi
xor r10d, r10d
cmp r8b, 3
jae 0x1801028d0
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x1801028eb
inc rcx
dec rdi
cmp rcx, 1
jne 0x1801028b0
jmp 0x180102909
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x1801028eb
cmp ebx, 0x5c
je 0x1801028eb
inc rcx
dec rdi
cmp rcx, 1
jne 0x1801028d0
jmp 0x180102909
neg rcx
add r9, rcx
inc r9
cmp rax, r9
jb 0x1801029a7
add r11, r9
mov r10d, 1
mov rdx, r11
sub rax, r9
je 0x180102932
mov cl, 9
cmp rax, 2
je 0x180102936
cmp rax, 1
jne 0x180102945
cmp byte [rdx], 0x2e
jne 0x180102945
xor ecx, ecx
cmp r8b, 3
setae cl
lea ecx, [rcx + rcx*2]
add ecx, 7
jmp 0x180102945
mov cl, 0xa
jmp 0x180102945
cmp byte [rdx], 0x2e
jne 0x180102945
cmp byte [rdx + 1], 0x2e
sete cl
xor cl, 9
add r10, rax
mov qword [rsi], r10
mov byte [rsi + 8], cl
mov qword [rsi + 0x10], rdx
mov qword [rsi + 0x18], rax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rax, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rax, r8
add rax, 8
jmp case.0x180102843.2
mov rax, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rax, r8
add rax, 2
jmp case.0x180102843.2
mov eax, 2
jmp case.0x180102843.2
ud2
Function at 0x180104240
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1801e3cd0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x1801042ac
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x1801042bb
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1801042f3
cmp eax, 0x103
je 0x1801042fd
test eax, eax
js 0x1801042d8
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1801042f3
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.1800ffc40
mov rcx, rax
call fcn.1800ffd20
mov ecx, 7
int 0x29
ud2
Function at 0x180105700
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1e8
mov rsi, rcx
mov r14, qword [rdx]
mov rbx, qword [rdx + 8]
movzx edi, word [rdx + 0x10]
mov rax, qword [0x18021e9c8]
cmp rax, 3
jne 0x18010589e
cmp rbx, 0x17f
ja 0x1801058b0
lea rcx, [rsp + 0x68]
mov rdx, r14
mov r8, rbx
call fcn.180180980
mov byte [rsp + rbx + 0x68], 0
lea rax, [rbx + 1]
cmp rbx, 0xe
ja 0x180105778
xor edx, edx
nop dword [rax]
cmp byte [rsp + rdx + 0x68], 0
je 0x180105804
inc rdx
cmp rax, rdx
jne 0x180105760
jmp 0x180105867
xor ecx, ecx
mov dl, 1
test dl, dl
jne 0x1801057a8
jne 0x1801057a8
xor edx, edx
nop word cs:[rax + rax]
cmp byte [rsp + rdx + 0x68], 0
je 0x180105804
inc rdx
jne 0x180105790
xor edx, edx
test dl, dl
jne 0x1801057fa
lea rdx, [rbx - 0xf]
jmp 0x1801057ae
lea rdx, [rbx - 0xf]
xor ecx, ecx
movdqa xmm0, xmmword [0x1801908c0]
movabs r8, 0x8080808080808080
movdqu xmm1, xmmword [rsp + rcx + 0x68]
movdqa xmm2, xmm1
paddq xmm2, xmm0
pandn xmm1, xmm2
pshufd xmm2, xmm1, 0xee
por xmm2, xmm1
movq r9, xmm2
test r9, r8
jne 0x1801057fa
add rcx, 0x10
cmp rcx, rdx
jbe 0x1801057c0
jmp 0x1801057fa
cmp byte [rsp + rcx + 0x68], 0
je 0x180105801
inc rcx
cmp rax, rcx
jne 0x1801057f0
jmp 0x180105867
mov rdx, rcx
cmp rdx, rbx
jne 0x180105867
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x68]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x180105886
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
jmp 0x180105879
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
jmp 0x180105879
call fcn.180189910
cmp rbx, 0x17f
jbe 0x180105738
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.180189970
Function at 0x180105e30
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
movzx eax, byte [0x18021ea38]
mov rcx, qword [0x18021e9c0]
test rcx, rcx
jne 0x180105e6e
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x180105f22
mov rcx, rax
mov qword [0x18021e9c0], rax
mov r8d, 0x10
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x180105f22
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x180105f40]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x180105f15
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
mov rcx, rdi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x180105eef
cmp qword [rbx + 0x10], 0x11
jb 0x180105edd
mov rdi, qword [rdi - 8]
mov rcx, qword [0x18021e9c0]
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x18021e9c0]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call fcn.1801828e0
ud2

Function at 0x180105fc0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x180105fef
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.180102ca0
ud2
Function at 0x180106720
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rbx, r8
mov rsi, rcx
test rdx, rdx
je 0x18010674b
mov qword [rsi + 8], rbx
mov qword [rsi], 1
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov rax, qword [0x18021e9c8]
cmp rax, 3
jne 0x1801068cd
cmp word [rbx], 0
mov eax, 2
mov ebp, 0x17
cmove ebp, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1801067c0
cmp word [rbx], 0
je 0x180106838
movups xmm0, xmmword [rbx + 4]
mov eax, dword [rbx + 0x14]
mov edx, dword [rbx + 0x18]
movzx ecx, word [rbx + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x18010684d
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x1801067db
mov r14d, eax
cmp eax, 0x2726
jne 0x1801068bc
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x1801068b3
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
jne 0x180106798
call sub.KERNEL32.dll_GetLastError
mov r14d, eax
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_closesocket]
jmp 0x1801068bc
mov eax, dword [rbx + 2]
movzx ecx, word [rbx + 6]
mov r8d, 0x10
mov r9w, 2
xorps xmm0, xmm0
rol cx, 8
mov word [rsp + 0x30], r9w
mov word [rsp + 0x32], cx
mov dword [rsp + 0x34], eax
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x48], edx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_bind]
cmp eax, 0xffffffff
je 0x18010688c
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x180106740
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_closesocket]
jmp 0x180106740
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r14d, eax
shl r14, 0x20
or r14, 2
mov qword [rsi + 8], r14
jmp 0x180106739
call fcn.180189910
jmp 0x18010675c
Function at 0x180106a70
Capabilities:
Reference wmi statements

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x30], 0
mov r15, qword [rdx + 0x10]
test r15, r15
je 0x180106b47
lea rcx, [0x1801e410a]
call sub.oleaut32.dll_SysAllocString
mov rbx, rax
lea rcx, str.SELECT__FROM_MSAcpi_ThermalZoneTemperature
call sub.oleaut32.dll_SysAllocString
mov r14, rax
mov rcx, qword [rsi + 0x18]
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], 0
mov rdx, rbx
mov r8, r14
mov r9d, 0x30
call qword [rax + 0xa0]
mov ebp, eax
mov rcx, rbx
call sub.oleaut32.dll_SysFreeString
mov rcx, r14
call sub.oleaut32.dll_SysFreeString
test ebp, ebp
js 0x180106b47
mov rbx, qword [rsp + 0x30]
cmp qword [rsi + 0x20], 0
je 0x180106b13
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x180106b13
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsi + 0x20], 1
mov qword [rsi + 0x28], rbx
mov rax, qword [rsi + 0x30]
mov qword [rdi + 0x30], rax
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
mov rax, qword [rsi + 0x20]
mov qword [rdi + 0x20], rax
mov rax, qword [rsi + 0x28]
mov qword [rdi + 0x28], rax
jmp 0x180106bb0
mov qword [rdi], 2
mov rcx, qword [rsi + 0x28]
cmp qword [rsi + 0x20], 0
mov qword [rsi + 0x20], 0
je 0x180106b6c
test rcx, rcx
je 0x180106b6c
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsi + 0x18]
mov qword [rsi + 0x10], 0
test r15, r15
je 0x180106b88
test rcx, rcx
je 0x180106b88
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsi + 8]
cmp qword [rsi], 0
mov qword [rsi], 0
je 0x180106ba4
test rcx, rcx
je 0x180106ba4
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp byte [rsi + 0x30], 0
je 0x180106bb0
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x180112640
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
movaps xmmword [rsp + 0x90], xmm6
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x24]
mov rcx, rax
call sub.shell32.dll_CommandLineToArgvW
test rax, rax
je 0x180112792
mov rdi, rax
mov qword [rsp + 0x40], rsi
movsxd rbp, dword [rsp + 0x24]
mov qword [rsp + 0x28], 8
xorps xmm6, xmm6
movups xmmword [rsp + 0x30], xmm6
test rbp, rbp
je 0x180112771
shl rbp, 3
mov esi, 8
xor r15d, r15d
lea rbx, [rsp + 0x48]
lea r14, [rsp + 0x78]
xor r12d, r12d
jmp 0x1801126ec
lea rax, [r12 + r12*2]
mov rcx, qword [rsp + 0x70]
mov qword [rsi + rax*8 + 0x10], rcx
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi + rax*8], xmm0
inc r12
mov qword [rsp + 0x38], r12
add r15, 8
cmp rbp, r15
je 0x180112771
mov r13, qword [rdi + r15]
mov rcx, r13
call fcn.1801775a4
lea rax, [rax*2]
add rax, r13
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x80], rax
mov word [rsp + 0x88], 0
mov qword [rsp + 0x48], 1
lea rax, [rsp + 0x50]
movups xmmword [rax], xmm6
mov rcx, rbx
mov rdx, r14
call fcn.18010deb0
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rsp + 0x60], xmm0
cmp r12, qword [rsp + 0x30]
jne 0x1801126c0
lea rcx, [rsp + 0x28]
mov rdx, r12
call fcn.18007db50
mov rsi, qword [rsp + 0x28]
mov r12, qword [rsp + 0x38]
jmp 0x1801126c0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
movups xmm0, xmmword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
movups xmmword [rcx], xmm0
mov rax, qword [rsp + 0x38]
mov qword [rcx + 0x10], rax
jmp 0x1801127a0
mov qword [rsi], 8
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x18011e750
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
mov eax, dword [0x18021ea3c]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0xc8], 0
je 0x18011e786
lea rax, [rax + 0xd0]
jmp 0x18011e794
call fcn.180113ba0
test rax, rax
je 0x18011e8ba
mov rcx, qword [rax + 0x38]
movabs rdx, 0x7ffffffffffffffe
cmp rcx, rdx
ja 0x18011e8ba
lea rdx, [rcx + 1]
mov qword [rax + 0x38], rdx
mov rdx, qword [rax + 0x40]
cmp rdx, 2
je 0x18011e8be
mov rcx, qword [rax + 0x48]
mov r8d, 1
lock xadd qword [rcx], r8
test rdx, rdx
test r8, r8
js 0x18011e8ba
dec qword [rax + 0x38]
lea rax, [rcx + 0x148]
lea r8, [rcx + 0xd0]
test rdx, rdx
cmove rax, r8
cmp dword [rax + 0x138], 0x3b9aca00
je 0x18011e8ba
mov eax, 1
mov r8d, 1
lock xadd qword [rcx], r8
test rdx, rdx
je 0x18011e824
test r8, r8
jns 0x18011e82f
jmp 0x18011e8ba
test r8, r8
js 0x18011e8ba
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x30], xmm0
mov r8d, dword [rsp + 0x4c]
mov dword [rsi + 0x3c], r8d
movups xmm0, xmmword [rsp + 0x3c]
movups xmmword [rsi + 0x2c], xmm0
movups xmm0, xmmword [rsp + 0x2c]
movups xmmword [rsi + 0x1c], xmm0
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rbx
mov dword [rsi + 0x18], edi
mov qword [rsi + 0x40], 0xffffffffffffffff
mov qword [rsi + 0x48], 0
mov qword [rsi + 0x58], 0
mov byte [rsi + 0x60], 0
mov byte [rsi + 0x68], 0
lock dec qword [rcx]
sete al
test rdx, rdx
je 0x18011e8a1
test al, al
je 0x18011e8b1
add rsp, 0x50
pop rbx
pop rdi
pop rsi
jmp fcn.180113e90
test al, al
je 0x18011e8b1
add rsp, 0x50
pop rbx
pop rdi
pop rsi
jmp fcn.180113df0
nop
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
ud2
mov qword [rax + 0x38], rcx
ud2
Function at 0x18011ee40
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x18011f04d
mov r14, qword [rsp + 0x20]
mov rcx, qword [0x18021e9d8]
test rcx, rcx
jne 0x18011eeb0
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x18011f04d
mov rcx, qword [rsp + 0x20]
mov qword [0x18021e9d8], rcx
test rcx, rcx
je 0x18011f052
mov rax, r14
or rax, rcx
shr rax, 0x20
je 0x18011eec6
mov rax, r14
xor edx, edx
div rcx
jmp 0x18011eecd
mov eax, r14d
xor edx, edx
div ecx
imul r9, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
mov rdx, rax
or rdx, rcx
shr rdx, 0x20
je 0x18011eef1
xor edx, edx
div rcx
mov r8, rax
jmp 0x18011eef8
xor edx, edx
div ecx
mov r8d, eax
add r8, r9
mov rcx, r8
shr rcx, 9
movabs r14, 0x44b82fa09b5a53
mov rax, rcx
mul r14
mov r9, rdx
shr r9, 0xb
add r9, rbx
jb 0x18011ef4a
mov rax, rcx
mul r14
shr rdx, 0xb
imul eax, edx, 0x3b9aca00
sub r8d, eax
add r8d, edi
cmp r8d, 0x3b9aca00
jb 0x18011f014
inc r9
jne 0x18011f044
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x18011f04d
mov rdi, qword [rsp + 0x20]
mov rcx, qword [0x18021e9d8]
test rcx, rcx
jne 0x18011efa8
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x18011f04d
mov rcx, qword [rsp + 0x20]
mov qword [0x18021e9d8], rcx
test rcx, rcx
je 0x18011f052
mov rax, rdi
or rax, rcx
shr rax, 0x20
je 0x18011efbe
mov rax, rdi
xor edx, edx
div rcx
jmp 0x18011efc4
mov eax, edi
xor edx, edx
div ecx
imul r9, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
mov rdx, rax
or rdx, rcx
shr rdx, 0x20
je 0x18011efe8
xor edx, edx
div rcx
mov r8, rax
jmp 0x18011efef
xor edx, edx
div ecx
mov r8d, eax
add r8, r9
mov rax, r8
shr rax, 9
mul r14
mov r9, rdx
shr r9, 0xb
imul eax, r9d, 0x3b9aca00
sub r8d, eax
add r9, 0x38640900
mov eax, r8d
shr eax, 9
imul rax, rax, 0x44b83
shr rax, 0x27
imul eax, eax, 0x3b9aca00
sub r8d, eax
mov rcx, rsi
mov rdx, r9
call fcn.18011e750
nop
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
add r8d, 0xc4653600
jmp 0x18011f014
call sub.KERNEL32.dll_GetLastError
ud2
Function at 0x18011f060
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x18011f15c
mov rdi, qword [rsp + 0x20]
mov rcx, qword [0x18021e9d8]
test rcx, rcx
jne 0x18011f0c7
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x18011f15c
mov rcx, qword [rsp + 0x20]
mov qword [0x18021e9d8], rcx
test rcx, rcx
je 0x18011f161
mov rax, rdi
or rax, rcx
shr rax, 0x20
je 0x18011f0dd
mov rax, rdi
xor edx, edx
div rcx
jmp 0x18011f0e3
mov eax, edi
xor edx, edx
div ecx
imul r9, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
mov rdx, rax
or rdx, rcx
shr rdx, 0x20
je 0x18011f107
xor edx, edx
div rcx
mov r8, rax
jmp 0x18011f10e
xor edx, edx
div ecx
mov r8d, eax
add r8, r9
mov rax, r8
shr rax, 9
movabs rcx, 0x44b82fa09b5a53
mul rcx
shr rdx, 0xb
imul rax, rdx, 0x3b9aca00
sub r8, rax
add rdx, 0x38640900
imul rax, r8, 0x44b82fa1
shr rax, 0x3c
imul eax, eax, 0x3b9aca00
sub r8d, eax
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.18011e750
call sub.KERNEL32.dll_GetLastError
ud2

Function at 0x18012a980
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push rsi
sub rsp, 0x40
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
cmp eax, 0xc0000000
jb 0x18012a9c8
lea rcx, [rsp + 0x30]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x18012aa5a
movdqa xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x20], xmm0
movzx eax, byte [rsp + 0x26]
movzx ecx, byte [rsp + 0x28]
and cl, 0x3f
or cl, 0x80
movzx edx, byte [rsp + 0x2a]
shl edx, 8
movzx r8d, byte [rsp + 0x29]
or r8d, edx
movzx ecx, cl
shl ecx, 8
movzx edx, byte [rsp + 0x27]
or edx, ecx
movd xmm1, edx
pinsrw xmm1, r8d, 1
mov ecx, dword [rsp + 0x2c]
shl ecx, 8
movzx edx, byte [rsp + 0x2b]
or edx, ecx
pinsrw xmm1, edx, 2
movzx ecx, byte [rsp + 0x2e]
shl ecx, 8
movzx edx, byte [rsp + 0x2d]
or edx, ecx
pinsrw xmm1, edx, 3
movzx ecx, byte [rsp + 0x2f]
and al, 0xf
or al, 0x40
movd dword [rsi], xmm0
pextrw edx, xmm0, 2
mov word [rsi + 4], dx
mov byte [rsi + 6], al
mov byte [rsi + 0xf], cl
movq qword [rsi + 7], xmm1
add rsp, 0x40
pop rsi
ret
ud2
Function at 0x18012b540
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rcx
mov qword [rsp + 0x48], 0
lea r14, [rsp + 0x48]
mov qword [rsp + 0x20], r14
lea rcx, [0x1802077d8]
lea r9, [0x1802077bc]
xor ebx, ebx
xor edx, edx
mov r8d, 1
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x18012b645
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x18012b65c
lea rcx, [0x1802077cc]
mov edx, 0xa
call fcn.18012af60
mov rbx, rax
mov qword [rsp + 0x48], 0
mov rax, qword [rdi]
mov qword [rsp + 0x40], r14
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
xor r15d, r15d
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
xor r9d, r9d
call qword [rax + 0x18]
test eax, eax
js 0x18012b664
mov r14, qword [rsp + 0x48]
test r14, r14
je 0x18012b67c
test rbx, rbx
je 0x18012b604
mov rcx, rbx
call sub.oleaut32.dll_SysFreeString
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
mov rcx, r14
mov edx, 0xa
xor r8d, r8d
xor r9d, r9d
call sub.ole32.dll_CoSetProxyBlanket
test eax, eax
js 0x18012b6a6
mov qword [rsi + 8], r14
mov byte [rsi], 0x11
jmp 0x18012b690
mov ecx, eax
call fcn.18012ac90
mov ebx, edx
test rax, rax
je 0x18012b65c
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov byte [rsi], 0
mov dword [rsi + 4], ebx
jmp 0x18012b699
mov ecx, eax
call fcn.18012ac90
mov r15d, edx
test rax, rax
je 0x18012b67c
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
test rbx, rbx
je 0x18012b689
mov rcx, rbx
call sub.oleaut32.dll_SysFreeString
mov byte [rsi], 0
mov dword [rsi + 4], r15d
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
nop
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, eax
call fcn.18012ac90
mov ebx, edx
test rax, rax
je 0x18012b6bd
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov byte [rsi], 0
mov dword [rsi + 4], ebx
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x10]
jmp 0x18012b690
Function at 0x1801488d0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [rcx]
cmp rbx, 0x20
jb 0x1801489ad
mov rdx, qword [rcx + 8]
mov r9, qword [rcx + 0x18]
mov rax, rdx
mov r8, qword [rcx + 0x10]
mov r11, r9
mov r10, qword [rcx + 0x20]
rol r11, 0xc
rol rax, 1
add r11, rax
mov qword [rsp + 0x30], rsi
movabs rsi, 0x9e3779b185ebca87
mov qword [rsp + 0x38], rdi
movabs rdi, 0xc2b2ae3d27d4eb4f
mov rax, r8
rol rax, 7
add r11, rax
mov rax, r10
imul rdx, rdi
imul r8, rdi
imul r10, rdi
imul r9, rdi
mov rdi, qword [rsp + 0x38]
rol rax, 0x12
add r11, rax
rol rdx, 0x1f
imul rdx, rsi
movabs rax, 0x7a1435883d4d519d
rol r8, 0x1f
xor r11, rdx
rol r10, 0x1f
imul r11, rsi
imul r8, rsi
imul r10, rsi
sub r11, rax
rol r9, 0x1f
xor r11, r8
imul r11, rsi
imul r9, rsi
sub r11, rax
xor r11, r9
imul r11, rsi
sub r11, rax
xor r11, r10
movabs r10, 0x85ebca77c2b2ae63
imul r11, rsi
mov rsi, qword [rsp + 0x30]
add r10, r11
jmp 0x1801489be
mov r10, qword [rcx + 0x18]
movabs rdx, 0x27d4eb2f165667c5
add r10, rdx
add r10, rbx
lea rdx, [rcx + 0x28]
mov rcx, r10
xor r9d, r9d
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.1801487d0