joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140054b94
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.14003d488
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140054c1e
cmp byte [rbp - 0x21], r15b
je 0x140054c19
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140054c54
call fcn.140049d48
test eax, eax
jne 0x140054c40
cmp byte [rbp - 0x21], r15b
je 0x140054c38
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140054c54
cmp byte [rbp - 0x21], r15b
je 0x140054c51
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.140045364
test eax, eax
jne 0x140054cf4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14003d488
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140054c93
cmp byte [rbp - 0x21], r15b
je 0x140054cc8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140054cc8
call fcn.140049d48
test eax, eax
jne 0x140054cb4
cmp byte [rbp - 0x21], r15b
je 0x140054cad
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140054cc8
cmp byte [rbp - 0x21], r15b
je 0x140054cc5
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.140045364
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140054cf4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140054cf7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140054d05
mov rcx, rdi
call fcn.140046cc8
cmp byte [rbp + 0x3f], r15b
je 0x140054d14
mov rcx, qword [rbp + 0x27]
call fcn.140046cc8
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 0x1400564e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140056508
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140056508
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140183eb0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140183ebd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140183ecd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140183eb5
lea eax, [rcx + 1]
jmp 0x140183edb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140183eee
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140183ed4
sub eax, 3
jb 0x140183f0e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140183f5d
sar eax, 1
movsxd rbp, eax
jb 0x140183f44
jmp 0x140183f1c
add ebx, ebx
jne 0x140183f1a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140183f44
inc ecx
add ebx, ebx
jne 0x140183f2a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140183f44
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140183f3d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140183f2c
add ecx, 2
jmp 0x140183f49
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140183e72
jmp 0x140183ebd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xe7e00
mov dl, 0x26
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140183fa9
cmp rsi, rcx
jae 0x140183fb1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140183f90
cmp al, 0x8f
ja 0x140183f90
cmp byte [rsi - 2], 0xf
je 0x140183f96
sub al, 0xe8
cmp al, 1
ja 0x140183f7a
cmp rsi, rcx
jae 0x140183fb1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140183f80
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140183fb1
lodsb al, byte [rsi]
jmp 0x140183f90
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x17e000]
mov eax, dword [rdi]
or eax, eax
je 0x14018401a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1922ac]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140183fbe
jns 0x140183ff3
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140183ffd
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140184014
mov qword [rbx], rax
add rbx, 8
jmp 0x140183fde
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140184054
cmp al, 0xef
ja 0x140184046
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140184026
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140184035
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x257]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
push rcx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1401840a8
sub rsp, 0xffffffffffffff80
jmp 0x1400c2da4
Function at 0x14000b9ac
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b730
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba02
mov ecx, 1
call fcn.14000b730
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
fidiv word [rax + rbx*2]
invalid

Function at 0x14092d058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14092d1df
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 0x14092d089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14092d06f
add dl, dl
jne 0x14092d096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14092d0f6
xor eax, eax
add dl, dl
jne 0x14092d0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14092d1ad
add dl, dl
jne 0x14092d0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14092d0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14092d0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14092d0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14092d0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14092d07e
mov eax, 1
add dl, dl
jne 0x14092d106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14092d113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14092d0fb
sub eax, ebx
mov ebx, 1
jne 0x14092d14c
mov ecx, 1
add dl, dl
jne 0x14092d12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14092d13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14092d123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14092d07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14092d168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14092d175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14092d15d
cmp eax, 0x7d00
jae 0x14092d19b
cmp eax, 0x500
jb 0x14092d196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14092d07e
cmp eax, 0x7f
ja 0x14092d19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14092d07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14092d1d2
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 0x14092d07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140004d30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x70]
add rax, 8
mov rcx, rax
call fcn.1400656b0
movzx eax, al
test eax, eax
jne 0x140004d62
mov rax, qword [rsp + 0x70]
add rax, 8
mov rcx, rax
call fcn.140005eb0
mov rax, qword [rsp + 0x70]
add rax, 0x20
mov rcx, rax
call fcn.1400065a0
lea rdx, [0x14014f130]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140004e42
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
cdqe
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_rewind]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call fcn.14011f494
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140004e23
mov r9, qword [rsp + 0x20]
mov r8, qword [rsp + 0x28]
mov edx, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x48], rax
jne 0x140004e23
mov rax, qword [rsp + 0x70]
mov byte [rax + 0x40], 1
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.14011f49c
mov rax, qword [rsp + 0x70]
add rax, 8
mov rcx, rax
call fcn.1400068f0
movzx eax, al
test eax, eax
jne 0x140004e6b
mov rax, qword [rsp + 0x70]
add rax, 8
mov rcx, rax
call fcn.140005ee0
xor al, al
add rsp, 0x68
ret
Function at 0x140007d00
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [rsp + 0x80]
mov qword [rax], 0
mov rax, qword [rsp + 0x80]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x80]
mov qword [rax + 0x10], 0
mov rax, qword [rsp + 0x80]
mov qword [rax + 0x18], 0
mov rax, qword [rsp + 0x80]
add rax, 0x20
mov rcx, rax
call fcn.140005c90
mov rax, qword [rsp + 0x80]
add rax, 0x20
mov rcx, rax
call fcn.140005eb0
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x50]
call fcn.140007ee0
nop
lea rcx, [rsp + 0x50]
call fcn.140008190
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rsp + 0x80]
mov qword [rcx], rax
mov rax, qword [rsp + 0x80]
cmp qword [rax], 0
je 0x140007df6
mov rax, qword [rsp + 0x80]
cmp qword [rax], 0xffffffffffffffff
jne 0x140007e05
lea rcx, [rsp + 0x50]
call fcn.140008030
jmp 0x140007ecb
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x1000002
xor edx, edx
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rsp + 0x80]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x80]
cmp qword [rax + 8], 0
jne 0x140007e59
lea rcx, [rsp + 0x50]
call fcn.140008030
jmp 0x140007ecb
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, qword [rsp + 0x80]
mov qword [rcx + 0x10], rax
xor edx, edx
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov eax, eax
mov rcx, qword [rsp + 0x80]
mov qword [rcx + 0x18], rax
mov rax, qword [rsp + 0x80]
add rax, 0x20
mov rcx, rax
call fcn.140005ee0
nop
lea rcx, [rsp + 0x50]
call fcn.140008030
mov rax, qword [rsp + 0x80]
add rsp, 0x78
ret
Function at 0x140009260
Capabilities:
Get common file path

Disassembly:
mov byte [rsp + 0x20], r9b
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x210
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov rax, qword [0x1401a1460]
xor rax, rsp
mov qword [rsp + 0x200], rax
mov rax, qword [rsp + 0x220]
mov qword [rax + 0x30], 0
mov rax, qword [rsp + 0x220]
movzx ecx, byte [rsp + 0x238]
mov byte [rax + 0x28], cl
mov byte [rsp + 0xf0], 0
lea rax, [rsp + 0xf1]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
lea rdx, [rsp + 0xf0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jbe 0x140009429
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0xc8]
call fcn.140003e10
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
lea r8, [0x1401501b8]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0xa8]
call fcn.1400057d0
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov r8, qword [rsp + 0x228]
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x88]
call fcn.14000bad0
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x220]
add rax, 8
mov rdx, qword [rsp + 0x78]
mov rcx, rax
call fcn.14000cb80
nop
lea rcx, [rsp + 0x88]
call fcn.140003ea0
nop
lea rcx, [rsp + 0xa8]
call fcn.140003ea0
nop
lea rcx, [rsp + 0xc8]
call fcn.140003ea0
movzx eax, byte [rsp + 0x230]
test eax, eax
je 0x1400093c9
mov dword [rsp + 0x40], 4
jmp 0x1400093d1
mov dword [rsp + 0x40], 3
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x220]
add rax, 8
mov rcx, rax
call fcn.1400065a0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov ecx, dword [rsp + 0x48]
mov dword [rsp + 0x20], ecx
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, qword [rsp + 0x220]
mov qword [rcx + 0x30], rax
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.14011f470
add rsp, 0x210
pop rdi
ret

Function at 0x140009c90
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov edx, 0x20019
mov rcx, qword [rsp + 0x50]
call fcn.14000a250
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140009cc8
mov eax, dword [rsp + 0x30]
jmp 0x140009d15
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], 1
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140009d13
mov eax, 0xc0000001
jmp 0x140009d15
xor eax, eax
add rsp, 0x48
ret
Function at 0x140009d20
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rcx, qword [rsp + 0x50]
call fcn.14000a360
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140009d4e
mov eax, dword [rsp + 0x30]
jmp 0x140009d99
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
inc rax
mov eax, eax
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140009d97
mov eax, 0xc0000001
jmp 0x140009d99
xor eax, eax
add rsp, 0x48
ret

Function at 0x140009db0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov edx, 0x20019
mov rcx, qword [rsp + 0x50]
call fcn.14000a250
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140009de8
mov eax, dword [rsp + 0x34]
jmp 0x140009e50
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x38], 7
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140009e42
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
mov eax, 0xc0000001
jmp 0x140009e50
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
xor eax, eax
add rsp, 0x48
ret

Function at 0x140009ee0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov edx, 0x20019
mov rcx, qword [rsp + 0x50]
call fcn.14000a250
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140009f13
mov eax, dword [rsp + 0x30]
jmp 0x140009f60
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x38], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140009f5e
mov eax, 0xc0000001
jmp 0x140009f60
xor eax, eax
add rsp, 0x48
ret
Function at 0x140009f70
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rcx, qword [rsp + 0x50]
call fcn.14000a360
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140009f9e
mov eax, dword [rsp + 0x30]
jmp 0x140009fda
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140009fd8
mov eax, 0xc0000001
jmp 0x140009fda
xor eax, eax
add rsp, 0x48
ret

Function at 0x140009ff0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov edx, 0x20019
mov rcx, qword [rsp + 0x50]
call fcn.14000a250
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x14000a028
mov eax, dword [rsp + 0x34]
jmp 0x14000a090
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x38], 3
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14000a082
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
mov eax, 0xc0000001
jmp 0x14000a090
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
xor eax, eax
add rsp, 0x48
ret

Function at 0x14000a120
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov edx, 0x20006
mov rcx, qword [rsp + 0x40]
call fcn.14000a250
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14000a14e
mov eax, dword [rsp + 0x20]
jmp 0x14000a16f
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x14000a16d
mov eax, 0xc0000001
jmp 0x14000a16f
xor eax, eax
add rsp, 0x38
ret

Function at 0x14000afd0
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x28
ret

Function at 0x14000b020
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x28
ret

Function at 0x14000b050
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x28
ret
Function at 0x140024a40
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x78
cmp qword [0x1401a4930], 0
jne 0x140024b36
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x44]
mov qword [rsp + 0x38], rax
xor eax, eax
test eax, eax
je 0x140024a76
mov dword [rsp + 0x20], 0
jmp 0x140024a7e
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov qword [rsp + 0x30], rax
xor eax, eax
test eax, eax
jne 0x140024abd
mov rax, qword [rsp + 0x30]
dec rax
mov rcx, qword [rsp + 0x30]
and rcx, rax
mov rax, rcx
test rax, rax
jne 0x140024abd
mov rax, qword [rsp + 0x38]
dec rax
mov rcx, qword [rsp + 0x38]
and rcx, rax
mov rax, rcx
test rax, rax
je 0x140024ac3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
mov rax, qword [rsp + 0x30]
mov qword [0x1401a4940], rax
mov rax, qword [rsp + 0x38]
mov qword [0x1401a4938], rax
mov qword [0x1401a4948], 0x40000
mov qword [0x1401a4950], 0x200000
mov dword [0x1401a4958], 5
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
xor rax, 0x55555555
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
or rax, 8
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
and rax, 0xfffffffffffffff8
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [0x1401a4930], rax
mov eax, 1
add rsp, 0x78
ret