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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xb0
mov rax, qword [0x180222270]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rdi, r8
mov rsi, rcx
call fcn.180155b10
cmp eax, 1
ja 0x18013ec82
test rdi, rdi
je 0x18013ec82
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 0x51], xmm0
mov r14d, dword [rdi + 0x10]
lea r8, [0x18031cb70]
lea rdx, [0x180138120]
mov rcx, rdi
call fcn.180155870
test eax, eax
je 0x18013eb31
cmp eax, 3
jne 0x18013ec82
mov rcx, rdi
call fcn.180155b00
test eax, eax
jne 0x18013ec82
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
xor ebx, ebx
mov qword [rbp - 0x29], rbx
mov qword [rbp - 0x21], 0xf
mov byte [rbp - 0x39], bl
call qword [0x1801aeb40]
mov r8d, eax
mov eax, 0x80808081
imul r8d
add edx, r8d
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0xff
sub r8d, ecx
mov byte [rbp - 0x41], r8b
lea r8d, [rbx + 5]
lea r15, [0x1801eb73c]
mov rdx, r15
lea rcx, [rbp - 0x39]
call fcn.180037280
mov qword [rbp - 0x19], rdi
movups xmm0, xmmword [rbp - 0x51]
movaps xmmword [rbp - 0x11], xmm0
mov dword [rbp - 1], r14d
movups xmm0, xmmword [rdi]
movups xmmword [rbp + 3], xmm0
mov eax, dword [rdi + 0x10]
mov dword [rbp + 0x13], eax
cmp qword [rbp - 0x29], rbx
jbe 0x18013ebe0
nop
lea rcx, [rbp - 0x39]
cmp qword [rbp - 0x21], 0x10
cmovae rcx, qword [rbp - 0x39]
movzx eax, byte [rbp - 0x41]
xor byte [rcx + rbx], al
inc rbx
cmp rbx, qword [rbp - 0x29]
jb 0x18013ebc0
nop
movzx eax, byte [rbp - 0x41]
xor byte [rbp - 0x19], al
xor byte [rbp - 0x18], al
xor byte [rbp - 0x17], al
xor byte [rbp - 0x16], al
xor byte [rbp - 0x15], al
xor byte [rbp - 0x14], al
xor byte [rbp - 0x13], al
xor byte [rbp - 0x12], al
lea rcx, [rsi + 0x38]
mov rbx, qword [rsi + 0x40]
cmp rbx, qword [rsi + 0x48]
je 0x18013ec44
mov byte [rbx], al
lea rcx, [rbx + 8]
lea rdx, [rbp - 0x39]
call fcn.180036da0
mov rax, qword [rbp - 0x19]
mov qword [rbx + 0x28], rax
movaps xmm0, xmmword [rbp - 0x11]
movups xmmword [rbx + 0x30], xmm0
mov eax, dword [rbp - 1]
mov dword [rbx + 0x40], eax
movups xmm0, xmmword [rbp + 3]
movups xmmword [rbx + 0x44], xmm0
mov eax, dword [rbp + 0x13]
mov dword [rbx + 0x54], eax
add qword [rsi + 0x40], 0x58
jmp 0x18013ec50
lea r8, [rbp - 0x41]
mov rdx, rbx
call fcn.1801409e0
mov qword [rsp + 0x20], r15
lea r9, [0x1801eb7b8]
lea r8, [0x1801eb7c4]
mov edx, 3
lea rcx, [0x18032a3a8]
call fcn.180150bb0
nop
lea rcx, [rbp - 0x39]
call fcn.1800339d0
mov al, 1
jmp 0x18013ec84
xor al, al
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.18019ca50
mov rbx, qword [rsp + 0xe8]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x18013ecb0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xb0
mov rax, qword [0x180222270]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rdi, r8
mov rsi, rcx
call fcn.180155b10
cmp eax, 1
ja 0x18013ee72
test rdi, rdi
je 0x18013ee72
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 0x51], xmm0
mov r14d, dword [rdi + 0x10]
lea r8, [0x18031cb90]
lea rdx, [0x1801382e0]
mov rcx, rdi
call fcn.180155870
test eax, eax
je 0x18013ed21
cmp eax, 3
jne 0x18013ee72
mov rcx, rdi
call fcn.180155b00
test eax, eax
jne 0x18013ee72
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
xor ebx, ebx
mov qword [rbp - 0x29], rbx
mov qword [rbp - 0x21], 0xf
mov byte [rbp - 0x39], bl
call qword [0x1801aeb40]
mov r8d, eax
mov eax, 0x80808081
imul r8d
add edx, r8d
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0xff
sub r8d, ecx
mov byte [rbp - 0x41], r8b
lea r8d, [rbx + 3]
lea r15, [0x1801ebb6c]
mov rdx, r15
lea rcx, [rbp - 0x39]
call fcn.180037280
mov qword [rbp - 0x19], rdi
movups xmm0, xmmword [rbp - 0x51]
movaps xmmword [rbp - 0x11], xmm0
mov dword [rbp - 1], r14d
movups xmm0, xmmword [rdi]
movups xmmword [rbp + 3], xmm0
mov eax, dword [rdi + 0x10]
mov dword [rbp + 0x13], eax
cmp qword [rbp - 0x29], rbx
jbe 0x18013edd0
nop
lea rcx, [rbp - 0x39]
cmp qword [rbp - 0x21], 0x10
cmovae rcx, qword [rbp - 0x39]
movzx eax, byte [rbp - 0x41]
xor byte [rcx + rbx], al
inc rbx
cmp rbx, qword [rbp - 0x29]
jb 0x18013edb0
nop
movzx eax, byte [rbp - 0x41]
xor byte [rbp - 0x19], al
xor byte [rbp - 0x18], al
xor byte [rbp - 0x17], al
xor byte [rbp - 0x16], al
xor byte [rbp - 0x15], al
xor byte [rbp - 0x14], al
xor byte [rbp - 0x13], al
xor byte [rbp - 0x12], al
lea rcx, [rsi + 0x38]
mov rbx, qword [rsi + 0x40]
cmp rbx, qword [rsi + 0x48]
je 0x18013ee34
mov byte [rbx], al
lea rcx, [rbx + 8]
lea rdx, [rbp - 0x39]
call fcn.180036da0
mov rax, qword [rbp - 0x19]
mov qword [rbx + 0x28], rax
movaps xmm0, xmmword [rbp - 0x11]
movups xmmword [rbx + 0x30], xmm0
mov eax, dword [rbp - 1]
mov dword [rbx + 0x40], eax
movups xmm0, xmmword [rbp + 3]
movups xmmword [rbx + 0x44], xmm0
mov eax, dword [rbp + 0x13]
mov dword [rbx + 0x54], eax
add qword [rsi + 0x40], 0x58
jmp 0x18013ee40
lea r8, [rbp - 0x41]
mov rdx, rbx
call fcn.1801409e0
mov qword [rsp + 0x20], r15
lea r9, [0x1801eb7b8]
lea r8, [0x1801eb7c4]
mov edx, 3
lea rcx, [0x18032a3a8]
call fcn.180150bb0
nop
lea rcx, [rbp - 0x39]
call fcn.1800339d0
mov al, 1
jmp 0x18013ee74
xor al, al
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.18019ca50
mov rbx, qword [rsp + 0xe8]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1801528d0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x58
call qword [fcn.1801ae0d8]
mov r8d, eax
movabs r9, 0x100000001b3
shr eax, 8
movabs rcx, 0xcbf29ce484222325
movzx edx, al
movzx eax, r8b
xor rax, rcx
imul rax, r9
xor rdx, rax
mov eax, r8d
imul rdx, r9
shr eax, 0x10
movzx ecx, al
mov eax, r8d
xor rdx, rcx
shr rax, 0x18
mov rcx, qword [0x18031c8a0]
imul rdx, r9
xor rdx, rax
imul rdx, r9
mov r9, qword [0x18031c888]
and rcx, rdx
mov rdx, qword [0x18031c878]
mov rax, rcx
add rax, rax
mov rax, qword [r9 + rax*8 + 8]
cmp rax, rdx
je 0x180152983
add rcx, rcx
mov rcx, qword [r9 + rcx*8]
cmp r8d, dword [rax + 0x10]
je 0x180152985
cmp rax, rcx
je 0x180152983
mov rax, qword [rax + 8]
cmp r8d, dword [rax + 0x10]
jne 0x180152972
jmp 0x180152985
xor eax, eax
test rax, rax
mov rcx, rdx
cmovne rcx, rax
cmp rcx, rdx
jne 0x1801529dc
mov ecx, 0x300
call fcn.18019d364
mov rbx, rax
call qword [fcn.1801ae0d8]
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], eax
lea rdx, [rsp + 0x38]
lea rcx, [0x18031c870]
call fcn.180150fc0
mov rdx, qword [rax]
mov qword [rdx + 0x18], rbx
call qword [fcn.1801ae0d8]
mov edx, eax
lea rcx, [0x1801ebf90]
call fcn.1800fcdf0
call qword [fcn.1801ae0d8]
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], eax
lea rdx, [rsp + 0x38]
lea rcx, [0x18031c870]
call fcn.180150fc0
xor edx, edx
mov r8d, 0x300
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x18]
mov rcx, rbx
call fcn.18019ddfc
lea rdi, [rsp + 0x78]
call fcn.1800351a0
mov r9, qword [rsp + 0x70]
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x28], rdi
mov rdx, rbx
mov qword [rsp + 0x20], 0
mov rcx, qword [rax]
or rcx, 1
call qword [fcn.1801aea30]
mov rax, rbx
add rsp, 0x58
pop rdi
pop rbx
ret
Function at 0x180160840
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rsi, [rcx + rdx]
mov rbx, rcx
mov edi, 0x1505
cmp rcx, rsi
jae 0x1801603fb
movzx ecx, byte [rbx]
call fcn.180170030
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x1801603e0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
movzx eax, dil
add rsp, 0x20
pop rdi
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x180160876
call fcn.180171200
test al, al
jne 0x180160876
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.180160b10
mov rdx, qword [rsp + 0x30]
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x1801603c0
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x180186520
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx + 0x18]
lea eax, [rdx - 0xc8]
xor edi, edi
mov esi, r8d
mov rbx, rcx
cmp eax, 0x64
jb 0x18018655c
lea rdx, [0x1801b63d8]
call fcn.18016a410
lea eax, [rdi + 0x11]
jmp 0x1801865b4
cmp edx, 0xc8
je 0x180186573
mov r8d, edx
lea rdx, [0x1801b63f8]
call fcn.18016a4f0
cmp esi, 0x13
jne 0x180186585
mov rdx, rbp
mov rcx, rbx
call fcn.180186200
jmp 0x1801865b0
cmp esi, 0x14
jne 0x180186594
mov rcx, rbx
call fcn.180185180
jmp 0x1801865b0
cmp esi, 0x15
jne 0x1801865a3
mov rcx, rbx
call fcn.1801861f0
jmp 0x1801865b0
cmp esi, 0x16
jne 0x1801865b2
mov rcx, rbx
call fcn.180186400
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18019ba30
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [fcn.180222218]
mov rdi, rax
test rax, rax
jne 0x18019ba72
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x18019bab9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + 8]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + 0x10]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x18019bb12
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + 8]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + 8]
sub rbp, 1
jne 0x18019bad0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x18019bb53
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1801b9418]
mov r8d, 1
call qword [rbx + 8]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1801b9419]
mov r8d, 1
call qword [rbx + 8]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x18019bb20
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140003950
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003984
cmp word [rcx], 0x5a4d
jne 0x140003984
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003984
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003984
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003890
test eax, eax
jne 0x1400039a0
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003900
test rax, rax
je 0x140003995
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140004146
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004050
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140003ff0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x1400044a4
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x140528af8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x140528af4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400044f2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400044ea
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400045d9
inc ebx
add rax, 0x28
jmp 0x1400044ca
mov rcx, r12
call fcn.140004cd1
mov rbp, rax
test rax, rax
jne 0x140004511
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140004440
movsxd rbx, ebx
mov rax, qword [0x140528af8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140004d7f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140528af8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004573
mov rax, qword [0x140528af8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004440
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400045d3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400045d3
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140528af8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400045d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004440
inc dword [0x140528af4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400011d0
Capabilities:
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.mfc140u.dll_CMFCColorButton::OnFillBackground]
test rbx, rbx
je 0x1400011ee
mov rdi, qword [rbx + 0x40]
jmp 0x1400011f0
xor edi, edi
mov edx, 0xffffffec
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov edx, 0xffffffec
mov rcx, rdi
or eax, 0x8000080
mov r8d, eax
call qword [sym.imp.USER32.dll_SetWindowLongW]
lea rdx, str.ASUS_CheckASCI_Device_Dialog
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_CMFCToolBar::SetOrigButtons]
mov r9, qword [rbx + 0x130]
mov edx, 0x80
mov rcx, qword [rbx + 0x40]
lea r8d, [rdx - 0x7f]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9, qword [rbx + 0x130]
xor r8d, r8d
mov rcx, qword [rbx + 0x40]
mov edx, 0x80
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax + 0xf0]
mov r8d, 0x104
lea rdx, [0x14000aab0]
lea rcx, [0x140000000]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [0x14000aab0]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rcx, [0x14000aab0]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rdx, str.AsCheckASCI.log
lea rcx, [0x14000aab0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, 0x80
lea rcx, [0x14000aab0]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [0x14000aab0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rbx + 0x40]
lea r9, [0x1400013f0]
mov edx, 0x3e9
mov r8d, 1
call qword [sym.imp.USER32.dll_SetTimer]
mov qword [rbx + 0x138], rax
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140001550
Capabilities:
Check mutex on windows
Inspect load icon resource

Disassembly:
push rdi
sub rsp, 0x170
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x180], rbx
mov rdi, rcx
lea r8, str.AsCheckASCI_ExecuteMutex_SW
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140001683
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x140001683
mov dword [rsp + 0x188], 8
mov dword [rsp + 0x18c], 0xff
lea rcx, [rsp + 0x188]
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_COleDispatchImpl::GetTypeInfoCount]
lea rdx, str.Local_AppWizard_Generated_Applications
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_COleControlSite::XOleIPSite::SetFocus]
xor r8d, r8d
lea edx, [r8 + 0x66]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CDataRecoveryHandler::CDataRecoveryHandler]
nop
lea rbx, vtable.CEnumDevice.0
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x168], 0
call qword [sym.imp.mfc140u.dll_AfxFieldText]
mov edx, 0xe
lea ecx, [rdx + 0x73]
call qword [sym.imp.mfc140u.dll_AfxCriticalNewHandler]
mov rcx, rax
mov edx, 0x81
call qword [sym.imp.USER32.dll_LoadIconW]
mov qword [rsp + 0x160], rax
lea rax, [rsp + 0x30]
mov qword [rdi + 0x40], rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CD2DPathGeometry::Detach]
nop
mov qword [rsp + 0x30], rbx
mov rdx, qword [rsp + 0x168]
test rdx, rdx
je 0x140001665
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_KillTimer]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CD2DResource::CD2DResource]
xor eax, eax
mov rbx, qword [rsp + 0x180]
add rsp, 0x170
pop rdi
ret
test rbx, rbx
je 0x140001691
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x180]
add rsp, 0x170
pop rdi
ret
Function at 0x140002990
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, 0xffff
movzx edi, dx
mov rbx, rcx
cmp si, dx
jne 0x1400029cb
xor eax, eax
cmp dx, si
cmove di, ax
movzx eax, di
jmp 0x140002b0b
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x1400029f8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
lea rdx, [rax + r8*2]
cmp rax, rdx
jae 0x1400029f8
call qword [sym.imp.MSVCP140.dll_protected:_wchar_t____ptr64___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Pninc_void____ptr64]
mov word [rax], di
movzx eax, di
jmp 0x140002b0b
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xb0], rbp
je 0x140002b00
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140002a3f
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002a69
movzx ecx, di
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
cmp ax, si
je 0x140002b00
movzx esi, di
jmp 0x140002b00
lea rax, [rsp + 0x48]
mov word [rsp + 0x40], di
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x42]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
js 0x140002b00
cmp eax, 1
jle 0x140002abf
cmp eax, 3
jne 0x140002b00
movzx ecx, word [rsp + 0x40]
jmp 0x140002a4b
mov rbp, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rbp, rax
je 0x140002aed
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbp
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbp, rax
jne 0x140002b00
lea rax, [rsp + 0x40]
mov byte [rbx + 0x72], 1
cmp qword [rsp + 0x50], rax
movzx eax, di
jne 0x140002b03
movzx eax, si
mov rbp, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003c50
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x140002d20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002dd2
cmp byte [rcx + 0x72], 0
je 0x140002dd2
mov rax, qword [rcx]
mov edi, 0xffff
mov edx, edi
call qword [rax + 0x18]
cmp di, ax
je 0x140002d93
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002d97
sub eax, 1
je 0x140002d9b
sub eax, 2
je 0x140002dd2
xor al, al
jmp 0x140002dd4
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002dc9
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140002d93
cmp byte [rbx + 0x72], 0
sete al
jmp 0x140002dd4
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003c50
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x140003560
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
je 0x140003674
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], 0
lea rdx, [rcx + 0x10]
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 8]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x38], 0x208
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400035f9
lea rax, [rsp + 0x30]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbx + 0x10]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140003674
movzx eax, word [0x140005c00]
lea rcx, [rsp + 0x42]
xor edx, edx
mov word [rsp + 0x40], ax
mov r8d, 0x206
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, [rbx + 0x410]
lea rax, [rsp + 0x40]
xor r8d, r8d
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea r9, [rsp + 0x40]
mov edx, 0x104
lea r8, [0x140006728]
mov rcx, rsi
mov ebx, eax
call fcn.1400016c0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140003674
lea eax, [rbx + 1]
jmp 0x140003676
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140003c50
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140003b90
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x140003bb1
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140003bde
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140003be0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140003c39
test ecx, ecx
jle 0x140003c19
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140003c39
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003c39
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret