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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14004b040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000a81d
xor eax, eax
jmp 0x14000a989
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000a857
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000a857
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14000a989
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000a97c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000a89a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14000a8c5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000a981
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000a934
sub eax, 1
je 0x14000a934
cmp eax, 2
jne 0x14000a97c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000a981
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000a962
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000a97c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000a981
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14001b530
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000ac80
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14004b040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000ad53
cmp byte [rcx + 0x71], 0
je 0x14000ad53
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000ad4f
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_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000ad14
sub eax, 1
je 0x14000ad18
cmp eax, 2
jne 0x14000ad4f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001b530
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000ad46
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 0x14000ad4f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000acfc
xor al, al
jmp 0x14000acfc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001b530
add rsp, 0x60
pop rbx
ret
Function at 0x14001a900
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14001a93a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14001a93f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14001a988
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14001e890]
cmp byte [rcx + rax], 0
je 0x14001a988
dec r8
sub rdx, 1
jne 0x14001a96e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.14001aa18
mov ebx, eax
test eax, eax
jne 0x14001b104
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x14001b167
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001b15e
test al, 0x10
je 0x14001b15e
bt eax, 0xa
jae 0x14001b157
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.14001b178
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x14001b153
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14001b153
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x14001b15e
and dword [rsp + 0x3c], 0
jmp 0x14001b163
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14001c0f4
Capabilities:
Parse pe header

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

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000ce88

Function at 0x140016254
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140055320]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1400162b2
cmp word [rdx], r12w
jne 0x1400162b2
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400162b8
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140016413
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400163ee
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400162f1
mov rcx, r9
jmp 0x140016314
cmp r9, rdx
jae 0x14001632b
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1400162d5
jmp 0x140016413
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400163e8
cmp dword [rsp + 0x80], edi
je 0x1400163e8
mov rdx, r14
lea r11, [0x140055320]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1400163c1
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140016394
mov word [rbx], r12w
jmp 0x14001640f
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14001639d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14001640f
cmp word [rsp + 0x70], r12w
jne 0x1400163ce
cmp rbx, rsi
je 0x14001638e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400161b0
cmp word [rsp + 0x70], r12w
je 0x140016413
mov word [rbx], r13w
jmp 0x14001640f
lea r11, [0x140055320]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14001640b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140016413
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001a0f4
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 0x14001a124
xor eax, eax
jmp 0x14001a1e7
mov rbp, rbx
cmp word [rax], si
je 0x14001a149
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001a130
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001a12c
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.140012fd0
movsxd r14, eax
test eax, eax
jne 0x14001a187
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001a11d
mov rcx, r14
call fcn.1400110d0
mov rdi, rax
test rax, rax
jne 0x14001a1a0
xor ecx, ecx
call fcn.140011094
jmp 0x14001a17c
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.140012fd0
test eax, eax
jne 0x14001a1d1
mov rcx, rdi
call fcn.140011094
jmp 0x14001a1db
xor ecx, ecx
call fcn.140011094
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 0x14001a204
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14001a28b
mov rsi, rbx
cmp word [rax], bp
je 0x14001a24a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14001a234
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14001a230
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400110d0
mov rdi, rax
test rax, rax
je 0x14001a278
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140003220
mov rbp, rdi
xor ecx, ecx
call fcn.140011094
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001ebd0
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.14000df1c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001ec5a
cmp byte [rbp - 0x21], r15b
je 0x14001ec55
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001ec90
call fcn.140013758
test eax, eax
jne 0x14001ec7c
cmp byte [rbp - 0x21], r15b
je 0x14001ec74
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001ec90
cmp byte [rbp - 0x21], r15b
je 0x14001ec8d
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.14000e7e0
test eax, eax
jne 0x14001ed30
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000df1c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001eccf
cmp byte [rbp - 0x21], r15b
je 0x14001ed04
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001ed04
call fcn.140013758
test eax, eax
jne 0x14001ecf0
cmp byte [rbp - 0x21], r15b
je 0x14001ece9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001ed04
cmp byte [rbp - 0x21], r15b
je 0x14001ed01
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.14000e7e0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001ed30
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001ed33
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001ed41
mov rcx, rdi
call fcn.140011094
cmp byte [rbp + 0x3f], r15b
je 0x14001ed50
mov rcx, qword [rbp + 0x27]
call fcn.140011094
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 0x14001f5f0
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.1400161b0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400161b0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14001f740
cmp rax, 0xffffffffffffffff
je 0x14001f740
xor edi, edi
test rbp, rbp
jle 0x14001f6eb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140013418
mov rbx, rax
test rax, rax
jne 0x14001f678
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14001f6e1
mov edx, 0x8000
mov ecx, r14d
call fcn.140010780
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.140017528
cmp eax, 0xffffffff
je 0x14001f6c1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14001f688
mov edx, r15d
mov ecx, r14d
call fcn.140010780
jmp 0x14001f6e1
cmp byte [rsi + 0x38], dil
je 0x14001f6d8
cmp dword [rsi + 0x34], 5
jne 0x14001f6d8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14001f6e1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140011094
jmp 0x14001f754
jns 0x14001f754
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400161b0
cmp rax, 0xffffffffffffffff
jne 0x14001f70c
cmp byte [rsi + 0x30], dil
je 0x14001f754
mov edi, dword [rsi + 0x2c]
jmp 0x14001f754
mov ecx, r14d
call fcn.1400181f8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14001f754
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 0x14001f754
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14001f74d
mov eax, dword [rsi + 0x2c]
jmp 0x14001f752
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400161b0
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 0x140020eb0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov edi, r8d
mov rbx, rdx
mov dword [rsp + 0x20], 0
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [rsp + 0x20], eax
test eax, eax
je 0x140020f70
cmp word [rbx], 0
je 0x140020f70
lfence
lea rdx, [0x140045060]
mov rcx, rbx
call fcn.140001fd0
test rax, rax
je 0x140020f09
mov ecx, 0x57
mov word [rax + 4], cx
jmp 0x140020f70
lfence
lea rdx, [0x140045048]
mov rcx, rbx
call fcn.140001fd0
mov rbx, rax
test rax, rax
je 0x140020f70
cmp edi, 2
jbe 0x140020f70
lea r8, [rdi*2 - 2]
cmp r8, 0x12
jb 0x140020f4d
movups xmm0, xmmword [0x140045030]
movups xmmword [rax], xmm0
movzx eax, word [0x140045040]
mov word [rbx + 0x10], ax
jmp 0x140020f67
xor edx, edx
mov rcx, rbx
call fcn.1400025f0
call fcn.14000bda4
mov dword [rax], 0x22
call fcn.14000bbd0
mov ecx, 0x57
mov word [rbx + 4], cx
mov eax, dword [rsp + 0x20]
jmp 0x140020f7a
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140020f90
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov edi, r8d
mov rbx, rdx
mov dword [rsp + 0x20], 0
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [rsp + 0x20], eax
test eax, eax
je 0x14002103e
cmp byte [rbx], 0
je 0x14002103e
lfence
lea rdx, [0x140045098]
mov rcx, rbx
call fcn.1400021e8
test rax, rax
je 0x140020fdf
mov byte [rax + 2], 0x57
jmp 0x14002103e
lfence
lea rdx, [0x140045088]
mov rcx, rbx
call fcn.1400021e8
mov rbx, rax
test rax, rax
je 0x14002103e
cmp edi, 2
jbe 0x14002103e
lea r8, [rdi - 1]
cmp r8, 9
jb 0x140021020
movsd xmm0, qword [0x140045078]
movsd qword [rax], xmm0
movzx eax, byte [0x140045080]
mov byte [rbx + 8], al
jmp 0x14002103a
xor edx, edx
mov rcx, rbx
call fcn.1400025f0
call fcn.14000bda4
mov dword [rax], 0x22
call fcn.14000bbd0
mov byte [rbx + 2], 0x57
mov eax, dword [rsp + 0x20]
jmp 0x140021048
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140021060
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov edi, r8d
mov rbx, rdx
mov dword [rsp + 0x20], 0
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [rsp + 0x20], eax
test eax, eax
je 0x140021120
cmp word [rbx], 0
je 0x140021120
lfence
lea rdx, [0x1400450d8]
mov rcx, rbx
call fcn.140001fd0
test rax, rax
je 0x1400210b9
mov ecx, 0x57
mov word [rax + 4], cx
jmp 0x140021120
lfence
lea rdx, [0x1400450c0]
mov rcx, rbx
call fcn.140001fd0
mov rbx, rax
test rax, rax
je 0x140021120
cmp edi, 2
jbe 0x140021120
lea r8, [rdi*2 - 2]
cmp r8, 0x12
jb 0x1400210fd
movups xmm0, xmmword [0x1400450a8]
movups xmmword [rax], xmm0
movzx eax, word [0x1400450b8]
mov word [rbx + 0x10], ax
jmp 0x140021117
xor edx, edx
mov rcx, rbx
call fcn.1400025f0
call fcn.14000bda4
mov dword [rax], 0x22
call fcn.14000bbd0
mov ecx, 0x57
mov word [rbx + 4], cx
mov eax, dword [rsp + 0x20]
jmp 0x14002112a
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140025190
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140044008]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14, r9
mov r15, qword [rsp + 0xb0]
xor r12d, r12d
mov ebx, r12d
mov qword [r11 - 0x48], rbx
mov dword [r11 - 0x30], r12d
mov qword [r11 - 0x38], r12
mov qword [r11 - 0x28], r12
test r9, r9
jne 0x1400251f7
mov r8d, 0x521c
lea rdx, [0x1400474c0]
lea rcx, str.ppm___NULL
call fcn.14000f5d0
cmp qword [r14], 0
je 0x140025216
mov r8d, 0x521d
lea rdx, [0x1400473e0]
lea rcx, str.ppm__NULL
call fcn.14000f5d0
test r15, r15
jne 0x140025234
mov r8d, 0x521e
lea rdx, [0x140047310]
lea rcx, str.pb___NULL
call fcn.14000f5d0
cmp qword [r15], 0
je 0x140025253
mov r8d, 0x521f
lea rdx, [0x140047260]
lea rcx, str.pb__0
call fcn.14000f5d0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov r9d, 0xffff
lea r8, str.task
lea rdx, str.SYSTEMCurrentControlSetServicesUSER_ESRV_SVC_QUEENCREEK
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140025356
mov edi, dword [rsp + 0x58]
add rdi, rdi
mov qword [rsp + 0x48], rdi
jne 0x1400252b7
mov r8d, 0x523b
lea rdx, [0x140047180]
lea rcx, str.memory_size___0
call fcn.14000f5d0
mov dword [rsp + 0x58], edi
mov rcx, rdi
call fcn.14000c6d4
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140025356
mov r8, rdi
xor edx, edx
mov rcx, rbx
call fcn.1400025f0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r12
mov r9d, 0xffff
lea r8, str.task
lea rdx, str.SYSTEMCurrentControlSetServicesUSER_ESRV_SVC_QUEENCREEK
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140025356
mov edi, dword [rsp + 0x58]
shr rdi, 1
mov qword [rsp + 0x48], rdi
jne 0x140025341
mov r8d, 0x5289
lea rdx, [0x1400470b0]
lea rcx, [0x140047090]
call fcn.14000f5d0
mov rcx, rdi
call fcn.14000c6d4
mov rsi, rax
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x140025377
nop
test rbx, rbx
je 0x140025369
mov rcx, rbx
call fcn.14000bdc4
mov qword [rsp + 0x40], r12
mov eax, 1
jmp 0x1400253d9
mov r8, rdi
xor edx, edx
mov rcx, rsi
call fcn.1400025f0
mov qword [rsp + 0x20], 0xffffffffffffffff
mov r9, rbx
mov r8, rdi
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.14000c238
test eax, eax
je 0x1400253bd
mov r8d, 0x529e
lea rdx, [0x140046fe0]
lea rcx, str.e_ret__0
call fcn.14000f5d0
mov rcx, rbx
call fcn.14000bdc4
mov qword [rsp + 0x40], r12
mov qword [r14], rsi
mov qword [r15], rdi
xor eax, eax
jmp 0x1400253d9
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140001240
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x140025410
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140044008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor eax, eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], eax
test rcx, rcx
jne 0x140025458
mov r8d, 0x4881
lea rdx, [0x140047700]
lea rcx, [0x140047638]
call fcn.14000f5d0
test rdi, rdi
jne 0x140025476
mov r8d, 0x4882
lea rdx, [0x140047650]
lea rcx, str.v___NULL
call fcn.14000f5d0
test rsi, rsi
jne 0x140025494
mov r8d, 0x4883
lea rdx, [0x140047570]
lea rcx, str.b___NULL
call fcn.14000f5d0
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400254ca
cmp dword [rsp + 0x34], 4
je 0x1400254d6
mov eax, 1
jmp 0x1400254d6
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001240
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret