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

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.14000bb30
cmp rax, rcx
je 0x140016ab5
cmp rdx, 4
jae 0x140016ab8
xor eax, eax
xor r8d, r8d
jmp 0x140016b50
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14005c5b0]
movdqa xmm3, xmmword [0x14005c5c0]
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 0x140016ae0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140016b67
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140016b50
ret

Function at 0x14001b8a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x140062bf8]
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 0x14001b912
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14001b949
test eax, eax
js 0x14001b923
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14001b93c
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.14001ad10
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.14001a350
mov ecx, 7
int 0x29
ud2
Function at 0x14001d780
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r14d, r14d
cmp r8, 0x201
jae 0x14001d810
jmp 0x14001d7ff
jae 0x14001d8cd
cmp r8, 0x201
jae 0x14001d810
mov r15d, 0x200
lea r12, [rbp - 0x58]
mov r13, r8
jmp 0x14001d868
sub r8, r14
sub rbx, r14
cmp rbx, r8
jae 0x14001d83f
lea rcx, [rbp + 0x3c8]
mov rdx, r14
call fcn.14005a890
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r14d, 0xffffffff
cmovb r14, rdi
mov qword [rbp + 0x3d8], r14
mov rbx, rdi
mov r15, r14
mov r12, qword [rbp + 0x3e8]
mov r13, r14
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r13d
mov rdx, r12
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
jne 0x14001d88f
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x14001d931
mov r8d, esi
cmp r13, r8
jne 0x14001d7f0
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x14001d953
add r13, r13
mov eax, 0xffffffff
cmp r13, rax
cmovae r13, rax
mov r8, r13
cmp r8, 0x201
jb 0x14001d7ff
jmp 0x14001d810
cmp r15, r8
jb 0x14001d96d
lea rcx, [rbp + 0x3a8]
mov rdx, r12
call fcn.14001e070
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rax, qword [rbp + 0x3e0]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
test rdi, rdi
je 0x14001d91c
mov rcx, qword [0x14007bc78]
xor edx, edx
mov r8, qword [rbp + 0x3e8]
call qword [sym.imp.kernel32.dll_HeapFree]
nop
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rbp + 0x3e0]
mov qword [rcx], rax
mov byte [rcx + 0x18], 2
test rdi, rdi
jne 0x14001d906
jmp 0x14001d91c
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1400590a0
jmp 0x14001d982
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.140059020
ud2
Function at 0x140020130
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x58]
call fcn.14001c220
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x410], rax
test rax, rax
je 0x1400202b5
mov qword [rbp + 0x3c8], rsi
mov rax, qword [rbp - 0x50]
mov qword [rbp + 0x408], rax
mov qword [rbp + 0x3f0], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3f8], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x418], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x1400201f0
jmp 0x1400201df
jae 0x1400202c7
cmp r8, 0x201
jae 0x1400201f0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140020248
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14002021f
lea rcx, [rbp + 0x3f0]
mov rdx, r12
call fcn.14005a890
mov rax, qword [rbp + 0x3f0]
mov qword [rbp + 0x418], rax
mov rdi, qword [rbp + 0x3f8]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x400], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x418]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, qword [rbp + 0x410]
mov rdx, r13
mov r8d, r15d
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov r14d, eax
test eax, eax
jne 0x140020277
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x1400202fd
mov r8d, r14d
cmp r15, r8
jne 0x1400201d0
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x1400203a9
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400201df
jmp 0x1400201f0
lea rcx, [rbp - 0x50]
call fcn.14001a250
mov byte [rsi + 0x18], 2
jmp 0x140020373
cmp rsi, r8
jb 0x1400203c3
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14001e070
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
movaps xmmword [rbp + 0x3e0], xmm1
movaps xmmword [rbp + 0x3d0], xmm0
jmp 0x140020318
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3d0], rax
mov byte [rbp + 0x3e8], 2
test rdi, rdi
mov rsi, qword [rbp + 0x3c8]
je 0x14002033a
mov rcx, qword [0x14007bc78]
xor edx, edx
mov r8, qword [rbp + 0x418]
call qword [sym.imp.kernel32.dll_HeapFree]
cmp byte [rbp + 0x3e8], 2
jne 0x140020388
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3d0]
call fcn.14001a250
cmp qword [rbp + 0x408], 0
je 0x140020373
mov rcx, qword [0x14007bc78]
xor edx, edx
mov r8, qword [rbp + 0x410]
call qword [sym.imp.kernel32.dll_HeapFree]
nop
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3d0]
movaps xmm1, xmmword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
cmp qword [rbp + 0x408], 0
jne 0x14002035d
jmp 0x140020373
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1400590a0
jmp 0x1400203d8
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140059020
ud2
Function at 0x140022f00
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x140062bf8]
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_NtReadFile]
cmp eax, 0x103
jne 0x140022f6b
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x140022f7a
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140022fb2
cmp eax, 0x103
je 0x140022fbc
test eax, eax
js 0x140022f97
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
invalid
add byte [rax], al
add byte [rax], al
jmp 0x140022fb2
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
mov dword [rsp + 0x58], 0

Function at 0x140024300
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
sub esp, 0x50
Function at 0x14002df00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm6
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.14001c220
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x14002df76
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.14002de30
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x14002df84
movdqu xmm6, xmmword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002dfa4
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x14002df95
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x30]
call fcn.14001a250
mov qword [rsi], 0
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
ret
mov qword [rsi], 0
movq rax, xmm6
test rax, rax
je 0x14002df95
mov rcx, qword [0x14007bc78]
xor edx, edx
mov r8, rdi
movaps xmm6, xmmword [rsp + 0x70]
je 0x14002dfe9
jo 0x14002e00f
add esp, 0x88
Function at 0x1400301d0
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x14007bd00]
mov ecx, 0x10
mov edx, 8
call fcn.14000ae40
test rax, rax
je 0x1400302c5
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400303d0]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400302b7
mov rcx, qword [rbx]
mov qword [rbp - 0x20], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x10], rcx
mov qword [rbp - 0x18], rax
call qword [rax]
mov rax, qword [rbp - 0x18]
cmp qword [rax + 8], 0
mov rsi, qword [rbp - 0x20]
je 0x140030291
cmp qword [rax + 0x10], 0x11
jae 0x14003027a
mov r8, qword [rbp - 0x10]
jmp 0x140030282
mov r8, qword [rbp - 0x10]
mov r8, qword [r8 - 8]
mov rcx, qword [0x14007bc78]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x14007bc78]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
call sub.kernel32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.140058e00
ud2
Function at 0x140030e30
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 0x140030e6f
mov rax, qword [rbp - 0x20]
add rsp, 0x80
pop rbp
ret
call sub.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, [0x140020da0]
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.140058ee0
ud2

Function at 0x140037bf4
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
movabs rdx, 0xc2b2ae3d27d4eb4f
movabs r8, 0x9e3779b185ebca87
movabs r9, 0x27d4eb2f165667c5
mov r11, qword [rcx + 0x20]
cmp r11, 0x1f
jbe 0x140037cc4
mov rdi, qword [rcx]
mov rbx, rdi
rol rbx, 1
mov rsi, qword [rcx + 8]
mov r14, rsi
rol r14, 7
mov rax, qword [rcx + 0x10]
mov r15, rax
rol r15, 0xc
mov r10, qword [rcx + 0x18]
mov r12, r10
rol r12, 0x12
add r14, rbx
add r12, r15
add r12, r14
imul rdi, rdx
rol rdi, 0x1f
imul rdi, r8
xor rdi, r12
imul rdi, r8
movabs rbx, 0x85ebca77c2b2ae63
add rdi, rbx
imul rsi, rdx
rol rsi, 0x1f
imul rsi, r8
xor rsi, rdi
imul rsi, r8
imul rax, rdx
rol rax, 0x1f
add rsi, rbx
imul rax, r8
xor rax, rsi
imul rax, r8
add rax, rbx
imul r10, rdx
rol r10, 0x1f
imul r10, r8
xor r10, rax
imul r10, r8
add r10, rbx
jmp 0x140037ccb
mov r10, qword [rcx + 0x28]
add r10, r9
mov rax, qword [rcx + 0x50]
cmp rax, 0x21
jae 0x140037db0
add rcx, 0x30
add r10, r11
cmp rax, 8
jae 0x140037ceb
mov r11, r10
jmp 0x140037d23
movabs rsi, 0x85ebca77c2b2ae63
add rax, 0xfffffffffffffff8
mov r11, qword [rcx]
imul r11, rdx
add rcx, 8
rol r11, 0x1f
imul r11, r8
xor r11, r10
rol r11, 0x1b
imul r11, r8
add r11, rsi
mov r10, r11
cmp rax, 8
jae 0x140037cf5
movabs r10, 0x165667b19e3779f9
cmp rax, 4
jb 0x140037d52
add rax, 0xfffffffffffffffc
mov esi, dword [rcx]
imul rsi, r8
xor rsi, r11
rol rsi, 0x17
add rcx, 4
imul rsi, rdx
add rsi, r10
mov r11, rsi
test rax, rax
je 0x140037d79
xor esi, esi
movzx edi, byte [rcx + rsi]
imul rdi, r9
xor rdi, r11
rol rdi, 0xb
imul rdi, r8
inc rsi
mov r11, rdi
cmp rax, rsi
jne 0x140037d59
jmp 0x140037d7c
mov rdi, r11
mov rax, rdi
shr rax, 0x21
xor rax, rdi
imul rax, rdx
mov rcx, rax
shr rcx, 0x1d
xor rcx, rax
imul rcx, r10
mov rax, rcx
shr rax, 0x20
xor rax, rcx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.C:Usersjkene.cargo_registry_srcindex.crates.io_6f17d22bba15001f_twox_hash_1.6.3_src_sixty_four.rs
mov edx, 0x20
mov rcx, rax
call fcn.140059020
ud2
Function at 0x140038db4
Capabilities:
Hash data using sha256

Disassembly:
sub edx, 1
je 0x140038dcf
sub edx, 3
je 0x140038dc8
cmp edx, 6
jne 0x140038dd3
jmp 0x14003a138
and qword [rcx + 0x40], 0
jmp 0x140038dd3
and dword [rcx + 0x40], 0
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rdx, [0x1400657a0]
add rcx, 0x40
mov r8d, 0x20
call fcn.140057d50
and qword [rbx + 0x60], 0
add rsp, 0x20
pop rbx
ret

Function at 0x140039e10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
lea rsi, [0x140065e40]
mov r10d, r8d
not r10d
mov rbx, rdx
mov r11, rcx
cmp rdx, 8
jbe 0x140039f03
test cl, 7
je 0x140039e60
movzx eax, byte [r11]
dec rbx
movzx ecx, r10b
inc r11
xor rcx, rax
shr r10d, 8
xor r10d, dword [rsi + rcx*4]
test r11b, 7
jne 0x140039e41
mov rdi, rbx
and rdi, 0xfffffffffffffff8
add rdi, r11
and ebx, 7
jmp 0x140039efa
xor r10d, dword [r11]
mov r9d, dword [r11 + 4]
add r11, 8
mov r8d, r10d
mov eax, r10d
shr rax, 0x10
movzx edx, al
mov eax, r10d
shr rax, 8
movzx ecx, al
mov eax, r9d
mov r10d, dword [rsi + rdx*4 + 0x1400]
shr rax, 0x10
xor r10d, dword [rsi + rcx*4 + 0x1800]
movzx ecx, al
mov eax, r9d
shr rax, 8
xor r10d, dword [rsi + rcx*4 + 0x400]
movzx ecx, al
mov eax, r8d
shr rax, 0x18
xor r10d, dword [rsi + rcx*4 + 0x800]
xor r10d, dword [rsi + rax*4 + 0x1000]
mov eax, r9d
shr rax, 0x18
xor r10d, dword [rsi + rax*4]
movzx eax, r8b
xor r10d, dword [rsi + rax*4 + 0x1c00]
movzx eax, r9b
xor r10d, dword [rsi + rax*4 + 0xc00]
cmp r11, rdi
jb 0x140039e72
test rbx, rbx
je 0x140039f24
movzx eax, byte [r11]
inc r11
movzx ecx, r10b
xor rcx, rax
shr r10d, 8
xor r10d, dword [rsi + rcx*4]
sub rbx, 1
jne 0x140039f08
mov rbx, qword [rsp + 8]
not r10d
mov rsi, qword [rsp + 0x10]
mov eax, r10d
mov rdi, qword [rsp + 0x18]
ret

Function at 0x140039f3c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
lea rsi, [0x140067e40]
mov r10, r8
not r10
mov rbx, rdx
mov r11, rcx
cmp rdx, 4
jbe 0x140039ff5
test cl, 3
je 0x140039f8c
movzx eax, byte [r11]
dec rbx
movzx ecx, r10b
inc r11
xor rcx, rax
shr r10, 8
xor r10, qword [rsi + rcx*8]
test r11b, 3
jne 0x140039f6d
mov rdi, rbx
and rdi, 0xfffffffffffffffc
add rdi, r11
and ebx, 3
jmp 0x140039ff0
mov r9d, dword [r11]
mov eax, r10d
xor r9, rax
mov rax, r9
shr rax, 0x10
movzx edx, al
mov rax, r9
shr rax, 8
movzx ecx, al
mov rax, r9
shr rax, 0x18
mov r8, qword [rsi + rdx*8 + 0x800]
xor r8, qword [rsi + rcx*8 + 0x1000]
xor r8, qword [rsi + rax*8]
movzx eax, r9b
xor r8, qword [rsi + rax*8 + 0x1800]
mov rax, r10
shr rax, 0x20
mov r10, r8
xor r10, rax
add r11, 4
cmp r11, rdi
jb 0x140039f9b
test rbx, rbx
je 0x14003a016
movzx eax, byte [r11]
inc r11
movzx ecx, r10b
xor rcx, rax
shr r10, 8
xor r10, qword [rsi + rcx*8]
sub rbx, 1
jne 0x140039ffa
mov rbx, qword [rsp + 8]
not r10
mov rsi, qword [rsp + 0x10]
mov rax, r10
mov rdi, qword [rsp + 0x18]
ret
Function at 0x14003a138
Capabilities:
Hash data using sha256

Disassembly:
sub edx, 1
je 0x140038dcf
sub edx, 3
je 0x140038dc8
cmp edx, 6
jne 0x140038dd3
jmp 0x14003a138
and qword [rcx + 0x40], 0
jmp 0x140038dd3
and dword [rcx + 0x40], 0
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rdx, [0x1400657a0]
add rcx, 0x40
mov r8d, 0x20
call fcn.140057d50
and qword [rbx + 0x60], 0
add rsp, 0x20
pop rbx
ret

Function at 0x14004162c
Capabilities:
Parse pe header

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

Function at 0x1400468f0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400466ec
Function at 0x14004db2c
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 0x14004db5c
xor eax, eax
jmp 0x14004dc1f
mov rbp, rbx
cmp word [rax], si
je 0x14004db81
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14004db68
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14004db64
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.14004da4c
movsxd r14, eax
test eax, eax
jne 0x14004dbbf
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0x14004db55
mov rcx, r14
call fcn.14004a590
mov rdi, rax
test rax, rax
jne 0x14004dbd8
xor ecx, ecx
call fcn.14004a554
jmp 0x14004dbb4
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.14004da4c
test eax, eax
jne 0x14004dc09
mov rcx, rdi
call fcn.14004a554
jmp 0x14004dc13
xor ecx, ecx
call fcn.14004a554
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 0x140052f50
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.14004af7c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140052fda
cmp byte [rbp - 0x21], r15b
je 0x140052fd5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140053010
call fcn.14004f4ec
test eax, eax
jne 0x140052ffc
cmp byte [rbp - 0x21], r15b
je 0x140052ff4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140053010
cmp byte [rbp - 0x21], r15b
je 0x14005300d
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.14004c3d8
test eax, eax
jne 0x1400530b0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14004af7c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14005304f
cmp byte [rbp - 0x21], r15b
je 0x140053084
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140053084
call fcn.14004f4ec
test eax, eax
jne 0x140053070
cmp byte [rbp - 0x21], r15b
je 0x140053069
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140053084
cmp byte [rbp - 0x21], r15b
je 0x140053081
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.14004c3d8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400530b0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400530b3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400530c1
mov rcx, rdi
call fcn.14004a554
cmp byte [rbp + 0x3f], r15b
je 0x1400530d0
mov rcx, qword [rbp + 0x27]
call fcn.14004a554
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 0x140055128
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14005513e
mov al, 1
jmp 0x14005519e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14005514f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14005519c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14004e4f8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14005519c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.kernel32.dll_SetFilePointerEx]
test eax, eax
je 0x14005519c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.kernel32.dll_GetFileSizeEx]
test eax, eax
je 0x14005519c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14005519e
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140057950
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140057978
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140057978
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140004b00
Capabilities:
Parse pe header

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