joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000a74c
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x60
mov rdi, rcx
mov rsi, rdx
lea r8, [rax + 0x18]
lea rcx, str.SeSecurityPrivilege
mov edx, 1
call fcn.180009824
test eax, eax
jne 0x18000a7f9
and dword [rsp + 0x40], eax
xor eax, eax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
call fcn.180009678
lea rax, [rsp + 0x40]
xor r8d, r8d
mov r9d, 0xff
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
lea edx, [r8 + 3]
mov rcx, rdi
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [rsp + 0x80], 0
jne 0x18000a7f3
lea r8, [rsp + 0x80]
lea rcx, str.SeSecurityPrivilege
xor edx, edx
call fcn.180009824
cmp rbx, 0xffffffffffffffff
jne 0x18000a83f
and qword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
xor r8d, r8d
lea edx, [r8 + 3]
mov r9d, 0xff
mov rcx, rdi
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp rbx, 0xffffffffffffffff
jne 0x18000a83f
or rax, 0xffffffffffffffff
jmp 0x18000a886
call fcn.180006568
mov edi, eax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x18000a883
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x18000a883
mov ecx, 1
call fcn.18000650c
call fcn.180006568
sub eax, edi
cmp eax, dword [rsi + 4]
jb 0x18000a846
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000a839
mov rax, rbx
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x18000ad00
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov esi, r9d
mov r14d, r8d
mov r15, rdx
mov rdi, rcx
call fcn.180006568
mov ebp, eax
call fcn.180006568
mov r8d, r14d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18000ad63
mov ecx, dword [rsp + 0x60]
call fcn.18000650c
call fcn.180006568
sub eax, ebp
cmp eax, esi
jb 0x18000ad2b
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x18000ad84
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1e0
mov rbx, qword [rsp + 0x230]
mov r15, rcx
mov ebp, r8d
movzx r14d, dx
xor r13d, r13d
lea rcx, [rsp + 0x42]
mov r8d, 0x196
xor edx, edx
mov esi, r9d
mov qword [rbx], r13
mov word [rsp + 0x40], r13w
call fcn.180013e70
lea rdx, [rsp + 0x40]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x18000adf2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x18000ae6e
mov edx, 1
lea r12d, [rdx + 1]
lea r8d, [rdx + 5]
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, r15
mov rdi, rax
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx]
mov ecx, dword [rdx]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rcx, rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
call qword [sym.imp.WS2_32.dll_inet_addr]
movzx ecx, r14w
mov dword [rsp + 0x34], eax
mov word [rsp + 0x30], r12w
call qword [sym.imp.WS2_32.dll_htons]
lea r8d, [r12 + 0xe]
lea rdx, [rsp + 0x30]
mov r9d, ebp
mov rcx, rdi
mov word [rsp + 0x32], ax
mov dword [rsp + 0x20], esi
call fcn.18000ad00
test eax, eax
jne 0x18000ae6e
mov qword [rbx], rdi
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18000ae98
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x18], r8d
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x118]
sub rsp, 0x1f0
mov r12, qword [rbp + 0x148]
mov rsi, rcx
mov rdi, rdx
xor ebx, ebx
lea rcx, [rsp + 0x52]
xor edx, edx
mov r8d, 0x196
mov r13d, r9d
mov qword [r12], rbx
mov word [rsp + 0x50], bx
call fcn.180013e70
lea rdx, [rsp + 0x50]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x18000af0e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x18000afee
xor edx, edx
lea rcx, [rsp + 0x24]
mov dword [rsp + 0x20], ebx
lea r8d, [rdx + 0x2c]
call fcn.180013e70
mov r14d, reloc.WS2_32.dll_socket
lea r9, [rbp + 0x148]
lea r15d, [r14 - 0x16]
lea r8, [rsp + 0x20]
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x24], r14d
mov dword [rsp + 0x2c], 6
mov dword [rsp + 0x28], r15d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x18000af03
lea r8d, [r14 - 0x11]
mov edx, r15d
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18000af03
mov r14d, ebx
call fcn.180006568
mov r15d, eax
call fcn.180006568
mov rdi, qword [rbp + 0x148]
jmp 0x18000afb6
mov rax, qword [rdi + 0x20]
mov ecx, dword [rbp + 0x130]
mov dword [rax + 0x18], ecx
mov r8d, dword [rdi + 0x10]
mov rdx, qword [rdi + 0x20]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
mov r14d, eax
cmp eax, 0xffffffff
jne 0x18000b00f
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x18000af8c
mov ecx, dword [rbp + 0x140]
call fcn.18000650c
call fcn.180006568
sub eax, r15d
cmp eax, r13d
jb 0x18000af7e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, r14d
mov rcx, qword [rbp + 0x148]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, ebx
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov qword [r12], rsi
jmp 0x18000afdf
Function at 0x18000b094
Capabilities:
Initialize winsock library
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
xor r15d, r15d
movzx esi, cx
mov r14, rdx
mov qword [rdx], r15
lea rcx, [rsp + 0x52]
mov r8d, 0x196
xor edx, edx
mov word [rsp + 0x50], r15w
call fcn.180013e70
lea rdx, [rsp + 0x50]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x18000b0f8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x18000b1e1
mov edx, 1
mov ebx, r15d
lea ecx, [rdx + 0x16]
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov r13d, 2
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18000b151
lea r9, [rbp + 0x128]
lea edx, [r13 + 0x27]
lea r8d, [r13 + 0x19]
mov rcx, rax
mov dword [rbp + 0x128], r15d
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x18000b168
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, 1
mov ecx, r13d
lea r8d, [rbx + 5]
mov edx, ebx
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
xor eax, eax
mov word [rsp + 0x30], r15w
mov qword [rsp + 0x32], rax
mov qword [rsp + 0x3a], rax
mov qword [rsp + 0x42], rax
mov word [rsp + 0x4a], ax
test ebx, ebx
je 0x18000b19f
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x30], r13w
movzx eax, ax
mov dword [rsp + 0x34], eax
jmp 0x18000b1b6
movups xmm0, xmmword [0x180024050]
mov eax, reloc.WS2_32.dll_socket
mov word [rsp + 0x30], ax
movdqu xmmword [rsp + 0x38], xmm0
movzx ecx, si
call qword [sym.imp.WS2_32.dll_htons]
neg ebx
lea rdx, [rsp + 0x30]
sbb r8d, r8d
mov r9, r14
mov rcx, rdi
and r8d, 0xfffffff4
mov word [rsp + 0x32], ax
add r8d, 0x1c
call fcn.18000b01c
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret

Function at 0x18000b204
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x240
mov rax, qword [rcx + 8]
mov rsi, rcx
mov rcx, qword [rcx + 0x28]
mov rbx, qword [rax + 0x60]
mov edi, edx
call fcn.18000ce54
and dword [rsp + 0x30], 0
mov rax, qword [rbx]
and dword [rsp + 0x250], 0
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x254], edi
mov ecx, dword [rbx]
lea rax, [rsp + 0x250]
lea rdx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
inc ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov rcx, qword [rsi + 0x28]
mov ebx, eax
call fcn.18000ce74
lea r11, [rsp + 0x240]
mov rsi, qword [r11 + 0x20]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x18000d098
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov rsi, r9
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test rcx, rcx
jne 0x18000d0c9
xor eax, eax
jmp 0x18000d149
mov ecx, 0x38
call fcn.180013510
mov rbx, rax
test rax, rax
je 0x18000d0c2
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x38]
call fcn.180013e70
call fcn.18000ce94
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x18000d101
mov rcx, rbx
call fcn.1800134d0
jmp 0x18000d0c2
lea r8, [0x18000d28c]
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov qword [rbx + 0x20], r14
mov qword [rbx + 0x28], rbp
mov qword [rbx + 0x30], rsi
mov qword [rbx + 0x18], rdi
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 8], rax
test rax, rax
jne 0x18000d146
mov rcx, qword [rbx + 0x10]
call fcn.18000cef0
jmp 0x18000d0f7
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x18000d1a4
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x28
test rcx, rcx
jne 0x18000d1b1
xor eax, eax
jmp 0x18000d1c0
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
add rsp, 0x28
ret

Function at 0x18000d1e4
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
test rcx, rcx
jne 0x18000d1f5
xor eax, eax
jmp 0x18000d209
mov rcx, qword [rcx + 8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
setne bl
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x18000e3e8
Capabilities:
Compute adler32 checksum

Disassembly:
movzx r9d, cx
shr ecx, 0x10
mov r10, rdx
test rdx, rdx
jne 0x18000e51f
lea eax, [rdx + 1]
ret
mov edx, 0x15b0
cmp r8d, edx
cmovb edx, r8d
sub r8d, edx
cmp edx, 0x10
jl 0x18000e4e4
mov r11d, edx
shr r11, 4
mov eax, r11d
neg eax
shl eax, 4
add edx, eax
movzx eax, byte [r10]
add r10, 0x10
add r9d, eax
movzx eax, byte [r10 - 0xf]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xe]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xd]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xc]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xb]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xa]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 9]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 8]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 7]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 6]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 5]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 4]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 3]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 2]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 1]
add ecx, r9d
add r9d, eax
add ecx, r9d
dec r11
jne 0x18000e428
test edx, edx
je 0x18000e4f9
movzx eax, byte [r10]
inc r10
add r9d, eax
add ecx, r9d
dec edx
jne 0x18000e4e8
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul eax, edx, 0xffff000f
add r9d, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
test r8d, r8d
jne 0x18000e3ff
shl ecx, 0x10
or ecx, r9d
mov eax, ecx
ret
Function at 0x18000f104
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, dword [rcx + 0x38]
mov rbx, rcx
mov edx, dword [rbx + 0x8c]
mov edi, dword [rbx + 0x50]
mov eax, dword [rbx + 0x94]
sub edi, edx
sub edi, eax
jne 0x18000f142
test edx, edx
jne 0x18000f151
test eax, eax
jne 0x18000f151
mov edi, esi
jmp 0x18000f1d6
cmp edi, 0xffffffff
jne 0x18000f151
mov edi, 0xfffffffe
jmp 0x18000f1d6
mov ecx, dword [rbx + 0x38]
add ecx, 0xfffffefa
add ecx, esi
cmp edx, ecx
jb 0x18000f1d6
mov rcx, qword [rbx + 0x48]
mov r8, rsi
lea rdx, [rcx + rsi]
call fcn.1800135e0
mov r9d, dword [rbx + 0x6c]
mov rax, qword [rbx + 0x60]
sub dword [rbx + 0x90], esi
sub dword [rbx + 0x8c], esi
sub dword [rbx + 0x7c], esi
lea r8, [rax + r9*2]
xor eax, eax
lea r8, [r8 - 2]
movzx edx, word [r8]
movzx ecx, dx
sub cx, si
cmp edx, esi
cmovae ax, cx
mov word [r8], ax
dec r9d
jne 0x18000f18b
mov rax, qword [rbx + 0x58]
mov r9d, esi
lea r8, [rax + rsi*2]
xor eax, eax
lea r8, [r8 - 2]
movzx edx, word [r8]
movzx ecx, dx
sub cx, si
cmp edx, esi
cmovae ax, cx
mov word [r8], ax
dec r9d
jne 0x18000f1b5
add edi, esi
mov rcx, qword [rbx]
cmp dword [rcx + 8], 0
je 0x18000f24d
mov edx, dword [rbx + 0x94]
mov eax, dword [rbx + 0x8c]
mov r8d, edi
add rdx, rax
add rdx, qword [rbx + 0x48]
call fcn.18000fbc8
add dword [rbx + 0x94], eax
mov r9d, dword [rbx + 0x94]
cmp r9d, 3
jb 0x18000f237
mov eax, dword [rbx + 0x8c]
mov rdx, qword [rbx + 0x48]
mov ecx, dword [rbx + 0x78]
movzx r8d, byte [rax + rdx]
mov dword [rbx + 0x68], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rbx + 0x74]
mov dword [rbx + 0x68], r8d
cmp r9d, 0x106
jae 0x18000f24d
mov rax, qword [rbx]
cmp dword [rax + 8], 0
jne 0x18000f11e
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180001a30
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x18001e008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov byte [rsp + 0x70], 0
mov byte [rsp + 0x71], 0
mov byte [rsp + 0x72], 0
mov byte [rsp + 0x73], 0
mov byte [rsp + 0x74], 0
mov byte [rsp + 0x75], 5
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x180001af0
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x180001ae5
mov dword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
movzx eax, byte [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180016520
add rsp, 0x88
ret

Function at 0x180005470
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [0x18001e008]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x58]
call fcn.180005c50
mov dword [rsp + 0x20], eax
mov edx, 0x200
mov rcx, qword [rsp + 0x60]
call fcn.180006580
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x18], 0x16
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
call fcn.1800067b0
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [rsp + 0x24], eax
call fcn.180004bf0
mov byte [rsp + 0x28], al
call fcn.180004c50
mov byte [rsp + 0x29], al
lea rax, [rsp + 0x2a]
mov rdi, rax
xor eax, eax
mov ecx, 6
rep stosb byte [rdi], al
mov r8d, dword [rsp + 0x24]
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
call fcn.1800067f0
xor eax, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180016520
add rsp, 0x40
pop rdi
ret

Function at 0x180006f70
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x40], 0
jne 0x180006f88
mov eax, 0xffffffff
jmp 0x180006fae
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, 1
jne 0x180006fa2
mov dword [rsp + 0x20], 0
jmp 0x180006faa
mov dword [rsp + 0x20], 0xffffffff
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x180006fc0
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x40], 0
jne 0x180006fd8
mov eax, 0xffffffff
jmp 0x180006ffe
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp eax, 1
jne 0x180006ff2
mov dword [rsp + 0x20], 0
jmp 0x180006ffa
mov dword [rsp + 0x20], 0xffffffff
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x180007010
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x40], 0
jne 0x180007028
mov eax, 0xffffffff
jmp 0x180007050
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 1
jne 0x180007044
mov dword [rsp + 0x20], 0
jmp 0x18000704c
mov dword [rsp + 0x20], 0xffffffff
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x180007130
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
cmp qword [rsp + 0x30], 0
je 0x180007151
mov rdx, qword [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
add rsp, 0x28
ret
Function at 0x18000d8d0
Capabilities:
Create thread
Terminate process

Disassembly:
sub rsp, 0x48
mov ecx, 0x37
call fcn.18000bf90
movzx eax, ax
mov dword [rsp + 0x34], eax
mov ecx, 0x27
call fcn.18000bf90
movzx eax, ax
mov dword [rsp + 0x30], eax
call fcn.18000d980
cmp dword [rsp + 0x34], 1
jne 0x18000d929
cmp dword [rsp + 0x30], 1
jne 0x18000d91f
xor eax, eax
cmp eax, 1
je 0x18000d91d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18000d909
jmp 0x18000d927
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]
jmp 0x18000d96d
cmp dword [rsp + 0x30], 1
jne 0x18000d965
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [sym.imp.KERNEL32.dll_ExitProcess]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x18000d96d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
add rsp, 0x48
ret

Function at 0x18000da10
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp qword [rax + 8], 0
je 0x18000da33
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 8]
jmp 0x18000dac8
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x50]
add rax, 8
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 4]
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsp + 0x50]
mov r9d, dword [rcx]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x18000dabf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x80090016
jne 0x18000dab5
mov rax, qword [rsp + 0x50]
add rax, 8
mov dword [rsp + 0x20], 8
mov rcx, qword [rsp + 0x50]
mov r9d, dword [rcx]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x18000dab3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
jmp 0x18000dabf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 8]
add rsp, 0x48
ret
Function at 0x18000dc50
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov dword [rsp + 0x30], 0
mov r8d, 0xf0000000
mov edx, 0x18
lea rcx, [rsp + 0x50]
call fcn.18000d990
nop
lea rcx, [rsp + 0x50]
call fcn.18000da10
test rax, rax
jne 0x18000dcbd
mov dword [rsp + 0x34], 0xffffffff
lea rcx, [rsp + 0x50]
call fcn.18000d9d0
mov eax, dword [rsp + 0x34]
jmp 0x18000de00
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x50]
call fcn.18000da10
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0xa8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x18000dd24
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x3c], 0xffffffff
lea rcx, [rsp + 0x50]
call fcn.18000d9d0
mov eax, dword [rsp + 0x3c]
jmp 0x18000de00
xor r9d, r9d
mov r8d, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0x98]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x18000dd71
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x40], 0xffffffff
lea rcx, [rsp + 0x50]
call fcn.18000d9d0
mov eax, dword [rsp + 0x40]
jmp 0x18000de00
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0xb8]
mov qword [rsp + 0x68], rax
mov rdi, qword [rsp + 0xb0]
xor eax, eax
mov rcx, qword [rsp + 0x68]
rep stosb byte [rdi], al
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8, qword [rsp + 0xb0]
mov edx, 2
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x18000ddea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x48], 0xffffffff
lea rcx, [rsp + 0x50]
call fcn.18000d9d0
mov eax, dword [rsp + 0x48]
jmp 0x18000de00
mov dword [rsp + 0x4c], 0
lea rcx, [rsp + 0x50]
call fcn.18000d9d0
mov eax, dword [rsp + 0x4c]
add rsp, 0x80
pop rdi
ret