joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140069a80
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140069ac2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140069b09
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140069b62
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140069b20
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140069ba3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14007b32a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14007b32b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140069b70
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14006aa90
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140059008]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rcx
xor esi, esi
xor edx, edx
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000104a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400010a5
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000109a
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rsp + 0x4c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140001096
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001070
jmp 0x14000109a
mov esi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140055760
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1400010d0
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rbp, rdx
mov esi, r8d
mov r8d, r8d
xor edx, edx
mov r9d, 0x1000
mov dword [rsp + 0x20], 0x40
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
test rax, rax
jne 0x140001116
lea eax, [rdi - 1]
jmp 0x1400011b0
mov qword [rsp + 0x50], r14
mov r9, rsi
xor r14d, r14d
mov r8, rbp
mov rdx, rdi
mov qword [rsp + 0x20], r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140001191
mov qword [rsp + 0x30], r14
mov r9, rdi
mov dword [rsp + 0x28], r14d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rsi, rax
test rax, rax
je 0x140001191
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor eax, eax
jmp 0x1400011ab
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, 0xffffffff
mov r14, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x1400011d0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140059008]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, r9
mov dword [rsp + 0x48], edx
mov rbx, r8
mov dword [rsp + 0x20], 0xf0000000
mov rsi, rcx
mov r9d, 0x18
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14000129f
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140001292
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov r8d, edi
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140001287
mov r8, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
mov edx, 0x6610
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
mov rcx, qword [rsp + 0x40]
test eax, eax
jne 0x1400012a6
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 0xffffffff
jmp 0x1400012ec
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov rcx, qword [rsp + 0x40]
test eax, eax
je 0x140001281
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140055760
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
Function at 0x14005603c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140056086
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140056086
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140056086
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140056086
cmp dword [rcx + 0x84], 0xe
jbe 0x140056086
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140056088
xor al, al
add rsp, 0x28
ret
Function at 0x1400085a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1400085d2
call fcn.14004331c
mov dword [rax], 0x16
call fcn.14005a3a8
jmp 0x1400086f1
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400086f1
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400086f1
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140008601
lock or dword [rcx + 0x14], 0x10
jmp 0x1400086f1
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140008615
call fcn.1400a16a8
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140077ee8
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1400686f8
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400086df
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400086aa
mov rcx, rsi
call fcn.140077ee8
cmp eax, edi
je 0x140008695
mov rcx, rsi
call fcn.140077ee8
cmp eax, 0xfffffffe
je 0x140008695
mov rcx, rsi
call fcn.140077ee8
movsxd rbx, eax
lea r14, [0x14099af10]
mov rcx, rsi
sar rbx, 6
call fcn.140077ee8
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14000869c
lea rdx, [0x1406629a0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400086aa
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400086ce
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400086ce
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400086ce
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1400086f4
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140038280
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x14063ea20]
movdqu xmmword [rsp + 0x60], xmm1
xor edi, edi
mov word [rsp + 0x50], di
movups xmmword [rsp + 0x30], xmm0
movdqu xmmword [rsp + 0x40], xmm1
mov word [rsp + 0x30], di
mov qword [rbp + 0xa8], rdi
mov dword [rbp + 0x98], edi
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x70]
call fcn.1405e5c90
mov dword [rbp + 0xa0], 0xfe
lea rdx, [rsp + 0x50]
lea ecx, [rdi + 0x13]
call fcn.1400963f0
lea rdx, [rsp + 0x30]
lea ecx, [rdi + 0x14]
call fcn.1400963f0
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
lea rax, [rbp + 0xa8]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 1]
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400383a0
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x98]
xor r8d, r8d
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140038392
cmp dword [rbp + 0x98], 1
jne 0x140038392
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.14000c560
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1400383de
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400383d9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140038440
call fcn.14005fc98
movdqa xmm0, xmmword [0x14063ea20]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], di
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14003842f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003842a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003843a
call fcn.14005fc98
add rsp, 0x170
pop rdi
pop rbx
pop rbp
ret
call fcn.140070b74
nop
call fcn.140070b74
nop
int3

Function at 0x140040210
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140040230
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14004c4ac
or eax, 0xffffffff
jmp 0x140040232
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400426d8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140042722
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140042722
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140042722
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140042722
cmp dword [rcx + 0x84], 0xe
jbe 0x140042722
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140042724
xor al, al
add rsp, 0x28
ret
Function at 0x140059750
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14001031e
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140010301
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x1400102ec
Function at 0x140063660
Capabilities:
Parse pe header

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

Function at 0x1400756fc
Capabilities:
Read file on windows

Disassembly:
jmp 0x140605a84
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, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x140605aba
call fcn.14004331c
mov dword [rax], 0x16
call fcn.14005a3a8
jmp 0x140605c0a
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140605c0a
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140605c0a
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140605ae9
lock or dword [rcx + 0x14], 0x10
jmp 0x140605c0a
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140605afd
call fcn.1400a16a8
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x140605b0d
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x140605b10
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.140077ee8
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.1400686f8
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140605bf8
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x140605ba3
mov rcx, rbx
call fcn.140077ee8
cmp eax, 0xffffffff
je 0x140605b8e
mov rcx, rbx
call fcn.140077ee8
cmp eax, 0xfffffffe
je 0x140605b8e
mov rcx, rbx
call fcn.140077ee8
movsxd rdi, eax
lea rsi, [0x14099af10]
mov rcx, rbx
sar rdi, 6
call fcn.140077ee8
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x140605b95
lea rdx, [0x1406629a0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140605ba3
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140605bc7
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x140605bc7
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x140605bc7
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x140605be5
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x140605bf0
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x140605c0f
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14007b4d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov r14, rdx
mov ebp, ecx
xor edi, edi
cmp qword [rdx + 0x18], 0x10
jb 0x14007b504
mov rbx, qword [rdx + 0x10]
mov rax, rbx
mov rcx, qword [rdx]
jmp 0x14007b50e
mov rax, qword [rdx + 0x10]
mov rbx, rax
mov rcx, r14
mov rdx, rdi
add rcx, rdx
sub rbx, rax
mov r8, rbx
sub r8, rdx
inc r8
lea rdx, [rcx + rax]
call fcn.1405e55e0
mov qword [r14 + 0x10], rbx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rdi
cmp ebp, 0xa
ja case.default.0x14007b555
lea rdx, [0x140000000]
mov ecx, dword [rdx + rbp*4 + 0x7b740]
add rcx, rdx
jmp rcx
lea r8, [0x140997df8]
mov r9d, 0x18
jmp 0x14007b5e2
lea r8, [0x140997e90]
jmp 0x14007b5dc
lea r8, [0x140997eb0]
mov r9d, 0x18
jmp 0x14007b5e2
lea r8, [0x140997f28]
jmp 0x14007b5dc
lea r8, [0x140997f08]
jmp 0x14007b5dc
lea r8, [0x140997e28]
jmp 0x14007b5dc
lea r8, [0x140997ec8]
mov r9d, 0x28
jmp 0x14007b5e2
lea r8, [0x140997e10]
mov r9d, 0x18
jmp 0x14007b5e2
lea r8, [0x140997ef0]
mov r9d, 0x18
jmp 0x14007b5e2
lea r8, [0x140997e48]
mov r9d, 0x28
jmp 0x14007b5e2
lea r8, [0x140997e70]
mov r9d, 0x20
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140037c30
mov r9, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
sub r9, rbx
lea rcx, [r9 - 1]
test rcx, rcx
je 0x14007b61e
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rbx + rcx - 1]
sub byte [rbx + rcx], al
sub rcx, 1
jne 0x14007b610
test r9, r9
je 0x14007b6ad
cmp r9, 0x40
jb 0x14007b694
mov rcx, r9
and rcx, 0xffffffffffffffc0
movdqa xmm2, xmmword [0x14063eaa0]
lea rax, [rbx + 0x20]
movdqu xmm0, xmmword [rax - 0x20]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
movdqu xmm0, xmmword [rax - 0x10]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax - 0x10], xmm1
movdqu xmm0, xmmword [rax]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax], xmm1
movdqu xmm0, xmmword [rax + 0x10]
pxor xmm0, xmm2
movdqu xmmword [rax + 0x10], xmm0
add rdi, 0x40
lea rax, [rax + 0x40]
cmp rdi, rcx
jb 0x14007b640
cmp rdi, r9
jae 0x14007b6ad
lea rax, [rbx + rdi]
mov rcx, r9
sub rcx, rdi
nop
xor byte [rax], 0xe2
lea rax, [rax + 1]
sub rcx, 1
jne 0x14007b6a0
lea rdx, [rbx + 8]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x14007b6c0
lea rax, [r9 - 8]
cmp r8, rax
jb 0x14007b6d7
lea r8, [r9 - 9]
mov rcx, r14
call fcn.140034fd0
mov rdi, qword [rsp + 0x30]
jmp 0x14007b6e9
mov rbx, rdi
test rbx, rbx
je 0x14007b71d
sub rdi, rbx
cmp rdi, 0x1000
jb 0x14007b712
add rdi, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x14007b738
mov rbx, rcx
mov rdx, rdi
mov rcx, rbx
call fcn.14005fc98
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
call fcn.140070b74
int3
Function at 0x14007f9dc
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.140095f70
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140095f70
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14007fb2c
cmp rax, 0xffffffffffffffff
je 0x14007fb2c
xor edi, edi
test rbp, rbp
jle 0x14007fad7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14002024c
mov rbx, rax
test rax, rax
jne 0x14007fa64
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14007facd
mov edx, 0x8000
mov ecx, r14d
call fcn.1400768c8
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.14001664c
cmp eax, 0xffffffff
je 0x14007faad
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14007fa74
mov edx, r15d
mov ecx, r14d
call fcn.1400768c8
jmp 0x14007facd
cmp byte [rsi + 0x38], dil
je 0x14007fac4
cmp dword [rsi + 0x34], 5
jne 0x14007fac4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14007facd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14005a36c
jmp 0x14007fb40
jns 0x14007fb40
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140095f70
cmp rax, 0xffffffffffffffff
jne 0x14007faf8
cmp byte [rsi + 0x30], dil
je 0x14007fb40
mov edi, dword [rsi + 0x2c]
jmp 0x14007fb40
mov ecx, r14d
call fcn.1400aaf30
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14007fb40
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 0x14007fb40
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14007fb39
mov eax, dword [rsi + 0x2c]
jmp 0x14007fb3e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140095f70
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 0x14009077c
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 0x140090803
mov rsi, rbx
cmp word [rax], bp
je 0x1400907c2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400907ac
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400907a8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14003f6d4
mov rdi, rax
test rax, rax
je 0x1400907f0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1405e55e0
mov rbp, rdi
xor ecx, ecx
call fcn.14005a36c
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 0x140090d84
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.140077b14
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140090e0e
cmp byte [rbp - 0x21], r15b
je 0x140090e09
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140090e44
call fcn.1400a04d4
test eax, eax
jne 0x140090e30
cmp byte [rbp - 0x21], r15b
je 0x140090e28
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140090e44
cmp byte [rbp - 0x21], r15b
je 0x140090e41
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.1400833dc
test eax, eax
jne 0x140090ee4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140077b14
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140090e83
cmp byte [rbp - 0x21], r15b
je 0x140090eb8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140090eb8
call fcn.1400a04d4
test eax, eax
jne 0x140090ea4
cmp byte [rbp - 0x21], r15b
je 0x140090e9d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140090eb8
cmp byte [rbp - 0x21], r15b
je 0x140090eb5
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.1400833dc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140090ee4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140090ee7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140090ef5
mov rcx, rdi
call fcn.14005a36c
cmp byte [rbp + 0x3f], r15b
je 0x140090f04
mov rcx, qword [rbp + 0x27]
call fcn.14005a36c
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