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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x14000d970
cmp r11, r10
ja 0x14000d9e6
cmp r10, rdx
ja 0x14000d9fa
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14000d972
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14000d950
jmp 0x14000d9d4
ja 0x14000d97a
mov r11, r10
cmp rax, r8
jne 0x14000d914
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x14000d9b0
mov rdi, r8
sub ecx, edx
jns 0x14000d9cb
jmp 0x14000d9d6
cmp r8, rsi
je 0x14000da0b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14000d9d6
xor al, 1
cmp rdi, rsi
jne 0x14000d990
jmp 0x14000d9d6
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14003adf0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14003ab60
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value__
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14003abe0
ud2
Function at 0x140021da0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rbx, rcx
xor edi, edi
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x20
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
cmp eax, 0xc0000000
jb 0x140021e2a
mov esi, eax
mov rcx, rbx
mov edx, 0x20
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x140021de2
xor edi, edi
jmp 0x140021e2a
xor esi, 0x80000000
je 0x140021dde
movzx eax, byte [0x14004b1f0]
mov rcx, qword [0x14004b178]
test rcx, rcx
jne 0x140021e12
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x140021e35
mov rcx, rax
mov qword [0x14004b178], rax
mov r8d, 4
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x140021e35
mov rdi, rax
mov dword [rax], esi
mov rax, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov ecx, 4
mov edx, 4
call fcn.14003a940
ud2
Function at 0x140022680
Capabilities:
Encrypt data using openssl rsa

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xe0
mov rsi, rcx
cmp byte [rdx + 0x28], 9
jne 0x1400226b8
mov rdi, rdx
lea rcx, [rdx + 0x29]
lea rdx, [0x140042379]
mov r8d, 0x27
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14002275b
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov ecx, 5
movabs rbx, 0x101010df786
xor eax, eax
xor r8d, r8d
xor r10d, r10d
xor r11d, r11d
xor r9d, r9d
xor edx, edx
mov rdi, qword [rsp + 0x2d]
mov qword [rsi + 0x38], rdi
mov rdi, qword [rsp + 0x20]
mov qword [rsi + 0x2b], rdi
movzx edi, byte [rsp + 0x28]
mov byte [rsi + 0x33], dil
mov edi, dword [rsp + 0x29]
mov dword [rsi + 0x34], edi
movzx edi, word [rsp + 0x2d]
mov word [rsi + 0x38], di
movzx edi, byte [rsp + 0x2f]
mov byte [rsi + 0x3a], dil
mov dword [rsi + 8], ecx
mov byte [rsi + 0xc], 9
mov word [rsi + 0xd], 0x862a
mov byte [rsi + 0xf], 0x48
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], rdx
mov dword [rsi + 0x20], r9d
mov dword [rsi + 0x24], r11d
mov byte [rsi + 0x28], r10b
mov byte [rsi + 0x29], r8b
mov byte [rsi + 0x2a], al
mov qword [rsi], 2
add rsp, 0xe0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rdx, qword [rdi + 0x58]
mov r9d, dword [rdi + 0x60]
movzx eax, byte [rdi + 0x68]
cmp al, 0x17
jne 0x140022789
mov rbx, qword [rdi + 0x50]
movzx eax, byte [rdi + 0x6a]
movzx r8d, byte [rdi + 0x69]
mov r11d, dword [rdi + 0x64]
mov ecx, 2
mov r10b, 0x17
jmp 0x1400226e5
mov ecx, 4
cmp al, 4
jne 0x1400227b7
test r9d, r9d
jne 0x1400227b7
test rdx, rdx
jne 0x1400226e5
cmp byte [rdi + 0x20], 0
je 0x1400227bc
mov dword [rsi + 8], 4
mov qword [rsi + 0x10], 0
jmp 0x140022745
jmp 0x1400226e5
mov rdx, qword [rdi]
mov r8, qword [rdi + 8]
lea rcx, [rsp + 0x20]
call fcn.14001ebd0
mov rax, qword [rsp + 0x20]
cmp rax, 8
jne 0x140022835
mov rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
lea r14, [rsp + 0x80]
mov rcx, r14
call fcn.140022380
lea r15, [rsp + 0xb0]
mov rcx, r15
mov rdx, rdi
mov r8, rbx
call fcn.140022380
lea rcx, [rsp + 0x20]
mov rdx, r14
mov r8, r15
call fcn.1400228c0
cmp dword [rsp + 0x20], 2
jne 0x14002287c
mov dword [rsi + 8], 4
jmp 0x140022745
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x58]
mov r9, rcx
shr r9, 0x20
cmp eax, 4
mov eax, 4
cmove eax, ecx
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x48]
mov dword [rsi + 8], eax
mov dword [rsi + 0xc], r9d
movups xmmword [rsi + 0x10], xmm0
mov qword [rsi + 0x20], rdx
movups xmmword [rsi + 0x28], xmm1
mov qword [rsi + 0x38], r8
jmp 0x140022745
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rsi + 0x50], xmm0
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x40], xmm0
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
movups xmm2, xmmword [rsp + 0x40]
movups xmm3, xmmword [rsp + 0x50]
movups xmmword [rsi + 0x30], xmm3
movups xmmword [rsi + 0x20], xmm2
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
jmp 0x14002274c
Function at 0x140026980
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.14000af50
cmp rax, rcx
je 0x1400269a5
cmp rdx, 4
jae 0x1400269a8
xor eax, eax
xor r8d, r8d
jmp 0x140026a40
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14003d400]
movdqa xmm3, xmmword [0x14003d410]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x1400269d0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140026a57
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140026a40
ret
Function at 0x14002e940
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x140044630]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14002e9b3
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14002e9ea
test eax, eax
js 0x14002e9c4
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14002e9dd
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14002de70
mov rcx, rax
call fcn.14002d6f0
mov ecx, 7
int 0x29
ud2
Function at 0x140035380
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
sub esp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.14002f170
mov rax, qword [rsp + 0x20]
and al, 0x20
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x140035434
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
call fcn.140034b80
mov rdi, qword [rsp + 0x38]
mov edi, dword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x140035434
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
int1
jl case.0x140033d88.141
invalid
test eax, eax
je 0x140035406
invalid
test rsi, rsi
je 0x140035432
mov rcx, qword [0x14004b178]
xor esi, esi
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140035434
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x14003542d
mov rcx, qword [0x14004b178]
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, rbx
jmp 0x140035434
xor esi, esi
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x140036680
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x1400366c3
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x140033c70]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.14003aa20
ud2

Function at 0x140039994
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400399de
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400399de
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400399de
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400399de
cmp dword [rcx + 0x84], 0xe
jbe 0x1400399de
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400399e0
xor al, al
add rsp, 0x28
ret
Function at 0x1400056b0
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 r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x1400057ab
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x1400057b3
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x1400057ea
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x1400057c0
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x140005815
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x14000583b
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x140005820
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000b140
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000b185
xor al, al
jmp 0x14000b1d2
cmp word [rbx], 0
je 0x14000b19d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000b190
cmp word [rsp + 0x30], 0
je 0x14000b1cb
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000b1f3
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000b1b0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000c950
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14001114c
int3
Function at 0x14000b2b0
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
movzx eax, cl
mov rcx, qword [0x140032b00]
test rcx, rcx
je 0x14000b321
test al, al
je 0x14000b2f6
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
test eax, eax
jne 0x14000b2ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_send_CTRL_C_to_child_process.
call fcn.14000bda0
mov rcx, qword [0x140032b00]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b314
mov rcx, qword [0x140032b00]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x140032b00]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140032b0d], 0
je 0x14000b419
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140026c50]
mov qword [rsp + 0x80], rsi
lea rsi, [0x14003f380]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b3fa
test al, 0x10
je 0x14000b3fa
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b3a0
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000b570
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14000c8f0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x140032b08]
lea rsi, [0x140041380]
mov rdi, rcx
test r11d, r11d
jne 0x14000b5e9
mov r8d, 0x1000
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
call fcn.14000b6e0
test al, al
je 0x14000b6c9
lea rcx, [rsp + 0x20]
call fcn.140015684
movsxd r11, dword [0x140032b08]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x140032b08], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000b624
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000b614
add rax, 2
test ecx, ecx
jne 0x14000b600
test edx, edx
je 0x14000b647
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000b5f4
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000b630
cmp rax, 2
jne 0x14000b64b
cmp word [rdi + 2], 0x3a
jne 0x14000b64b
mov al, 1
jmp 0x14000b6a8
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000b676
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000b69d
mov bl, 1
cmp dword [0x140032b08], 0x400
jge 0x14000b69d
mov rcx, rdi
call fcn.140015684
movsxd rdx, dword [0x140032b08]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x140032b08], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000c950
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str.HOME
call fcn.14000bc00
int3
Function at 0x14000c0f0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x14000c195
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14000c14d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14000c140
cmp rcx, 1
jb 0x14000c1c6
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14000c163
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.140011480
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14000c130
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000c950
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.14001114c
int3
Function at 0x14000d210
Capabilities:
Parse pe header

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

Function at 0x140011140
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 0x140010fab
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140010fab
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140010fab
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140010fab
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140010fab
cmp dword [rcx + 0x84], 0xe
jbe 0x140010fab
cmp dword [rcx + 0xf8], 0
je 0x140010fab
mov ecx, ebx
call fcn.14001105c
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.140010e38
nop
cmp dword [rbp + 0x20], 0
je 0x140010ff9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140011004
int3
xor r8d, r8d
xor edx, edx
jmp 0x140010f3c
Function at 0x14001a564
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 0x14001a5eb
mov rsi, rbx
cmp word [rax], bp
je 0x14001a5aa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14001a594
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14001a590
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140015b04
mov rdi, rax
test rax, rax
je 0x14001a5d8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400213a0
mov rbp, rdi
xor ecx, ecx
call fcn.140015ac8
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 0x14001cbb4
Capabilities:
Get file size

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

Function at 0x140021040
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140021068
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140021068
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001a40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rbp
push rsi
push r13
sub rsp, 0x30
cmp byte [rcx], 0
mov rbp, r8
mov r13, rdx
mov rsi, rcx
je 0x140001a65
mov eax, 0x1388
add rsp, 0x30
pop r13
pop rsi
pop rbp
ret
mov eax, 0xffffffff
cmp rbp, rax
jbe 0x140001a7d
mov eax, 0x2ced
add rsp, 0x30
pop r13
pop rsi
pop rbp
ret
cmp byte [rcx + 0x38], 0
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
je 0x140001b7c
mov rax, qword [rcx + 0x28]
dec rax
cmp rax, 0x7e
ja 0x140001b7c
mov eax, 0xffff
lea r14, [rcx + 0x90]
cmp rbp, rax
mov rdx, rbp
mov rcx, r14
cmova rdx, rax
call fcn.140002050
xor ebx, ebx
test rbp, rbp
je 0x140001be9
mov r8d, ebx
nop dword [rax]
mov rdi, qword [r14]
mov edx, ebp
mov r15, qword [r14 + 8]
sub edx, ebx
mov rcx, r15
mov eax, edx
sub r15d, edi
sub rcx, rdi
cmp rax, rcx
lea rax, [r8 + r13]
mov qword [rsp + 0x50], rax
mov rax, qword [r14 + 0x10]
cmovbe r15d, edx
sub rax, rdi
mov r12d, r15d
cmp r12, rax
jbe 0x140001b26
lfence
mov edx, r12d
mov rcx, r14
call fcn.1400023a0
mov rdi, qword [r14]
mov rdx, qword [rsp + 0x50]
mov r8, r12
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
lea r8, [r15 + rdi]
mov qword [r14 + 8], r8
lea rcx, [rsi + 8]
mov rdx, qword [r14]
sub r8, rdx
call fcn.140026a50
mov rdx, qword [r14]
mov rdi, qword [r14 + 8]
mov rcx, qword [rsi + 0xa8]
sub rdi, rdx
mov r8, rdi
call fcn.14018cf60
cmp rax, rdi
jne 0x140001bd0
add ebx, r15d
mov r8d, ebx
cmp r8, rbp
jb 0x140001ae0
jmp 0x140001be9
mov r8d, dword [rcx + 0x52]
xor ebx, ebx
mov edi, ebp
not r8d
test ebp, ebp
je 0x140001bb2
lea r9, [0x1401f8ce0]
movzx ecx, byte [rbx + r13]
mov eax, r8d
xor rcx, rax
inc rbx
shr eax, 8
movzx edx, cl
mov r8d, dword [r9 + rdx*4]
xor r8d, eax
cmp rbx, rdi
jb 0x140001b92
not r8d
mov rdx, r13
mov dword [rsi + 0x52], r8d
mov r8, rbp
mov rcx, qword [rsi + 0xa8]
call fcn.14018cf60
cmp rax, rbp
je 0x140001bd7
mov eax, 0x1b5d
jmp 0x140001beb
add dword [rsi + 0x88], edi
mov eax, dword [rsi + 0x88]
mov dword [rsi + 0x56], eax
mov dword [rsi + 0x5a], eax
xor eax, eax
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
add rsp, 0x30
pop r13
pop rsi
pop rbp
ret