joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005d950
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov rsi, rcx
lea rcx, [rsp + 0x98]
call fcn.14005dc30
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14005dabb
mov qword [rsp + 0x38], rsi
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov esi, 0xffffffff
xor r14d, r14d
xor r13d, r13d
cmp r8, 0x201
jae 0x14005da10
jmp 0x14005d9ef
jae 0x14005dace
cmp r8, 0x201
jae 0x14005da10
mov edi, 0x200
lea rbp, [rsp + 0x98]
mov r12, r8
jmp 0x14005da57
sub r8, r13
sub r14, r13
cmp r14, r8
jae 0x14005da37
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.140044450
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rbx, qword [rsp + 0x50]
cmp rbx, rsi
mov r13d, 0xffffffff
cmovb r13, rbx
mov qword [rsp + 0x58], r13
mov r14, rbx
mov rdi, r13
mov rbp, qword [rsp + 0x28]
mov r12, r13
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, qword [rsp + 0x30]
mov rdx, rbp
mov r8d, r12d
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov r15d, eax
test eax, eax
jne 0x14005da82
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x14005db92
mov r8d, r15d
cmp r12, r8
jne 0x14005d9e0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x14005dbb2
add r12, r12
cmp r12, rsi
cmovae r12, rsi
mov r8, r12
cmp r8, 0x201
jb 0x14005d9ef
jmp 0x14005da10
mov rcx, qword [rsp + 0xa0]
call fcn.14005cbc0
mov byte [rsi + 0x18], 2
jmp 0x14005db4d
cmp rdi, r8
jb 0x14005dbcc
lea rcx, [rsp + 0x60]
mov rdx, rbp
call fcn.14004a280
mov rdi, qword [rsp + 0x60]
movups xmm0, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0x80], xmm0
movzx esi, byte [rsp + 0x78]
mov eax, dword [rsp + 0x79]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x23], eax
test rbx, rbx
je 0x14005db1f
mov edx, 2
mov rcx, qword [rsp + 0x28]
call fcn.140003d40
cmp sil, 2
jne 0x14005db62
mov rax, qword [rsp + 0x38]
mov byte [rax + 0x18], 2
mov rcx, rdi
call fcn.14005cbc0
cmp qword [rsp + 0x40], 0
je 0x14005db4d
mov edx, 2
mov rcx, qword [rsp + 0x30]
call fcn.140003d40
nop
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [rsp + 0x38]
mov qword [rdx], rdi
movaps xmm0, xmmword [rsp + 0x80]
movups xmmword [rdx + 8], xmm0
mov byte [rdx + 0x18], sil
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x23]
mov dword [rdx + 0x19], eax
mov dword [rdx + 0x1c], ecx
cmp qword [rsp + 0x40], 0
jne 0x14005db3e
jmp 0x14005db4d
call sub.KERNEL32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov sil, 2
test rbx, rbx
jne 0x14005db10
jmp 0x14005db1f
lea rcx, str.internal_error:_entered_unreachable_codelibrary_std_src_syswindows_args.rs
lea r8, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140009e20
jmp 0x14005dbe1
lea rax, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, rdi
mov r8, rax
call fcn.14000a940
ud2
Function at 0x14005e530
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a8
mov qword [rsp + 0x78], r8
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor edi, edi
mov r15d, 0xffffffff
xor esi, esi
xor r13d, r13d
cmp r8, 0x201
jae 0x14005e5c0
jmp 0x14005e59f
jae 0x14005e666
cmp r8, 0x201
jae 0x14005e5c0
mov ebx, 0x200
lea rbp, [rsp + 0xa8]
mov r12, r8
jmp 0x14005e607
sub r8, r13
sub rsi, r13
cmp rsi, r8
jae 0x14005e5e7
lea rcx, [rsp + 0x38]
mov rdx, r13
call fcn.140044450
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x40]
cmp rdi, r15
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rsp + 0x48], r13
mov rsi, rdi
mov rbx, r13
mov rbp, qword [rsp + 0x28]
mov r12, r13
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rbp
mov edx, r12d
call sub.KERNEL32.dll_GetSystemDirectoryW
mov r14d, eax
test eax, eax
jne 0x14005e62d
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x14005e74f
mov r8d, r14d
cmp r12, r8
jne 0x14005e590
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x14005e773
add r12, r12
cmp r12, r15
cmovae r12, r15
mov r8, r12
cmp r8, 0x201
jb 0x14005e59f
jmp 0x14005e5c0
cmp rbx, r8
jb 0x14005e78d
lea rcx, [rsp + 0x88]
mov rdx, rbp
call fcn.14004a280
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
mov rax, qword [rsp + 0x80]
mov rdx, qword [rax]
mov r8, qword [rax + 8]
lea rcx, [rsp + 0x50]
call fcn.140047c90
mov rax, qword [rsp + 0x78]
cmp byte [rax], 0
jne 0x14005e6d3
lea rdx, [0x140089d38]
lea rcx, [rsp + 0x50]
mov r8d, 3
call fcn.1400488b0
mov rbx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
lea rcx, [rsp + 0x88]
mov rdx, rbx
call fcn.14004e2f0
cmp qword [rsp + 0x58], 0
je 0x14005e702
mov edx, 1
mov rcx, rbx
call fcn.140003d40
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x18], rax
movups xmm0, xmmword [rsp + 0x88]
movups xmmword [rcx + 8], xmm0
mov qword [rcx], 0
test rdi, rdi
je 0x14005e73a
mov edx, 2
mov rcx, qword [rsp + 0x28]
call fcn.140003d40
nop
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 8], rax
mov qword [rcx], 1
test rdi, rdi
jne 0x14005e72b
jmp 0x14005e73a
lea rcx, str.internal_error:_entered_unreachable_codelibrary_std_src_syswindows_args.rs
lea r8, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140009e20
jmp 0x14005e7a2
lea rax, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, rbx
mov r8, rax
call fcn.14000a940
ud2
Function at 0x14005e7f0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x448
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov r15d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor edi, edi
xor ebx, ebx
xor r14d, r14d
cmp r15, 0x201
jae 0x14005e860
jmp 0x14005e84f
jae 0x14005e90d
cmp r15, 0x201
jae 0x14005e860
mov r13d, 0x200
lea r12, [rsp + 0x48]
mov rbp, r15
jmp 0x14005e8af
sub r15, r14
sub rbx, r14
cmp rbx, r15
jae 0x14005e88a
lea rcx, [rsp + 0x30]
mov rdx, r14
mov r8, r15
call fcn.140044450
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rdi, qword [rsp + 0x38]
mov eax, 0xffffffff
cmp rdi, rax
mov r14d, 0xffffffff
cmovb r14, rdi
mov qword [rsp + 0x40], r14
mov rbx, rdi
mov r13, r14
mov r12, qword [rsp + 0x20]
mov rbp, r14
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, r12
mov edx, ebp
call sub.KERNEL32.dll_GetSystemDirectoryW
mov esi, eax
test eax, eax
jne 0x14005e8cf
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x14005e940
mov r15d, esi
cmp rbp, r15
jne 0x14005e840
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x14005e9b3
add rbp, rbp
mov eax, 0xffffffff
cmp rbp, rax
cmovae rbp, rax
mov r15, rbp
cmp r15, 0x201
jb 0x14005e84f
jmp 0x14005e860
cmp r13, r15
jb 0x14005e9cd
test esi, esi
je 0x14005e964
lea r14, [r15 + r15]
movzx eax, byte [0x140094300]
mov edx, 2
mov rcx, r14
call fcn.140003cb0
test rax, rax
je 0x14005e9e1
mov rsi, rax
jmp 0x14005e96c
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov qword [rcx], 0
test rdi, rdi
jne 0x14005e98f
jmp 0x14005e99e
mov esi, 2
xor r14d, r14d
mov rcx, rsi
mov rdx, r12
mov r8, r14
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x28]
mov qword [rax], rsi
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
test rdi, rdi
je 0x14005e99e
mov edx, 2
mov rcx, qword [rsp + 0x20]
call fcn.140003d40
nop
add rsp, 0x448
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.internal_error:_entered_unreachable_codelibrary_std_src_syswindows_args.rs
lea r8, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140009e20
jmp 0x14005e9ee
lea r8, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r15
mov rdx, r13
call fcn.14000a940
jmp 0x14005e9ee
mov ecx, 2
mov rdx, r14
call fcn.1400059f0
ud2
Function at 0x14005ea20
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a8
mov qword [rsp + 0x78], r8
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor edi, edi
mov r15d, 0xffffffff
xor esi, esi
xor r13d, r13d
cmp r8, 0x201
jae 0x14005eab0
jmp 0x14005ea8f
jae 0x14005eb56
cmp r8, 0x201
jae 0x14005eab0
mov ebx, 0x200
lea rbp, [rsp + 0xa8]
mov r12, r8
jmp 0x14005eaf7
sub r8, r13
sub rsi, r13
cmp rsi, r8
jae 0x14005ead7
lea rcx, [rsp + 0x38]
mov rdx, r13
call fcn.140044450
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x40]
cmp rdi, r15
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rsp + 0x48], r13
mov rsi, rdi
mov rbx, r13
mov rbp, qword [rsp + 0x28]
mov r12, r13
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rbp
mov edx, r12d
call sub.KERNEL32.dll_GetWindowsDirectoryW
mov r14d, eax
test eax, eax
jne 0x14005eb1d
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x14005ec3f
mov r8d, r14d
cmp r12, r8
jne 0x14005ea80
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x14005ec63
add r12, r12
cmp r12, r15
cmovae r12, r15
mov r8, r12
cmp r8, 0x201
jb 0x14005ea8f
jmp 0x14005eab0
cmp rbx, r8
jb 0x14005ec7d
lea rcx, [rsp + 0x88]
mov rdx, rbp
call fcn.14004a280
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
mov rax, qword [rsp + 0x80]
mov rdx, qword [rax]
mov r8, qword [rax + 8]
lea rcx, [rsp + 0x50]
call fcn.140047c90
mov rax, qword [rsp + 0x78]
cmp byte [rax], 0
jne 0x14005ebc3
lea rdx, [0x140089d38]
lea rcx, [rsp + 0x50]
mov r8d, 3
call fcn.1400488b0
mov rbx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
lea rcx, [rsp + 0x88]
mov rdx, rbx
call fcn.14004e2f0
cmp qword [rsp + 0x58], 0
je 0x14005ebf2
mov edx, 1
mov rcx, rbx
call fcn.140003d40
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x18], rax
movups xmm0, xmmword [rsp + 0x88]
movups xmmword [rcx + 8], xmm0
mov qword [rcx], 0
test rdi, rdi
je 0x14005ec2a
mov edx, 2
mov rcx, qword [rsp + 0x28]
call fcn.140003d40
nop
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 8], rax
mov qword [rcx], 1
test rdi, rdi
jne 0x14005ec1b
jmp 0x14005ec2a
lea rcx, str.internal_error:_entered_unreachable_codelibrary_std_src_syswindows_args.rs
lea r8, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140009e20
jmp 0x14005ec92
lea rax, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, rbx
mov r8, rax
call fcn.14000a940
ud2
Function at 0x14005f860
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
mov edx, 0x10
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14005f896
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [0x140052740]
mov qword [rsp + 0x48], rax
lea rax, str.fallback_RNG_broken:
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.140009d20
ud2
Function at 0x140060aff
Capabilities:
Decrypt data via sspi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
mov rsi, rcx
mov r8, qword [rdx + 0x70]
mov rcx, qword [rdx + 0x58]
mov rdx, qword [rdx + 0x68]
call fcn.140060a4b
xor ecx, ecx
test rax, rax
cmove edx, ecx
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rcx + 0x30], xmm0
mov dword [rcx], edx
mov dword [rcx + 4], 1
mov qword [rcx + 8], rax
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movabs rax, 0x400000000
lea rdx, [rsp + 0x60]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
lea rcx, [rdi + 0x98]
xor r8d, r8d
xor r9d, r9d
call sub.secur32.dll_DecryptMessage
cmp eax, 0x80090318
je 0x140060bc9
test eax, eax
je 0x140060be5
cmp eax, 0x90317
je 0x140060c51
cmp eax, 0x90321
jne 0x140060c59
mov dword [rdi + 0x10], 0x10000
xor ebx, ebx
mov byte [rdi + 0x14], bl
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x70]
mov eax, 0
cmove eax, dword [rsp + 0x50]
sub rdx, rax
mov rcx, rdi
call fcn.140060a85
and qword [rdi + 0xd0], 0
mov byte [rsi + 1], bl
jmp 0x140060c67
cmp dword [rsp + 0x34], 4
mov eax, 1
cmove eax, dword [rsp + 0x30]
mov qword [rdi + 0xd0], rax
mov byte [rsi + 1], 0
jmp 0x140060c55
mov rcx, qword [rsp + 0x38]
mov r8, qword [rdi + 0x58]
mov r9, qword [rdi + 0x68]
sub rcx, r8
mov edx, dword [rsp + 0x30]
add rdx, rcx
lea rbx, [rdi + 0x38]
and qword [rdi + 0x48], 0
call fcn.140060c7b
lea r8, [rdx + rax]
mov rcx, rbx
mov rdx, rax
call fcn.14002dc1d
and qword [rdi + 0x50], 0
xor ebx, ebx
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x70]
mov eax, dword [rsp + 0x50]
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.140060a85
xor eax, eax
cmp qword [rdi + 0x70], rbx
sete al
mov qword [rdi + 0xd0], rax
mov byte [rsi + 1], 0
jmp 0x140060c67
mov byte [rsi + 1], 1
xor ebx, ebx
jmp 0x140060c67
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov bl, 1
mov byte [rsi], bl
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
Function at 0x140068390
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140069160
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140069160
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140068400
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140094384]
mov rbx, rcx
test esi, esi
jle 0x140068530
mov rax, qword [0x140094388]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14006844b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400684d5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140068430
mov rcx, rbx
call fcn.140068e80
mov rdi, rax
test rax, rax
je 0x140068552
mov rax, qword [0x140094388]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140068fc0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140094388]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140068537
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400684ce
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400684e0
add dword [0x140094384], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140094388]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400684ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140068390
nop dword [rax]
xor esi, esi
jmp 0x140068458
mov rax, qword [0x140094388]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140068390
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140068390
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140068af0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400943e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400943c0]
test rbx, rbx
je 0x140068b4c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140068b43
test eax, eax
jne 0x140068b43
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140068b28
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140068e80
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14008b700]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140068ea0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140068ea8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140068ea0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140068efd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140068ef4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140068ea0
add rax, 0x28
cmp rax, r9
jne 0x140068ee0
xor eax, eax
ret

Function at 0x140068f00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14008b700]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140068f1f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140068f28
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140068f1f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140068fc0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14008b700]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140068fdf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140068fe8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001730
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x98
cmp byte [0x140095e83], 0
xorps xmm0, xmm0
mov eax, dword [0x140095e80]
movups xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x40], eax
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmm0, xmmword [0x140095e70]
movups xmmword [rsp + 0x30], xmm0
je 0x1400018ed
xor ecx, ecx
cmp dword [0x140110090], 2
jl 0x1400018ae
movdqa xmm0, xmmword [0x140103fe0]
lea rdx, [rsp + 0x34]
movdqa xmm4, xmmword [0x140103f80]
movdqa xmm3, xmmword [0x140104300]
movdqa xmm5, xmmword [0x140103fa0]
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, dword [rsp + 0x20]
movaps xmmword [rsp + 0x80], xmm6
movdqa xmm6, xmmword [0x140103fc0]
nop dword [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm4
add ecx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movd dword [rdx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x10
jl 0x1400017c0
movaps xmm6, xmmword [rsp + 0x80]
cmp ecx, 0x14
jge 0x1400018ed
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop dword [rax]
mov eax, 0x5397829d
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x31
movzx eax, cl
inc ecx
sub al, dl
add al, 0x30
xor byte [r8 - 1], al
cmp ecx, 0x14
jl 0x1400018c0
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x30]
call fcn.140002df0
add rsp, 0x98
ret
Function at 0x140003af0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x138
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x140003b57
lea r8, [r10 + 0x10]
movabs r11, 0xb5026f5aa96619e9
mov rdx, qword [r8]
xor rdx, qword [r8 - 8]
lea r8, [r8 + 8]
and rdx, 0xffffffff80000000
xor rdx, qword [r8 - 8]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4d0]
xor rcx, rdx
mov qword [r8 + 0x9b0], rcx
sub r9, 1
jne 0x140003b12
mov ecx, dword [r10]
jmp 0x140003c78
cmp ecx, 0x270
jb 0x140003c78
mov qword [rsp + 0x10], rbx
movabs r11, 0xb5026f5aa96619e9
lea rbx, [r10 + 0x9c8]
mov qword [rsp], rdi
mov rax, qword [rbx]
mov edi, 0x9c
nop word [rax + rax]
mov r9, qword [rbx + 8]
mov r8, rbx
add rbx, 8
mov rdx, r9
xor rdx, rax
and rdx, 0xffffffff80000000
xor rdx, r9
movzx eax, dl
and al, 1
neg al
mov rax, r9
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4e0]
xor rcx, rdx
mov qword [r8 - 0x9c0], rcx
sub rdi, 1
jne 0x140003b90
lea rbx, [r10 + 0xea8]
mov edi, 0x9b
mov r9, qword [rbx]
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rbx + 8]
mov rdx, rbx
xor r9, r8
add rbx, 8
and r9, 0xffffffff80000000
xor r9, r8
movzx eax, r9b
and al, 1
neg al
sbb rcx, rcx
shr r9, 1
and rcx, r11
xor rcx, qword [rdx - 0xea0]
xor rcx, r9
mov r9, r8
mov qword [rdx - 0x9c0], rcx
sub rdi, 1
jne 0x140003bf0
mov rdx, qword [r10 + 8]
xor rdx, qword [r10 + 0x1380]
mov rdi, qword [rsp]
and rdx, 0xffffffff80000000
xor rdx, qword [r10 + 8]
mov rbx, qword [rsp + 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r10 + 0x4e0]
xor rcx, rdx
mov qword [r10 + 0x9c0], rcx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov rdx, qword [r10 + rax*8 + 8]
lea eax, [rcx + 1]
mov dword [r10], eax
mov rcx, rdx
mov rax, qword [r10 + 0x1388]
shr rcx, 0x1d
and rax, rcx
movabs rcx, 0x38eb3ffff6d3
xor rdx, rax
mov rax, rdx
and rax, rcx
shl rax, 0x11
xor rdx, rax
mov rax, rdx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rdx, rax
mov rax, rdx
shr rax, 0x2b
xor rax, rdx
add rsp, 8
ret
Function at 0x140004070
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140110040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x141425a38]
mov rbx, r8
lea rsi, [rdi + 0x164]
lea rcx, [rdi + 0x16c]
mov dword [rsi], 1
call sub.VCRUNTIME140.dll_memcpy
mov dword [rdi + 0x168], ebx
add rbx, 8
je 0x140004147
mov rax, qword [rdi]
test rax, rax
je 0x140004105
mov rcx, qword [rax + 8]
cmp rcx, 0xffffffffffffffff
je 0x140004105
test rsi, rsi
je 0x140004105
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 0
mov r8d, ebx
mov qword [rsp + 0x20], 0
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x140004105
cmp dword [rsp + 0x30], ebx
je 0x140004147
mov r8, qword [rdi + 0x18]
test r8, r8
je 0x140004124
mov eax, dword [rdi + 8]
dec eax
test eax, 0xfffffffd
jne 0x140004124
mov ecx, dword [rdi + 0x60]
lea rdx, [rdi + 0x64]
call r8
mov rbx, qword [rdi]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0xffffffffffffffff
xor al, al
mov byte [rbx], 0
mov dword [rdi + 8], 0
jmp 0x140004149
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400905f0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret