joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140435950
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x88
movups xmmword [rsp], xmm6
movups xmmword [rsp + 0x10], xmm7
movups xmmword [rsp + 0x20], xmm8
movups xmmword [rsp + 0x30], xmm9
movups xmmword [rsp + 0x40], xmm10
movups xmmword [rsp + 0x50], xmm11
movups xmmword [rsp + 0x60], xmm12
movups xmmword [rsp + 0x70], xmm13
mov rax, qword [0x140691530]
movdqu xmm0, xmmword [rcx]
movdqu xmm4, xmmword [rax + 0xb0]
movdqu xmm8, xmmword [rax + 0xf0]
movdqu xmm12, xmmword [rcx + 0x10]
movdqu xmm2, xmmword [rcx + 0x20]
movdqu xmm1, xmmword [rcx + 0x30]
aesdec xmm0, xmm4
movdqu xmm5, xmmword [rax + 0xc0]
aesenc xmm12, xmm4
movdqu xmm9, xmmword [rax + 0x100]
aesdec xmm2, xmm8
aesenc xmm1, xmm8
add rdx, r8
sub r8, 0xffffffffffffff80
movdqu xmm6, xmmword [rax + 0xd0]
aesdec xmm0, xmm5
movdqu xmm10, xmmword [rax + 0x110]
aesenc xmm12, xmm5
movdqu xmm7, xmmword [rax + 0xe0]
aesdec xmm2, xmm9
movdqu xmm11, xmmword [rax + 0x120]
aesenc xmm1, xmm9
aesdec xmm0, xmm6
aesenc xmm12, xmm6
aesdec xmm2, xmm10
aesenc xmm1, xmm10
aesdec xmm0, xmm7
aesenc xmm12, xmm7
aesdec xmm2, xmm11
aesenc xmm1, xmm11
movups xmmword [r8 - 0x80], xmm0
aesdec xmm0, xmm4
movups xmmword [r8 - 0x70], xmm12
aesenc xmm12, xmm4
aesdec xmm0, xmm5
movups xmmword [r8 - 0x60], xmm2
aesdec xmm2, xmm8
aesenc xmm12, xmm5
aesdec xmm0, xmm6
movups xmmword [r8 - 0x50], xmm1
aesenc xmm1, xmm8
aesdec xmm2, xmm9
aesenc xmm12, xmm6
aesenc xmm1, xmm9
aesdec xmm2, xmm10
aesdec xmm0, xmm7
aesenc xmm1, xmm10
aesenc xmm12, xmm7
aesdec xmm2, xmm11
movups xmmword [r8 - 0x40], xmm0
aesenc xmm1, xmm11
movups xmmword [r8 - 0x30], xmm12
movups xmmword [r8 - 0x20], xmm2
movups xmmword [r8 - 0x10], xmm1
cmp r8, rdx
jae 0x140435b8d
mov rax, 0xffffffffff0707ff
movq xmm3, rax
punpcklqdq xmm3, xmm3
nop dword [rax + rax]
aesdec xmm0, xmm4
aesenc xmm12, xmm4
aesdec xmm2, xmm8
add r8, 0x40
aesdec xmm0, xmm5
aesenc xmm12, xmm5
aesdec xmm2, xmm9
aesdec xmm0, xmm6
aesenc xmm12, xmm6
aesenc xmm1, xmm8
aesdec xmm0, xmm7
aesenc xmm12, xmm7
aesdec xmm2, xmm10
movdqa xmm13, xmm0
aesenc xmm1, xmm9
aesdec xmm2, xmm11
pand xmm13, xmm3
aesenc xmm1, xmm10
movups xmmword [r8 - 0x40], xmm13
movdqa xmm13, xmm12
aesenc xmm1, xmm11
pand xmm13, xmm3
movups xmmword [r8 - 0x30], xmm13
movdqa xmm13, xmm2
pand xmm13, xmm3
movups xmmword [r8 - 0x20], xmm13
movdqa xmm13, xmm1
pand xmm13, xmm3
movups xmmword [r8 - 0x10], xmm13
cmp r8, rdx
jb 0x140435ae8
movups xmm6, xmmword [rsp]
movups xmm7, xmmword [rsp + 0x10]
movups xmm8, xmmword [rsp + 0x20]
movups xmm9, xmmword [rsp + 0x30]
movups xmm10, xmmword [rsp + 0x40]
movups xmm11, xmmword [rsp + 0x50]
movups xmm12, xmmword [rsp + 0x60]
movups xmm13, xmmword [rsp + 0x70]
add rsp, 0x88
ret
mov rax, rcx
mov rcx, rdx
mov rdx, qword [0x140691530]
lea r8, [rax + 0x40]
mov edx, dword [rdx + 0x20]
lea edx, [rdx*8 + 0x80]
jmp 0x140435950
Function at 0x140437e20
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
movdqu xmm0, xmmword [str._f__nc]
movdqu xmm1, xmmword [0x1405c2210]
movdqu xmm2, xmmword [0x1405c2220]
movdqu xmm3, xmmword [0x1405c2230]
add rdx, rcx
cmp rcx, rdx
jae 0x140437e70
nop dword [rax + rax]
aesenc xmm3, xmmword [rcx]
aesdec xmm2, xmmword [rcx + 0x10]
aesenc xmm1, xmmword [rcx + 0x20]
add rcx, 0x40
aesdec xmm0, xmmword [rcx - 0x10]
cmp rcx, rdx
jb 0x140437e50
movdqu xmm4, xmmword [0x1405c2280]
aesenc xmm3, xmm4
aesdec xmm2, xmm4
aesenc xmm1, xmm4
aesdec xmm0, xmm4
movdqu xmm4, xmmword [0x1405c2290]
aesenc xmm3, xmm4
aesdec xmm2, xmm4
aesenc xmm1, xmm4
aesdec xmm0, xmm4
movups xmmword [r8], xmm3
movups xmmword [r8 + 0x10], xmm2
movups xmmword [r8 + 0x20], xmm1
movups xmmword [r8 + 0x30], xmm0
ret
Function at 0x140438be0
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
push rbx
sub rsp, 0x60
movups xmmword [rsp], xmm6
movups xmmword [rsp + 0x10], xmm7
movups xmmword [rsp + 0x20], xmm8
movups xmmword [rsp + 0x30], xmm9
movups xmmword [rsp + 0x40], xmm10
movups xmmword [rsp + 0x50], xmm11
movdqu xmm5, xmmword [0x1405c2210]
movdqu xmm6, xmmword [0x1405c2220]
movdqu xmm7, xmmword [0x1405c2230]
movdqu xmm4, xmmword [str._f__nc]
movdqu xmm3, xmmword [r9]
movdqu xmm2, xmmword [r9 + 0x10]
movdqu xmm1, xmmword [r9 + 0x20]
movdqu xmm0, xmmword [r9 + 0x30]
movdqu xmm11, xmmword [0x1405c2240]
movdqu xmm10, xmmword [0x1405c2250]
movdqu xmm9, xmmword [0x1405c2260]
movdqu xmm8, xmmword [0x1405c2270]
mov rax, rdx
mov r11, rcx
lea rdx, [rcx + 0x1c00]
lea rcx, [rcx + rax - 0x1c00]
mov r10, r11
lea rbx, [rcx + 0x3800]
mov rax, r10
cmp r10, rcx
jae 0x140438d3d
nop dword [rax]
aesdec xmm3, xmm11
aesenc xmm2, xmm10
aesenc xmm7, xmmword [rax]
sub rax, 0xffffffffffffff80
aesdec xmm1, xmm9
aesenc xmm0, xmm8
movups xmmword [rax - 0x80], xmm3
aesdec xmm6, xmmword [rax - 0x70]
aesenc xmm5, xmmword [rax - 0x60]
aesdec xmm4, xmmword [rax - 0x50]
movups xmmword [rax - 0x70], xmm2
prefetcht0 byte [rdx]
movups xmmword [rax - 0x60], xmm1
aesdec xmm3, xmm11
prefetcht0 byte [rdx + 0x40]
aesenc xmm2, xmm10
movups xmmword [rax - 0x50], xmm0
aesdec xmm1, xmm9
sub rdx, 0xffffffffffffff80
aesenc xmm0, xmm8
aesenc xmm7, xmmword [rax - 0x40]
aesdec xmm6, xmmword [rax - 0x30]
aesenc xmm5, xmmword [rax - 0x20]
movups xmmword [rax - 0x40], xmm3
aesdec xmm4, xmmword [rax - 0x10]
movups xmmword [rax - 0x30], xmm2
movups xmmword [rax - 0x20], xmm1
movups xmmword [rax - 0x10], xmm0
cmp rax, rcx
jb 0x140438c90
mov rax, rcx
sub rax, r10
sub rax, 1
and rax, 0xffffffffffffff80
lea r10, [r10 + rax + 0x80]
add rcx, 0x1c00
cmp rcx, rbx
je 0x140438d58
mov rdx, r11
jmp 0x140438c80
movups xmmword [r9], xmm3
movups xmm8, xmmword [rsp + 0x20]
movups xmm9, xmmword [rsp + 0x30]
movups xmmword [r9 + 0x30], xmm0
movdqu xmm0, xmmword [0x1405c2280]
movups xmm10, xmmword [rsp + 0x40]
movups xmmword [r9 + 0x10], xmm2
movups xmm11, xmmword [rsp + 0x50]
aesenc xmm7, xmm0
aesdec xmm6, xmm0
aesenc xmm5, xmm0
movups xmmword [r9 + 0x20], xmm1
aesdec xmm4, xmm0
movdqu xmm0, xmmword [0x1405c2290]
aesenc xmm7, xmm0
aesdec xmm6, xmm0
aesenc xmm5, xmm0
movups xmmword [r8], xmm7
movups xmm7, xmmword [rsp + 0x10]
aesdec xmm4, xmm0
movups xmmword [r8 + 0x10], xmm6
movups xmm6, xmmword [rsp]
movups xmmword [r8 + 0x20], xmm5
movups xmmword [r8 + 0x30], xmm4
add rsp, 0x60
pop rbx
ret
Function at 0x1404a91e0
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x88
movups xmmword [rsp], xmm6
movups xmmword [rsp + 0x10], xmm7
movups xmmword [rsp + 0x20], xmm8
movups xmmword [rsp + 0x30], xmm9
movups xmmword [rsp + 0x40], xmm10
movups xmmword [rsp + 0x50], xmm11
movups xmmword [rsp + 0x60], xmm12
movups xmmword [rsp + 0x70], xmm13
mov rax, qword [0x140691530]
movdqu xmm0, xmmword [rcx]
movdqu xmm4, xmmword [rax + 0xb0]
movdqu xmm8, xmmword [rax + 0xf0]
movdqu xmm12, xmmword [rcx + 0x10]
movdqu xmm2, xmmword [rcx + 0x20]
movdqu xmm1, xmmword [rcx + 0x30]
aesdec xmm0, xmm4
movdqu xmm5, xmmword [rax + 0xc0]
aesenc xmm12, xmm4
movdqu xmm9, xmmword [rax + 0x100]
aesdec xmm2, xmm8
aesenc xmm1, xmm8
add rdx, r8
sub r8, 0xffffffffffffff80
movdqu xmm6, xmmword [rax + 0xd0]
aesdec xmm0, xmm5
movdqu xmm10, xmmword [rax + 0x110]
aesenc xmm12, xmm5
movdqu xmm7, xmmword [rax + 0xe0]
aesdec xmm2, xmm9
movdqu xmm11, xmmword [rax + 0x120]
aesenc xmm1, xmm9
aesdec xmm0, xmm6
aesenc xmm12, xmm6
aesdec xmm2, xmm10
aesenc xmm1, xmm10
aesdec xmm0, xmm7
aesenc xmm12, xmm7
aesdec xmm2, xmm11
aesenc xmm1, xmm11
movups xmmword [r8 - 0x80], xmm0
aesdec xmm0, xmm4
movups xmmword [r8 - 0x70], xmm12
aesenc xmm12, xmm4
aesdec xmm0, xmm5
movups xmmword [r8 - 0x60], xmm2
aesdec xmm2, xmm8
aesenc xmm12, xmm5
aesdec xmm0, xmm6
movups xmmword [r8 - 0x50], xmm1
aesenc xmm1, xmm8
aesdec xmm2, xmm9
aesenc xmm12, xmm6
aesenc xmm1, xmm9
aesdec xmm2, xmm10
aesdec xmm0, xmm7
aesenc xmm1, xmm10
aesenc xmm12, xmm7
aesdec xmm2, xmm11
movups xmmword [r8 - 0x40], xmm0
aesenc xmm1, xmm11
movups xmmword [r8 - 0x30], xmm12
movups xmmword [r8 - 0x20], xmm2
movups xmmword [r8 - 0x10], xmm1
cmp r8, rdx
jae 0x140435b8d
mov rax, 0xffffffffff0707ff
movq xmm3, rax
punpcklqdq xmm3, xmm3
nop dword [rax + rax]
aesdec xmm0, xmm4
aesenc xmm12, xmm4
aesdec xmm2, xmm8
add r8, 0x40
aesdec xmm0, xmm5
aesenc xmm12, xmm5
aesdec xmm2, xmm9
aesdec xmm0, xmm6
aesenc xmm12, xmm6
aesenc xmm1, xmm8
aesdec xmm0, xmm7
aesenc xmm12, xmm7
aesdec xmm2, xmm10
movdqa xmm13, xmm0
aesenc xmm1, xmm9
aesdec xmm2, xmm11
pand xmm13, xmm3
aesenc xmm1, xmm10
movups xmmword [r8 - 0x40], xmm13
movdqa xmm13, xmm12
aesenc xmm1, xmm11
pand xmm13, xmm3
movups xmmword [r8 - 0x30], xmm13
movdqa xmm13, xmm2
pand xmm13, xmm3
movups xmmword [r8 - 0x20], xmm13
movdqa xmm13, xmm1
pand xmm13, xmm3
movups xmmword [r8 - 0x10], xmm13
cmp r8, rdx
jb 0x140435ae8
movups xmm6, xmmword [rsp]
movups xmm7, xmmword [rsp + 0x10]
movups xmm8, xmmword [rsp + 0x20]
movups xmm9, xmmword [rsp + 0x30]
movups xmm10, xmmword [rsp + 0x40]
movups xmm11, xmmword [rsp + 0x50]
movups xmm12, xmmword [rsp + 0x60]
movups xmm13, xmmword [rsp + 0x70]
add rsp, 0x88
ret
mov rax, rcx
mov rcx, rdx
mov rdx, qword [0x140691530]
lea r8, [rax + 0x40]
mov edx, dword [rdx + 0x20]
lea edx, [rdx*8 + 0x80]
jmp 0x140435950
Function at 0x1405903f0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rdx
mov rax, rcx
mov r10, rdx
and r11, 0xfffffffffffffff8
add r11, rcx
movabs rcx, 0xc6a4a7935bd1e995
imul r10, rcx
xor r10, r8
cmp rax, r11
je 0x140590448
nop word cs:[rax + rax]
mov r9, qword [rax]
add rax, 8
imul r9, rcx
mov r8, r9
shr r8, 0x2f
xor r8, r9
imul r8, rcx
xor r8, r10
mov r10, r8
imul r10, rcx
cmp r11, rax
jne 0x140590420
and edx, 7
je 0x14059047d
sub edx, 1
movsxd rax, edx
xor edx, edx
nop dword [rax]
movzx ecx, byte [r11 + rax]
shl rdx, 8
sub rax, 1
add rdx, rcx
test eax, eax
jns 0x140590458
xor rdx, r10
movabs r10, 0xc6a4a7935bd1e995
imul r10, rdx
movabs rax, 0xc6a4a7935bd1e995
mov rdx, r10
shr rdx, 0x2f
xor rdx, r10
imul rdx, rax
mov rax, rdx
shr rax, 0x2f
xor rax, rdx
ret
Function at 0x14001d8a0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x1400ab020]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor esi, esi
mov r14, rdx
cmp qword [rcx + 0x18], 8
mov rbx, rcx
mov qword [rsp + 0x30], rsi
jb 0x14001d8db
mov rdx, qword [rcx]
jmp 0x14001d8de
mov rdx, rcx
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
xor eax, eax
lea rdi, [rsp + 0x40]
mov ecx, 0x208
lea rdx, [rsp + 0x40]
rep stosb byte [rdi], al
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x14001d920
mov rcx, qword [rsp + 0x30]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, [0x14008d8f0]
lea rax, [rsp + 0x40]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea rdx, [0x14008d918]
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], 7
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, qword [rbx + 0x18]
cmp r8, 8
jb 0x14001d9b0
mov rdx, qword [rbx]
inc r8
call fcn.140022ad0
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jb 0x14001d9c6
mov rbx, qword [rbx]
mov word [rbx], si
mov r8, qword [r14 + 0x18]
cmp r8, 8
jb 0x14001d9de
mov rdx, qword [r14]
inc r8
call fcn.140022ad0
mov qword [r14 + 0x18], 7
mov qword [r14 + 0x10], rsi
cmp qword [r14 + 0x18], 8
jb 0x14001d9f9
mov rax, qword [r14]
mov word [rax], si
jmp 0x14001d9fd
mov word [r14], si
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140054e30
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop r14
pop rdi
pop rsi
ret
Function at 0x14002c890
Capabilities:
Get socket status

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x218]
sub rsp, 0x300
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400ab020]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov rbx, rcx
lea r14, vtable.LogItem.0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x60], 7
xor esi, esi
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], rsi
mov word [rsp + 0x68], si
mov dword [rbp - 0x78], 1
mov dword [rbp - 0x74], 1
lea rdx, str._DBG___0x
lea rcx, [rsp + 0x40]
call fcn.14001cc00
mov dword [rax + 0x48], esi
mov rdx, rbx
mov rcx, rax
call fcn.140027230
mov dword [rax + 0x48], 1
lea rdx, [0x14008f5dc]
mov rcx, rax
call fcn.14001cc00
mov rcx, rax
lea rdx, str.AcceptClientSocket_called...
call fcn.14001cc00
nop
lea rcx, [rsp + 0x40]
call fcn.14001c780
cmp qword [rbx + 0x200], 0xffffffffffffffff
jne 0x14002ca9c
mov rax, qword [rbx + 0x1f8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x20], 1
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jne 0x14002c95a
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbx + 0x1f8]
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rbx + 0x200], rax
cmp rax, 0xffffffffffffffff
jne 0x14002c95a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], rsi
mov word [rsp + 0x68], si
mov dword [rbp - 0x78], 1
mov dword [rbp - 0x74], 1
lea rdx, str._DBG___0x
lea rcx, [rsp + 0x40]
call fcn.14001cc00
mov dword [rax + 0x48], esi
mov rdx, rbx
mov rcx, rax
call fcn.140027230
mov dword [rax + 0x48], 1
lea rdx, [0x14008f5dc]
mov rcx, rax
call fcn.14001cc00
mov rcx, rax
lea rdx, str.Socket_server_error_on_accept_operation_occured.
call fcn.14001cc00
nop
lea rcx, [rsp + 0x40]
call fcn.14001c780
mov qword [rbp - 0x28], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x30], rsi
mov byte [rbp - 0x40], 0
mov r8d, 0x32
lea rdx, str.SocketHeciServer::SocketServer::AcceptClientSocket
lea rcx, [rbp - 0x40]
call fcn.140022570
nop
mov r8d, edi
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x40]
call fcn.1400285d0
lea rdx, [0x1400a7850]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.140054e30
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14003d800
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push r14
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov rbp, r8
mov r14, rdx
lea rsi, [0x1400b09a0]
cmp qword [0x1400b09b8], 0x10
cmovae rsi, qword [0x1400b09a0]
mov ecx, 0x18
call fcn.140054e64
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14003d873
mov qword [rax + 8], 0
mov dword [rax + 0x10], 1
mov rcx, rsi
call fcn.140054790
mov qword [rbx], rax
jmp 0x14003d875
xor ebx, ebx
test rbx, rbx
jne 0x14003d885
mov ecx, 0x8007000e
call fcn.140054630
int3
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r14
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test eax, eax
setne r14b
or ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x14003d8f4
mov rcx, qword [rbx]
test rcx, rcx
je 0x14003d8d1
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], 0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14003d8e7
call fcn.140055150
mov qword [rbx + 8], 0
mov edx, 0x18
mov rcx, rbx
call fcn.140055150
test r14b, r14b
je 0x14003d90d
mov ecx, esi
call fcn.14003d370
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x14003d90f
mov al, 1
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140044830
Capabilities:
Identify system language via api

Disassembly:
sub rsp, 0x28
cmp byte [0x1400acf69], 0
je 0x140044848
mov eax, dword [0x1400acf6c]
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx r8d, ax
mov edx, r8d
and edx, 0x3ff
sub edx, 7
je 0x1400448ae
sub edx, 3
je 0x14004488a
sub edx, 0xb
je 0x140044880
cmp edx, 1
je 0x140044876
xor eax, eax
add rsp, 0x28
ret
mov eax, 2
add rsp, 0x28
ret
mov eax, 5
add rsp, 0x28
ret
mov eax, 0xfc00
mov ecx, 0x800
and r8w, ax
mov edx, 1
cmp r8w, cx
mov eax, 3
cmovne eax, edx
add rsp, 0x28
ret
mov eax, 4
add rsp, 0x28
ret
Function at 0x140049920
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov qword [rsp + 0x118], rbx
mov rax, qword [0x1400ab020]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14d, r8d
mov rdi, rdx
mov rsi, rcx
xor r15d, r15d
mov dword [rbp - 0x65], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rbx, rax
mov qword [rbp - 0x39], rax
test rax, rax
jne 0x1400499e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x69], eax
lea rax, vtable.LogItem.0
mov qword [rbp - 0x29], rax
mov qword [rbp - 9], 7
mov qword [rbp - 0x11], r15
mov word [rbp - 0x21], r15w
mov qword [rbp + 0x17], 7
mov qword [rbp + 0xf], r15
mov word [rbp - 1], r15w
mov dword [rbp + 0x1f], 1
mov dword [rbp + 0x23], 1
lea rdx, str.Cannot_create_read_event._Error:
lea rcx, [rbp - 0x29]
call fcn.14001cc00
mov rcx, rax
lea rdx, [rbp - 0x69]
call fcn.14001c9a0
nop
jmp 0x140049b15
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x51], r15
lea rax, [rbp - 0x61]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x65]
mov r8d, r14d
mov rdx, rdi
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x140049a20
cmp eax, 0x3e5
jne 0x140049b1e
mov edx, dword [rsi + 0x34]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140049a98
lea rax, vtable.LogItem.0
mov qword [rbp - 0x29], rax
mov qword [rbp - 9], 7
mov qword [rbp - 0x11], r15
mov word [rbp - 0x21], r15w
mov qword [rbp + 0x17], 7
mov qword [rbp + 0xf], r15
mov word [rbp - 1], r15w
mov dword [rbp + 0x1f], 1
mov dword [rbp + 0x23], 1
lea rdx, str.Timeout_occured_while_reading_from_heci_device.
lea rcx, [rbp - 0x29]
call fcn.14001cc00
nop
lea rcx, [rbp - 0x29]
call fcn.14001c780
mov rdx, rbx
mov rcx, rsi
call fcn.140048980
jmp 0x140049b26
mov r9d, 1
lea r8, [rbp - 0x65]
lea rdx, [rbp - 0x61]
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x140049b2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x69], eax
lea rax, vtable.LogItem.0
mov qword [rbp - 0x29], rax
mov qword [rbp - 9], 7
mov qword [rbp - 0x11], r15
mov word [rbp - 0x21], r15w
mov qword [rbp + 0x17], 7
mov qword [rbp + 0xf], r15
mov word [rbp - 1], r15w
mov dword [rbp + 0x1f], 1
mov dword [rbp + 0x23], 1
lea rdx, str.Read_function_fail_to_finish._Error:
lea rcx, [rbp - 0x29]
call fcn.14001cc00
mov rcx, rax
lea rdx, [rbp - 0x69]
call fcn.14001c9a0
nop
lea rcx, [rbp - 0x29]
call fcn.14001c780
mov rcx, rsi
call fcn.140049750
or edi, 0xffffffff
jmp 0x140049b2e
mov edi, dword [rbp - 0x65]
cmp rbx, 0xffffffffffffffff
je 0x140049b3d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140054e30
mov rbx, qword [rsp + 0x118]
add rsp, 0xd0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004ff90
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x390], rbx
mov rax, qword [0x1400ab020]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov r10, rdx
mov rsi, rcx
xor ebx, ebx
mov dword [rsp + 0x28], ebx
lea rdi, [rbp + 0x40]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, r10
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jns 0x1400500bc
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rcx, [rbp - 0x20]
call fcn.14001bb40
nop
mov rcx, rax
call fcn.140050950
mov rdi, rax
lea rax, vtable.std::exception.0
mov qword [rbp - 0x80], rax
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
lea rcx, [rdi + 8]
lea rdx, [rbp - 0x78]
call qword [sym.imp.VCRUNTIME140.dll___std_exception_copy]
nop
lea rax, vtable.BaseException.0
mov qword [rbp - 0x80], rax
lea rdx, [rdi + 0x18]
mov qword [rbp - 0x50], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x58], rbx
mov byte [rbp - 0x68], bl
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x68]
call fcn.1400226a0
nop
lea rax, vtable.ExceptionStream_class_Exception__class_BaseException_.0
mov qword [rbp - 0x80], rax
lea rdx, [rdi + 0x38]
mov qword [rbp - 0x30], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x38], rbx
mov byte [rbp - 0x48], bl
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x48]
call fcn.1400226a0
nop
lea rax, vtable.Exception.0
mov qword [rbp - 0x80], rax
lea rdx, [0x1400a7580]
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rbx
mov word [rsp + 0x60], bx
mov rdx, qword [rsp + 0x20]
cmp word [rdx], bx
jne 0x1400500de
mov r8, rbx
jmp 0x1400500ec
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], bx
jne 0x1400500e2
lea rcx, [rsp + 0x60]
call fcn.140022190
nop
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
lea rcx, [rbp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
cmp word [rbp + 0x40], 0
je 0x14005014a
lea rax, [rbp + 0x40]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140050140
mov r8, rbx
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.140022190
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14001be70
nop
mov r8, qword [rsp + 0x78]
cmp r8, 8
jb 0x140050181
inc r8
mov rdx, qword [rsp + 0x60]
call fcn.140022ad0
mov rax, rsi
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.140054e30
mov rbx, qword [rsp + 0x390]
add rsp, 0x360
pop rdi
pop rsi
pop rbp
ret