joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401b7680
Capabilities:
Move file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1402cb038]
xor rax, rsp
mov qword [rsp + 0x490], rax
movaps xmm0, xmmword [0x14029ca60]
lea r15, [rsp + 0x30]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea rdx, [0x1402a9192]
lea r8, str.file_util_win.cc
lea r14, [rsp + 0x280]
mov rcx, r14
mov r9d, 0x1f3
call fcn.140158eb0
mov rcx, r15
xor edx, edx
xor r8d, r8d
call fcn.1401a26e0
test byte [0x1402d90d0], 0x19
jne 0x1401b7845
lea rcx, [rsp + 0x280]
mov r8d, 0x208
mov dl, 0xaa
call fcn.1401d06e0
cmp byte [rbx + 0x17], 0
mov rax, rbx
jns 0x1401b7728
mov rax, qword [rbx]
xor ecx, ecx
movzx edx, word [rax + rcx*2]
mov word [rsp + rcx*2 + 0x280], dx
test dx, dx
je 0x1401b7751
inc rcx
cmp rcx, 0x104
jne 0x1401b772a
mov word [rsp + 0x486], 0
lea rcx, [rsp + 0x280]
call fcn.14014b4b0
lea rcx, [rsp + 0x70]
mov r8d, 0x208
mov dl, 0xaa
call fcn.1401d06e0
cmp byte [rdi + 0x17], 0
mov rax, rdi
jns 0x1401b777c
mov rax, qword [rdi]
xor ecx, ecx
movzx edx, word [rax + rcx*2]
mov word [rsp + rcx*2 + 0x70], dx
test dx, dx
je 0x1401b77a2
inc rcx
cmp rcx, 0x104
jne 0x1401b777e
mov word [rsp + 0x276], 0
lea rcx, [rsp + 0x70]
call fcn.14014b4b0
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x1401b77b8
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x1401b77c4
mov rcx, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
jne 0x1401b7816
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x1401b77f0
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x1401b77f9
mov rbx, qword [rbx]
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne dil
test rsi, rsi
je 0x1401b7819
test eax, eax
jne 0x1401b7819
jmp 0x1401b785e
mov dil, 1
lea rcx, [rsp + 0x30]
call fcn.140181760
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.1401ce5b0
mov eax, edi
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rdx, [rsp + 0x70]
mov qword [rdx], r14
lea rcx, str.ScopedBlockingCall
call fcn.1402380c0
jmp 0x1401b7707
mov ecx, ebp
call fcn.1400090f0
cmp eax, 0xfffffffc
jne 0x1401b786f
call fcn.140237dc0
mov dword [rsi], eax
xor edi, edi
jmp 0x1401b7819
Function at 0x1401bf4f0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov ebx, ecx
mov rax, qword [0x1402cb038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov eax, dword [0x1402e3ff0]
mov ecx, dword [0x1402db110]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401bf713
mov rsi, qword [0x1402e3fe8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1401bf755
movzx ebx, bl
dec ebx
or ebx, 1
add ebx, dword [0x1402e3f9c]
mov dword [0x1402e3f9c], ebx
cmp byte [0x1402e3f98], 0
je 0x1401bf709
mov ebp, 1
test ebx, ebx
cmove ebp, ebx
mov eax, dword [0x1402e3fa0]
cmp ebp, eax
je 0x1401bf6bf
test eax, eax
je 0x1401bf653
mov rax, qword [0x1402da988]
lea rcx, [0x1401c94c0]
cmp rax, rcx
jne 0x1401bf6f3
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x28]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x1401bf7a2
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402e4008]
mov qword [rsp + 0x28], rax
mov rcx, qword [0x1402e3ff8]
xor edx, edx
cmp rax, rcx
setns dl
movabs r8, 0x7fffffffffffffff
add r8, rdx
sub rax, rcx
cmovo rax, r8
movabs rdx, 0x8000000000000001
lea r8, [rax + rdx]
mov rcx, qword [0x1402e3fa8]
cmp r8, 2
jb 0x1401bf763
lea rdx, [rcx + rax]
sar rdx, 0x3f
movabs r8, 0x8000000000000000
xor r8, rdx
add rcx, rax
cmovo rcx, r8
mov rax, rcx
mov qword [0x1402e3fa8], rax
mov ecx, dword [0x1402e3fa0]
call qword [sym.imp.WINMM.dll_timeEndPeriod]
mov dword [0x1402e3fa0], ebp
test ebx, ebx
je 0x1401bf6bf
mov rax, qword [0x1402da988]
lea rcx, [0x1401c94c0]
cmp rax, rcx
jne 0x1401bf6e0
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x28]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x1401bf77b
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402e4008]
mov qword [0x1402e3ff8], rax
mov ecx, dword [0x1402e3fa0]
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401ce5b0
mov al, 1
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rdi, [rsp + 0x28]
mov rcx, rdi
call qword [0x1402f5008]
mov rax, qword [rdi]
jmp 0x1401bf6ac
lea rdi, [rsp + 0x28]
mov rcx, rdi
call qword [0x1402f5008]
mov rax, qword [rdi]
jmp 0x1401bf5df
mov ebp, 8
jmp 0x1401bf56c
lea rcx, [0x1402e3ff0]
call fcn.1401cc16c
cmp dword [0x1402e3ff0], 0xffffffff
jne 0x1401bf52e
mov ecx, 8
call fcn.1401cbbc4
mov qword [rax], 0
mov qword [0x1402e3fe8], rax
lea rcx, [0x1402e3ff0]
call fcn.1401cc1d4
jmp 0x1401bf52e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x1401bf546
cmp rcx, rax
je 0x1401bf640
add rcx, rdx
cmp rcx, 1
ja 0x1401bf640
jmp 0x1401bf7c9
mov rcx, qword [0x1402e4008]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1401bf6ac
mov rcx, qword [0x1402e4008]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1401bf5da
int3
Function at 0x1401c8540
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
cmp dword [rcx + 0xb78], 0x8000
jne 0x1401c865f
mov rsi, rcx
movzx eax, word [0x1402d7e48]
lea rax, [rax + rax*4]
cmp dword [rcx + rax*8 + 0x60], 0x200
jne 0x1401c8662
lea rcx, [0x1402d7e00]
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1401c864e
cmp byte [0x1402dd318], 0
jne 0x1401c85cd
cmp qword [0x1402ded88], 0
jne 0x1401c8668
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1401c866b
mov dword [0x1402dd2c0], eax
mov dword [0x1402ded90], eax
lea rax, [0x1401bac40]
mov qword [0x1402ded88], rax
mov byte [0x1402dd318], 1
lea rcx, [0x1402d7e00]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xor eax, eax
lock cmpxchg qword [0x1402dd320], rsi
jne 0x1401c8665
lea rax, [0x140120000]
mov qword [0x1402ded98], rax
add rsi, 0x48
xor eax, eax
lea rcx, [0x1402dd2d0]
jmp 0x1401c8627
mov dl, 0x80
jmp 0x1401c8617
cmp edx, 0x201
setb dl
shl dl, 4
add dl, 0x10
mov byte [rax + rcx], dl
inc rax
add rsi, 0x28
cmp rax, 0x48
je 0x1401c8644
cmp qword [rsi], 0
je 0x1401c864a
mov edx, dword [rsi + 0x18]
cmp edx, 0x81
jb 0x1401c8604
cmp edx, 0x101
jae 0x1401c8608
mov dl, 0x40
jmp 0x1401c8617
add rsp, 0x20
pop rsi
ret
xor edx, edx
jmp 0x1401c8617
lea rcx, [0x1402d7e00]
call fcn.140164cc0
jmp 0x1401c8586
int3
int3
int3
int3
int3
Function at 0x1401cd5e0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1401cd658
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1401cd658
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x1401cd658
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1401cd64c
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1401cd66a
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1401cd63a
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1401cd65a

Function at 0x1401cde64
Capabilities:
Parse pe header

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

Function at 0x1401e0348
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1401e037f
call fcn.1401cbc78
mov dword [rax], 0x16
call fcn.1401e4b80
xor eax, eax
jmp 0x1401e040d
mov rdx, r9
mov rcx, r8
call fcn.1401e0430
mov rbx, rax
test rax, rax
je 0x1401e040a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1401e04a0]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1401e03f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401e32e8
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1401e03de
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1401e03ed
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1401c8670
jmp 0x1401e040a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1401e0407
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1401e0574
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401e06bc
Function at 0x1401e360c
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1402cb038]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1402904f8]
mov rbp, rcx
call fcn.1401faa9c
xor edi, edi
test rax, rax
je 0x1401e36f2
mov ebx, edi
call fcn.1401cbc78
mov r14d, dword [rax]
call fcn.1401cbc78
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1401cccb0
mov rsi, rax
test rax, rax
je 0x1401e3683
call fcn.1401cbc78
mov dword [rax], r14d
jmp 0x1401e36ad
call fcn.1401cbc78
cmp dword [rax], 0x22
jne 0x1401e36ea
call fcn.1401cbc78
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1401cccb0
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1401e36ea
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1401e36b1
cmp rax, 3
je 0x1401e36cc
mov rcx, rsi
call fcn.1401e3568
test al, al
je 0x1401e36dd
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1401e36dd
mov dil, 1
mov rcx, rbx
call fcn.1401c8670
mov al, dil
jmp 0x1401e36f4
mov rcx, rbx
call fcn.1401c8670
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401ce5b0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1401e3f2c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1402cb038]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1401e3f76
call fcn.1401e32c8
mov dword [rax], 0xf
call fcn.1401cbc78
mov dword [rax], 0xd
call fcn.1401e4b80
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401ce5b0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1401e3f81
lea eax, [rbx + 1]
jmp 0x1401e3f63
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1401e3f61
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1401e3f63
Function at 0x1401e5f44
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1402dc0e0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1401e5f9b
cmp word [rdx], r13w
jne 0x1401e5f9b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1401e5fa0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1401e60c5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1401e60e6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1401e5fd9
mov rdx, r9
mov word [rbx], cx
jmp 0x1401e6000
cmp r9, r8
jae 0x1401e6010
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1401e5fba
jmp 0x1401e60c5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401e60ba
cmp dword [rsp + 0x80], esi
je 0x1401e60ba
lea r8, [0x1402dc0e0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1401e6092
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1401e6062
mov word [rbx], r13w
jmp 0x1401e60c2
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1401e606f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1401e60c2
cmp word [rsp + 0x70], r13w
jne 0x1401e609f
cmp rbx, r14
je 0x1401e605c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1401e528c
cmp word [rsp + 0x70], r13w
je 0x1401e60c5
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1402dc0e0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1401e60bf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1401e60c5
Function at 0x1401f2520
Capabilities:
Parse pe header

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

Function at 0x1401fc258
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1401f60c4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1401fc2f9
cmp ebx, dword [rsp + 0x30]
je 0x1401fc2f2
test esi, esi
je 0x1401fc2f2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1401fc2cd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1401fc2da
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1401fc2b7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1401fc2de
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1401fc2fb
mov eax, 1
jmp 0x1401fc2fb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401fd864
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 0x1401fd894
xor eax, eax
jmp 0x1401fd957
mov rbp, rbx
cmp word [rax], si
je 0x1401fd8b9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1401fd8a0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1401fd89c
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.1401fd308
movsxd r14, eax
test eax, eax
jne 0x1401fd8f7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1401fd88d
mov rcx, r14
call fcn.1401c8810
mov rdi, rax
test rax, rax
jne 0x1401fd910
xor ecx, ecx
call fcn.1401c8670
jmp 0x1401fd8ec
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.1401fd308
test eax, eax
jne 0x1401fd941
mov rcx, rdi
call fcn.1401c8670
jmp 0x1401fd94b
xor ecx, ecx
call fcn.1401c8670
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 0x1401fd974
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 0x1401fd9fb
mov rsi, rbx
cmp word [rax], bp
je 0x1401fd9ba
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401fd9a4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401fd9a0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1401c8810
mov rdi, rax
test rax, rax
je 0x1401fd9e8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401d0030
mov rbp, rdi
xor ecx, ecx
call fcn.1401c8670
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 0x1401fffb4
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.1401dace4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14020003e
cmp byte [rbp - 0x21], r15b
je 0x140200039
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140200074
call fcn.1401f6894
test eax, eax
jne 0x140200060
cmp byte [rbp - 0x21], r15b
je 0x140200058
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140200074
cmp byte [rbp - 0x21], r15b
je 0x140200071
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.1401e01cc
test eax, eax
jne 0x140200114
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1401dace4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1402000b3
cmp byte [rbp - 0x21], r15b
je 0x1402000e8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1402000e8
call fcn.1401f6894
test eax, eax
jne 0x1402000d4
cmp byte [rbp - 0x21], r15b
je 0x1402000cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1402000e8
cmp byte [rbp - 0x21], r15b
je 0x1402000e5
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.1401e01cc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140200114
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140200117
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140200125
mov rcx, rdi
call fcn.1401c8670
cmp byte [rbp + 0x3f], r15b
je 0x140200134
mov rcx, qword [rbp + 0x27]
call fcn.1401c8670
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 0x140201810
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140201826
mov al, 1
jmp 0x140201886
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140201837
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140201884
mov ecx, dword [rcx + 0x18]
nop
call fcn.1401e3b3c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140201884
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140201884
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140201884
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140201886
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140208980
Capabilities:
Query or enumerate registry key

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rsi, rcx
mov rax, qword [0x1402cb038]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rcx, qword [rcx]
test rcx, rcx
je 0x1402089a8
mov edx, dword [rsi + 8]
cmp edx, 0xffffffff
jne 0x1402089c6
mov word [rsi + 0xc], 0
xor edi, edi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401ce5b0
mov eax, edi
add rsp, 0x58
pop rdi
pop rsi
ret
lea r8, [rsi + 0xc]
lea r9, [rsp + 0x4c]
mov dword [r9], 0x104
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r10, [rsp + 0x44]
mov qword [r10], rax
mov qword [rsp + 0x38], r10
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dil, 1
test eax, eax
je 0x1402089b0
jmp 0x1402089a8

Function at 0x14020a910
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test ecx, ecx
js 0x14020a922
mov rsi, rdx
test rdx, rdx
jne 0x14020a929
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rdi, eax
mov rcx, rsi
mov rdx, rdi
call fcn.14020a970
test edi, edi
je 0x14020a922
cmp byte [rsi + rdi - 1], 0xa
je 0x14020a922
lea rcx, [0x1402a26b1]
mov edx, 1
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14020a970

Function at 0x14020a970
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1402cb038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
xor r15d, r15d
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14020a9be
mov rdx, rcx
add rdi, rdx
cmp al, 1
je 0x14020a9fc
cmp rdi, rsi
jae 0x14020a9fc
mov dword [rsp + 0x2c], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r12
test eax, eax
sete dl
mov ecx, dword [rsp + 0x2c]
test rcx, rcx
sete al
or al, dl
mov edx, 0
jne 0x14020a9b7
jmp 0x14020a9b4
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401ce5b0
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret