joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1412a42c0
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 0x1412a4326
nop word [rax + rax]
mov rbx, qword [rcx + 8]
mov edx, 0x10
call fcn.1413164c0
mov rcx, rbx
test rbx, rbx
jne 0x1412a4310
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 0x1412a43af
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 0x1412a4508
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 0x1412a4413
cmp rcx, rsi
je 0x1412a4360
cmp r8, qword [r14]
jne 0x1412a441e
cmp rcx, qword [r14 + 8]
je 0x1412a445e
inc rcx
cmp rcx, 0x80
jne 0x1412a4405
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 0x1412a4405
mov r8, r9
jmp 0x1412a4405
mov rdi, qword [r14]
cmp rbx, rdi
jne 0x1412a4483
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 0x1412a4360
mov r15, qword [r14 + 8]
movzx eax, byte [rdi + 0x88]
cmp byte [rdi + 0x89], al
jne 0x1412a449e
mov rcx, rdi
call fcn.141242b80
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 0x1412a4360
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 0x1412a4830
Capabilities:
Encrypt data using rc4 prga

Disassembly:
test r8, r8
je 0x1412a4acd
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 0x1412a4a71
mov edi, eax
shl rdi, 5
add rdi, qword [r12 + 0x80]
test r9b, r9b
je 0x1412a49ba
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 0x1412a49b3
movabs r12, 0xe38e38e38e38e39
nop dword [rax]
shl rax, 5
add rax, qword [r8 + 0x80]
cmp r15d, dword [rax]
jne 0x1412a4945
cmp rsi, qword [rax + 8]
jne 0x1412a4945
cmp ebx, dword [rax + 4]
jne 0x1412a4945
mov rcx, qword [rax + 0x10]
cmp qword [rdi + 0x10], rcx
je 0x1412a49ae
inc r9
mov qword [rsp + 0x30], r9
cmp r9, 0x80
jne 0x1412a499d
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 0x1412a499d
mov r8, r11
mov qword [rsp + 0x28], r11
mov r11, qword [rbp + 0x20]
movzx eax, byte [r8 + r9]
cmp rax, 0xff
jne 0x1412a4920
mov r12, qword [rsp + 0x20]
lea rax, [rsp + 0x28]
jmp 0x1412a49d0
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 0x1412a49ee
mov rcx, rbx
call fcn.141242b80
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 0x1412a4a68
nop dword [rax]
mov ecx, 0x10
call fcn.1413164c8
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 0x1412a4a40
movzx r9d, byte [rsp + 0xa8]
inc r14
cmp r14, 0x80
jb 0x1412a4890
mov rax, qword [rsp + 0x98]
add r13, 0x90
sub qword [rsp + 0xa0], 1
jne 0x1412a4880
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 0x1412aacf0
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, [0x1400c01a8]
mov qword [rcx], rax
xor r15d, r15d
cmp byte [rcx + 0x100], r15b
je 0x1412aae5e
cmp qword [rcx + 0xf8], r15
je 0x1412aae5e
mov rdi, qword [rcx + 0xf0]
mov rcx, rdi
call fcn.1412ac870
test rax, rax
je 0x1412aae5e
cmp byte [rdi + 0x28], r15b
jne 0x1412aae5e
mov rcx, rdi
call fcn.1412ac870
test rax, rax
je 0x1412aae5e
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r15
lea rcx, [rsp + 0x38]
call fcn.1411c8780
mov rsi, rax
cmp qword [rbx + 0xf8], r15
je 0x1412aadad
mov rdi, qword [rbx + 0xf0]
mov rcx, rdi
call fcn.1412ac870
test rax, rax
je 0x1412aadad
cmp byte [rdi + 0x28], r15b
jne 0x1412aadad
mov rcx, rdi
call fcn.1412ac870
jmp 0x1412aadb0
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 0x1412aae36
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 0x1412aadf1
lock inc dword [rdx]
lea rcx, [rsp + 0x20]
call fcn.1411c8780
mov r8, rax
lea rdx, [0x1400c02d0]
mov ecx, esi
call fcn.1411cae40
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1412aae36
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1412aae36
mov edx, 2
mov r8d, 8
mov rcx, qword [rsp + 0x20]
call fcn.1411dba10
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x1412aae5e
lock xadd dword [rax], edi
cmp edi, 1
jne 0x1412aae5e
mov edx, 2
mov r8d, 8
mov rcx, qword [rsp + 0x38]
call fcn.1411dba10
mov esi, r15d
cmp qword [rbx + 0xf8], rsi
jle 0x1412aaec5
mov r14, r15
nop dword [rax]
mov rax, qword [rbx + 0xe8]
test rax, rax
je 0x1412aae83
mov eax, dword [rax]
cmp eax, 1
jle 0x1412aae97
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbx + 0xe8]
call fcn.1412adc00
mov rbp, qword [rbx + 0xf0]
mov rcx, qword [rbp + r14 + 8]
test rcx, rcx
je 0x1412aaeae
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 0x1412aae70
lea rcx, [rbx + 0xe8]
call fcn.1412aac20
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.141259c60
Function at 0x1412ac360
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.1412ab520
nop
xor r13d, r13d
mov edi, r13d
cmp qword [rsp + 0x58], rdi
jle 0x1412ac4e1
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 0x1412ac3ea
lock inc dword [rdx]
mov qword [rsp + 0xa0], r13
lea rcx, [rsp + 0x30]
call fcn.1411c8780
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 0x1412ac45c
mov rbx, qword [rsp + 0xa0]
test rbx, rbx
je 0x1412ac45c
mov edx, r12d
mov rcx, rbx
call fcn.1412ac360
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x30]
call fcn.1411c8780
mov rdx, rax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
test eax, eax
jne 0x1412ac49c
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1412ac486
mov eax, ebp
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1412ac486
mov r8d, 8
mov edx, 2
mov rcx, qword [rsp + 0x30]
call fcn.1411dba10
inc edi
add rsi, 0x18
movsxd rax, edi
cmp rax, qword [rsp + 0x58]
jl 0x1412ac3c0
jmp 0x1412ac4e1
lea rcx, [rsp + 0x30]
call fcn.1411c8780
mov r8, rax
lea rdx, [0x1400c0170]
mov ecx, ebx
call fcn.1411cae40
nop
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x1412ac4e1
lock xadd dword [rax], ebp
cmp ebp, 1
jne 0x1412ac4e1
mov edx, 2
mov r8d, 8
mov rcx, qword [rsp + 0x30]
call fcn.1411dba10
nop
lea rcx, [rsp + 0x48]
call fcn.1411abad0
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 0x1412b1260
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 0x1412b12b1
mov eax, dword [rsp + 0x60]
jmp 0x1412b12c0
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 0x1412b141c
cmp dword [rbx + 0x98], r14d
jne 0x1412b141c
mov qword [rsp + 0x70], rbp
mov rax, qword [rbx + 0x50]
test rax, rax
je 0x1412b12ff
sub rax, qword [rbx + 0x70]
cmp rdi, rax
jle 0x1412b12ff
mov rdi, rax
test rax, rax
jle 0x1412b1417
mov rdx, rdi
lea rcx, [rbx + 0x58]
call fcn.14126b530
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 0x1412b134d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1412b13ff
test eax, eax
je 0x1412b134d
cmp eax, 0xea
jne 0x1412b13e8
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.14126a6e0
cmp dword [rbx + 0x9c], 2
je 0x1412b1417
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 0x1412b13b2
mov eax, dword [rsp + 0x68]
jmp 0x1412b13c1
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 0x1412b12e1
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 0x1412b1e70
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1412b1f69
mov qword [rsp + 0x60], rbp
lea rbp, [rcx + 0x30]
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x30], r14
lea r14, [0x14004798c]
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 0x1412b1ef1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x3e5
je 0x1412b1f3d
mov ecx, eax
test eax, eax
jne 0x1412b1f12
mov edx, dword [rsp + 0x50]
lea rcx, [rbx + 0x50]
add qword [rbx + 0x78], rdx
mov byte [rbx + 0x92], 1
call fcn.14126acc0
cmp qword [rbx + 0x68], 0
je 0x1412b1f55
jmp 0x1412b1ea3
sub ecx, 0xe8
je 0x1412b1f35
sub ecx, 1
je 0x1412b1f35
cmp ecx, 0x2fa
je 0x1412b1f35
lea rdx, [0x1400c0990]
mov ecx, edi
call fcn.1411cae40
mov dword [rbx + 0x88], edi
jmp 0x1412b1f55
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 0x1412b2bf0
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 0x1412b2d38
mov rdi, 0xffffffffffffffff
mov r8, rdi
mov rdx, qword [rbp + 0x30]
lea rcx, [rbp - 0x18]
call fcn.1411c24e0
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 0x1412b2ca7
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1412b2ca7
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x18]
call fcn.1411dba10
nop
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x48]
call fcn.1411d5160
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x1412b2cdd
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1412b2cdd
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x30]
call fcn.1411dba10
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 0x1412b2d2e
lock xadd dword [r9], edi
cmp edi, 1
jne 0x1412b2d2e
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x48]
call fcn.1411dba10
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 0x1412d9450
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov word [rsp + 0x18], r8w
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x98
mov rdi, qword [rsp + 0x100]
mov rsi, r9
mov r13, qword [rsp + 0x108]
xor r9d, r9d
mov rbx, rdx
mov qword [rsp + 0x30], r9
xor edx, edx
mov qword [rsp + 0x40], r9
mov r8, qword [rdi + 0x38]
lea rax, [rsi - 0x50]
mov r11d, dword [r13 + 0xd0]
mov ebp, r9d
mov r12, qword [rdi + 0x30]
mov r14d, r11d
mov qword [rsp + 0x78], rax
mov r15d, r9d
mov rax, r8
shr r14d, 0x13
div rsi
mov dword [r12 + 0x30], r9d
and r14d, 1
mov dword [r12 + 0x6c], r9d
mov dword [r12 + 0x68], 0xffffffff
mov qword [r12 + 0x50], rcx
mov qword [r12 + 0x58], rcx
shr r11d, 0x11
and r11d, 1
mov qword [r12 + 0x60], r9
sub r8, rdx
mov qword [r12 + 0x78], r9
mov qword [rsp + 0x58], r8
mov dword [rsp + 0x108], r9d
mov dword [rsp + 0x38], r14d
lea rax, [r8 + r12]
mov dword [rsp + 0xe0], r11d
mov qword [rsp + 0x60], rax
mov r8d, r9d
mov qword [r12 + 0x70], 0xffffffffffffffff
mov dword [rsp + 0xe8], r9d
mov dword [rsp + 0x50], 0xdc00
nop dword [rax]
nop word [rax + rax]

Function at 0x14130a120
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 0x14130a2a5
lea rax, [rdx - 1]
cmp rax, 0xffffffffffffdffe
ja 0x14130a2a5
cmp rcx, rdx
mov rbp, rdx
mov rdx, r8
cmovbe rbp, rcx
mov ecx, 0x20
add rbp, 0x1fff
and rbp, 0xffffffffffffe000
call fcn.1412ccf10
mov rbx, rax
test rax, rax
je 0x14130a2a5
add r14, 0x1fff
mov qword [rsp + 0x60], rsi
and r14, 0xffffffffffffe000
mov qword [rsp + 0x68], rdi
cmp rbp, r14
ja 0x14130a285
cmp rbp, 1
jb 0x14130a285
mov rdx, qword [rax + 0x10]
lea rsi, [rax + 0x10]
mov rax, qword [rax]
mov ecx, 0x20
call qword [case.0x14120887a.0]
mov rdi, rax
test rax, rax
je 0x14130a220
mov rax, qword [0x141374608]
test rax, rax
jne 0x14130a1eb
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
dec rax
mov qword [0x141374608], 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 0x14130a22a
mov rdx, qword [rsi]
mov rax, qword [rbx + 8]
call qword [case.0x14120887a.0]
mov qword [rbx + 0x18], 0
jmp 0x14130a291
lea rdx, [rax + r14]
mov qword [rdi + 0x18], rax
mov qword [rdi + 8], rdx
mov qword [rdi + 0x10], rdx
sub rdx, rbp
call fcn.14130f4e0
test rax, rax
jne 0x14130a25c
mov rdx, rbx
mov rcx, rdi
call fcn.14130ecf0
mov qword [rbx + 0x18], 0
jmp 0x14130a291
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.0x14120887a.0]
xor eax, eax
jmp 0x14130a26a
mov rbx, qword [rsp + 0x70]
xor eax, eax
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x14130eb70
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 [0x141374590], rdi
jne 0x14130ebaf
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 [0x141374590], rcx
je 0x14130ebaf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x141374590]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx - 0x10]
lea rax, [rbx - 0x10]
sub qword [0x1413745a0], rcx
mov r9, rax
sub r9, qword [rax + 8]
cmp qword [r9], rdi
jne 0x14130ebeb
add rcx, qword [r9 + 0x20]
mov qword [r9 + 0x20], rcx
mov qword [rcx + r9 + 8], rcx
jmp 0x14130ec13
mov qword [rax + 0x20], rcx
mov r9, rax
mov rcx, qword [0x141374598]
mov qword [rax], rdi
mov qword [rbx], rcx
mov qword [rax + 0x18], rdi
test rcx, rcx
je 0x14130ec0c
mov qword [rcx + 0x18], rax
mov qword [0x141374598], rax
mov rcx, qword [r9 + 0x20]
cmp qword [rcx + r9], rdi
lea rdx, [rcx + r9]
jne 0x14130ec61
add rcx, qword [rdx + 0x20]
mov qword [r9 + 0x20], rcx
mov r8, qword [rdx + 0x10]
test r8, r8
je 0x14130ec3a
mov rax, qword [rdx + 0x18]
mov qword [r8 + 0x18], rax
mov r8, qword [rdx + 0x18]
mov rax, qword [rdx + 0x10]
test r8, r8
je 0x14130ec4d
mov qword [r8 + 0x10], rax
jmp 0x14130ec54
mov qword [0x141374598], rax
mov rax, qword [r9 + 0x20]
mov qword [rax + r9 + 8], rax
lea rdx, [rax + r9]
cmp qword [r9 + 8], rdi
jne 0x14130ecce
cmp qword [rdx], 1
jne 0x14130ecce
mov rax, qword [0x1413745a0]
mov rdx, qword [0x1413745a8]
sub rdx, qword [r9 + 0x20]
lea rcx, [rax + rax*2]
shr rcx, 1
cmp rdx, rcx
jbe 0x14130ecce
mov rcx, qword [r9 + 0x10]
mov qword [0x1413745a8], rdx
test rcx, rcx
je 0x14130eca3
mov rax, qword [r9 + 0x18]
mov qword [rcx + 0x18], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 0x10]
test rcx, rcx
je 0x14130ecb6
mov qword [rcx + 0x10], rax
jmp 0x14130ecbd
mov qword [0x141374598], rax
xor edx, edx
mov r8d, 0x8000
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [0x141374590]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_ReleaseMutex]