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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r13
push r14
push r15
sub rsp, 0x30
mov r14, rdx
mov r13, rcx
mov rdi, qword [rdx]
mov rax, qword [rdx + 8]
movzx ebp, byte [rdi + rax]
mov byte [rdi + rax], 0xff
mov esi, ebp
shl rsi, 5
mov rax, qword [rdi + 0x80]
mov rcx, qword [rsi + rax + 0x18]
test rcx, rcx
je 0x1400f85e6
nop word [rax + rax]
mov rbx, qword [rcx + 8]
mov edx, 0x10
call fcn.14016c230
mov rcx, rbx
test rbx, rbx
jne 0x1400f85d0
mov rcx, qword [rdi + 0x80]
movzx eax, byte [rdi + 0x89]
mov byte [rsi + rcx], al
mov byte [rdi + 0x89], bpl
dec qword [r13 + 8]
movups xmm0, xmmword [r14]
movups xmmword [rsp + 0x20], xmm0
movabs rbp, 0xe38e38e38e38e39
mov rsi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
nop
inc rsi
mov qword [rsp + 0x28], rsi
cmp rsi, 0x80
jne 0x1400f866f
xor esi, esi
mov qword [rsp + 0x28], rsi
add rbx, 0x90
mov rcx, rbx
sub rcx, qword [r13 + 0x20]
mov rax, rbp
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, qword [r13 + 0x10]
shr rax, 7
cmp rdx, rax
cmove rbx, qword [r13 + 0x20]
mov qword [rsp + 0x20], rbx
movzx edx, byte [rsi + rbx]
cmp rdx, 0xff
je 0x1400f87c8
shl rdx, 5
add rdx, qword [rbx + 0x80]
mov r10, qword [r13 + 0x10]
movsxd rcx, dword [rdx]
shl rcx, 4
movsxd rax, dword [rdx + 4]
add rcx, rax
add rcx, qword [rdx + 8]
xor rcx, qword [r13 + 0x18]
lea rax, [r10 - 1]
and rcx, rax
mov r9, qword [r13 + 0x20]
mov rax, rcx
shr rax, 7
lea r8, [rax + rax*8]
shl r8, 4
add r8, r9
and ecx, 0x7f
cmp r8, rbx
jne 0x1400f86d3
cmp rcx, rsi
je 0x1400f8620
cmp r8, qword [r14]
jne 0x1400f86de
cmp rcx, qword [r14 + 8]
je 0x1400f871e
inc rcx
cmp rcx, 0x80
jne 0x1400f86c5
xor ecx, ecx
add r8, 0x90
mov rdx, r8
sub rdx, r9
mov rax, rbp
imul rdx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, r10
shr rax, 7
cmp rdx, rax
jne 0x1400f86c5
mov r8, r9
jmp 0x1400f86c5
mov rdi, qword [r14]
cmp rbx, rdi
jne 0x1400f8743
mov rcx, qword [r14 + 8]
movzx eax, byte [rdi + rsi]
mov byte [rdi + rcx], al
mov byte [rdi + rsi], 0xff
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [r14], xmm0
jmp 0x1400f8620
mov r15, qword [r14 + 8]
movzx eax, byte [rdi + 0x88]
cmp byte [rdi + 0x89], al
jne 0x1400f875e
mov rcx, rdi
call fcn.140097d30
movzx eax, byte [rdi + 0x89]
mov byte [r15 + rdi], al
movzx r8d, byte [rdi + 0x89]
shl r8, 5
add r8, qword [rdi + 0x80]
movzx eax, byte [r8]
mov byte [rdi + 0x89], al
movzx edx, byte [rsi + rbx]
mov byte [rsi + rbx], 0xff
mov ecx, edx
shl rcx, 5
add rcx, qword [rbx + 0x80]
movups xmm0, xmmword [rcx]
movups xmmword [r8], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [r8 + 0x10], xmm1
movzx eax, byte [rbx + 0x89]
mov byte [rcx], al
mov byte [rbx + 0x89], dl
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [r14], xmm0
jmp 0x1400f8620
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r13
ret
Function at 0x1400f8af0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
test r8, r8
je 0x1400f8d8d
mov r11, rsp
mov byte [r11 + 0x20], r9b
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
push rbp
sub rsp, 0x80
mov qword [r11 + 8], rbx
mov rax, rdx
mov qword [r11 - 0x10], rsi
mov rbp, rcx
mov qword [r11 - 0x18], rdi
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r13
xor r13d, r13d
mov qword [r11 - 0x30], r14
mov qword [r11 - 0x38], r15
nop word [rax + rax]
mov r12, qword [rax + 0x20]
add r12, r13
mov qword [rsp + 0x20], r12
xor r14d, r14d
nop
movzx eax, byte [r12 + r14]
cmp al, 0xff
je 0x1400f8d31
mov edi, eax
shl rdi, 5
add rdi, qword [r12 + 0x80]
test r9b, r9b
je 0x1400f8c7a
movsxd r15, dword [rdi]
mov rsi, qword [rdi + 8]
mov rcx, r15
movsxd rbx, dword [rdi + 4]
mov r9, qword [rbp + 0x10]
mov r11, qword [rbp + 0x20]
dec r9
shl rcx, 4
add rcx, rsi
add rcx, rbx
xor rcx, qword [rbp + 0x18]
and r9, rcx
mov rax, r9
and r9d, 0x7f
shr rax, 7
mov qword [rsp + 0x30], r9
lea r8, [rax + rax*8]
shl r8, 4
add r8, r11
mov qword [rsp + 0x28], r8
movzx eax, byte [r9 + r8]
cmp rax, 0xff
je 0x1400f8c73
movabs r12, 0xe38e38e38e38e39
nop dword [rax]
shl rax, 5
add rax, qword [r8 + 0x80]
cmp r15d, dword [rax]
jne 0x1400f8c05
cmp rsi, qword [rax + 8]
jne 0x1400f8c05
cmp ebx, dword [rax + 4]
jne 0x1400f8c05
mov rcx, qword [rax + 0x10]
cmp qword [rdi + 0x10], rcx
je 0x1400f8c6e
inc r9
mov qword [rsp + 0x30], r9
cmp r9, 0x80
jne 0x1400f8c5d
add r8, 0x90
xor r9d, r9d
mov rcx, r8
mov qword [rsp + 0x30], r9
sub rcx, r11
mov qword [rsp + 0x28], r8
mov rax, r12
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, qword [rbp + 0x10]
shr rax, 7
cmp rdx, rax
jne 0x1400f8c5d
mov r8, r11
mov qword [rsp + 0x28], r11
mov r11, qword [rbp + 0x20]
movzx eax, byte [r8 + r9]
cmp rax, 0xff
jne 0x1400f8be0
mov r12, qword [rsp + 0x20]
lea rax, [rsp + 0x28]
jmp 0x1400f8c90
mov rcx, qword [rbp + 0x20]
lea rax, [rsp + 0x38]
add rcx, r13
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], rcx
mov rbx, qword [rax]
mov rsi, qword [rax + 8]
movzx eax, byte [rbx + 0x88]
cmp byte [rbx + 0x89], al
jne 0x1400f8cae
mov rcx, rbx
call fcn.140097d30
movzx edx, byte [rbx + 0x89]
mov rax, qword [rbx + 0x80]
mov r8d, edx
shl r8, 5
movzx ecx, byte [r8 + rax]
mov byte [rbx + 0x89], cl
mov byte [rsi + rbx], dl
mov rax, qword [rbx + 0x80]
movups xmm0, xmmword [rdi]
movups xmmword [r8 + rax], xmm0
movsd xmm1, qword [rdi + 0x10]
movsd qword [r8 + rax + 0x10], xmm1
mov rbx, qword [rdi + 0x18]
lea rdi, [rax + 0x18]
add rdi, r8
test rbx, rbx
je 0x1400f8d28
nop dword [rax]
mov ecx, 0x10
call fcn.14016c238
mov rcx, qword [rbx]
mov qword [rax], rcx
mov qword [rax + 8], 0
mov qword [rdi], rax
lea rdi, [rax + 8]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1400f8d00
movzx r9d, byte [rsp + 0xa8]
inc r14
cmp r14, 0x80
jb 0x1400f8b50
mov rax, qword [rsp + 0x98]
add r13, 0x90
sub qword [rsp + 0xa0], 1
jne 0x1400f8b40
mov r15, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret
Function at 0x1400fef80
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rbx, rcx
lea rax, vtable.QWinSettingsPrivate.0
mov qword [rcx], rax
xor r15d, r15d
cmp byte [rcx + 0x100], r15b
je 0x1400ff0ee
cmp qword [rcx + 0xf8], r15
je 0x1400ff0ee
mov rdi, qword [rcx + 0xf0]
mov rcx, rdi
call fcn.140100b00
test rax, rax
je 0x1400ff0ee
cmp byte [rdi + 0x28], r15b
jne 0x1400ff0ee
mov rcx, rdi
call fcn.140100b00
test rax, rax
je 0x1400ff0ee
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r15
lea rcx, [rsp + 0x38]
call fcn.14001d9a0
mov rsi, rax
cmp qword [rbx + 0xf8], r15
je 0x1400ff03d
mov rdi, qword [rbx + 0xf0]
mov rcx, rdi
call fcn.140100b00
test rax, rax
je 0x1400ff03d
cmp byte [rdi + 0x28], r15b
jne 0x1400ff03d
mov rcx, rdi
call fcn.140100b00
jmp 0x1400ff040
mov rax, r15
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov edi, 0xffffffff
test eax, eax
je 0x1400ff0c6
mov rax, qword [rbx + 0xf0]
mov rdx, qword [rax + 0x10]
mov qword [rsp + 0x20], rdx
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x28], rcx
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x30], rax
test rdx, rdx
je 0x1400ff081
lock inc dword [rdx]
lea rcx, [rsp + 0x20]
call fcn.14001d9a0
mov r8, rax
lea rdx, [0x1402558c0]
mov ecx, esi
call fcn.14001ff70
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400ff0c6
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400ff0c6
mov edx, 2
mov r8d, 8
mov rcx, qword [rsp + 0x20]
call fcn.140030bb0
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x1400ff0ee
lock xadd dword [rax], edi
cmp edi, 1
jne 0x1400ff0ee
mov edx, 2
mov r8d, 8
mov rcx, qword [rsp + 0x38]
call fcn.140030bb0
mov esi, r15d
cmp qword [rbx + 0xf8], rsi
jle 0x1400ff155
mov r14, r15
nop dword [rax]
mov rax, qword [rbx + 0xe8]
test rax, rax
je 0x1400ff113
mov eax, dword [rax]
cmp eax, 1
jle 0x1400ff127
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbx + 0xe8]
call fcn.140101e90
mov rbp, qword [rbx + 0xf0]
mov rcx, qword [rbp + r14 + 8]
test rcx, rcx
je 0x1400ff13e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + r14 + 8], r15
inc esi
add r14, 0x30
movsxd rax, esi
cmp rax, qword [rbx + 0xf8]
jl 0x1400ff100
lea rcx, [rbx + 0xe8]
call fcn.1400feeb0
mov rcx, rbx
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
jmp fcn.1400aebe0
Function at 0x1401005f0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov r12d, edx
mov r14, rcx
mov r8d, 2
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.1400ff7b0
nop
xor r13d, r13d
mov edi, r13d
cmp qword [rsp + 0x58], rdi
jle 0x140100771
mov r15d, r12d
or r15d, 0x2001f
mov esi, r13d
mov ebp, 0xffffffff
nop dword [rax]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rcx + rsi]
mov qword [rsp + 0x30], rdx
mov rax, qword [rcx + rsi + 8]
mov qword [rsp + 0x38], rax
mov rax, qword [rcx + rsi + 0x10]
mov qword [rsp + 0x40], rax
test rdx, rdx
je 0x14010067a
lock inc dword [rdx]
mov qword [rsp + 0xa0], r13
lea rcx, [rsp + 0x30]
call fcn.14001d9a0
mov rdx, rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, r15d
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401006ec
mov rbx, qword [rsp + 0xa0]
test rbx, rbx
je 0x1401006ec
mov edx, r12d
mov rcx, rbx
call fcn.1401005f0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x30]
call fcn.14001d9a0
mov rdx, rax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
test eax, eax
jne 0x14010072c
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140100716
mov eax, ebp
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140100716
mov r8d, 8
mov edx, 2
mov rcx, qword [rsp + 0x30]
call fcn.140030bb0
inc edi
add rsi, 0x18
movsxd rax, edi
cmp rax, qword [rsp + 0x58]
jl 0x140100650
jmp 0x140100771
lea rcx, [rsp + 0x30]
call fcn.14001d9a0
mov r8, rax
lea rdx, [0x140255760]
mov ecx, ebx
call fcn.14001ff70
nop
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x140100771
lock xadd dword [rax], ebp
cmp ebp, 1
jne 0x140100771
mov edx, 2
mov r8d, 8
mov rcx, qword [rsp + 0x30]
call fcn.140030bb0
nop
lea rcx, [rsp + 0x48]
call fcn.1400026c0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1401054f0
Capabilities:
Read file on windows
Read pipe

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor r14d, r14d
lea rax, [rsp + 0x60]
cmp dword [rcx + 0x9c], 1
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov edi, r14d
mov r15d, 0x1000
mov qword [rsp + 0x28], r14
cmove edi, r15d
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x140105541
mov eax, dword [rsp + 0x60]
jmp 0x140105550
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x98], eax
mov eax, r14d
cmp eax, edi
cmovb eax, edi
mov edi, eax
test eax, eax
je 0x1401056ac
cmp dword [rbx + 0x98], r14d
jne 0x1401056ac
mov qword [rsp + 0x70], rbp
mov rax, qword [rbx + 0x50]
test rax, rax
je 0x14010558f
sub rax, qword [rbx + 0x70]
cmp rdi, rax
jle 0x14010558f
mov rdi, rax
test rax, rax
jle 0x1401056a7
mov rdx, rdi
lea rcx, [rbx + 0x58]
call fcn.1400bf1f0
lea rcx, [rbx + 0x30]
mov r8d, edi
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x60]
mov rcx, qword [rbx + 0x10]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1401055dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14010568f
test eax, eax
je 0x1401055dd
cmp eax, 0xea
jne 0x140105678
mov eax, dword [rsp + 0x60]
lea rcx, [rbx + 0x58]
add qword [rbx + 0x88], rax
mov byte [rbx + 0xa2], 1
mov rdx, qword [rbx + 0x70]
sub rdx, qword [rbx + 0x80]
sub rdx, qword [rbx + 0x88]
call fcn.1400be3a0
cmp dword [rbx + 0x9c], 2
je 0x1401056a7
mov rcx, qword [rbx + 0x10]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], r14
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x140105642
mov eax, dword [rsp + 0x68]
jmp 0x140105651
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x98], eax
mov eax, r14d
cmp eax, r15d
cmovb eax, r15d
mov edi, eax
cmp dword [rbx + 0x98], r14d
je 0x140105571
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov rbp, qword [rsp + 0x70]
mov dword [rbx + 0x98], eax
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov rdx, qword [rbx + 0x18]
xor r8d, r8d
mov rcx, qword [rbx + 0x28]
mov byte [rbx + 0xa0], 1
call qword [sym.imp.KERNEL32.dll_SetThreadpoolWait]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140106100
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1401061f9
mov qword [rsp + 0x60], rbp
lea rbp, [rcx + 0x30]
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x30], r14
lea r14, [0x1401e4f90]
mov qword [rsp + 0x38], rdi
mov rax, qword [rbx + 0x58]
lea r9, [rsp + 0x50]
mov rcx, r14
mov qword [rsp + 0x20], rbp
mov r8, qword [rax + 0x20]
sub r8, qword [rax + 0x18]
mov rdx, qword [rax + 0x18]
mov rax, qword [rax + 8]
test rax, rax
cmovne rcx, rax
add rdx, rcx
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140106181
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x3e5
je 0x1401061cd
mov ecx, eax
test eax, eax
jne 0x1401061a2
mov edx, dword [rsp + 0x50]
lea rcx, [rbx + 0x50]
add qword [rbx + 0x78], rdx
mov byte [rbx + 0x92], 1
call fcn.1400be980
cmp qword [rbx + 0x68], 0
je 0x1401061e5
jmp 0x140106133
sub ecx, 0xe8
je 0x1401061c5
sub ecx, 1
je 0x1401061c5
cmp ecx, 0x2fa
je 0x1401061c5
lea rdx, [0x140255f80]
mov ecx, edi
call fcn.14001ff70
mov dword [rbx + 0x88], edi
jmp 0x1401061e5
mov rdx, qword [rbx + 0x18]
xor r8d, r8d
mov rcx, qword [rbx + 0x28]
mov byte [rbx + 0x91], 1
call qword [sym.imp.KERNEL32.dll_SetThreadpoolWait]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov r14, qword [rsp + 0x30]
add rsp, 0x40
pop rbx
ret
Function at 0x140106e80
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rax, rdx
mov rbx, rcx
xor esi, esi
mov dword [rbp - 0x50], esi
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
mov dword [rbp - 0x50], 1
lea r9, [rbp + 0x30]
xor r8d, r8d
mov edx, 0x4000
mov rcx, rax
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x140106fc8
mov rdi, 0xffffffffffffffff
mov r8, rdi
mov rdx, qword [rbp + 0x30]
lea rcx, [rbp - 0x18]
call fcn.140017720
nop
mov rcx, qword [rax]
mov qword [rbp - 0x30], rcx
mov rcx, qword [rax + 8]
mov qword [rbp - 0x28], rcx
mov rcx, qword [rax + 0x10]
mov qword [rbp - 0x20], rcx
mov qword [rax], rsi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rsi
mov dword [rbp - 0x50], 0x11
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140106f37
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140106f37
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x18]
call fcn.140030bb0
nop
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x48]
call fcn.14002a2d0
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140106f6d
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140106f6d
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x30]
call fcn.140030bb0
mov r9, qword [rbx]
mov rax, qword [rbp - 0x48]
mov qword [rbx], rax
mov qword [rbp - 0x48], r9
mov rcx, qword [rbx + 8]
mov rax, qword [rbp - 0x40]
mov qword [rbx + 8], rax
mov qword [rbp - 0x40], rcx
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbp - 0x38]
mov qword [rbx + 0x10], rax
mov qword [rbp - 0x38], rcx
test r9, r9
je 0x140106fbe
lock xadd dword [r9], edi
cmp edi, 1
jne 0x140106fbe
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x48]
call fcn.140030bb0
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rbx
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x14015e7a0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r14
sub rsp, 0x50
mov r14, rdx
test rcx, rcx
je 0x14015e925
lea rax, [rdx - 1]
cmp rax, 0xffffffffffffdffe
ja 0x14015e925
cmp rcx, rdx
mov rbp, rdx
mov rdx, r8
cmovbe rbp, rcx
mov ecx, 0x20
add rbp, 0x1fff
and rbp, 0xffffffffffffe000
call fcn.140121590
mov rbx, rax
test rax, rax
je 0x14015e925
add r14, 0x1fff
mov qword [rsp + 0x60], rsi
and r14, 0xffffffffffffe000
mov qword [rsp + 0x68], rdi
cmp rbp, r14
ja 0x14015e905
cmp rbp, 1
jb 0x14015e905
mov rdx, qword [rax + 0x10]
lea rsi, [rax + 0x10]
mov rax, qword [rax]
mov ecx, 0x20
call qword [case.0x1400a0d2d.0]
mov rdi, rax
test rax, rax
je 0x14015e8a0
mov rax, qword [0x1419a6548]
test rax, rax
jne 0x14015e86b
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
dec rax
mov qword [0x1419a6548], rax
add r14, rax
mov r9d, 4
not rax
mov r8d, 0x2000
and r14, rax
xor ecx, ecx
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, rdi
test rax, rax
jne 0x14015e8aa
mov rdx, qword [rsi]
mov rax, qword [rbx + 8]
call qword [case.0x1400a0d2d.0]
mov qword [rbx + 0x18], 0
jmp 0x14015e911
lea rdx, [rax + r14]
mov qword [rdi + 0x18], rax
mov qword [rdi + 8], rdx
mov qword [rdi + 0x10], rdx
sub rdx, rbp
call fcn.140163b60
test rax, rax
jne 0x14015e8dc
mov rdx, rbx
mov rcx, rdi
call fcn.140163370
mov qword [rbx + 0x18], 0
jmp 0x14015e911
mov rax, qword [rdi + 8]
mov qword [rdi], rax
mov rax, rbx
mov qword [rbx + 0x18], rdi
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
lea rsi, [rax + 0x10]
mov qword [rax + 0x18], 0
mov rdx, qword [rsi]
mov rcx, rbx
mov rax, qword [rbx + 8]
call qword [case.0x1400a0d2d.0]
xor eax, eax
jmp 0x14015e8ea
mov rbx, qword [rsp + 0x70]
xor eax, eax
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x1401631f0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
xor eax, eax
lock cmpxchg qword [0x1419a64d0], rdi
jne 0x14016322f
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rcx, rax
xor eax, eax
lock cmpxchg qword [0x1419a64d0], rcx
je 0x14016322f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1419a64d0]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx - 0x10]
lea rax, [rbx - 0x10]
sub qword [0x1419a64e0], rcx
mov r9, rax
sub r9, qword [rax + 8]
cmp qword [r9], rdi
jne 0x14016326b
add rcx, qword [r9 + 0x20]
mov qword [r9 + 0x20], rcx
mov qword [rcx + r9 + 8], rcx
jmp 0x140163293
mov qword [rax + 0x20], rcx
mov r9, rax
mov rcx, qword [0x1419a64d8]
mov qword [rax], rdi
mov qword [rbx], rcx
mov qword [rax + 0x18], rdi
test rcx, rcx
je 0x14016328c
mov qword [rcx + 0x18], rax
mov qword [0x1419a64d8], rax
mov rcx, qword [r9 + 0x20]
cmp qword [rcx + r9], rdi
lea rdx, [rcx + r9]
jne 0x1401632e1
add rcx, qword [rdx + 0x20]
mov qword [r9 + 0x20], rcx
mov r8, qword [rdx + 0x10]
test r8, r8
je 0x1401632ba
mov rax, qword [rdx + 0x18]
mov qword [r8 + 0x18], rax
mov r8, qword [rdx + 0x18]
mov rax, qword [rdx + 0x10]
test r8, r8
je 0x1401632cd
mov qword [r8 + 0x10], rax
jmp 0x1401632d4
mov qword [0x1419a64d8], rax
mov rax, qword [r9 + 0x20]
mov qword [rax + r9 + 8], rax
lea rdx, [rax + r9]
cmp qword [r9 + 8], rdi
jne 0x14016334e
cmp qword [rdx], 1
jne 0x14016334e
mov rax, qword [0x1419a64e0]
mov rdx, qword [0x1419a64e8]
sub rdx, qword [r9 + 0x20]
lea rcx, [rax + rax*2]
shr rcx, 1
cmp rdx, rcx
jbe 0x14016334e
mov rcx, qword [r9 + 0x10]
mov qword [0x1419a64e8], rdx
test rcx, rcx
je 0x140163323
mov rax, qword [r9 + 0x18]
mov qword [rcx + 0x18], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 0x10]
test rcx, rcx
je 0x140163336
mov qword [rcx + 0x10], rax
jmp 0x14016333d
mov qword [0x1419a64d8], rax
xor edx, edx
mov r8d, 0x8000
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [0x1419a64d0]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_ReleaseMutex]
Function at 0x140163970
Capabilities:
Allocate or change rwx memory
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
xor ebp, ebp
mov rbx, rcx
xor eax, eax
lock cmpxchg qword [0x1419a64d0], rbp
jne 0x1401639b4
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rcx, rax
xor eax, eax
lock cmpxchg qword [0x1419a64d0], rcx
je 0x1401639b4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1419a64d0]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, 0x30
cmp rbx, rdi
cmovae rdi, rbx
mov rbx, qword [0x1419a64d8]
add rdi, 0x17
and rdi, 0xfffffffffffffff8
test rbx, rbx
je 0x1401639f8
mov rcx, qword [rbx + 0x20]
cmp rcx, rdi
jae 0x140163a42
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1401639e6
lea rbx, [rdi + 0x1000f]
mov qword [rsp + 0x30], rsi
and rbx, 0xffffffffffff0000
mov r9d, 0x40
mov rdx, rbx
mov r8d, 0x3000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x140163ab9
mov rcx, qword [0x1419a64d0]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
jmp 0x140163b3c
lea rax, [rdi + 0x40]
cmp rcx, rax
jbe 0x140163a60
sub rcx, rdi
mov qword [rbx + 0x20], rcx
add rbx, rcx
mov qword [rbx + 8], rcx
mov qword [rbx + rdi + 8], rdi
jmp 0x140163a8e
mov rdx, qword [rbx + 0x10]
test rdx, rdx
je 0x140163a71
mov rax, qword [rbx + 0x18]
mov qword [rdx + 0x18], rax
mov rdx, qword [rbx + 0x18]
mov rax, qword [rbx + 0x10]
test rdx, rdx
je 0x140163a84
mov qword [rdx + 0x10], rax
jmp 0x140163a8b
mov qword [0x1419a64d8], rax
mov rdi, rcx
add qword [0x1419a64e0], rdi
mov qword [rbx], rdi
mov rcx, qword [0x1419a64d0]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea rax, [rbx + 0x10]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
sub rbx, 0x10
mov qword [rax + 8], rbp
add qword [0x1419a64e8], rbx
lea rax, [rdi + 0x40]
cmp rbx, rax
jbe 0x140163b12
mov rcx, qword [0x1419a64d8]
lea rax, [rsi + rdi]
add qword [0x1419a64e0], rdi
sub rbx, rdi
mov qword [rsi], rdi
mov qword [rax + 8], rdi
mov qword [rax], rbp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rbp
test rcx, rcx
je 0x140163b05
mov qword [rcx + 0x18], rax
mov qword [0x1419a64d8], rax
lea rcx, [rbx + rax]
jmp 0x140163b20
add qword [0x1419a64e0], rbx
lea rcx, [rsi + rbx]
mov qword [rsi], rbx
mov qword [rcx], 1
mov qword [rcx + 8], rbx
mov rcx, qword [0x1419a64d0]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea rax, [rsi + 0x10]
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140163b60
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rbx, rdx
mov rdi, rcx
cmp rdx, qword [rcx + 0x18]
jb 0x140163c08
cmp rdx, qword [rcx + 8]
jae 0x140163c08
mov rax, qword [0x1419a6548]
test rax, rax
jne 0x140163ba9
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
dec rax
mov qword [0x1419a6548], rax
mov r10, qword [rdi + 0x10]
not rax
mov rcx, rax
and r10, rax
and rcx, rbx
cmp rcx, r10
je 0x140163bf6
jae 0x140163bdd
sub r10, rcx
mov r9d, 4
mov rdx, r10
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jmp 0x140163bf4
sub rcx, r10
mov r8d, 0x4000
mov rdx, rcx
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
je 0x140163c08
mov qword [rdi + 0x10], rbx
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
mov rbx, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x50
pop rdi
ret