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

Disassembly:
test rdx, rdx
je 0x18002ffad
lea rax, [rdx - 1]
movabs r8, 0x1fffffffffffffff
and r8, rax
mov rax, rcx
cmp r8, 3
jb 0x18002ff9a
inc r8
mov r9, r8
and r9, 0xfffffffffffffffc
lea rax, [rcx + r9*8]
xor r10d, r10d
movaps xmm0, xmmword [0x180083790]
nop word [rax + rax]
movups xmm1, xmmword [rcx + r10*8]
movups xmm2, xmmword [rcx + r10*8 + 0x10]
xorps xmm1, xmm0
xorps xmm2, xmm0
movups xmmword [rcx + r10*8], xmm1
movups xmmword [rcx + r10*8 + 0x10], xmm2
add r10, 4
cmp r9, r10
jne 0x18002ff70
cmp r8, r9
je 0x18002ffad
lea rcx, [rcx + rdx*8]
nop
xor byte [rax + 7], 0x80
add rax, 8
cmp rax, rcx
jne 0x18002ffa0
ret

Function at 0x18002ffb0
Capabilities:
Encode data using xor

Disassembly:
test rdx, rdx
je 0x18003002d
lea rax, [rdx - 1]
movabs r8, 0x3fffffffffffffff
and r8, rax
mov rax, rcx
cmp r8, 7
jb 0x18003001a
inc r8
mov r9, r8
and r9, 0xfffffffffffffff8
lea rax, [rcx + r9*4]
xor r10d, r10d
movaps xmm0, xmmword [0x1800837a0]
nop word [rax + rax]
movups xmm1, xmmword [rcx + r10*4]
movups xmm2, xmmword [rcx + r10*4 + 0x10]
xorps xmm1, xmm0
xorps xmm2, xmm0
movups xmmword [rcx + r10*4], xmm1
movups xmmword [rcx + r10*4 + 0x10], xmm2
add r10, 8
cmp r9, r10
jne 0x18002fff0
cmp r8, r9
je 0x18003002d
lea rcx, [rcx + rdx*4]
nop
xor byte [rax + 3], 0x80
add rax, 4
cmp rax, rcx
jne 0x180030020
ret

Function at 0x180036f90
Capabilities:
Encode data using xor

Disassembly:
test rdx, rdx
je 0x180037045
lea rax, [rdx - 1]
movabs r8, 0x3fffffffffffffff
and r8, rax
mov rax, rcx
cmp r8, 7
jb 0x180037018
inc r8
mov r9, r8
and r9, 0xfffffffffffffff8
lea rax, [rcx + r9*4]
xor r10d, r10d
pcmpeqd xmm0, xmm0
movdqa xmm1, xmmword [0x1800837a0]
movdqu xmm2, xmmword [rcx + r10*4]
movdqu xmm3, xmmword [rcx + r10*4 + 0x10]
movdqa xmm4, xmm2
pcmpgtd xmm4, xmm0
movdqa xmm5, xmm3
pcmpgtd xmm5, xmm0
por xmm4, xmm1
por xmm5, xmm1
pxor xmm4, xmm2
pxor xmm5, xmm3
movdqu xmmword [rcx + r10*4], xmm4
movdqu xmmword [rcx + r10*4 + 0x10], xmm5
add r10, 8
cmp r9, r10
jne 0x180036fd0
cmp r8, r9
je 0x180037045
lea rcx, [rcx + rdx*4]
nop dword [rax]
mov edx, dword [rax]
mov r8d, edx
not r8d
sar r8d, 0x1f
or r8d, 0x80000000
xor r8d, edx
mov dword [rax], r8d
lea rdx, [rax + 4]
mov rax, rdx
cmp rdx, rcx
jne 0x180037020
ret
Function at 0x180037050
Capabilities:
Encode data using xor

Disassembly:
test rdx, rdx
je 0x180037112
lea rax, [rdx - 1]
movabs r8, 0x1fffffffffffffff
and r8, rax
mov rax, rcx
cmp r8, 3
jb 0x1800370da
inc r8
mov r9, r8
and r9, 0xfffffffffffffffc
lea rax, [rcx + r9*8]
xor r10d, r10d
pcmpeqd xmm0, xmm0
movdqa xmm1, xmmword [0x180083790]
movdqu xmm2, xmmword [rcx + r10*8]
movdqu xmm3, xmmword [rcx + r10*8 + 0x10]
pshufd xmm4, xmm2, 0xf5
pcmpgtd xmm4, xmm0
pshufd xmm5, xmm3, 0xf5
pcmpgtd xmm5, xmm0
por xmm4, xmm1
por xmm5, xmm1
pxor xmm4, xmm2
pxor xmm5, xmm3
movdqu xmmword [rcx + r10*8], xmm4
movdqu xmmword [rcx + r10*8 + 0x10], xmm5
add r10, 4
cmp r9, r10
jne 0x180037090
cmp r8, r9
je 0x180037112
lea rcx, [rcx + rdx*8]
movabs rdx, 0x8000000000000000
nop dword [rax + rax]
mov r8, qword [rax]
mov r9, r8
not r9
sar r9, 0x3f
or r9, rdx
xor r9, r8
mov qword [rax], r9
lea r8, [rax + 8]
mov rax, r8
cmp r8, rcx
jne 0x1800370f0
ret
Function at 0x1800456a0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x1800456e2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x1800456ea
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x1800456fb
jmp 0x180045712
xor r10d, r10d
jmp 0x18004579d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x180045712
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x180045729
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x180045749
add r11, r8
jmp 0x18004587a
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x180045812
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x1800457c0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 3
jbe 0x180045830
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x180045842
jmp 0x18004585c
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x18004585c
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x180045876
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x180045f70
Capabilities:
Encode data using base64

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rcx
mov ecx, dword [rdx + 0x30]
and ecx, 0x3f
mov r15d, 1
shl r15, cl
mov ebx, 0x10
shl rbx, cl
cmp ecx, 0x3b
jae 0x180046140
mov rdi, rdx
movzx eax, byte [0x1800a4291]
mov edx, 0x10
mov rcx, rbx
call fcn.1800458d0
test rax, rax
je 0x180046147
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x10], 0
mov rbx, qword [rdi + 0x18]
mov r13, qword [rdi + 0x28]
mov eax, 4
mov qword [rbp - 8], rax
test r13, r13
mov qword [rbp - 0x38], rsi
je 0x180046047
mov rax, r13
shr rax, 0x3d
jne 0x180046156
lea r14, [r13*4]
test r14, r14
je 0x180046047
movzx eax, byte [0x1800a4291]
mov edx, 4
mov rcx, r14
call fcn.1800458d0
mov qword [rbp - 8], rax
test rax, rax
jne 0x18004604a
mov qword [rbp - 0x28], r15
mov ecx, 4
mov rdx, r14
call fcn.180082720
jmp 0x18004615f
xor r14d, r14d
mov rcx, qword [rbp - 8]
mov rdx, rbx
mov r8, r14
call sub.VCRUNTIME140.dll_memcpy
mov r14, qword [rdi]
mov rax, qword [rdi + 0x10]
lea r12, [r14 + rax*4]
xor edx, edx
lea rdi, [rbp - 0x20]
mov qword [rbp - 0x30], r13
jmp 0x1800460a5
mov rdx, qword [rbp - 0x10]
add r14, 4
sub r13d, r15d
mov rax, qword [rbp - 0x20]
shl rdx, 4
mov dword [rax + rdx], ebx
mov dword [rax + rdx + 4], r13d
mov dword [rax + rdx + 8], esi
mov rdx, qword [rbp - 0x10]
inc rdx
mov qword [rbp - 0x10], rdx
mov rax, qword [rbp - 8]
inc dword [rax + rbx*4]
mov r13, qword [rbp - 0x30]
cmp r14, r12
je 0x1800460ea
mov ebx, dword [r14]
cmp r13, rbx
jbe 0x18004612c
mov rax, qword [rbp - 8]
mov r13d, dword [rax + rbx*4]
xor esi, esi
cmp r13d, r15d
jae 0x1800460da
xor esi, esi
nop word cs:[rax + rax]
add r13d, r13d
inc esi
cmp r13d, r15d
jb 0x1800460d0
cmp rdx, qword [rbp - 0x18]
jne 0x180046074
mov rcx, rdi
call fcn.180048cb0
jmp 0x180046070
mov rax, qword [rbp - 0x10]
mov rsi, qword [rbp - 0x38]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rsi], xmm0
test r13, r13
je 0x180046118
shl r13, 2
mov r8d, 4
mov rcx, qword [rbp - 8]
mov rdx, r13
call fcn.1800458e0
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, str.pco_src_ansdecoding.rs
mov rcx, rbx
mov rdx, r13
call fcn.180082960
jmp 0x18004615f
call fcn.18006c380
ud2
mov ecx, 0x10
mov rdx, rbx
call fcn.180082720
ud2
mov qword [rbp - 0x28], r15
call fcn.18006c380
ud2
Function at 0x18005c9e0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x18005ca70
jmp 0x18005ca5f
jae 0x18005cb30
cmp r8, 0x201
jae 0x18005ca70
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x18005cac8
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x18005ca9f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.180082430
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x18005caf1
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x18005cb98
mov r8d, r14d
cmp r15, r8
jne 0x18005ca50
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x18005cbbb
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x18005ca5f
jmp 0x18005ca70
cmp rsi, r8
jb 0x18005cbd5
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.18005e7f0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x18005cb81
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.1800458e0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x18005cb69
jmp 0x18005cb81
lea rcx, str.internal_error:_entered_unreachable_codeassertion_failed:_self.is_char_boundary_new_len__rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_alloc_src_string.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1800828c0
jmp 0x18005cbea
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.180082d50
ud2
Function at 0x1800629c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x18008c4d0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x180062a04
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x180062a6a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x180062aa1
test eax, eax
js 0x180062a7b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x180062a94
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.18005e4b0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.18005b530
mov ecx, 7
int 0x29
ud2

Function at 0x1800633e0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x180063418
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.180063430
nop
add rsp, 0x38
ret

Function at 0x180063430
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x180063473
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x18005d320]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.180082810
ud2
Function at 0x180075630
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1800756aa
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x1800756a0
cmp r11, r10
ja 0x180075743
cmp r10, rdx
ja 0x180075757
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1800756a2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x180075680
jmp 0x180075717
ja 0x1800756aa
mov r11, r10
cmp rax, r8
jne 0x180075652
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x18007571b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x1800756f0
mov r8, r10
sub ecx, r9d
jns 0x18007570e
jmp 0x18007571d
cmp r10, rdx
je 0x180075729
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x18007571d
xor al, 1
cmp r8, rdx
jne 0x1800756d0
jmp 0x18007571d
xor eax, eax
jmp 0x18007571d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x18008f401]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.1800828c0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.180082dd0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.180082d50
ud2
Function at 0x1800820e0
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp], 0xfffffffffffffffe
lea rcx, str.api_ms_win_core_synch_l1_2_0.dll
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x180082141
mov rdi, rax
lea rdx, [0x18008a88e]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x180082141
mov rsi, rax
lea rdx, [0x18008a89c]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x180082141
mov rdi, rax
xor ebx, ebx
jmp 0x1800821c7
lea rcx, [0x18008a828]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x18008223b
mov rsi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x18008223b
mov rdi, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x18008223b
mov rbx, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x18008223b
mov rsi, rax
lea rcx, [rbp - 0x18]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rdi
test eax, eax
jne 0x18008223b
mov rdi, qword [rbp - 0x18]
movzx eax, byte [0x1800a4291]
mov ecx, 0x18
mov edx, 8
call fcn.1800458d0
test rax, rax
je 0x180082242
mov rcx, rax
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rdi
xor eax, eax
lock cmpxchg qword [0x1800a42d8], rcx
je 0x18008222f
mov rsi, rax
cmp qword [rcx], 0
mov qword [rbp - 8], rcx
je 0x180082218
mov rax, qword [rbp - 8]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov edx, 0x18
mov r8d, 8
mov rcx, qword [rbp - 8]
call fcn.1800458e0
mov rcx, rsi
mov rax, rcx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop rbp
ret
call fcn.1800820a0
ud2
mov qword [rbp - 0x10], rdi
mov qword [rbp - 8], rbx
mov ecx, 8
mov edx, 0x18
call fcn.180082720
ud2
Function at 0x140001720
Capabilities:
Write file on windows

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

Function at 0x140001790
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007094]
test esi, esi
mov rbx, rcx
jle 0x1400018c0
mov rax, qword [0x140007098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400017db
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001865
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400017c0
mov rcx, rbx
call fcn.140002200
test rax, rax
mov rdi, rax
je 0x1400018e2
mov rax, qword [0x140007098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002340
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140007098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400018c7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000185e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001870
add dword [0x140007094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140007098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000185e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001720
nop dword [rax]
xor esi, esi
jmp 0x1400017e8
mov rax, qword [0x140007098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.140001720
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.140001720
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140001e50
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140001eac
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 eax, eax
jne 0x140001ea3
test rsi, rsi
je 0x140001ea3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001e88
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 0x1400020c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400020f8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002100
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400020d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400020f8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002100
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400020e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400020f8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002100
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002200
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140002280
Capabilities:
Parse pe header

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