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

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
lea rdi, [rcx - 0x7ff80000]
mov rbx, rcx
cmp rcx, 0x7ff80000
ja 0x180040f72
mov edi, 0x80000
mov qword [rsp + 0x38], rsi
lea rsi, [rcx + 0x7ff80000]
cmp rbx, 0xffffffff80000000
jb 0x180040f8e
mov rsi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x180040fa5
cmp byte [rcx + 1], 0x25
jne 0x180040fe9
movsxd rcx, dword [rcx + 2]
add rcx, 6
jmp 0x180040fb1
cmp al, 0xe9
jne 0x180040fe9
movsxd rcx, dword [rcx + 1]
add rcx, 5
add rcx, rbx
cmp rcx, rbx
jae 0x180040fd4
cmp rcx, 0xffffffff80000000
jae 0x180040fcb
lea rsi, [rcx + 0x7ff80000]
jmp 0x180040fe9
mov rsi, 0xfffffffffff80000
jmp 0x180040fe9
lea rdi, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x180040fe9
mov edi, 0x80000
mov rdx, qword [0x1800531c8]
mov rax, qword [0x1800531c0]
mov qword [rsp + 0x30], rbp
test rdx, rdx
jne 0x180041010
test rax, rax
je 0x180041027
mov rdx, rax
mov qword [0x1800531c8], rax
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x180041027
cmp rcx, rdi
jb 0x180041027
cmp rcx, rsi
jbe 0x18004117a
mov qword [0x1800531c8], rax
mov rdx, rax
test rax, rax
je 0x180041072
mov rcx, rax
nop dword [rax]
test rax, rax
je 0x18004105c
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x18004105c
cmp rax, rdi
jb 0x18004105c
cmp rax, rsi
jbe 0x18004117a
mov rdx, qword [rdx + 8]
mov qword [0x1800531c8], rdx
mov rcx, rdx
mov rax, rdx
test rdx, rdx
jne 0x180041040
movzx eax, bx
sub rbx, rax
cmp rbx, 0x40000000
jbe 0x18004109c
lea rdx, [rbx - 0x40000000]
mov rcx, rdi
call fcn.180040d70
mov rdx, rax
test rax, rax
jne 0x180041128
movabs rbp, 0xffffffff40000000
cmp rbx, rbp
jae 0x1800410c2
lea rcx, [rbx + 0x40000000]
mov rdx, rsi
call fcn.180040e60
mov rdx, rax
test rax, rax
jne 0x180041128
cmp rbx, 0x40000000
jbe 0x1800410e2
lea rcx, [rbx - 0x40000000]
mov rdx, rbx
call fcn.180040e60
mov rdx, rax
test rax, rax
jne 0x180041128
cmp rbx, rbp
jae 0x1800410fe
lea rdx, [rbx + 0x40000000]
mov rcx, rbx
call fcn.180040d70
mov rdx, rax
test rax, rax
jne 0x180041128
mov rdx, rbx
mov rcx, rdi
call fcn.180040d70
mov rdx, rax
test rax, rax
jne 0x180041128
mov rdx, rsi
mov rcx, rbx
call fcn.180040e60
mov rdx, rax
test rax, rax
je 0x1800411b1
mov dword [rdx], 0x52727464
lea rcx, [rdx + 0xffa8]
xor r8d, r8d
mov qword [0x1800531c8], rdx
mov qword [rdx + 0x10], r8
mov r9d, 0x2a7
mov rax, qword [0x1800531c0]
mov qword [rdx + 8], rax
lea rax, [rdx + 0xff60]
mov qword [0x1800531c0], rdx
mov qword [rcx], r8
lea rcx, [rcx - 0x60]
mov r8, rax
sub rax, 0x60
sub r9, 1
jne 0x180041162
mov qword [rdx + 0x10], r8
mov rax, qword [rdx + 0x10]
cmp rax, rdi
jb 0x1800411b1
cmp rax, rsi
ja 0x1800411b1
mov rcx, qword [rax + 0x48]
movdqa xmm0, xmmword [0x1800456c0]
mov qword [rdx + 0x10], rcx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
jmp 0x1800411b3
xor eax, eax
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180041410
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x18004143e
xor al, al
jmp 0x180041480
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x18004144f
xor al, al
jmp 0x180041480
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x180041476
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x180041476
mov al, 1
jmp 0x180041480
xor al, al
add rsp, 0x50
pop rbx
ret
add rsp, 0x50
pop rbx
ret
Function at 0x180041960
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rsi
sub rsp, 0x28
mov rbp, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1800531d8], eax
je 0x180041987
mov eax, 0x10dd
add rsp, 0x28
pop rsi
pop rbp
ret
mov eax, dword [0x1800531dc]
test eax, eax
jne 0x180041ac3
test rbp, rbp
jne 0x1800419a4
lea eax, [rbp + 0x57]
add rsp, 0x28
pop rsi
pop rbp
ret
test rsi, rsi
je 0x1800419c0
cmp qword [rsi], 0
jne 0x1800419cc
mov dword [0x1800531dc], 6
mov qword [0x1800531e0], rsi
mov eax, 6
add rsp, 0x28
pop rsi
pop rbp
ret
mov qword [rsp + 0x40], rbx
mov ecx, 0x30
mov qword [rsp + 0x20], rdi
call fcn.1800429b0
mov rdi, rax
test rax, rax
jne 0x1800419f0
lea ebx, [rax + 8]
jmp 0x180041a98
mov rcx, qword [rsi]
xor edx, edx
call fcn.1800418b0
xor edx, edx
mov rcx, rbp
mov rbx, rax
call fcn.1800418b0
movzx edx, byte [rbx + 0x3e]
mov rbp, qword [rbx + 0x48]
sub rbp, rdx
test dl, dl
je 0x180041a8a
cmp rdx, 0x1e
ja 0x180041a8a
cmp qword [rbx + 0x50], rax
jne 0x180041a8a
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], 0
mov r8d, 0x40
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180041a4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180041a98
mov qword [rdi + 0x20], rbx
mov rbx, qword [rsp + 0x40]
mov dword [rdi + 8], 1
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rbp
mov eax, dword [rsp + 0x50]
mov dword [rdi + 0x28], eax
mov rax, qword [0x1800531f0]
mov qword [rdi], rax
xor eax, eax
mov qword [0x1800531f0], rdi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbp
ret
cmp dword [0x1800531d0], 0
mov ebx, 9
jne 0x180041aa3
mov dword [0x1800531dc], ebx
test rdi, rdi
je 0x180041ab0
mov edx, 0x30
mov rcx, rdi
call fcn.180042d64
mov rdi, qword [rsp + 0x20]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov qword [0x1800531e0], rsi
add rsp, 0x28
pop rsi
pop rbp
ret

Function at 0x180041ad0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
cmp dword [0x1800531d8], 0
jne 0x180041b77
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x1800531d8], ecx
jne 0x180041b77
mov qword [rsp + 0x38], rbx
mov rbx, qword [0x1800531c0]
mov qword [rsp + 0x20], rdi
xor edi, edi
mov qword [0x1800531f0], rdi
mov qword [0x1800531e8], rdi
mov qword [0x1800531e0], rdi
test rbx, rbx
je 0x180041b60
nop word [rax + rax]
lea r9, [rsp + 0x30]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180041b58
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x180041b30
jmp 0x180041b60
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov dword [0x1800531dc], edi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
mov eax, 0x10dd
add rsp, 0x28
ret
Function at 0x180042190
Capabilities:
Suspend thread

Disassembly:
push rdi
sub rsp, 0x20
mov eax, dword [0x1800531dc]
mov rdi, rcx
test eax, eax
jne 0x180042233
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rdi, rax
jne 0x1800421ba
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov ecx, 0x10
mov qword [rsp + 0x30], rbx
call fcn.1800429b0
mov rbx, rax
test rax, rax
jne 0x1800421d6
lea edi, [rax + 8]
jmp 0x1800421f9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x180042217
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov edx, 0x10
mov rcx, rbx
call fcn.180042d64
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov dword [0x1800531dc], edi
mov qword [0x1800531e0], 0
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x1800531e8]
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 8], rdi
mov qword [0x1800531e8], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140004730
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x1400f40c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r14, rdx
mov rsi, rcx
mov qword [rsp + 0x48], rcx
xor r15d, r15d
mov dword [rdx], r15d
lea r12, [0x1400f4d20]
mov qword [rdx + 8], r12
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
mov ecx, eax
inc rcx
mov eax, 2
mul rcx
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.140093b44
mov rbp, rax
mov qword [rsp + 0x50], rax
mov rdx, rax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x1400047e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x58], r12
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [r14], xmm0
xorps xmm1, xmm1
movups xmmword [rsi], xmm1
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 7
mov word [rsi], r15w
mov qword [rsi + 0x20], r15
jmp 0x140004853
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r15
nop word [rax + rax]
inc rbx
cmp word [rbp + rbx*2], 0
jne 0x140004800
mov r8, rbx
mov rdx, rbp
lea rcx, [rsp + 0x20]
call fcn.140011620
nop
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi + 0x10], xmm1
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], r15w
mov qword [rsi + 0x20], r15
mov edx, 1
mov rcx, rsi
call fcn.1400024b0
nop
mov rcx, rbp
call fcn.1400937a0
mov rax, rsi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140093780
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400173c0
Capabilities:
Create directory

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1400f40c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rsi, [0x1400f4d20]
mov dword [rsp + 0x38], eax
lea r8, [r11 - 0x30]
xorps xmm0, xmm0
mov dword [rdx], eax
movups xmmword [rsp + 0x40], xmm0
mov qword [rdx + 8], rsi
mov rdi, rdx
mov qword [r11 - 0x48], rax
mov rdx, rcx
mov qword [r11 - 0x40], 7
mov rbx, rcx
mov word [rsp + 0x40], ax
lea rcx, [r11 - 0x20]
mov qword [r11 - 0x68], rax
xor r9d, r9d
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rsi
mov qword [r11 - 0x78], rax
call fcn.1400140d0
cmp dword [rsp + 0x78], 3
jne 0x140017449
xor bl, bl
jmp 0x1400174b2
cmp qword [rsp + 0x50], 0
mov rax, qword [rbx + 0x18]
je 0x14001749a
cmp rax, 7
jbe 0x14001745e
mov rbx, qword [rbx]
cmp qword [rsp + 0x58], 7
lea rcx, [rsp + 0x40]
mov rdx, rbx
cmova rcx, qword [rsp + 0x40]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
test eax, eax
jne 0x1400174b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x70], rsi
xor bl, bl
mov dword [rsp + 0x68], eax
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rdi], xmm0
jmp 0x1400174b2
cmp rax, 7
jbe 0x1400174a3
mov rbx, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x14001747b
mov bl, 1
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x1400174f0
mov rcx, qword [rsp + 0x40]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400174eb
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017518
call fcn.1400937a0
movzx eax, bl
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140093780
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1400a1c3c
int3
Function at 0x14001a110
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x1400f40c0]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], 0xf
mov byte [rcx], dil
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x78], rdi
cmp edx, 5
ja case.0x14001a178.0
movsxd rax, edx
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x1a2f4]
add rcx, rdx
jmp rcx
movups xmm0, xmmword [0x1400cb800]
jmp 0x14001a1ae
movups xmm0, xmmword [0x1400cb830]
jmp 0x14001a1ae
movups xmm0, xmmword [0x1400cb7f0]
jmp 0x14001a1ae
movups xmm0, xmmword [0x1400cb810]
jmp 0x14001a1ae
movups xmm0, xmmword [0x1400cb820]
jmp 0x14001a1ae
movups xmm0, xmmword [0x1400cb7e0]
movups xmmword [rsp + 0x80], xmm0
lea r9, [rsp + 0x78]
xor r8d, r8d
mov edx, 0xa000
lea rcx, [rsp + 0x80]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x14001a2bf
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rdi
mov rdx, qword [rsp + 0x78]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14001a200
lea rcx, [rsp + 0x28]
call fcn.140011620
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x58]
call fcn.1400195c0
mov rdx, rax
mov rcx, rbx
call fcn.1400100d0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x14001a26c
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001a267
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001a2ee
call fcn.1400937a0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14001a2bf
mov rax, rbx
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14001a285
mov rax, qword [rbx]
cmp byte [rcx + rax - 1], 0x5c
je 0x14001a2bf
cmp rcx, rdx
jae 0x14001a2ad
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x14001a2a5
mov rax, qword [rbx]
mov word [rax + rcx], 0x5c
jmp 0x14001a2bf
mov r9b, 0x5c
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.1400117c0
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rbx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140093780
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
call fcn.1400a1c3c
int3
Function at 0x14001a390
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x1400f40c0]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rcx
mov qword [r11 - 0x40], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], 0xf
mov byte [rcx], dil
mov dword [rsp + 0x20], 2
mov qword [r11 - 0x30], rdi
movups xmm0, xmmword [0x1400cb820]
movups xmmword [r11 - 0x28], xmm0
lea r9, [r11 - 0x30]
xor r8d, r8d
mov edx, 0xa000
lea rcx, [r11 - 0x28]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x14001a502
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rdi
mov rdx, qword [rsp + 0x78]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14001a430
lea rcx, [rsp + 0x28]
call fcn.140011620
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.1400195c0
mov rdx, rax
mov rcx, rbx
call fcn.1400100d0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x14001a49c
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001a497
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001a532
call fcn.1400937a0
movdqa xmm0, xmmword [0x1400e15b0]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14001a502
mov rax, rbx
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14001a4c8
mov rax, qword [rbx]
cmp byte [rcx + rax - 1], 0x5c
je 0x14001a502
cmp rcx, rdx
jae 0x14001a4f0
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x14001a4e8
mov rax, qword [rbx]
mov word [rax + rcx], 0x5c
jmp 0x14001a502
mov r9b, 0x5c
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.1400117c0
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov rax, rbx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140093780
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
call fcn.1400a1c3c
nop
int3
Function at 0x14001a690
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov rax, qword [0x1400f40c0]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r14, rdx
mov r15, rcx
mov qword [rbp - 0x59], rcx
mov qword [rbp - 0x11], rdx
xor r13d, r13d
mov dword [rsp + 0x20], r13d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r13
mov qword [rcx + 0x18], 0xf
mov byte [rcx], r13b
mov dword [rsp + 0x20], 1
lea rcx, [rbp - 0x31]
call fcn.1400102b0
mov rdx, rax
lea rcx, [rbp - 9]
call fcn.1400193b0
nop
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 7
cmova rcx, qword [rbp - 9]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r12d, eax
test eax, eax
je 0x14001a7f7
mov eax, 2
mul r12
mov rbx, rax
mov rdi, 0xffffffffffffffff
cmovo rbx, rdi
mov rcx, rbx
call fcn.140093b44
mov rsi, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.1400c3ff0
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 7
cmova rcx, qword [rbp - 9]
mov r8d, r12d
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14001a7ee
xorps xmm0, xmm0
movups xmmword [rbp - 0x79], xmm0
mov qword [rbp - 0x69], r13
mov qword [rbp - 0x61], r13
inc rdi
cmp word [rsi + rdi*2], 0
jne 0x14001a782
mov r8, rdi
mov rdx, rsi
lea rcx, [rbp - 0x79]
call fcn.140011620
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x51]
call fcn.1400195c0
mov rdx, rax
mov rcx, r15
call fcn.1400100d0
mov rdx, qword [rbp - 0x39]
cmp rdx, 0xf
jbe 0x14001a7ee
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001a7e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001a8c4
call fcn.1400937a0
mov rcx, rsi
call fcn.1400937a0
nop
mov rdx, qword [rbp + 0xf]
cmp rdx, 7
jbe 0x14001a837
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001a832
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001a8b8
call fcn.1400937a0
mov qword [rbp + 7], r13
mov qword [rbp + 0xf], 7
mov word [rbp - 9], r13w
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x14001a87e
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x14001a879
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001a8be
mov rcx, r8
call fcn.1400937a0
mov qword [r14 + 0x10], r13
mov qword [r14 + 0x18], 0xf
mov byte [r14], 0
mov rax, r15
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140093780
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400a1c3c
nop
call fcn.1400a1c3c
nop
call fcn.1400a1c3c
int3
Function at 0x14001a8d0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400f40c0]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rdx
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.1400102b0
mov rdx, rax
lea rcx, [rsp + 0x98]
call fcn.1400193b0
nop
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1400102b0
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.1400193b0
lea rdx, [rsp + 0x78]
cmp qword [rsp + 0x90], 7
cmova rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x98]
cmp qword [rsp + 0xb0], 7
cmova rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
setne sil
mov rdx, qword [rsp + 0x90]
cmp rdx, 7
jbe 0x14001a9b8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001a9b3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001aaf2
call fcn.1400937a0
movdqa xmm0, xmmword [0x1400e15a0]
movdqu xmmword [rsp + 0x88], xmm0
xor ebp, ebp
mov word [rsp + 0x78], bp
mov rdx, qword [rsp + 0xb0]
cmp rdx, 7
jbe 0x14001aa18
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001aa13
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001aaf8
call fcn.1400937a0
movdqa xmm0, xmmword [0x1400e15a0]
movdqu xmmword [rsp + 0xa8], xmm0
mov word [rsp + 0x98], bp
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x14001aa6b
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x14001aa66
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001aae6
mov rcx, r8
call fcn.1400937a0
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14001aab0
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14001aaab
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001aaec
mov rcx, r8
call fcn.1400937a0
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
movzx eax, sil
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140093780
mov rbx, qword [rsp + 0xf0]
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret
call fcn.1400a1c3c
nop
call fcn.1400a1c3c
nop
call fcn.1400a1c3c
nop
call fcn.1400a1c3c
int3
Function at 0x140020b60
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140020bc1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140020b80
mov ecx, dword [r9]
jmp 0x140020ca8
cmp ecx, 0x4e0
jb 0x140020ca8
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140020be0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140020c30
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret