joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001810
Capabilities:
Allocate or change rwx memory

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 qword [rsp + 0x38], 0
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8, qword [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140001879
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_allocate_memory:__s_n
call fcn.140001230
mov eax, 1
jmp 0x1400018b1
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x60]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
mov qword [rax], rcx
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x1400018c0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x14002b008]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x78]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThreadEx]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140001951
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Failed_to_create_thread__error___d
call fcn.140001230
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140001979
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140001a20
add rsp, 0x68
ret

Function at 0x140002450
Capabilities:
Parse pe header

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

Function at 0x14000b184
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000af74
Function at 0x140013348
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 0x140013378
xor eax, eax
jmp 0x14001343b
mov rbp, rbx
cmp word [rax], si
je 0x14001339d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140013384
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140013380
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.140013298
movsxd r14, eax
test eax, eax
jne 0x1400133db
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140013371
mov rcx, r14
call fcn.14000ecd8
mov rdi, rax
test rax, rax
jne 0x1400133f4
xor ecx, ecx
call fcn.14000ec9c
jmp 0x1400133d0
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.140013298
test eax, eax
jne 0x140013425
mov rcx, rdi
call fcn.14000ec9c
jmp 0x14001342f
xor ecx, ecx
call fcn.14000ec9c
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 0x140018154
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.14000a354
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400181de
cmp byte [rbp - 0x21], r15b
je 0x1400181d9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140018214
call fcn.14000f628
test eax, eax
jne 0x140018200
cmp byte [rbp - 0x21], r15b
je 0x1400181f8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140018214
cmp byte [rbp - 0x21], r15b
je 0x140018211
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.14000e5b8
test eax, eax
jne 0x1400182b4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000a354
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140018253
cmp byte [rbp - 0x21], r15b
je 0x140018288
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140018288
call fcn.14000f628
test eax, eax
jne 0x140018274
cmp byte [rbp - 0x21], r15b
je 0x14001826d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140018288
cmp byte [rbp - 0x21], r15b
je 0x140018285
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.14000e5b8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400182b4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400182b7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400182c5
mov rcx, rdi
call fcn.14000ec9c
cmp byte [rbp + 0x3f], r15b
je 0x1400182d4
mov rcx, qword [rbp + 0x27]
call fcn.14000ec9c
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 0x140a26518
Capabilities:
Encode data using xor

Disassembly:
pushfq
xor qword [rsp + 0x10], 0x2cb17af2
not word [rsp + 0x10]
mov qword [rsp + 0x20], 0x96c0362
push r11
or dword [rcx + 0x53], eax
mov r11, qword [rsp + 0x18]
sub r11d, dword [rsp + 0x19]
xor dword [rsp + 0x18], 0x6512144a
lea r11, [r11 + r11*4 + 0x68b43c7c]
mov qword [rsp + 0x18], 0x2cdf4c72
push r9
mov r9, qword [rsp + 0x20]
add qword [rsp + 0x18], 0xffffffffbf9fc9e5
mov r11, qword [rsp + 8]
pop r9
and byte [rsp + 0x18], 0xd5
call fcn.14061a64d
or al, 0xa7
out 0x3c, al
std
push 0x5da3455
rcl dword [rdi + 6], cl
fild dword [rbx]
movabs al, byte [0xffbc5134e82e7bde]
call 0x1405eb6c3
sub eax, 0x4090fe2d
pop rcx
pop rcx
pushfq
jnp 0x140a2652f
sub dh, byte [rbx]
invalid
Function at 0x140001540
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
mov eax, 0x2450
call fcn.14001fda0
sub rsp, rax
mov rax, qword [0x14002f008]
xor rax, rsp
mov qword [rsp + 0x2440], rax
mov rbx, r8
mov qword [rsp + 0x20], rdx
mov rbp, rdx
lea r8, [0x14002a130]
mov rsi, rcx
mov r9, rcx
mov edx, 0x200
lea rcx, [rsp + 0x40]
call fcn.140001180
lea rdx, [0x14002a138]
lea rcx, [rsp + 0x40]
call fcn.14000c950
mov rdi, rax
test rax, rax
je 0x1400016f1
mov r9, rsi
mov qword [rsp + 0x20], rbp
lea r8, str._s_s.royal_w
mov edx, 0x200
lea rcx, [rsp + 0x240]
call fcn.140001180
lea rdx, [0x14002a168]
lea rcx, [rsp + 0x240]
call fcn.14000c950
mov rsi, rax
test rax, rax
je 0x140001708
xor edx, edx
mov rcx, rbx
call qword [sym.imp.libcrypto_3_x64.dll_EVP_PKEY_CTX_new]
mov rbx, rax
test rax, rax
je 0x1400016eb
mov rcx, rax
call qword [sym.imp.libcrypto_3_x64.dll_EVP_PKEY_encrypt_init]
test eax, eax
jle 0x1400016eb
mov r9, rdi
lea rcx, [rsp + 0x440]
mov edx, 1
mov r8d, 0x1000
call fcn.14000e528
test eax, eax
jle 0x1400016af
nop dword [rax]
nop word [rax + rax]
mov eax, eax
lea r9, [rsp + 0x440]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x1440]
mov qword [rsp + 0x30], 0x1000
mov rcx, rbx
call qword [sym.imp.libcrypto_3_x64.dll_EVP_PKEY_encrypt]
test eax, eax
jle 0x140001727
mov r8, qword [rsp + 0x30]
lea rcx, [rsp + 0x1440]
mov r9, rsi
mov edx, 1
call fcn.14000df58
mov r9, rdi
lea rcx, [rsp + 0x440]
mov edx, 1
mov r8d, 0x1000
call fcn.14000e528
test eax, eax
jg 0x140001640
mov rcx, rbx
call qword [sym.imp.libcrypto_3_x64.dll_EVP_PKEY_CTX_free]
mov rcx, rdi
call fcn.14000cec0
mov rcx, rsi
call fcn.14000cec0
mov rcx, qword [rsp + 0x2440]
xor rcx, rsp
call fcn.140002f70
mov rbx, qword [rsp + 0x2488]
add rsp, 0x2450
pop rdi
pop rsi
pop rbp
ret
call fcn.140001520
int3
lea rcx, str.Error_opening_file
call fcn.14000d094
mov ecx, 1
call fcn.140007248
int3
lea rcx, str.Error_creating_output_file
call fcn.14000d094
mov rcx, rdi
call fcn.14000cec0
mov ecx, 1
call fcn.140007248
int3
call fcn.140001520
int3
Function at 0x140001730
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
mov eax, 0x2450
call fcn.14001fda0
sub rsp, rax
mov rax, qword [0x14002f008]
xor rax, rsp
mov qword [rsp + 0x2440], rax
mov rbx, r8
mov qword [rsp + 0x20], rdx
mov rbp, rdx
lea r8, str._s_s.royal_w
mov rsi, rcx
mov r9, rcx
mov edx, 0x200
lea rcx, [rsp + 0x40]
call fcn.140001180
lea rdx, [0x14002a138]
lea rcx, [rsp + 0x40]
call fcn.14000c950
mov rdi, rax
test rax, rax
je 0x1400018e1
mov r9, rsi
mov qword [rsp + 0x20], rbp
lea r8, str._s_s.dec
mov edx, 0x200
lea rcx, [rsp + 0x240]
call fcn.140001180
lea rdx, [0x14002a168]
lea rcx, [rsp + 0x240]
call fcn.14000c950
mov rsi, rax
test rax, rax
je 0x1400018f8
xor edx, edx
mov rcx, rbx
call qword [sym.imp.libcrypto_3_x64.dll_EVP_PKEY_CTX_new]
mov rbx, rax
test rax, rax
je 0x1400018db
mov rcx, rax
call qword [sym.imp.libcrypto_3_x64.dll_EVP_PKEY_decrypt_init]
test eax, eax
jle 0x1400018db
mov r9, rdi
lea rcx, [rsp + 0x440]
mov edx, 1
mov r8d, 0x1000
call fcn.14000e528
test eax, eax
jle 0x14000189f
nop dword [rax]
nop word [rax + rax]
mov eax, eax
lea r9, [rsp + 0x440]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x1440]
mov qword [rsp + 0x30], 0x1000
mov rcx, rbx
call qword [sym.imp.libcrypto_3_x64.dll_EVP_PKEY_decrypt]
test eax, eax
jle 0x140001917
mov r8, qword [rsp + 0x30]
lea rcx, [rsp + 0x1440]
mov r9, rsi
mov edx, 1
call fcn.14000df58
mov r9, rdi
lea rcx, [rsp + 0x440]
mov edx, 1
mov r8d, 0x1000
call fcn.14000e528
test eax, eax
jg 0x140001830
mov rcx, rbx
call qword [sym.imp.libcrypto_3_x64.dll_EVP_PKEY_CTX_free]
mov rcx, rdi
call fcn.14000cec0
mov rcx, rsi
call fcn.14000cec0
mov rcx, qword [rsp + 0x2440]
xor rcx, rsp
call fcn.140002f70
mov rbx, qword [rsp + 0x2488]
add rsp, 0x2450
pop rdi
pop rsi
pop rbp
ret
call fcn.140001520
int3
lea rcx, str.Error_opening_file
call fcn.14000d094
mov ecx, 1
call fcn.140007248
int3
lea rcx, str.Error_creating_output_file
call fcn.14000d094
mov rcx, rdi
call fcn.14000cec0
mov ecx, 1
call fcn.140007248
int3
call fcn.140001520
int3
Function at 0x140007248
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 0x1400070b3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400070b3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400070b3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400070b3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400070b3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400070b3
cmp dword [rcx + 0xf8], 0
je 0x1400070b3
mov ecx, ebx
call fcn.140007164
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.140006f40
nop
cmp dword [rbp + 0x20], 0
je 0x140007101
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000710c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140007044
Function at 0x1400166ac
Capabilities:
Get file size

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

Function at 0x1400167f4
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, [0x140030670]
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 0x14001684b
cmp word [rdx], r13w
jne 0x14001684b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140016850
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140016975
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140016996
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140016889
mov rdx, r9
mov word [rbx], cx
jmp 0x1400168b0
cmp r9, r8
jae 0x1400168c0
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 0x14001686a
jmp 0x140016975
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 0x14001696a
cmp dword [rsp + 0x80], esi
je 0x14001696a
lea r8, [0x140030670]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140016942
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140016912
mov word [rbx], r13w
jmp 0x140016972
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 0x14001691f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140016972
cmp word [rsp + 0x70], r13w
jne 0x14001694f
cmp rbx, r14
je 0x14001690c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001caec
cmp word [rsp + 0x70], r13w
je 0x140016975
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, [0x140030670]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001696f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140016975
Function at 0x140018af0
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 0x140018b20
xor eax, eax
jmp 0x140018be3
mov rbp, rbx
cmp word [rax], si
je 0x140018b45
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140018b2c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140018b28
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.140018a10
movsxd r14, eax
test eax, eax
jne 0x140018b83
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140018b19
mov rcx, r14
call fcn.140010854
mov rdi, rax
test rax, rax
jne 0x140018b9c
xor ecx, ecx
call fcn.140010818
jmp 0x140018b78
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.140018a10
test eax, eax
jne 0x140018bcd
mov rcx, rdi
call fcn.140010818
jmp 0x140018bd7
xor ecx, ecx
call fcn.140010818
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 0x14001dc9c
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.14000d120
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001dd26
cmp byte [rbp - 0x21], r15b
je 0x14001dd21
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001dd5c
call fcn.140012bbc
test eax, eax
jne 0x14001dd48
cmp byte [rbp - 0x21], r15b
je 0x14001dd40
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001dd5c
cmp byte [rbp - 0x21], r15b
je 0x14001dd59
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.140015094
test eax, eax
jne 0x14001ddfc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000d120
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001dd9b
cmp byte [rbp - 0x21], r15b
je 0x14001ddd0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001ddd0
call fcn.140012bbc
test eax, eax
jne 0x14001ddbc
cmp byte [rbp - 0x21], r15b
je 0x14001ddb5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001ddd0
cmp byte [rbp - 0x21], r15b
je 0x14001ddcd
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.140015094
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001ddfc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001ddff
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001de0d
mov rcx, rdi
call fcn.140010818
cmp byte [rbp + 0x3f], r15b
je 0x14001de1c
mov rcx, qword [rbp + 0x27]
call fcn.140010818
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 0x14001e984
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.14001caec
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001caec
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14001ead4
cmp rax, 0xffffffffffffffff
je 0x14001ead4
xor edi, edi
test rbp, rbp
jle 0x14001ea7f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140012930
mov rbx, rax
test rax, rax
jne 0x14001ea0c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14001ea75
mov edx, 0x8000
mov ecx, r14d
call fcn.14000f07c
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.1400145a0
cmp eax, 0xffffffff
je 0x14001ea55
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14001ea1c
mov edx, r15d
mov ecx, r14d
call fcn.14000f07c
jmp 0x14001ea75
cmp byte [rsi + 0x38], dil
je 0x14001ea6c
cmp dword [rsi + 0x34], 5
jne 0x14001ea6c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14001ea75
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140010818
jmp 0x14001eae8
jns 0x14001eae8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001caec
cmp rax, 0xffffffffffffffff
jne 0x14001eaa0
cmp byte [rsi + 0x30], dil
je 0x14001eae8
mov edi, dword [rsi + 0x2c]
jmp 0x14001eae8
mov ecx, r14d
call fcn.140013b68
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14001eae8
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 0x14001eae8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14001eae1
mov eax, dword [rsi + 0x2c]
jmp 0x14001eae6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001caec
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