joyce8/EMBER2024-capa huggingface dataset:
Function at 0x37afc1050
Capabilities:
Encode data using xor

Disassembly:
shl rcx, 4
xor eax, eax
and ecx, 0xff0
add r8, rcx
lea r9, [rdx + rax]
lea r10, [rax + r8]
xor ecx, ecx
mov r11b, byte [r10 + rcx]
inc rcx
xor byte [r9], r11b
inc r9
cmp rcx, 4
jne 0x37afc1069
add rax, 4
cmp rax, 0x10
jne 0x37afc105f
ret

Function at 0x37afc11e0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
lea rax, [rdx + r8]
mov rbp, rsp
push r15
push r14
push r13
push r12
lea r12, str.cw
push rdi
mov dil, 0x1b
push rsi
mov rsi, rdx
push rbx
mov rbx, rcx
and rsp, 0xfffffffffffffff0
sub rsp, 0x40
mov qword [rsp + 0x28], rax
mov eax, 0x10
cmp qword [rsp + 0x28], rsi
je 0x37afc13f0
cmp eax, 0x10
jne 0x37afc13dd
lea rdx, [rsp + 0x30]
mov r8, rbx
xor ecx, ecx
mov r14d, 1
movups xmm0, xmmword [rbx + 0xf0]
lea r13, [rsp + 0x34]
movaps xmmword [rsp + 0x30], xmm0
call fcn.37afc1050
lea rdx, [rsp + 0x30]
mov rcx, rdx
mov rax, rcx
xor r8d, r8d
movzx r9d, byte [rax]
inc r8d
add rax, 4
mov r9b, byte [r12 + r9]
mov byte [rax - 4], r9b
cmp r8b, 4
jne 0x37afc125d
inc rcx
cmp r13, rcx
jne 0x37afc1257
mov cl, byte [rsp + 0x35]
mov al, byte [rsp + 0x31]
mov byte [rsp + 0x31], cl
mov cl, byte [rsp + 0x39]
mov byte [rsp + 0x35], cl
mov cl, byte [rsp + 0x3d]
mov byte [rsp + 0x3d], al
mov al, byte [rsp + 0x32]
mov byte [rsp + 0x39], cl
mov cl, byte [rsp + 0x3a]
mov byte [rsp + 0x3a], al
mov al, byte [rsp + 0x36]
mov byte [rsp + 0x32], cl
mov cl, byte [rsp + 0x3e]
mov byte [rsp + 0x3e], al
mov al, byte [rsp + 0x33]
mov byte [rsp + 0x36], cl
mov cl, byte [rsp + 0x3f]
mov byte [rsp + 0x33], cl
mov cl, byte [rsp + 0x3b]
mov byte [rsp + 0x3f], cl
mov cl, byte [rsp + 0x37]
mov byte [rsp + 0x37], al
mov byte [rsp + 0x3b], cl
cmp r14d, 0xe
je 0x37afc13a2
lea r11, [rdx + 0x10]
mov cl, byte [rdx]
mov r9b, byte [rdx + 1]
add rdx, 4
mov r8b, byte [rdx - 2]
xor r8b, byte [rdx - 1]
xor r9d, ecx
mov r15d, ecx
xor cl, byte [rdx - 1]
mov eax, r9d
mov r10d, r9d
add r9d, r9d
shr al, 7
xor r10d, r8d
imul eax, edi
xor r15d, r10d
xor r15d, eax
xor r9d, r15d
mov r15b, byte [rdx - 3]
xor r15b, byte [rdx - 2]
mov eax, r15d
mov byte [rdx - 4], r9b
mov r9b, byte [rdx - 3]
add r15d, r15d
shr al, 7
imul eax, edi
xor r9d, r10d
xor r9d, eax
mov eax, r8d
add r8d, r8d
shr al, 7
xor r15d, r9d
mov r9b, byte [rdx - 2]
imul eax, edi
mov byte [rdx - 3], r15b
xor r9d, r10d
xor r10b, byte [rdx - 1]
xor r9d, eax
mov eax, ecx
add ecx, ecx
shr al, 7
xor r8d, r9d
imul eax, edi
mov byte [rdx - 2], r8b
mov r8d, r10d
xor eax, r8d
xor ecx, eax
mov byte [rdx - 1], cl
cmp r11, rdx
jne 0x37afc12ec
mov ecx, r14d
lea rdx, [rsp + 0x30]
mov r8, rbx
inc r14d
call fcn.37afc1050
jmp 0x37afc124f
mov r8, rbx
mov ecx, 0xe
call fcn.37afc1050
mov eax, 0xf
mov dl, byte [rbx + rax + 0xf0]
cmp dl, 0xff
jne 0x37afc13d0
mov byte [rbx + rax + 0xf0], 0
sub rax, 1
jae 0x37afc13b4
jmp 0x37afc13db
cdqe
inc edx
mov byte [rbx + rax + 0xf0], dl
xor eax, eax
movsxd rdx, eax
inc eax
mov dl, byte [rsp + rdx + 0x30]
xor byte [rsi], dl
inc rsi
jmp 0x37afc1215
lea rsp, [rbp - 0x38]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x37afc23a0
Capabilities:
Inspect section memory permissions

Disassembly:
push r15
push r14
mov r14, r8
push r13
mov r13, rdx
push r12
push rbp
push rdi
mov rdi, rcx
mov rcx, rdx
push rsi
mov rsi, r9
push rbx
sub rsp, 0x48
call fcn.37afd32a0
mov rbx, qword [0x37afd9170]
mov qword [rsp + 0x38], rax
mov rax, qword [rbx]
cmp dword [rax + 0x8a], 0
je 0x37afc2412
lea rdx, [0x37afd7120]
mov ecx, 1
call qword [rax + 0x146]
mov r12, rax
test rax, rax
jne 0x37afc2415
mov rax, qword [rbx]
mov ecx, 1
mov rax, qword [rax + 0x850]
mov edx, dword [rax + 0x68]
call fcn.37afcef00
jmp 0x37afc25a5
xor r12d, r12d
xor ebp, ebp
mov r15d, 0x40
mov rax, qword [rdi + 8]
cmp word [rax + 2], bp
jbe 0x37afc24e4
movzx edx, bp
mov rcx, qword [rdi]
imul rax, rdx, 0x28
lea rax, [rcx + rax + 0x14]
cmp dword [rax + 0x10], 0
mov qword [rdi + 0x10], rax
jne 0x37afc2448
inc ebp
jmp 0x37afc241d
mov r8d, dword [rax + 0x24]
mov eax, 1
mov ecx, r8d
and ecx, 0xe0000000
je 0x37afc24ac
mov eax, 0x10
cmp ecx, 0x20000000
je 0x37afc24ac
mov eax, 2
cmp ecx, 0x40000000
je 0x37afc24ac
mov eax, 0x20
cmp ecx, 0x60000000
je 0x37afc24ac
mov eax, 8
cmp ecx, 0x80000000
je 0x37afc24ac
mov eax, pe_nt_image_headers64
cmp ecx, 0xa0000000
je 0x37afc24ac
cmp ecx, 0xc0000000
mov eax, 4
cmovne eax, r15d
bt r8d, 0x1a
jae 0x37afc24b6
or ah, 2
shl rdx, 4
add rdx, qword [rdi + 0x3c]
mov ecx, 2
mov r9, qword [rdx + 8]
mov dword [rsp + 0x20], eax
mov r8, qword [rdx]
or rdx, 0xffffffffffffffff
call fcn.37afce650
test eax, eax
jne 0x37afc2444
jmp 0x37afc25a5
mov r9, qword [rdi + 0x4c]
test r9, r9
jne 0x37afc24f2
xor r15d, r15d
jmp 0x37afc2518
mov dword [rsp + 0x20], 2
mov r8, qword [rdi + 0x44]
or rdx, 0xffffffffffffffff
mov ecx, 2
call fcn.37afce650
test eax, eax
jne 0x37afc24ed
jmp 0x37afc25a5
inc r15d
mov rax, qword [rdi + 8]
mov eax, dword [rax + 0xc]
cmp eax, r15d
jbe 0x37afc2571
mov ebp, r15d
mov rdx, qword [rdi + 0x20]
imul rbp, rbp, 0x12
lea rcx, [rdx + rbp]
cmp dword [rcx], 0
jne 0x37afc2546
imul rax, rax, 0x12
mov ecx, dword [rcx + 4]
add rax, rcx
lea rcx, [rdx + rax]
mov r8d, dword [rsp + 0x38]
mov rdx, r13
call fcn.37afce270
test eax, eax
jne 0x37afc2515
add rbp, qword [rdi + 0x20]
mov rax, qword [rdi + 0x3c]
movzx edx, word [rbp + 0xc]
mov ecx, dword [rbp + 8]
shl rdx, 4
add rcx, qword [rax + rdx - 0x10]
jne 0x37afc25a9
mov edx, dword [rsp + 0xb0]
mov ecx, 0x14
call fcn.37afcebd0
mov edx, 2
mov r12, rax
mov rcx, rax
call fcn.37afce950
mov rcx, r12
mov rdx, r13
call fcn.37afcea80
mov rcx, r12
call fcn.37afcec80
xor eax, eax
jmp 0x37afc260d
mov rdx, qword [rdi + 8]
mov r9w, word [rdx + 2]
xor edx, edx
jmp 0x37afc25c5
mov r8, qword [rax]
cmp r8, rcx
jbe 0x37afc25cd
inc rdx
add rax, 0x10
cmp r9w, dx
ja 0x37afc25b6
jmp 0x37afc25a5
add r8, qword [rax + 8]
cmp rcx, r8
jae 0x37afc25be
imul rdx, rdx, 0x28
mov rax, qword [rdi]
lea rax, [rax + rdx + 0x14]
mov qword [rdi + 0x10], rax
test byte [rax + 0x27], 0x20
je 0x37afc25a5
mov r8, rsi
mov rdx, r14
call fcn.37afc2620
test r12, r12
je 0x37afc2608
mov rax, qword [rbx]
mov rcx, r12
call qword [rax + 0x14e]
mov eax, 1
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x37afcbae0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
mov r12, rcx
push rbp
mov rdx, r12
push rdi
push rsi
xor esi, esi
push rbx
sub rsp, 0x28
movsxd rax, dword [rcx + 0x3c]
mov ecx, dword [rcx + rax + 0x88]
call 0x37afd1fa0
mov rdx, r12
mov ebx, eax
add rbx, r12
mov ecx, dword [rbx + 0x20]
call 0x37afd1fa0
mov ecx, dword [rbx + 0x24]
mov rdx, r12
mov ebp, eax
call 0x37afd1fa0
mov r15d, dword [rbx + 0x18]
add rbp, r12
mov edi, eax
add rdi, r12
lea r14, [rsi + rsi]
add r14, rdi
cmp r15, rsi
je 0x37afcbba1
mov ecx, dword [rbp + rsi*4]
mov rdx, r12
call 0x37afd1fa0
mov r13d, eax
add r13, r12
mov rcx, r13
call fcn.37afcc090
cmp eax, 0xa6caa1c5
jne 0x37afcbb8d
mov ecx, dword [rbx + 0x1c]
mov rdx, r12
call 0x37afd1fa0
movzx edx, word [r14]
mov eax, eax
add rax, r12
mov ecx, dword [rax + rdx*4]
add rsp, 0x28
mov rdx, r12
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp 0x37afd1fa0
mov rcx, r13
inc rsi
call fcn.37afcc090
cmp eax, 0xffe885ef
jne 0x37afcbb31
jmp 0x37afcbb5e
add rsp, 0x28
xor eax, eax
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, ecx
movsxd rcx, dword [rdx + 0x3c]
add rcx, rdx
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
cmp dword [rdx + 0x14], eax
ja 0x37afd1fea
mov r9w, word [rcx + 6]
xor ecx, ecx
cmp r9w, cx
je 0x37afd1fe8
mov r8d, dword [rdx + 0xc]
cmp eax, r8d
jb 0x37afd1fe0
mov r10d, dword [rdx + 0x10]
add r10d, r8d
cmp r10d, eax
jbe 0x37afd1fe0
add eax, dword [rdx + 0x14]
sub eax, r8d
ret
inc ecx
add rdx, 0x28
jmp 0x37afd1fbe
xor eax, eax
ret

Function at 0x37afcc040
Capabilities:
Hash data using djb2

Disassembly:
xor eax, eax
test rcx, rcx
je 0x37afcc08d
mov r10, rcx
mov eax, 0x1505
mov r9b, byte [r10]
test edx, edx
jne 0x37afcc05c
test r9b, r9b
jne 0x37afcc06f
ret
mov r11, r10
sub r11, rcx
cmp edx, r11d
jbe 0x37afcc08d
cmp r9b, 1
adc r10, 0
cmp r9b, 0x60
jbe 0x37afcc07e
test r8d, r8d
je 0x37afcc07e
sub r9d, 0x20
imul eax, eax, 0x21
movzx r9d, r9b
inc r10
add eax, r9d
jmp 0x37afcc04f
ret

Function at 0x37afcc090
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x1505
movsx edx, byte [rcx]
inc rcx
test dl, dl
je 0x37afcc0a6
imul eax, eax, 0x21
add eax, edx
jmp 0x37afcc095
ret
Function at 0x37afcd290
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rsi
xor eax, eax
push rbx
mov r8b, byte [rdx + rax]
mov byte [rcx + rax], r8b
mov r8b, byte [rdx + rax + 1]
mov byte [rcx + rax + 1], r8b
mov r8b, byte [rdx + rax + 2]
mov byte [rcx + rax + 2], r8b
mov r8b, byte [rdx + rax + 3]
mov byte [rcx + rax + 3], r8b
add rax, 4
cmp rax, 0x20
jne 0x37afcd294
mov r11d, 8
lea r10, str.cw
lea rbx, [0x37afd91c0]
mov esi, r11d
movzx r9d, byte [rcx + 0x1c]
movzx r8d, byte [rcx + 0x1d]
movzx edx, byte [rcx + 0x1e]
movzx eax, byte [rcx + 0x1f]
and esi, 7
jne 0x37afcd312
mov sil, byte [r10 + r8]
mov r8b, byte [r10 + rdx]
mov dl, byte [r10 + rax]
mov al, byte [r10 + r9]
mov r9d, r11d
shr r9d, 3
xor sil, byte [rbx + r9]
mov r9d, esi
jmp 0x37afcd327
cmp esi, 4
jne 0x37afcd327
mov r9b, byte [r10 + r9]
mov r8b, byte [r10 + r8]
mov dl, byte [r10 + rdx]
mov al, byte [r10 + rax]
xor r9b, byte [rcx]
xor r8b, byte [rcx + 1]
inc r11d
add rcx, 4
xor dl, byte [rcx - 2]
xor al, byte [rcx - 1]
mov byte [rcx + 0x1c], r9b
mov byte [rcx + 0x1d], r8b
mov byte [rcx + 0x1e], dl
mov byte [rcx + 0x1f], al
cmp r11d, 0x3c
jne 0x37afcd2d8
pop rbx
pop rsi
ret

Function at 0x37afcd840
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
test rcx, rcx
je 0x37afcd876
mov esi, edx
test edx, edx
jne 0x37afcd87d
xor eax, eax
jmp 0x37afcd96a
movsxd rax, dword [rcx + 0x3c]
mov r12, rcx
xor ebx, ebx
add rax, rcx
mov r9d, dword [rax + 0x88]
mov eax, dword [rax + 0x8c]
lea r15, [rcx + r9]
mov dword [rsp + 0x28], eax
mov eax, dword [r15 + 0x18]
mov r14d, dword [r15 + 0x20]
mov ebp, dword [r15 + 0x1c]
mov r13d, dword [r15 + 0x24]
mov dword [rsp + 0x2c], eax
add r14, rcx
cmp dword [rsp + 0x2c], ebx
jbe 0x37afcd876
mov edi, dword [r14 + rbx*4]
mov r8d, 1
xor edx, edx
add rdi, r12
mov rcx, rdi
call fcn.37afcc040
mov r8d, eax
lea rax, [rbx + 1]
cmp r8d, esi
jne 0x37afcd962
add rbx, rbx
add rbx, r12
movzx eax, word [rbx + r13]
lea rax, [r12 + rax*4]
mov eax, dword [rax + rbp]
add rax, r12
mov qword [rsp + 0x38], rax
cmp rax, r15
jae 0x37afcd908
mov rax, qword [rsp + 0x38]
jmp 0x37afcd96a
mov esi, dword [rsp + 0x28]
add rsi, r12
add rsi, r15
cmp rax, rsi
jae 0x37afcd901
call fcn.37afd32a0
mov qword [rsp + 0x48], rdi
mov word [rsp + 0x40], ax
inc eax
mov word [rsp + 0x42], ax
mov rax, qword [0x37afd9170]
mov rax, qword [rax]
mov rax, qword [rax + 0xce]
test rax, rax
je 0x37afcd876
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea r9, [rsp + 0x38]
mov rcx, r12
call rax
test eax, eax
jns 0x37afcd901
jmp 0x37afcd876
mov rbx, rax
jmp 0x37afcd8b5
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x37afd1fa0
Capabilities:
Enumerate pe sections

Disassembly:
push r15
push r14
push r13
push r12
mov r12, rcx
push rbp
mov rdx, r12
push rdi
push rsi
xor esi, esi
push rbx
sub rsp, 0x28
movsxd rax, dword [rcx + 0x3c]
mov ecx, dword [rcx + rax + 0x88]
call 0x37afd1fa0
mov rdx, r12
mov ebx, eax
add rbx, r12
mov ecx, dword [rbx + 0x20]
call 0x37afd1fa0
mov ecx, dword [rbx + 0x24]
mov rdx, r12
mov ebp, eax
call 0x37afd1fa0
mov r15d, dword [rbx + 0x18]
add rbp, r12
mov edi, eax
add rdi, r12
lea r14, [rsi + rsi]
add r14, rdi
cmp r15, rsi
je 0x37afcbba1
mov ecx, dword [rbp + rsi*4]
mov rdx, r12
call 0x37afd1fa0
mov r13d, eax
add r13, r12
mov rcx, r13
call fcn.37afcc090
cmp eax, 0xa6caa1c5
jne 0x37afcbb8d
mov ecx, dword [rbx + 0x1c]
mov rdx, r12
call 0x37afd1fa0
movzx edx, word [r14]
mov eax, eax
add rax, r12
mov ecx, dword [rax + rdx*4]
add rsp, 0x28
mov rdx, r12
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp 0x37afd1fa0
mov rcx, r13
inc rsi
call fcn.37afcc090
cmp eax, 0xffe885ef
jne 0x37afcbb31
jmp 0x37afcbb5e
add rsp, 0x28
xor eax, eax
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, ecx
movsxd rcx, dword [rdx + 0x3c]
add rcx, rdx
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
cmp dword [rdx + 0x14], eax
ja 0x37afd1fea
mov r9w, word [rcx + 6]
xor ecx, ecx
cmp r9w, cx
je 0x37afd1fe8
mov r8d, dword [rdx + 0xc]
cmp eax, r8d
jb 0x37afd1fe0
mov r10d, dword [rdx + 0x10]
add r10d, r8d
cmp r10d, eax
jbe 0x37afd1fe0
add eax, dword [rdx + 0x14]
sub eax, r8d
ret
inc ecx
add rdx, 0x28
jmp 0x37afd1fbe
xor eax, eax
ret
Function at 0x14000dec0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x50]
xor ebp, ebp
mov rax, qword [rsp + 0x58]
mov r13, r9
mov rbx, qword [rsp + 0x68]
mov r12, rdx
mov qword [r14], r8
mov qword [rbx], rax
mov rax, qword [r14]
cmp rax, r9
je 0x14000e054
mov r15, qword [rsp + 0x60]
lea r9d, [rbp + 1]
mov rdi, qword [rbx]
mov r11d, 0x2800
mov r8d, 0x3ff
mov r10d, 0x2400
cmp rdi, r15
je 0x14000e054
movzx edx, word [r12]
xor sil, sil
movzx ecx, word [rax]
cmp r9w, dx
jae 0x14000df5b
lea eax, [r10 + rcx]
cmp ax, r8w
ja 0x14000e07b
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x14000df72
mov eax, ecx
add cx, r11w
cmp cx, r8w
ja 0x14000df72
shl eax, 0xa
mov sil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x14000df85
movzx r8d, al
mov r10d, ebp
mov r11d, ebp
jmp 0x14000dfd2
mov r8d, eax
cmp eax, 0x800
jae 0x14000df9f
shr r8d, 6
mov r10d, r9d
or r8b, 0xc0
mov r11d, r9d
jmp 0x14000dfd2
cmp eax, 0x10000
jae 0x14000dfb9
shr r8d, 0xc
mov r10d, 2
or r8b, 0xe0
mov r11d, r10d
jmp 0x14000dfd2
shr r8d, 0x12
mov r10d, 3
movzx r11d, sil
or r8b, 0xf0
xor r11d, 1
add r11d, r11d
lea r9d, [r11 + 1]
mov rdx, r15
sub rdx, rdi
mov ecx, r9d
cmp rdx, rcx
jl 0x14000e054
add qword [r14], 2
test sil, sil
jne 0x14000dff3
cmp r10d, 3
jae 0x14000dfff
mov rcx, qword [rbx]
mov r9d, r11d
mov byte [rcx], r8b
inc qword [rbx]
test r9d, r9d
je 0x14000e031
lea r8d, [r10 + r10*2]
add r8d, r8d
nop dword [rax + rax]
sub r8d, 6
mov edx, eax
mov ecx, r8d
dec r9d
shr edx, cl
mov rcx, qword [rbx]
and dl, 0x3f
or dl, 0x80
mov byte [rcx], dl
inc qword [rbx]
test r9d, r9d
jg 0x14000e010
shr eax, 0xa
mov r9d, 1
test sil, sil
mov ecx, r9d
cmovne ecx, eax
mov word [r12], cx
mov rax, qword [r14]
cmp rax, r13
jne 0x14000df0f
mov rax, qword [rsp + 0x40]
cmp rax, qword [r14]
sete bpl
mov eax, ebp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, 2
jmp 0x14000e062
Function at 0x14000f790
Capabilities:
Read http header

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x40
mov rax, qword [0x14010a010]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x28], 0
mov rsi, rdx
mov dword [rsp + 0x30], 0
mov rbp, rcx
lea rax, [rsp + 0x30]
mov rcx, qword [rcx + 0x38]
xor r8d, r8d
lea edx, [r9 + 0x16]
mov qword [rsp + 0x20], rax
xor bl, bl
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000f85a
mov ecx, dword [rsp + 0x30]
mov qword [rsp + 0x70], rdi
call fcn.140061008
mov rcx, qword [rbp + 0x38]
mov rdi, rax
xor r8d, r8d
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x30]
mov r9, rdi
mov qword [rsp + 0x20], rax
lea edx, [r8 + 0x16]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x14000f84d
mov rdx, qword [rsi]
mov rcx, rsi
mov qword [rsi + 8], rdx
call fcn.14000f980
mov r9d, dword [rsp + 0x30]
mov r8, rdi
mov rdx, qword [rsi + 8]
add r9, rdi
mov rcx, rsi
call fcn.14000fd20
mov bl, 1
mov rcx, rdi
call fcn.140061000
mov rdi, qword [rsp + 0x70]
movzx eax, bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140060fe0
add rsp, 0x40
pop rsi
pop rbp
pop rbx
ret
Function at 0x140010320
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
xor eax, eax
mov rbx, rcx
mov qword [rcx + 0x18], rax
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x38], rax
mov qword [rcx + 0x40], rax
mov qword [rcx + 0x48], rax
mov qword [rcx + 0x50], rax
mov qword [rcx + 0x58], rax
mov qword [rcx + 0x60], rax
mov qword [rcx + 0x68], rax
mov qword [rcx + 0x70], rax
mov qword [rcx + 0x78], rax
mov qword [rcx + 0x80], rax
mov qword [rcx + 0x88], rax
lea rcx, str.setupapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx], rax
test rax, rax
je 0x14001048a
lea rdx, str.SetupDiGetINFClassW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.SetupDiCreateDeviceInfoList
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.SetupDiCreateDeviceInfoW
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.SetupDiSetDeviceRegistryPropertyW
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.SetupDiCallClassInstaller
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.SetupDiDestroyDeviceInfoList
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.SetupDiGetClassDevsExW
mov qword [rbx + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.SetupDiEnumDeviceInfo
mov qword [rbx + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.SetupDiSetClassInstallParamsW
mov qword [rbx + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.SetupDiGetDeviceInstallParamsW
mov qword [rbx + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.SetupUninstallOEMInfW
mov qword [rbx + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.SetupDiGetDeviceRegistryPropertyW
mov qword [rbx + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.SetupDiGetDeviceInstanceIdW
mov qword [rbx + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x78], rax
lea rcx, str.newdev.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx + 8], rax
test rax, rax
je 0x1400104b7
lea rdx, str.UpdateDriverForPlugAndPlayDevicesW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x80], rax
lea rcx, str.Bthprops.cpl
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x1400104e4
lea rdx, str.BluetoothSetLocalServiceInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x88], rax
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x1400104f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x2d0
mov rax, qword [0x14010a010]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
xor sil, sil
mov rdi, rdx
cmp qword [rcx + 0x18], 0
mov rbx, rcx
je 0x1400106d9
cmp qword [rcx + 0x20], 0
je 0x1400106d9
cmp qword [rcx + 0x28], 0
je 0x1400106d9
cmp qword [rcx + 0x30], 0
je 0x1400106d9
cmp qword [rcx + 0x38], 0
je 0x1400106d9
cmp qword [rcx + 0x40], 0
je 0x1400106d9
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400106d3
xor edx, edx
mov qword [rsp + 0x300], rbp
mov r8d, 0x208
lea rcx, [rsp + 0xb0]
call fcn.14008d590
lea rcx, str.SWCAsusAppComponent
mov r8d, 0x100
lea rax, [rsp + 0xb0]
sub rcx, rax
lea rdx, [rsp + 0xb0]
nop word [rax + rax]
lea rax, [r8 + 0x7ffffefe]
test rax, rax
je 0x1400105d2
movzx eax, word [rcx + rdx]
test ax, ax
je 0x1400105d2
mov word [rdx], ax
add rdx, 2
sub r8, 1
jne 0x1400105b0
test r8, r8
lea rax, [rdx - 2]
cmovne rax, rdx
xor ebp, ebp
mov word [rax], bp
test r8, r8
je 0x1400106cb
lea r9d, [rbp + 0x20]
mov qword [rsp + 0x20], rbp
lea r8, [rsp + 0x70]
mov rcx, rdi
lea rdx, [rsp + 0x40]
call qword [rbx + 0x18]
test eax, eax
je 0x1400106cb
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [rbx + 0x20]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400106cb
lea rax, [rsp + 0x50]
mov qword [rsp + 0x308], r14
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
mov r14d, 1
mov dword [rsp + 0x50], 0x20
mov dword [rsp + 0x28], r14d
lea rdx, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x20], rbp
mov rcx, rdi
call qword [rbx + 0x28]
test eax, eax
je 0x1400106bd
lea rcx, [rsp + 0xb0]
mov rax, 0xffffffffffffffff
cmp word [rcx + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x140010673
lea eax, [rax*2 + 4]
mov r8d, r14d
lea r9, [rsp + 0xb0]
mov dword [rsp + 0x20], eax
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [rbx + 0x30]
test eax, eax
je 0x1400106bd
lea r8, [rsp + 0x50]
mov rdx, rdi
mov ecx, 0x19
call qword [rbx + 0x38]
test eax, eax
movzx esi, sil
cmovne esi, r14d
mov rcx, rdi
call qword [rbx + 0x40]
mov r14, qword [rsp + 0x308]
mov rbp, qword [rsp + 0x300]
movzx eax, sil
jmp 0x1400106db
xor al, al
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.140060fe0
add rsp, 0x2d0
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400154b0
Capabilities:
Check if file exists

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14010a010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14010fc50], eax
jle 0x1400155d4
lea rcx, [0x14010fc50]
call fcn.1400611a0
cmp dword [0x14010fc50], 0xffffffff
jne 0x1400155d4
cmp qword [0x14010aea0], 0
mov rax, qword [0x14010ae88]
movups xmm0, xmmword [rax - 0x10]
movups xmmword [rsp + 0x20], xmm0
je 0x14001551d
mov ecx, 5
int 0x29
xorps xmm0, xmm0
lea r9, [0x14010aea0]
lea r8, [0x14010ae80]
lea rdx, section..text
lea rcx, [rsp + 0x20]
movdqu xmmword [0x14010aea8], xmm0
call qword [sym.imp.ADVAPI32.dll_EventRegister]
test eax, eax
jne 0x140015567
mov r8, qword [0x14010ae88]
lea edx, [rax + 2]
mov rcx, qword [0x14010aea0]
movzx r9d, word [r8]
call qword [sym.imp.ADVAPI32.dll_EventSetInformation]
lea r8, [0x1400d9e00]
xor edx, edx
call fcn.1400156a0
lea r9, [0x1400d9e28]
lea r8, [0x1400d9e28]
lea rdx, str.C:ProgramDataASUSASUS_System_Control_Interface_hs_hs.log
lea rcx, [0x140110510]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [0x140110510]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400155bc
lea rcx, [0x140110720]
mov byte [0x140110718], 1
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x1400c76d0]
call fcn.140061524
lea rcx, [0x14010fc50]
call fcn.140061140
lea rax, [0x14010fc44]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140060fe0
add rsp, 0x48
ret