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

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x820
mov rbp, rcx
mov rbx, rdx
test rcx, rcx
je 0x1401966e7
test rdx, rdx
je 0x1401966e7
mov r10, qword [rcx]
test r10, r10
je 0x1401966e7
mov eax, dword [rdx + 0x18]
mov r11, qword [rdx]
lea r12, [rsp + 0x20]
mov ecx, pe_nt_image_headers64
mov r13d, dword [rdx + 0x1c]
mov rdi, r12
lea r8, [rsp + 0x420]
mov r9, rax
shl rax, 0xa
lea rsi, [r11 + rax - 0x400]
rep movsq qword [rdi], qword [rsi]
cmp r13d, 1
jbe 0x14019666e
cmp r13d, 3
jbe 0x1401966f9
lea r14d, [r13 - 4]
lea esi, [r9 + r9 - 1]
mov edi, 3
and r14d, 0xfffffffe
add r14d, 5
mov r8d, esi
lea ecx, [rsi + r9]
mov rax, r12
xor edx, edx
shl r8, 0xa
mov rsi, rcx
shl rcx, 0xa
add r8, r11
add rcx, r11
nop dword [rax]
movdqu xmm0, xmmword [r8 + rdx]
movdqu xmm1, xmmword [r8 + rdx + 0x10]
add rax, 0x20
pxor xmm0, xmmword [rax - 0x20]
pxor xmm1, xmmword [rax - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
movdqu xmm2, xmmword [rcx + rdx + 0x10]
movdqu xmm3, xmmword [rcx + rdx]
add rdx, 0x20
pxor xmm1, xmm2
pxor xmm0, xmm3
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
cmp rdx, 0x400
jne 0x140196610
lea eax, [rdi + 2]
add esi, r9d
cmp r14d, eax
je 0x1401966fe
mov edi, eax
jmp 0x1401965f0
mov rdi, r8
mov edx, dword [rbp + 8]
mov ecx, pe_nt_image_headers64
mov rsi, r12
rep movsq qword [rdi], qword [rsi]
lea rsi, [rsp + 0x420]
mov r9d, 0x400
mov rcx, r10
mov r8, rsi
call fcn.140199d50
mov r9d, dword [0x1407b2f30]
test r9d, r9d
jne 0x140196760
mov ecx, dword [rbx + 0x28]
test ecx, ecx
jne 0x140196795
mov esi, dword [rbx + 0x10]
mov edx, dword [0x1407b2f30]
mov rcx, qword [rbx]
shl esi, 0xa
test edx, edx
jne 0x14019674a
mov eax, dword [rbx + 0x2c]
test eax, eax
jne 0x1401966e7
mov rax, qword [rbp + 0x68]
mov rcx, qword [rbx]
test rax, rax
je 0x1401967a6
mov rdx, rsi
call rax
nop
add rsp, 0x820
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov edi, 1
add edi, 1
lea r8, [rsp + 0x420]
mov ecx, edi
imul ecx, r9d
sub ecx, 1
mov edx, ecx
mov rax, r12
shl rdx, 0xa
add rdx, r11
nop
movdqu xmm0, xmmword [rdx]
pxor xmm0, xmmword [rax]
add rax, 0x10
add rdx, 0x10
movups xmmword [rax - 0x10], xmm0
cmp rax, r8
jne 0x140196720
add ecx, r9d
cmp edi, r13d
jae 0x14019666e
add edi, 1
jmp 0x140196712
test rcx, rcx
je 0x1401966ca
mov rdx, rsi
call fcn.1401961a0
jmp 0x1401966ca
mov edx, 0x400
mov rcx, r12
call fcn.1401961a0
mov r8d, dword [0x1407b2f30]
test r8d, r8d
je 0x1401966a8
mov rcx, rsi
mov edx, 0x400
call fcn.1401961a0
mov ecx, dword [rbx + 0x28]
test ecx, ecx
je 0x1401966b3
mov edx, dword [rbp + 8]
mov rcx, qword [rbp]
call fcn.140197d00
jmp 0x1401966b3
call fcn.140225b60
jmp 0x1401966e7
Function at 0x140199ab0
Capabilities:
Hash data using sha512

Disassembly:
pxor xmm0, xmm0
movabs r8, 0xbb67ae8584caa73b
movabs r9, 0x3c6ef372fe94f82b
movabs r10, 0xa54ff53a5f1d36f1
movabs rax, 0x6a09e667f3bcc908
movabs r11, 0x510e527fade682d1
or rdx, 0x1010000
mov qword [rcx + 8], r8
movabs r8, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x10], r9
xor rdx, rax
movabs r9, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x18], r10
movabs r10, 0x5be0cd19137e2179
mov qword [rcx + 0x20], r11
mov qword [rcx + 0x28], r8
mov qword [rcx + 0x30], r9
mov qword [rcx + 0x38], r10
mov qword [rcx + 0xd0], 0
mov qword [rcx], rdx
movups xmmword [rcx + 0x40], xmm0
ret
Function at 0x14019eca4
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
xor eax, eax
mov rbp, rcx
mov rbx, rdx
test dl, 0x3f
jne 0x14019edc7
mov qword [rsp + 0x20], rcx
mov r9d, 0x20
shr rbx, 6
mov rdi, rbp
mov edx, 1
mov ecx, 0x200
mov esi, 1
mov dword [rsp + 0x28], 0x40
call fcn.1400072e0
cmp ebx, esi
je 0x14019ed2d
mov eax, esi
mov dword [rsp + 0x28], 0x40
mov r8, rdi
inc esi
shl rax, 6
mov r9d, 0x40
mov edx, 1
mov ecx, 0x200
add rax, rbp
add rdi, 0x40
mov qword [rsp + 0x20], rax
call fcn.1400072e0
jmp 0x14019ecf3
mov r13d, 3
lea r14d, [rbx - 1]
lea r15, [rsp + 0x30]
xor r12d, r12d
cmp ebx, r12d
je 0x14019edbc
lea eax, [r14 + r12]
xor edx, edx
mov r8, r12
mov ecx, 0x10
div ebx
shl r8, 6
lea rdi, [rsp + 0x30]
mov eax, dword [rbp + r8]
shl rdx, 6
lea rsi, [rbp + rdx]
xor edx, edx
div ebx
rep movsd dword [rdi], dword [rsi]
xor eax, eax
shl rdx, 6
add rdx, rbp
mov ecx, dword [r15 + rax]
xor ecx, dword [rdx + rax]
mov dword [r15 + rax], ecx
add rax, 4
cmp rax, 0x40
jne 0x14019ed7a
add r8, rbp
mov edx, 1
mov ecx, 0x200
inc r12
mov qword [rsp + 0x20], r8
mov r9d, 0x40
mov r8, r15
mov dword [rsp + 0x28], 0x40
call fcn.1400072e0
jmp 0x14019ed3f
dec r13d
jne 0x14019ed3c
mov al, 1
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14019edd8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, qword [r9 + 8]
mov r14, qword [r9]
mov r9d, 0x40
shr rbp, 6
mov r12d, edx
mov eax, edx
xor edx, edx
mov rbx, rcx
div ebp
mov ecx, 0x10
mov rdi, rbx
mov r13d, r8d
mov r8, rbx
shl rdx, 6
lea rsi, [r14 + rdx]
mov edx, 1
rep movsd dword [rdi], dword [rsi]
mov ecx, 0x200
xor dword [rbx], r12d
mov dword [rsp + 0x28], 0x40
mov qword [rsp + 0x20], rbx
call fcn.1400072e0
xor ecx, ecx
cmp ecx, r13d
je 0x14019ee7f
mov edx, ecx
mov eax, ecx
and edx, 0xf
xor eax, r12d
imul eax, eax, 0x1000193
xor eax, dword [rbx + rdx*4]
xor edx, edx
div ebp
xor eax, eax
shl rdx, 6
add rdx, r14
imul r8d, dword [rbx + rax], 0x1000193
xor r8d, dword [rdx + rax]
mov dword [rbx + rax], r8d
add rax, 4
cmp rax, 0x40
jne 0x14019ee61
inc ecx
jmp 0x14019ee3c
mov dword [rsp + 0x28], 0x40
mov r8, rbx
mov edx, 1
mov ecx, 0x200
mov qword [rsp + 0x20], rbx
mov r9d, 0x40
call fcn.1400072e0
nop
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x14019eeb4
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x148
xor eax, eax
mov r12, rdx
mov qword [rsp + 0x1a0], r8
mov rbp, rcx
mov rdx, qword [rsp + 0x1b0]
mov rbx, r9
test r9d, 0x1f
jne 0x14019f08c
lea rsi, [rsp + 0x80]
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
mov dword [rsp + 0x28], 0x40
mov qword [rsp + 0x20], rsi
mov r8, rsi
mov edx, 1
mov ecx, 0x200
mov rax, qword [rsp + 0x1b8]
mov r9d, 0x28
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm1
mov qword [rsp + 0xa0], rax
call fcn.1400072e0
xor eax, eax
mov rdx, rax
and edx, 0xf
mov edx, dword [rsp + rdx*4 + 0x80]
mov dword [rsi + rax*4 + 0x40], edx
inc rax
cmp rax, 0x20
jne 0x14019ef45
lea rax, [rsp + 0x140]
shr rbx, 7
xor r15d, r15d
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x80]
mov edx, r15d
lea r13, [rsp + 0xc0]
mov rdi, rsi
and edx, 0x1f
xor eax, r15d
imul eax, eax, 0x1000193
xor eax, dword [rsp + rdx*4 + 0xc0]
xor edx, edx
div ebx
lea r14d, [rdx + rdx]
test r12, r12
je 0x14019efbe
mov r8d, r14d
shl r8, 6
add r8, r12
jmp 0x14019efde
mov r9, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x30]
mov r8d, 0x100
mov edx, r14d
call fcn.14019edd8
mov r8, qword [rsp + 0x30]
xor ecx, ecx
imul r9d, dword [r13 + rcx], 0x1000193
xor r9d, dword [r8 + rcx]
mov dword [r13 + rcx], r9d
add rcx, 4
cmp rcx, 0x40
jne 0x14019efe0
add r13, 0x40
inc r14d
cmp qword [rsp + 0x38], r13
jne 0x14019efad
inc r15d
cmp r15d, 0x40
jne 0x14019ef7d
xor edx, edx
imul eax, dword [rdi + 0x40], 0x1000193
xor eax, dword [rdi + 0x44]
mov ecx, edx
add edx, 4
imul eax, eax, 0x1000193
xor eax, dword [rdi + 0x48]
shr ecx, 2
add rdi, 0x10
imul eax, eax, 0x1000193
xor eax, dword [rdi + 0x3c]
mov dword [rsp + rcx*4 + 0xc0], eax
cmp edx, 0x20
jne 0x14019f019
movups xmm2, xmmword [rsp + 0xc0]
mov r8, rsi
mov edx, 1
mov ecx, 0x100
movups xmm3, xmmword [rsp + 0xd0]
mov r9d, 0x60
movups xmmword [rbp + 0x20], xmm2
movups xmmword [rbp + 0x30], xmm3
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x20], rbp
call fcn.1400072e0
mov al, 1
add rsp, 0x148
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14019f0a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov eax, dword [r9 + 0x20]
mov r14, qword [r9]
mov edx, edx
mov rbx, rcx
mov ecx, dword [r9 + 0x24]
mov r13d, r8d
mov r12, rdx
add rax, rdx
mov edx, dword [r9 + 0x1c]
mov rdi, rbx
mov esi, r12d
mov r8, rbx
mov rbp, r9
imul rax, rdx
mov edx, 1
shr rax, cl
imul eax, dword [r9 + 0x18]
mov ecx, 0x10
mov r9d, 0x40
sub esi, eax
shl rsi, 6
add rsi, r14
rep movsd dword [rdi], dword [rsi]
mov ecx, 0x200
xor dword [rbx], r12d
mov dword [rsp + 0x28], 0x40
mov qword [rsp + 0x20], rbx
call fcn.1400072e0
xor r8d, r8d
cmp r8d, r13d
je 0x14019f175
mov edx, r8d
mov eax, r8d
and edx, 0xf
xor eax, r12d
imul eax, eax, 0x1000193
xor eax, dword [rbx + rdx*4]
mov edx, dword [rbp + 0x20]
mov ecx, eax
add rdx, rcx
mov ecx, dword [rbp + 0x1c]
imul rdx, rcx
mov ecx, dword [rbp + 0x24]
shr rdx, cl
imul edx, dword [rbp + 0x18]
sub eax, edx
xor edx, edx
shl rax, 6
add rax, r14
imul ecx, dword [rbx + rdx], 0x1000193
xor ecx, dword [rax + rdx]
mov dword [rbx + rdx], ecx
add rdx, 4
cmp rdx, 0x40
jne 0x14019f159
inc r8d
jmp 0x14019f11b
mov dword [rsp + 0x28], 0x40
mov r8, rbx
mov edx, 1
mov ecx, 0x200
mov qword [rsp + 0x20], rbx
mov r9d, 0x40
call fcn.1400072e0
nop
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x14019f1aa
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov r15, qword [r9]
mov r11d, edx
mov r14d, r8d
mov rbx, rcx
mov rbp, r9
lea rax, [r11 + 4]
mov r13, r11
mov r12, rcx
mov r8, rcx
mov qword [rsp + 0x38], rax
mov eax, dword [rbp + 0x20]
mov edx, dword [rbp + 0x1c]
mov esi, r11d
mov rdi, r8
mov ecx, dword [rbp + 0x24]
mov r9d, 0x40
mov qword [rsp + 0x48], r11
add rax, r11
mov qword [rsp + 0x40], r8
imul rax, rdx
mov edx, 1
shr rax, cl
imul eax, dword [rbp + 0x18]
mov ecx, 0x10
sub esi, eax
shl rsi, 6
add rsi, r15
rep movsd dword [rdi], dword [rsi]
mov ecx, 0x200
xor dword [r8], r11d
mov qword [rsp + 0x20], r8
mov dword [rsp + 0x28], 0x40
call fcn.1400072e0
mov r11, qword [rsp + 0x48]
mov r8, qword [rsp + 0x40]
inc r11
add r8, 0x40
cmp qword [rsp + 0x38], r11
jne 0x14019f1db
xor r8d, r8d
cmp r8d, r14d
je 0x14019f343
mov eax, r8d
xor r9d, r9d
and eax, 0xf
lea r11, [rbx + rax*4]
lea eax, [r13 + r9]
mov edx, dword [rbp + 0x20]
add r11, 0x40
xor eax, r8d
imul eax, eax, 0x1000193
xor eax, dword [r11 - 0x40]
mov ecx, eax
add rdx, rcx
mov ecx, dword [rbp + 0x1c]
imul rdx, rcx
mov ecx, dword [rbp + 0x24]
shr rdx, cl
imul edx, dword [rbp + 0x18]
sub eax, edx
shl rax, 6
add rax, r15
mov qword [rsp + r9*8 + 0x50], rax
inc r9
prefetcht0 byte [rax]
cmp r9, 4
jne 0x14019f268
mov rcx, qword [rsp + 0x50]
xor eax, eax
imul edx, dword [rbx + rax], 0x1000193
xor edx, dword [rcx + rax]
mov dword [rbx + rax], edx
add rax, 4
cmp rax, 0x40
jne 0x14019f2b8
mov rcx, qword [rsp + 0x58]
xor eax, eax
imul edx, dword [rbx + rax + 0x40], 0x1000193
xor edx, dword [rcx + rax]
mov dword [rbx + rax + 0x40], edx
add rax, 4
cmp rax, 0x40
jne 0x14019f2d6
mov rcx, qword [rsp + 0x60]
xor eax, eax
imul edx, dword [rbx + rax + 0x80], 0x1000193
xor edx, dword [rcx + rax]
mov dword [rbx + rax + 0x80], edx
add rax, 4
cmp rax, 0x40
jne 0x14019f2f6
mov rcx, qword [rsp + 0x68]
xor eax, eax
imul edx, dword [rbx + rax + 0xc0], 0x1000193
xor edx, dword [rcx + rax]
mov dword [rbx + rax + 0xc0], edx
add rax, 4
cmp rax, 0x40
jne 0x14019f31c
inc r8d
jmp 0x14019f252
add rbx, 0x100
mov qword [rsp + 0x20], r12
mov r8, r12
mov edx, 1
mov r9d, 0x40
mov dword [rsp + 0x28], 0x40
mov ecx, 0x200
add r12, 0x40
call fcn.1400072e0
cmp rbx, r12
jne 0x14019f34a
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1401e65a2
Capabilities:
Encode data using xor

Disassembly:
mov r9d, 0x48
jmp fcn.1401e3b25
Function at 0x140208160
Capabilities:
Encode data using base64

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov eax, dword [rcx + 0x80]
and eax, 0x3f
lea r8d, [rax + 1]
mov byte [rcx + rax], pe_nt_image_headers64
cmp r8d, 0x20
mov eax, r8d
mov rsi, rdx
mov rbx, rcx
lea rdx, [rcx + rax]
lea rbp, [rcx + 0x40]
jbe 0x1402081b8
mov ecx, 0x40
xor eax, eax
mov rdi, rdx
mov rdx, rbp
sub ecx, r8d
rep stosb byte [rdi], al
mov rcx, rbx
mov rdi, rbx
call fcn.140205c90
mov ecx, 8
xor eax, eax
rep stosd dword [rdi], eax
jmp 0x1402081c7
mov ecx, 0x20
xor eax, eax
mov rdi, rdx
sub ecx, r8d
rep stosb byte [rdi], al
mov rax, qword [rbx + 0x80]
xorps xmm0, xmm0
movups xmmword [rbx + 0x20], xmm0
mov rdx, rax
shr rdx, 0x3d
bswap rdx
mov qword [rbx + 0x30], rdx
shl rax, 3
bswap rax
mov qword [rbx + 0x38], rax
mov rdx, rbp
mov rcx, rbx
call fcn.140205c90
xor eax, eax
mov rdx, qword [rbx + rax + 0x40]
mov qword [rsi + rax], rdx
add rax, 8
cmp rax, 0x40
jne 0x1402081fb
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x14020f3f0
Capabilities:
Parse pe header

Disassembly:
push rsi
sub rsp, 0x30
mov rax, qword [rcx + 0x18]
movzx edx, byte [rax]
cmp dl, 0x4c
je 0x14020f460
jg 0x14020f420
sub edx, 0x49
cmp dl, 1
ja 0x14020f470
add rax, 1
mov qword [rcx + 0x18], rax
add rsp, 0x30
pop rsi
jmp fcn.14020f490
cmp dl, 0x58
jne 0x14020f470
add rax, 1
mov esi, dword [rcx + 0x4c]
mov dword [rcx + 0x4c], 1
mov qword [rcx + 0x18], rax
mov qword [rsp + 0x28], rcx
call fcn.14020f760
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rcx + 0x18]
mov dword [rcx + 0x4c], esi
cmp byte [rdx], 0x45
jne 0x14020f480
add rdx, 1
mov qword [rcx + 0x18], rdx
add rsp, 0x30
pop rsi
ret
add rsp, 0x30
pop rsi
jmp fcn.14020f210
add rsp, 0x30
pop rsi
jmp fcn.14020db60
xor eax, eax
jmp 0x14020f45a
Function at 0x1402188d0
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.140225420
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.140225420
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 0x140218940
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140832fb4]
mov rbx, rcx
test esi, esi
jle 0x140218a70
mov rax, qword [0x140832fb8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14021898b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140218a15
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140218970
mov rcx, rbx
call fcn.1402193c0
mov rdi, rax
test rax, rax
je 0x140218a92
mov rax, qword [0x140832fb8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140219500
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140832fb8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140218a77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140218a0e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140218a20
add dword [0x140832fb4], 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 [0x140832fb8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140218a0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1402188d0
nop dword [rax]
xor esi, esi
jmp 0x140218998
mov rax, qword [0x140832fb8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1402188d0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1402188d0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140219030
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140833020]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140833000]
test rbx, rbx
je 0x14021908c
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 0x140219083
test eax, eax
jne 0x140219083
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140219068
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 0x1402193c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1404c8960]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1402193e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1402193e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1402193e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14021943d
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 0x140219434
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1402193e0
add rax, 0x28
cmp rax, r9
jne 0x140219420
xor eax, eax
ret

Function at 0x140219440
Capabilities:
Parse pe header

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

Function at 0x140219500
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1404c8960]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14021951f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140219528
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14021a4f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
mov rbx, rcx
call sub.msvcrt.dll__errno
mov dword [rax], 0
test rbx, rbx
je 0x14021a6a8
cmp byte [rbx], 0
je 0x14021a670
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14021a6c0
test al, 0x10
je 0x14021a670
lea rsi, [rsp + 0x20]
mov rdx, rbx
mov r8d, 0x104
mov rcx, rsi
call sub.msvcrt.dll__fullpath
mov rcx, rsi
call sub.msvcrt.dll_strlen
lea rcx, [rax + 0x24b]
mov rbx, rax
mov rbp, rax
call sub.msvcrt.dll_malloc
mov rdx, rax
test rax, rax
je 0x14021a6e8
lea r8, [rax + 0x244]
lea rax, [rbx + 1]
cmp eax, 8
jb 0x14021a630
mov rcx, qword [rsp + 0x20]
lea rdi, [rdx + 0x24c]
and rdi, 0xfffffffffffffff8
mov qword [rdx + 0x244], rcx
mov ecx, eax
mov r9, qword [rsi + rcx - 8]
mov qword [r8 + rcx - 8], r9
mov rcx, r8
sub rcx, rdi
sub rsi, rcx
add ecx, eax
shr ecx, 3
rep movsq qword [rdi], qword [rsi]
cmp byte [rdx + 0x244], 0
je 0x14021a5d8
movzx ecx, byte [rdx + rbx + 0x243]
cmp cl, 0x5c
je 0x14021a5d8
cmp cl, 0x2f
jne 0x14021a690
mov eax, 0x2a
mov ecx, 0x20
mov word [r8 + rbp], ax
lea r8, [rdx + 0x130]
xor eax, eax
mov qword [rdx + 0x238], 0xffffffffffffffff
mov rdi, r8
mov dword [rdx + 0x240], 0
mov qword [rdx + 0x128], 0
rep stosq qword [rdi], rax
mov rax, rdx
mov dword [rdi], 0
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
test al, 4
jne 0x14021a6d0
test eax, eax
je 0x14021a5b9
movzx ecx, byte [rsp + 0x20]
mov byte [rdx + 0x244], cl
test al, 2
je 0x14021a5b9
mov ecx, eax
movzx r9d, word [rsi + rcx - 2]
mov word [r8 + rcx - 2], r9w
jmp 0x14021a5b9
call sub.msvcrt.dll__errno
xor edx, edx
mov dword [rax], 0x14
mov rax, rdx
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov ecx, 0x5c
mov rbp, rax
mov word [r8 + rbx], cx
jmp 0x14021a5d8
call sub.msvcrt.dll__errno
xor edx, edx
mov dword [rax], 0xe
jmp 0x14021a67d
call sub.msvcrt.dll__errno
xor edx, edx
mov dword [rax], 2
jmp 0x14021a67d
mov ecx, dword [rsp + 0x20]
mov dword [r8], ecx
mov ecx, eax
mov r9d, dword [rsi + rcx - 4]
mov dword [r8 + rcx - 4], r9d
jmp 0x14021a5b9
call sub.msvcrt.dll__errno
xor edx, edx
mov dword [rax], 0xc
jmp 0x14021a67d
Function at 0x14021b950
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2d
lea rdx, str._buffer_overflow_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x14021b980
mov ecx, 8
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x14021b9a0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x14021b9d0
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x140228200
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140833b80], 1
je 0x1402282a0
lea rdi, [0x140833b80]
mov rcx, rdi
call fcn.140227ba0
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.1402274b0
mov esi, dword [0x140833b80]
test esi, esi
jne 0x140228278
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1403ff578], eax
cmp eax, 0xffffffff
je 0x1403f8646
mov dword [0x140833b80], 1
mov rcx, rbp
call fcn.140227780
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140227e80
cmp esi, 1
je 0x14022825c
mov ecx, 2
call qword [fcn.140225420]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__ld_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14022825c
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [0x28]
ud2
Function at 0x1402282b0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.140227f90
mov rbx, rax
test rax, rax
je 0x1402283ac
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.140227a90
cmp eax, 1
je 0x1402283b8
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1403f864c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1403ff578]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1403f864c
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.140227df0
nop
nop

Function at 0x1402283c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140228200
mov ecx, dword [0x1403ff578]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1402283e0
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.1402282b0