joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140028a5c
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001bef8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001bef8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140028bac
cmp rax, 0xffffffffffffffff
je 0x140028bac
xor edi, edi
test rbp, rbp
jle 0x140028b57
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001eb84
mov rbx, rax
test rax, rax
jne 0x140028ae4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028b4d
mov edx, 0x8000
mov ecx, r14d
call fcn.1400197a0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001cbe0
cmp eax, 0xffffffff
je 0x140028b2d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028af4
mov edx, r15d
mov ecx, r14d
call fcn.1400197a0
jmp 0x140028b4d
cmp byte [rsi + 0x38], dil
je 0x140028b44
cmp dword [rsi + 0x34], 5
jne 0x140028b44
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028b4d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a0e4
jmp 0x140028bc0
jns 0x140028bc0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001bef8
cmp rax, 0xffffffffffffffff
jne 0x140028b78
cmp byte [rsi + 0x30], dil
je 0x140028bc0
mov edi, dword [rsi + 0x2c]
jmp 0x140028bc0
mov ecx, r14d
call fcn.1400182d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140028bc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140028bc0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140028bb9
mov eax, dword [rsi + 0x2c]
jmp 0x140028bbe
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001bef8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140029cb0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140029cd8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140029cd8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x141424058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1414241df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141424089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14142406f
add dl, dl
jne 0x141424096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1414240f6
xor eax, eax
add dl, dl
jne 0x1414240a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1414241ad
add dl, dl
jne 0x1414240b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1414240c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1414240d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1414240dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1414240ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14142407e
mov eax, 1
add dl, dl
jne 0x141424106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141424113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1414240fb
sub eax, ebx
mov ebx, 1
jne 0x14142414c
mov ecx, 1
add dl, dl
jne 0x14142412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14142413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141424123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14142407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141424168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141424175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14142415d
cmp eax, 0x7d00
jae 0x14142419b
cmp eax, 0x500
jb 0x141424196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14142407e
cmp eax, 0x7f
ja 0x14142419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14142407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1414241d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14142407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002a9c
Capabilities:
Parse pe header

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

Function at 0x14000b890
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000b8ff
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000b8ff
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000b8ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000b8ff
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000b8ff
cmp dword [rcx + 0x84], 0xe
jbe 0x14000b8ff
cmp dword [rcx + 0xf8], 0
je 0x14000b8ff
mov ecx, ebx
call fcn.14000b9b0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000b78c
nop
cmp dword [rbp + 0x20], 0
je 0x14000b94d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000b958
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14000b890

Function at 0x14000ba94
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000b890
Function at 0x14001187c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400118ac
xor eax, eax
jmp 0x14001196f
mov rbp, rbx
cmp word [rax], si
je 0x1400118d1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400118b8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400118b4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14001179c
movsxd r14, eax
test eax, eax
jne 0x14001190f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400118a5
mov rcx, r14
call fcn.14000d190
mov rdi, rax
test rax, rax
jne 0x140011928
xor ecx, ecx
call fcn.14000c518
jmp 0x140011904
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14001179c
test eax, eax
jne 0x140011959
mov rcx, rdi
call fcn.14000c518
jmp 0x140011963
xor ecx, ecx
call fcn.14000c518
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140015b5c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140015b72
mov al, 1
jmp 0x140015bd2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140015b83
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140015bd0
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400120e4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140015bd0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140015bd0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140015bd0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140015bd2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140017448
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000fe0c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400174d2
cmp byte [rbp - 0x21], r15b
je 0x1400174cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140017508
call fcn.14000c768
test eax, eax
jne 0x1400174f4
cmp byte [rbp - 0x21], r15b
je 0x1400174ec
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140017508
cmp byte [rbp - 0x21], r15b
je 0x140017505
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000fc90
test eax, eax
jne 0x1400175a8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000fe0c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140017547
cmp byte [rbp - 0x21], r15b
je 0x14001757c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001757c
call fcn.14000c768
test eax, eax
jne 0x140017568
cmp byte [rbp - 0x21], r15b
je 0x140017561
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001757c
cmp byte [rbp - 0x21], r15b
je 0x140017579
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000fc90
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400175a8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400175ab
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400175b9
mov rcx, rdi
call fcn.14000c518
cmp byte [rbp + 0x3f], r15b
je 0x1400175c8
mov rcx, qword [rbp + 0x27]
call fcn.14000c518
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140019bb0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140019bd8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140019bd8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000bca0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rbx, rdx
mov r15, rcx
call fcn.14000c420
test rax, rax
je 0x14000bcf4
mov r14, rax
mov rdi, rdx
lea rsi, [rax - 1]
nop word cs:[rax + rax]
test rsi, rsi
js 0x14000bd43
cmp rsi, r14
jae 0x14000bd8b
movzx ecx, byte [rdi + rsi]
call fcn.14001b6b0
dec rsi
test al, al
jne 0x14000bcd0
add rsi, 2
jmp 0x14000bd48
xor esi, esi
mov edi, 0
cmp r15, 3
jb 0x14000bd72
movzx ecx, byte [rbx]
call fcn.14001b6b0
xor esi, esi
mov edi, 0
test al, al
je 0x14000bd72
movzx ecx, byte [rbx + 1]
call fcn.14001b6b0
xor esi, esi
mov edi, 0
test al, al
je 0x14000bd72
movzx ecx, byte [rbx + 2]
call fcn.14001b6b0
xor ecx, ecx
test al, al
cmovne rbx, rcx
xor al, 1
movzx esi, al
mov rdi, rbx
jmp 0x14000bd72
inc rsi
je 0x14000bd84
mov rbx, rsi
nop dword [rax + rax]
mov r14, rbx
dec rbx
js 0x14000bd6c
cmp rbx, rsi
jae 0x14000bdaa
movzx ecx, byte [rdi + r14 - 1]
call fcn.14001b6d0
test al, al
je 0x14000bd50
add rdi, r14
sub rsi, r14
mov rax, rsi
mov rdx, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov esi, 1
jmp 0x14000bd72
mov qword [rsp + 0x20], r14
lea rdx, str.D:_aldcldc_runtimephobos_stdpath.d
mov ecx, 0x26
mov r8d, 0x12b
mov r9, rsi
call fcn.140027830
mov qword [rsp + 0x20], rsi
lea rdx, str.D:_aldcldc_runtimephobos_stdpath.d
mov ecx, 0x26
mov r8d, 0xd0
mov r9, rbx
call fcn.140027830
int3

Function at 0x140011a60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x150
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xc8], 0xfffffffffffffffe
mov rsi, rdx
mov rdi, rcx
lea rcx, [rbp - 0x48]
mov rdx, rdi
mov r8, rsi
call fcn.14000aef0
mov rcx, qword [rbp - 0x48]
cmp rcx, 0xffffffffffffffff
lea rbx, [rbp - 0x38]
cmove rcx, rbx
call sub.KERNEL32.dll_GetFileAttributesW
mov r14, qword [rbp - 0x48]
cmp r14, 0xffffffffffffffff
cmovne rbx, r14
cmp eax, 0xffffffff
je 0x140011aec
cmp r14, 0xffffffffffffffff
je 0x140011ade
mov esi, eax
call fcn.14007af5c
mov edi, dword [rax]
mov rcx, r14
call fcn.140080354
call fcn.14007af5c
mov rcx, rax
mov eax, esi
mov dword [rcx], edi
add rsp, 0x150
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
test rsi, rsi
jne 0x140011b13
test rbx, rbx
jne 0x140011afa
xor ecx, ecx
jmp 0x140011b05
mov rcx, rbx
call fcn.140082344
mov rcx, rax
mov rdx, rbx
call fcn.140012390
mov rdi, rax
mov rsi, rdx
lea rcx, [0x1400d21f0]
call fcn.140043a20
mov rbx, rax
lea rax, [0x1400a8f30]
mov qword [rbx], rax
mov qword [rbx + 8], 0
movups xmm0, xmmword [0x1400a8ee0]
movups xmmword [rbx + 0x10], xmm0
movups xmm0, xmmword [0x1400a8ef0]
movups xmmword [rbx + 0x20], xmm0
movups xmm0, xmmword [0x1400a8f00]
movups xmmword [rbx + 0x30], xmm0
movups xmm0, xmmword [0x1400a8f10]
movups xmmword [rbx + 0x40], xmm0
mov rax, qword [0x1400a8f20]
mov qword [rbx + 0x50], rax
call sub.KERNEL32.dll_GetLastError
lea rcx, str.D:_aldcldc_runtimephobos_std_file.d
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0x803
mov qword [rsp + 0x20], 0x26
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
mov r9d, eax
call fcn.14001a4d0
mov rcx, rbx
call fcn.1400278d0
int3
Function at 0x14001a5d0
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov rcx, r8
call sub.KERNEL32.dll_DeleteFileW
test eax, eax
je 0x14001a5f4
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
test rsi, rsi
jne 0x14001a61b
test rbx, rbx
jne 0x14001a602
xor ecx, ecx
jmp 0x14001a60d
mov rcx, rbx
call fcn.140082344
mov rcx, rax
mov rdx, rbx
call fcn.1400199b0
mov rdi, rax
mov rsi, rdx
lea rcx, [0x1400d21f0]
call fcn.140043a20
mov rbx, rax
lea rax, [0x1400a8f30]
mov qword [rbx], rax
mov qword [rbx + 8], 0
movups xmm0, xmmword [0x1400a8ee0]
movups xmmword [rbx + 0x10], xmm0
movups xmm0, xmmword [0x1400a8ef0]
movups xmmword [rbx + 0x20], xmm0
movups xmm0, xmmword [0x1400a8f00]
movups xmmword [rbx + 0x30], xmm0
movups xmm0, xmmword [0x1400a8f10]
movups xmmword [rbx + 0x40], xmm0
mov rax, qword [0x1400a8f20]
mov qword [rbx + 0x50], rax
call sub.KERNEL32.dll_GetLastError
lea rcx, str.std_file.d
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0x429
mov qword [rsp + 0x20], 0xa
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
mov r9d, eax
call fcn.14001a4d0
mov rcx, rbx
call fcn.1400278d0
int3

Function at 0x14001a6b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne al
add rsp, 0x28
ret
Function at 0x1400381c0
Capabilities:
Set registry value

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xd8], 0xfffffffffffffffe
mov esi, r9d
mov rdi, rcx
mov rbx, qword [rbp + 0x130]
mov r14d, dword [rbp + 0x138]
mov qword [rbp + 0xc8], rdx
mov qword [rbp + 0xd0], r8
lea rcx, [rbp - 0x48]
call fcn.14000aef0
mov rax, qword [rbp - 0x48]
cmp rax, 0xffffffffffffffff
lea rdx, [rbp - 0x38]
cmovne rdx, rax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rbx
mov rcx, rdi
xor r8d, r8d
mov r9d, esi
call sub.ADVAPI32.dll_RegSetValueExW
test eax, eax
jne 0x140038265
mov rsi, qword [rbp - 0x48]
cmp rsi, 0xffffffffffffffff
je 0x140038257
call fcn.14007af5c
mov edi, dword [rax]
mov rcx, rsi
call fcn.140080354
call fcn.14007af5c
mov dword [rax], edi
add rsp, 0x160
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov esi, eax
lea rcx, [0x1400db2e0]
call fcn.140043a20
mov rdi, rax
lea rax, [0x1400bb0e0]
mov qword [rdi], rax
mov qword [rdi + 8], 0
movups xmm0, xmmword [0x1400bb148]
movups xmmword [rdi + 0x10], xmm0
movups xmm0, xmmword [0x1400bb158]
movups xmmword [rdi + 0x20], xmm0
movups xmm0, xmmword [0x1400bb168]
movups xmmword [rdi + 0x30], xmm0
movups xmm0, xmmword [0x1400bb178]
movups xmmword [rdi + 0x40], xmm0
mov rax, qword [0x1400bb188]
mov qword [rdi + 0x50], rax
lea rax, [0x1400bb252]
mov qword [rsp + 0x20], rax
lea rdx, str.Value_cannot_be_set:__
lea r8, [rbp + 0xc8]
mov ecx, reloc.WS2_32.dll_shutdown
mov r9d, 1
call fcn.140029f40
mov r9, rdx
lea rcx, str.stdwindows_registry.d
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0x2de
mov qword [rsp + 0x20], reloc.WS2_32.dll_shutdown
mov rcx, rdi
mov edx, esi
mov r8, rax
call fcn.140036540
mov rcx, rdi
call fcn.1400278d0
int3
Function at 0x140038350
Capabilities:
Query or enumerate registry key

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov rbx, rcx
xorps xmm6, xmm6
movups xmmword [r8], xmm6
mov rax, qword [rcx]
mov r14, qword [rax + 0x10]
mov dword [rsp + 0x44], 0
mov rax, qword [rcx + 8]
mov rcx, rax
shr rcx, 0x20
jne 0x1400383f7
mov rsi, r8
mov edi, edx
lea r15, [rbx + 8]
lea r12, [rsp + 0x44]
lea r13, [0x1400d7018]
nop word cs:[rax + rax]
mov dword [rsp + 0x44], eax
mov r8, qword [rbx + 0x10]
movups xmmword [rsp + 0x30], xmm6
movups xmmword [rsp + 0x20], xmm6
mov rcx, r14
mov edx, edi
mov r9, r12
call sub.ADVAPI32.dll_RegEnumKeyExW
cmp eax, 0xea
jne 0x140038488
mov rdx, qword [r15]
add rdx, rdx
mov rcx, r13
mov r8, r15
call fcn.140045e50
mov rax, qword [r15]
mov rcx, rax
shr rcx, 0x20
je 0x1400383b0
lea rcx, [0x1400d2110]
call fcn.140043a20
lea rcx, [0x1400a8ab0]
mov qword [rax], rcx
mov qword [rax + 8], 0
movups xmm0, xmmword [0x1400a8a68]
movups xmmword [rax + 0x10], xmm0
movups xmm0, xmmword [0x1400a8a98]
movups xmmword [rax + 0x40], xmm0
movups xmm0, xmmword [0x1400a8a78]
movups xmmword [rax + 0x20], xmm0
movups xmm0, xmmword [0x1400a8a88]
movups xmmword [rax + 0x30], xmm0
mov ecx, dword [0x1400a8aa8]
mov dword [rax + 0x50], ecx
mov qword [rax + 0x10], 0x1c
lea rcx, str.Conversion_positive_overflow
mov qword [rax + 0x18], rcx
mov qword [rax + 0x48], 0
mov qword [rax + 0x20], 0xa
lea rcx, str.stdconv.d
mov qword [rax + 0x28], rcx
mov qword [rax + 0x30], 0x625
mov rcx, rax
call fcn.1400278d0
test eax, eax
jne 0x140038557
mov edi, dword [rsp + 0x44]
mov rbx, qword [rbx + 0x10]
mov rdx, qword [str.P_r_f_]
mov rax, qword [rdx]
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x58]
mov r8d, 0x20
xor r9d, r9d
call qword [rax + 0x48]
mov rax, qword [rsp + 0x58]
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax], xmm0
mov qword [rsp + 0x48], rax
test rdi, rdi
je 0x140038540
lea r14, [rsp + 0x48]
lea r15, [rsp + 0x50]
jmp 0x140038519
mov rcx, rdi
mov rdx, rbx
mov r8, r15
call fcn.140017c50
mov edx, eax
mov rax, qword [rsp + 0x50]
lea rbx, [rbx + rax*2]
sub rdi, rax
mov rcx, r14
call fcn.140012530
test rdi, rdi
je 0x140038536
mov qword [rsp + 0x50], 0
movzx edx, word [rbx]
cmp edx, 0xd7ff
ja 0x1400384f0
add rbx, 2
dec rdi
jmp 0x14003850c
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x14003854a
mov rcx, qword [rax + 8]
mov rax, qword [rax + 0x10]
jmp 0x14003854e
xor ecx, ecx
xor eax, eax
mov qword [rsi], rcx
mov qword [rsi + 8], rax
xor eax, eax
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140038570
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov rbx, rcx
xorps xmm6, xmm6
movups xmmword [r8], xmm6
mov rax, qword [rcx]
mov r14, qword [rax + 0x10]
mov dword [rsp + 0x44], 0
mov rax, qword [rcx + 8]
mov rcx, rax
shr rcx, 0x20
jne 0x140038617
mov rsi, r8
mov edi, edx
lea r15, [rbx + 8]
lea r12, [rsp + 0x44]
lea r13, [0x1400d7018]
nop word cs:[rax + rax]
mov dword [rsp + 0x44], eax
mov r8, qword [rbx + 0x10]
movups xmmword [rsp + 0x30], xmm6
movups xmmword [rsp + 0x20], xmm6
mov rcx, r14
mov edx, edi
mov r9, r12
call sub.ADVAPI32.dll_RegEnumValueW
cmp eax, 0xea
jne 0x1400386a8
mov rdx, qword [r15]
add rdx, rdx
mov rcx, r13
mov r8, r15
call fcn.140045e50
mov rax, qword [r15]
mov rcx, rax
shr rcx, 0x20
je 0x1400385d0
lea rcx, [0x1400d2110]
call fcn.140043a20
lea rcx, [0x1400a8ab0]
mov qword [rax], rcx
mov qword [rax + 8], 0
movups xmm0, xmmword [0x1400a8a68]
movups xmmword [rax + 0x10], xmm0
movups xmm0, xmmword [0x1400a8a98]
movups xmmword [rax + 0x40], xmm0
movups xmm0, xmmword [0x1400a8a78]
movups xmmword [rax + 0x20], xmm0
movups xmm0, xmmword [0x1400a8a88]
movups xmmword [rax + 0x30], xmm0
mov ecx, dword [0x1400a8aa8]
mov dword [rax + 0x50], ecx
mov qword [rax + 0x10], 0x1c
lea rcx, str.Conversion_positive_overflow
mov qword [rax + 0x18], rcx
mov qword [rax + 0x48], 0
mov qword [rax + 0x20], 0xa
lea rcx, str.stdconv.d
mov qword [rax + 0x28], rcx
mov qword [rax + 0x30], 0x625
mov rcx, rax
call fcn.1400278d0
test eax, eax
jne 0x140038777
mov edi, dword [rsp + 0x44]
mov rbx, qword [rbx + 0x10]
mov rdx, qword [str.P_r_f_]
mov rax, qword [rdx]
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x58]
mov r8d, 0x20
xor r9d, r9d
call qword [rax + 0x48]
mov rax, qword [rsp + 0x58]
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax], xmm0
mov qword [rsp + 0x48], rax
test rdi, rdi
je 0x140038760
lea r14, [rsp + 0x48]
lea r15, [rsp + 0x50]
jmp 0x140038739
mov rcx, rdi
mov rdx, rbx
mov r8, r15
call fcn.140017c50
mov edx, eax
mov rax, qword [rsp + 0x50]
lea rbx, [rbx + rax*2]
sub rdi, rax
mov rcx, r14
call fcn.140012530
test rdi, rdi
je 0x140038756
mov qword [rsp + 0x50], 0
movzx edx, word [rbx]
cmp edx, 0xd7ff
ja 0x140038710
add rbx, 2
dec rdi
jmp 0x14003872c
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x14003876a
mov rcx, qword [rax + 8]
mov rax, qword [rax + 0x10]
jmp 0x14003876e
xor ecx, ecx
xor eax, eax
mov qword [rsi], rcx
mov qword [rsi + 8], rax
xor eax, eax
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret