joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14019d200
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd r13, dword [rdx + 0x1c]
lea r11, [0x140000000]
mov r14, qword [rdx]
xor r9d, r9d
mov rbx, qword [rdx + 8]
or esi, 0xffffffff
mov dword [0x14025d3fc], r9d
mov r12d, 0x23d
mov dword [0x14025dd14], r12d
mov r15, rdx
mov rbp, rcx
mov edi, r9d
lea r10d, [rsi + 2]
mov edx, r9d
test r13d, r13d
jle 0x14019d2a7
mov ecx, r9d
cmp word [r14 + rcx*4], r9w
je 0x14019d28d
add edi, r10d
mov esi, edx
movsxd rax, edi
mov dword [0x14025d3fc], edi
mov dword [r11 + rax*4 + 0x25d420], edx
cmp rcx, r12
jae 0x14019d4a1
mov byte [rcx + r11 + 0x25dd20], r9b
jmp 0x14019d293
mov word [r14 + rcx*4 + 2], r9w
add edx, r10d
add rcx, r10
cmp rcx, r13
jl 0x14019d25d
cmp edi, 2
jge 0x14019d355
mov r9d, dword [0x14025e2d8]
mov r8d, dword [0x14025e358]
movsxd r11, esi
cmp esi, 2
lea rdx, [r11 + 1]
lea ecx, [rsi + 1]
mov rax, rdx
cmovge rax, r11
lea r15, [0x140000000]
mov r10d, ecx
mov r11, rax
cmovge r10d, esi
mov eax, 0
inc edi
cmp esi, 2
mov dword [0x14025d3fc], edi
cmovge ecx, eax
movsxd rax, edi
mov dword [r15 + rax*4 + 0x25d420], ecx
mov eax, 0
mov r15, qword [rsp + 0x68]
cmovge rdx, rax
lea ecx, [rax + 1]
mov word [r14 + rdx*4], cx
cmp rdx, r12
jae 0x14019d4a1
dec r9d
lea rcx, [0x140000000]
mov byte [rdx + rcx + 0x25dd20], al
mov dword [0x14025e2d8], r9d
test rbx, rbx
je 0x14019d343
movzx eax, word [rbx + rdx*4 + 2]
sub r8d, eax
mov dword [0x14025e358], r8d
mov esi, r10d
cmp edi, 2
jl 0x14019d2b8
mov r10d, 1
mov eax, edi
mov dword [r15 + 0x24], esi
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
cmp eax, r10d
jl 0x14019d383
mov r8d, ebx
mov rdx, r14
mov rcx, rbp
call fcn.14019e68c
mov r10d, 1
sub ebx, r10d
cmp ebx, r10d
jge 0x14019d367
lea r15, [0x140000000]
movsxd rbx, dword [0x14025d424]
mov r8d, r10d
movsxd rax, edi
mov rdx, r14
sub edi, r10d
mov dword [0x14025d3fc], edi
mov ecx, dword [r15 + rax*4 + 0x25d420]
mov dword [0x14025d424], ecx
mov rcx, rbp
call fcn.14019e68c
movsxd rcx, dword [0x14025d424]
lea eax, [r12 - 1]
movsxd rdx, eax
mov r9, rcx
dec eax
mov qword [rsp + 0x78], rdx
mov r12d, eax
mov r10d, 1
movzx eax, word [r14 + rcx*4]
mov r8d, r10d
add ax, word [r14 + rbx*4]
mov dword [r15 + rdx*4 + 0x25d420], ebx
mov dword [r15 + rdx*4 + 0x25d41c], ecx
movzx ecx, byte [rbx + r15 + 0x25dd20]
movsxd rdx, r13d
mov word [r14 + rdx*4], ax
movzx eax, byte [r9 + r15 + 0x25dd20]
cmp cl, al
mov word [r14 + r9*4 + 2], r13w
mov word [r14 + rbx*4 + 2], r13w
cmovbe ecx, eax
mov eax, r13d
add cl, r10b
mov dword [0x14025d424], eax
mov byte [rdx + r15 + 0x25dd20], cl
add r13d, r10d
mov rdx, r14
mov rcx, rbp
call fcn.14019e68c
mov r10d, 1
cmp edi, 2
jge 0x14019d38a
mov rcx, qword [rsp + 0x78]
mov eax, r12d
mov rdx, qword [rsp + 0x68]
dec eax
mov dword [0x14025dd14], eax
mov eax, dword [0x14025d424]
mov dword [r15 + rcx*4 + 0x25d418], eax
mov rcx, rbp
call fcn.14019e328
mov r8d, esi
mov rdx, r14
mov rcx, rbp
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp fcn.14019e568
call fcn.1401af8b4
int3
Function at 0x1401a1580
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
lea rsi, [0x14027e390]
mov rcx, rsi
mov rdi, rdx
call fcn.1400bb7d8
mov r8d, 0x12345678
mov r9d, 0x23456789
mov dword [rbx + 0x1e8], r8d
mov edx, 0x34567890
mov dword [rbx + 0x1ec], r9d
jmp 0x1401a1611
movsx rcx, al
mov eax, r8d
xor rcx, rax
shr r8d, 8
movzx eax, cl
xor r8d, dword [rsi + rax*4]
movzx eax, r8b
add eax, r9d
mov dword [rbx + 0x1e8], r8d
imul r9d, eax, 0x8088405
mov eax, edx
shr edx, 8
inc r9d
mov ecx, r9d
mov dword [rbx + 0x1ec], r9d
shr rcx, 0x18
xor rcx, rax
movzx eax, cl
xor edx, dword [rsi + rax*4]
inc rdi
mov dword [rbx + 0x1f0], edx
mov al, byte [rdi]
test al, al
jne 0x1401a15c5
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1401a1630
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

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 r15
sub rsp, 0x30
cmp byte [0x140235368], 0
mov rdi, r9
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x1401a1712
cmp byte [rcx + 4], 0
je 0x1401a167d
mov r8d, edi
add rcx, 8
imul r8d, esi
call fcn.14013f2c0
jmp 0x1401a1712
mov r10, rsi
mov r11, rbp
imul r10, rdi
test r10, r10
je 0x1401a1712
lea r15, [0x14027e390]
movsx rax, byte [r11]
mov r8d, dword [rbx + 0x1f0]
mov r9d, r8d
mov edx, dword [rbx + 0x1e8]
and r9d, 0xfffd
xor rax, rdx
or r9d, 2
movzx ecx, al
shr edx, 8
xor edx, dword [r15 + rcx*4]
movzx eax, dl
add eax, dword [rbx + 0x1ec]
imul eax, eax, 0x8088405
mov dword [rbx + 0x1e8], edx
inc eax
mov dword [rbx + 0x1ec], eax
shr rax, 0x18
xor rax, r8
shr r8d, 8
movzx eax, al
xor r8d, dword [r15 + rax*4]
mov eax, r9d
xor eax, 1
mov dword [rbx + 0x1f0], r8d
imul eax, r9d
shr eax, 8
xor byte [r11], al
inc r11
sub r10, 1
jne 0x1401a1697
and dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call fcn.14019fc5c
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret

Function at 0x1401abc94
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401abcd1
test al, 0x10
jne 0x1401abccd
and eax, 0xffffffdf
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1401abcd1
mov al, 1
jmp 0x1401abce9
lea rdx, [rdi + 0x648b80]
mov ecx, 0x11
lea r8, [rsp + 0x38]
call fcn.14009d7dc
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1401ad9b4
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 0x1401ada2c
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1401ada2c
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 0x1401ada2c
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1401ada20
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1401ada3e
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1401ada0e
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 0x1401ada2e

Function at 0x1401b0494
Capabilities:
Parse pe header

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

Function at 0x1401bcc30
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 0x1401bcc67
call fcn.1401bf98c
mov dword [rax], 0x16
call fcn.1401b6524
xor eax, eax
jmp 0x1401bccf5
mov rdx, r9
mov rcx, r8
call fcn.1401bcb04
mov rbx, rax
test rax, rax
je 0x1401bccf2
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1401bc9c0]
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 0x1401bccdf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401bf900
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1401bccc6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1401bccd5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1401c3da0
jmp 0x1401bccf2
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1401bccef
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 0x1401bdf38
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, [0x14027f720]
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 0x1401bdf8f
cmp word [rdx], r13w
jne 0x1401bdf8f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1401bdf94
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1401be0b9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1401be0da
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1401bdfcd
mov rdx, r9
mov word [rbx], cx
jmp 0x1401bdff4
cmp r9, r8
jae 0x1401be004
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 0x1401bdfae
jmp 0x1401be0b9
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 0x1401be0ae
cmp dword [rsp + 0x80], esi
je 0x1401be0ae
lea r8, [0x14027f720]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1401be086
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1401be056
mov word [rbx], r13w
jmp 0x1401be0b6
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 0x1401be063
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1401be0b6
cmp word [rsp + 0x70], r13w
jne 0x1401be093
cmp rbx, r14
je 0x1401be050
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1401bde94
cmp word [rsp + 0x70], r13w
je 0x1401be0b9
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, [0x14027f720]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1401be0b3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1401be0b9
Function at 0x1401c5864
Capabilities:
Get file size

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

Function at 0x1401c6ca0
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.1401bde94
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1401bde94
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1401c6df0
cmp rax, 0xffffffffffffffff
je 0x1401c6df0
xor edi, edi
test rbp, rbp
jle 0x1401c6d9b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1401c5ee8
mov rbx, rax
test rax, rax
jne 0x1401c6d28
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1401c6d91
mov edx, 0x8000
mov ecx, r14d
call fcn.1401bfb1c
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.1401bf2f0
cmp eax, 0xffffffff
je 0x1401c6d71
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401c6d38
mov edx, r15d
mov ecx, r14d
call fcn.1401bfb1c
jmp 0x1401c6d91
cmp byte [rsi + 0x38], dil
je 0x1401c6d88
cmp dword [rsi + 0x34], 5
jne 0x1401c6d88
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1401c6d91
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1401c3da0
jmp 0x1401c6e04
jns 0x1401c6e04
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1401bde94
cmp rax, 0xffffffffffffffff
jne 0x1401c6dbc
cmp byte [rsi + 0x30], dil
je 0x1401c6e04
mov edi, dword [rsi + 0x2c]
jmp 0x1401c6e04
mov ecx, r14d
call fcn.1401c6b90
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401c6e04
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 0x1401c6e04
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1401c6dfd
mov eax, dword [rsi + 0x2c]
jmp 0x1401c6e02
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1401bde94
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 0x1401c7cd8
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.1401afd00
sub rsp, rax
mov rax, qword [0x140231eb8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1401bfa84
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1401c7d27
mov rax, rbp
jmp 0x1401c7e2f
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 + 0x27f720]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1401bde8c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x27f720]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1401c7e2b
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 0x1401c7e2b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1401bde8c
test rax, rax
js 0x1401c7e2b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1401c7e2b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1401c7e1d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401c7e1d
cmp byte [rcx], 0xd
jne 0x1401c7e03
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401c7e12
cmp byte [rcx + 1], 0xa
jne 0x1401c7e12
inc rcx
jmp 0x1401c7e12
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x231f00]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1401c7de5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1401c7e2f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401af480
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 0x1401c99b8
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 0x1401c99e8
xor eax, eax
jmp 0x1401c9aab
mov rbp, rbx
cmp word [rax], si
je 0x1401c9a0d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1401c99f4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1401c99f0
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.1401c6e94
movsxd r14, eax
test eax, eax
jne 0x1401c9a4b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1401c99e1
mov rcx, r14
call fcn.1401c3ddc
mov rdi, rax
test rax, rax
jne 0x1401c9a64
xor ecx, ecx
call fcn.1401c3da0
jmp 0x1401c9a40
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.1401c6e94
test eax, eax
jne 0x1401c9a95
mov rcx, rdi
call fcn.1401c3da0
jmp 0x1401c9a9f
xor ecx, ecx
call fcn.1401c3da0
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 0x1401cd9a8
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.1401bc5e0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1401cda32
cmp byte [rbp - 0x21], r15b
je 0x1401cda2d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1401cda68
call fcn.1401c61cc
test eax, eax
jne 0x1401cda54
cmp byte [rbp - 0x21], r15b
je 0x1401cda4c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1401cda68
cmp byte [rbp - 0x21], r15b
je 0x1401cda65
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.1401bcd24
test eax, eax
jne 0x1401cdb08
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1401bc5e0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1401cdaa7
cmp byte [rbp - 0x21], r15b
je 0x1401cdadc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1401cdadc
call fcn.1401c61cc
test eax, eax
jne 0x1401cdac8
cmp byte [rbp - 0x21], r15b
je 0x1401cdac1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1401cdadc
cmp byte [rbp - 0x21], r15b
je 0x1401cdad9
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.1401bcd24
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1401cdb08
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1401cdb0b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1401cdb19
mov rcx, rdi
call fcn.1401c3da0
cmp byte [rbp + 0x3f], r15b
je 0x1401cdb28
mov rcx, qword [rbp + 0x27]
call fcn.1401c3da0
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 0x1401ceb80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401ceba8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401ceba8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rdi, rdx
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001150
mov rcx, rax
lea rdx, [0x140001300]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
cmp ebx, 2
jl 0x14000113a
mov rdx, qword [rdi + 8]
lea r9, str.__start
xor r8d, r8d
mov eax, r8d
nop word [rax + rax]
movzx ecx, byte [rdx + rax]
inc rax
cmp cl, byte [r9 + rax - 1]
jne 0x140001066
cmp rax, 8
jne 0x140001050
jmp 0x14000106d
sbb r8d, r8d
or r8d, 1
cmp r8d, 1
je 0x14000113a
xor ecx, ecx
mov edx, 0x1df
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea rdx, [0x140005080]
mov r8d, 3
mov r9, rax
mov rcx, rax
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rdx]
lea rdx, [rdx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rdx - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub r8, 1
jne 0x1400010a1
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x40], xmm0
mov rax, qword [rdx + 0x50]
mov qword [rcx + 0x50], rax
mov eax, dword [rdx + 0x58]
mov dword [rcx + 0x58], eax
movzx eax, word [rdx + 0x5c]
mov word [rcx + 0x5c], ax
movzx eax, byte [rdx + 0x5e]
mov byte [rcx + 0x5e], al
call r9
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x140001c88
Capabilities:
Parse pe header

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