joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001c180
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x20
mov rbx, qword [0x1400ef3c8]
xor ebp, ebp
cmp byte [rbx + 0x5ee8], bpl
jne 0x14001c27c
cmp dword [rbx + 0x5f10], ebp
je 0x14001c1c7
mov r8d, 0x333d
lea rdx, str.C:UsersmeDesktop_antagonist_guiimgui_masterimgui.cpp
lea rcx, str.g.SettingsWindows.empty__
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001c275
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.140003650
mov rdi, rax
test rax, rax
je 0x14001c275
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14001c201
mov rcx, rax
call fcn.14001c3d0
mov r8, qword [0x1400ef3c8]
test r8, r8
je 0x14001c26c
movsx rdx, word [r8 + 0x6048]
lea rcx, [r8 + 0x604c]
mov r9d, dword [r8 + 0x3f60]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14001c261
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6048], cx
movsx rax, cx
lea rcx, [r8 + 0x604c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x6044]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x5ee8], 1
movss xmm0, dword [rbx + 0x5eec]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14001c319
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5eec], xmm0
jb 0x14001c319
mov rdi, qword [rbx + 0x20]
mov qword [rsp + 0x38], rsi
test rdi, rdi
je 0x14001c307
mov rax, qword [0x1400ef3c8]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x5eec], ebp
call fcn.14001c640
lea rdx, [0x1400473dc]
mov rcx, rdi
mov rsi, rax
call fcn.140003560
mov rdi, rax
test rax, rax
je 0x14001c30e
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x14001c30e
mov byte [rbx + 0xce], 1
mov rsi, qword [rsp + 0x38]
mov dword [rbx + 0x5eec], ebp
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14001c330
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1400ef3c8]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x14001c393
mov qword [rsp], rbx
lea rbx, [0x140047bf0]
nop dword [rax]
cmp r9b, 0x23
jne 0x14001c373
cmp byte [r8], r9b
jne 0x14001c373
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x14001c360
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5f00]
not eax
mov r8, qword [r10 + 0x5f08]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x14001c3bf
cmp dword [r8 + 8], eax
je 0x14001c3c6
add r8, 0x48
cmp r8, rcx
jne 0x14001c3b0
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x140040a50
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140040a9a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140040a9a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140040a9a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140040a9a
cmp dword [rcx + 0x84], 0xe
jbe 0x140040a9a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140040a9c
xor al, al
add rsp, 0x28
ret
Function at 0x417a40
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x417beb
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [0x00afd8a8]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00433380
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
nop
jne 0x417aae
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x417ac1
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x417ae5
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x417af9
cmp rbx, 0x1000
jae 0x417ab8
nop
jmp 0x417b69
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop
cmp rbx, 0x1000
jae 0x417b0d
xor edx, edx
jmp 0x417b60
mov rcx, qword [0x00afd8a8]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00433380
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
nop
test dl, dl
jne 0x417aef
jmp 0x417ad5
call fcn.004647e0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00437980
lea rax, [0x00844b70]
mov ebx, 0x18
nop dword [rax + rax]
call fcn.00438280
mov rax, qword [rsp + 0x38]
call fcn.00437f80
lea rax, [0x00844d08]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00438280
mov rax, qword [rsp + 0x30]
call fcn.00437f80
call fcn.00437be0
call fcn.00437a00
lea rax, [0x0084a627]
mov ebx, 0x21
call fcn.004361e0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00460c40
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00417a40
Function at 0x417c20
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x417e4a
sub rsp, 0x58
mov qword [rsp + 0x50], rbp
lea rbp, [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [0x00afd8b0]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.00433400
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x417c9b
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x417cae
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x417cd0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x417ce4
cmp rbx, 0x1000
jae 0x417ca5
jmp 0x417d6e
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x417cf6
xor esi, esi
jmp 0x417d60
mov rax, qword [0x00afd8b0]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
nop dword [rax]
call fcn.00433400
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
test sil, sil
jne 0x417cda
jmp 0x417cc2
call fcn.004647e0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x417de9
call fcn.00437980
lea rax, [0x0084564f]
mov ebx, 0x19
call fcn.00438280
mov rax, qword [rsp + 0x68]
call fcn.00437f80
lea rax, [0x00844d08]
mov ebx, 0x19
nop
call fcn.00438280
mov eax, dword [rsp + 0x34]
call fcn.00437f80
call fcn.00437be0
call fcn.00437a00
lea rax, [0x0083ae0b]
mov ebx, 0xd
call fcn.004361e0
cmp eax, 0x5af
je 0x417d93
call fcn.00437980
lea rax, [0x0084564f]
mov ebx, 0x19
call fcn.00438280
mov rax, qword [rsp + 0x38]
call fcn.00437f80
lea rax, [0x00844d08]
mov ebx, 0x19
nop dword [rax]
call fcn.00438280
mov eax, dword [rsp + 0x34]
call fcn.00437f80
call fcn.00437be0
call fcn.00437a00
lea rax, [0x008493c4]
mov ebx, 0x1f
call fcn.004361e0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00460c40
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00417c20
Function at 0x41fd00
Capabilities:
Hash data using murmur3

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
cmp byte [0x00c5d6cf], 0
jne 0x41fdef
nop
nop
nop
nop
sub rbx, qword [rax + 0x18]
nop
mov edx, dword [rax + 0x5c]
imul rbx, rdx
mov rdx, rbx
shr rbx, 0x20
nop
shr rdx, 0x23
and ebx, 7
mov rsi, rcx
mov rcx, rbx
mov edi, 1
shl edi, cl
nop
add rdx, qword [rax + 0x50]
lock or byte [rdx], dil
nop
nop
mov rcx, qword [rax + 0x18]
nop
movabs rdx, 0x800000000000
lea rax, [rdx + rcx]
mov rdx, rax
shr rax, 0x2a
cmp rax, 0x40
jae 0x41fde5
lea rbx, [0x00c2fb10]
mov rax, qword [rbx + rax*8]
shr rdx, 0x16
and edx, 0xfffff
mov rdx, qword [rax + rdx*8]
test byte [rdx], al
test byte [rax], al
mov rax, rcx
shr rcx, 0x10
and ecx, 0x3f
movzx ebx, byte [rdx + rcx + 0x21040]
lea rdx, [rdx + rcx]
lea rdx, [rdx + 0x21040]
shr rax, 0xd
and eax, 7
mov rcx, rax
mov eax, 1
shl eax, cl
nop dword [rax]
test al, bl
jne 0x41fdc7
lock or byte [rdx], al
mov rax, qword [r14 + 0x30]
mov rax, qword [rax + 0xa0]
test byte [rax], al
add qword [rax + 0x1248], rsi
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov ecx, 0x40
call fcn.00463340
lea rax, [0x0084f291]
mov ebx, 0x2c
nop dword [rax + rax]
call fcn.004361e0
nop
int3
Function at 0x42f060
Capabilities:
Hash data using murmur3

Disassembly:
cmp rsp, qword [r14 + 0x18]
jbe 0x42f306
sub rsp, 0x40
mov qword [rsp + 0x38], rbp
lea rbp, [rsp + 0x38]
test byte [rax], al
lea rsi, [rax + 0x1270]
mov rcx, qword [rax + 0x1260]
sub rcx, rsi
shr rcx, 3
cmp rcx, 0x200
ja 0x42f2fa
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], rcx
mov qword [rax + 0x1260], 0
cmp byte [0x00c5d6cf], 0
jne 0x42f0c2
xor edx, edx
xor ebx, ebx
nop
jmp 0x42f10b
xor edx, edx
jmp 0x42f0ee
mov qword [rsp + 0x28], rdx
mov rcx, qword [rax + rdx*8 + 0x1270]
mov rax, rcx
call fcn.0041f520
mov rcx, qword [rsp + 0x28]
lea rdx, [rcx + 1]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
cmp rdx, rcx
jl 0x42f0c6
add rax, 0x1260
call fcn.0042eee0
mov rbp, qword [rsp + 0x38]
add rsp, 0x40
ret
inc rdx
cmp rdx, rcx
jge 0x42f292
mov rsi, qword [rax + rdx*8 + 0x1270]
nop dword [rax]
cmp rsi, 0x1000
jb 0x42f108
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rbx
mov rax, rsi
xor ebx, ebx
mov rcx, rbx
nop dword [rax + rax]
call fcn.00413ec0
test rax, rax
jne 0x42f162
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
nop
jmp 0x42f108
nop
mov rsi, rcx
shr rcx, 3
and esi, 7
mov rdx, rcx
mov rcx, rsi
mov r8d, 1
shl r8d, cl
nop
add rdx, qword [rbx + 0x50]
movzx esi, byte [rdx]
test r8b, sil
je 0x42f1a5
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
nop dword [rax]
jmp 0x42f108
nop
lock or byte [rdx], r8b
nop
nop
mov rcx, qword [rbx + 0x18]
nop
movabs rsi, 0x800000000000
lea r8, [rsi + rcx]
mov r9, r8
shr r8, 0x2a
cmp r8, 0x40
jae 0x42f2ed
lea r10, [0x00c2fb10]
mov r8, qword [r10 + r8*8]
shr r9, 0x16
and r9d, 0xfffff
mov r9, qword [r8 + r9*8]
test byte [r9], al
test byte [r8], al
mov r8, rcx
shr rcx, 0x10
and ecx, 0x3f
movzx r10d, byte [r9 + rcx + 0x21040]
lea r9, [r9 + rcx]
lea r9, [r9 + 0x21040]
shr r8, 0xd
and r8d, 7
mov rcx, r8
mov r8d, 1
shl r8d, cl
test r8b, r10b
jne 0x42f22b
lock or byte [r9], r8b
movzx r8d, byte [rbx + 0x62]
test r8b, 1
je 0x42f265
mov r8, qword [rsp + 0x48]
mov r9, qword [r8 + 0x1248]
add r9, qword [rbx + 0x68]
mov qword [r8 + 0x1248], r9
mov rax, r8
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
nop
jmp 0x42f108
mov r8, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
cmp r8, rcx
jae 0x42f2e5
mov r9, qword [rsp + 0x48]
mov qword [r9 + r8*8 + 0x1270], rax
lea rbx, [r8 + 1]
mov rax, r9
mov rdx, qword [rsp + 0x28]
jmp 0x42f108
cmp rbx, 0x200
ja 0x42f2d7
lea rdx, [rax + 0x1270]
lea rsi, [rax + 0x1238]
mov rcx, rbx
mov edi, 0x200
mov rbx, rdx
mov rax, rsi
call fcn.00425140
mov rdx, qword [rsp + 0x48]
lea rax, [rdx + 0x1260]
call fcn.0042eee0
mov rbp, qword [rsp + 0x38]
add rsp, 0x40
ret
mov rcx, rbx
mov edx, 0x200
nop
call fcn.004633a0
mov rax, r8
call fcn.00463320
mov rax, r8
mov ecx, 0x40
call fcn.00463340
mov edx, 0x200
nop
call fcn.00463380
nop
mov qword [rsp + 8], rax
call fcn.00465380
mov rax, qword [rsp + 8]
jmp fcn.0042f060
Function at 0x462dc0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x00c5dca0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x00c5d6ce], 0
je 0x462df6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x00c5dfa0]
aesenc xmm0, xmmword [0x00c5dfb0]
aesenc xmm0, xmmword [0x00c5dfc0]
movq rax, xmm0
ret
jmp 0x409d80
Function at 0x6d89f060
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8c05e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d89f1e8
mov rax, qword [0x6d8c05e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d89f0ac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d89f135
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d89f090
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d89f21d
mov rax, qword [0x6d8c05e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d8c05e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d89f200
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d89f12e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d89f190
add dword [0x6d8c05e4], 1
cmp edi, 8
jae 0x6d89f163
test dil, 4
jne 0x6d89f1d4
test edi, edi
je 0x6d89f158
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d89f1ef
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d89f158
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d89f17c
jmp 0x6d89f158
add rsi, qword [0x6d8c05e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d89f12e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d89f158
xor esi, esi
jmp 0x6d89f0b7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d89f158
mov rax, qword [0x6d8c05e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d89f970
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8c08c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8c08a0]
test rbx, rbx
je 0x6d89f9c4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d89f9bb
test rsi, rsi
je 0x6d89f9bb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d89f9a0
lea rcx, [0x6d8c08c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d89fc00
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d89fc10
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d89fc20
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d89fc61
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d89fc58
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d89fc63
add rax, 0x28
cmp rax, r9
jne 0x6d89fc44
xor eax, eax
ret

Function at 0x6d89fd00
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8bd1f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d89fd6d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d89fd6d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d89fd6d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d89fd64
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d89fd6f
add rax, 0x28
cmp rax, r9
jne 0x6d89fd50
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d89fe70
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8bd1f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d89fe90
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d89fe88
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d89feed
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d89fee4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d89fef4
add rax, 0x28
cmp rax, r9
jne 0x6d89fed0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d89ff10
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8bd1f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d89ff7e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d89ff7e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d89ff7e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d89ff7e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d89ff75
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d89ff85
add rcx, 0x28
cmp rcx, rax
jne 0x6d89ff60
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d89ff98
jmp 0x6d89ff7e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d89ffa6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d89ff7e
test r9d, r9d
jg 0x6d89ff90
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8a0310
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400110be
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
jmp 0x1400144b0
push rbp
push rdi
sub rsp, 0x468
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xb2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140024278]
xor rax, rbp
mov qword [rbp + 0x438], rax
lea rcx, [0x14002a21d]
call fcn.140011645
mov r8d, 0x104
lea rdx, [rbp + 0x10]
lea rcx, str.USERPROFILE
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea rax, str.RtkAudioServiceStartup64.ps1
mov qword [rbp + 0x138], rax
lea r9, [rbp + 0x10]
lea r8, str._sAppDataRoamingRealtekRtkAudioServiceStartup64.ps1
mov edx, 0x104
lea rcx, [rbp + 0x160]
call fcn.140011488
lea rax, str._________Avvia_il_primo_programma_n________Start_Process__FilePath__C:Program_FilesRealtekAudioHDARtkNGUI64.exe___ArgumentList___s__n_________n_________Attendi_per_3_secondi_n________Start_Sleep__Seconds_3_n_________n_________Ottieni_la_directory_AppData_dellutente_corrente_n_________appDataDirectory___env:APPDATA_n_________n_________Specifica_il_percorso_relativo_del_secondo_programma_n_________programPath___RealtekRtkAudioService64.exe__n_________n_________Costruisci_la_path_completa_del_secondo_programma_n_________fullPath__Join_Path__appDataDirectory__programPath_n_________n_________Avvia_il_secondo_programma_n________Start_Process__FilePath__fullPath__WindowStyle_Hidden_n
mov qword [rbp + 0x288], rax
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1400145c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400145c6
lea r8, [0x140020a0c]
lea rdx, [rbp + 0x160]
lea rcx, [rbp + 0x2a8]
call qword [sym.imp.ucrtbased.dll_fopen_s]
test eax, eax
jne 0x1400145b8
cmp qword [rbp + 0x2a8], 0
je 0x1400145b8
mov rdx, qword [rbp + 0x2a8]
mov rcx, qword [rbp + 0x288]
call qword [sym.imp.ucrtbased.dll_fputs]
mov rcx, qword [rbp + 0x2a8]
call qword [sym.imp.ucrtbased.dll_fclose]
lea rdx, [rbp + 0x160]
lea rcx, str.___File_created_with_success:__s_n_n
call fcn.1400112f8
jmp 0x1400145c4
lea rcx, str.____Error_during_creation_of_File_n_n
call fcn.1400112f8
jmp 0x1400145d9
lea rdx, [rbp + 0x160]
lea rcx, str._i__The_file__s_already_exists._No_operation_executed_n_n
call fcn.1400112f8
lea rcx, [rbp - 0x20]
lea rdx, [0x14001f9c0]
call fcn.14001154b
mov rcx, qword [rbp + 0x438]
xor rcx, rbp
call fcn.140011316
lea rsp, [rbp + 0x448]
pop rdi
pop rbp
ret
Function at 0x14001111d
Capabilities:
Persist via run registry key
Query environment variable
Set registry value

Disassembly:
jmp 0x140015870
push rbp
push rdi
sub rsp, 0x2e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x7e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140024278]
xor rax, rbp
mov qword [rbp + 0x2a8], rax
lea rcx, [0x14002a21d]
call fcn.140011645
mov r8d, 0x104
lea rdx, [rbp + 0x10]
lea rcx, str.USERPROFILE
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, 0x20a
call fcn.1400112ad
mov qword [rbp + 0x278], rax
mov rax, qword [rbp + 0x278]
mov qword [rbp + 0x138], rax
lea r9, [rbp + 0x10]
lea r8, str.__hsAppDataRoamingRealtekRtkAudioServiceStartup64.ps1_
mov edx, 0x104
mov rcx, qword [rbp + 0x138]
call fcn.1400111db
mov ecx, 0x20a
call fcn.1400112ad
mov qword [rbp + 0x298], rax
mov rax, qword [rbp + 0x298]
mov qword [rbp + 0x158], rax
mov r9, qword [rbp + 0x138]
lea r8, str.powershell__noprofile__executionpolicy_bypass__file__s__WindowStyle_hidden
mov edx, 0x104
mov rcx, qword [rbp + 0x158]
call fcn.1400111db
lea r8, [rbp + 0x178]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x140015972
lea rcx, str.____Error_during_creation_of_a_key_in_the_Windows_Registry._n_n
call fcn.1400112f8
mov eax, 1
jmp 0x1400159fd
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.ucrtbased.dll_wcslen]
lea rax, [rax + rax + 2]
mov qword [rbp + 0x198], rax
mov eax, dword [rbp + 0x198]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x158]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.RtkAudioServiceStartup64
mov rcx, qword [rbp + 0x178]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400159e2
lea rcx, str.____Error_during_the_settings_of_a_key_in_the_Windows_Registry._n_n
call fcn.1400112f8
mov rcx, qword [rbp + 0x178]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1400159fd
mov rcx, qword [rbp + 0x178]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.___EXE_added_to_Startup_n_n
call fcn.1400112f8
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001f630]
call fcn.14001154b
mov rax, rdi
mov rcx, qword [rbp + 0x2a8]
xor rcx, rbp
call fcn.140011316
lea rsp, [rbp + 0x2b8]
pop rdi
pop rbp
ret