joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ff010
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x140187028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x1400ff085
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1400ff08a
mov dil, 1
test bl, bl
je 0x1400ff06e
cmp byte [rsi + 8], 0
je 0x1400ff0de
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400b4910
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rsi]
jmp 0x1400ff03d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 0
je 0x1400ff0b2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400ff0b7
xor edi, edi
jmp 0x1400ff06e
mov rcx, qword [rsi]
jmp 0x1400ff09f
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 0
je 0x1400ff0e3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
jmp 0x1400ff06e
mov rcx, qword [rsi]
jmp 0x1400ff063
mov rcx, qword [rsi]
jmp 0x1400ff0ce
Function at 0x140113520
Capabilities:
Encode data using xor

Disassembly:
push rsi
movsxd r9, dword [rcx + 8]
movsxd rax, dword [rdx + 8]
cmp r9d, eax
jge 0x140113545
mov r10, qword [rdx]
xor r8d, r8d
mov r11, r9
or r8, qword [r10 + r11*8]
inc r11
cmp rax, r11
jne 0x140113537
jmp 0x140113548
xor r8d, r8d
cmp eax, r9d
jge 0x14011355f
mov r10, qword [rcx]
mov r11, rax
or r8, qword [r10 + r11*8]
inc r11
cmp r9, r11
jne 0x140113553
cmp r9d, eax
cmovl eax, r9d
test eax, eax
jle 0x140113588
mov r9, qword [rcx]
mov r10, qword [rdx]
mov eax, eax
xor r11d, r11d
mov rsi, qword [r10 + r11*8]
xor rsi, qword [r9 + r11*8]
or r8, rsi
inc r11
cmp rax, r11
jne 0x140113575
mov eax, dword [rdx + 0x10]
xor eax, dword [rcx + 0x10]
movsxd rcx, eax
xor eax, eax
or rcx, r8
sete al
pop rsi
ret
Function at 0x14011b3d0
Capabilities:
Hash data using sha512

Disassembly:
push rsi
push rdi
sub rsp, 0x108
mov rsi, r8
mov r8, rdx
mov rdx, rcx
mov rax, qword [0x140187028]
xor rax, rsp
mov qword [rsp + 0x100], rax
movaps xmm0, xmmword [0x14015fb50]
lea rdi, [rsp + 0x28]
movups xmmword [rdi + 0xc0], xmm0
movups xmmword [rdi + 0xb0], xmm0
movups xmmword [rdi + 0xa0], xmm0
movups xmmword [rdi + 0x90], xmm0
movups xmmword [rdi + 0x80], xmm0
movups xmmword [rdi + 0x70], xmm0
movups xmmword [rdi + 0x60], xmm0
movups xmmword [rdi + 0x50], xmm0
movabs rax, 0x6a09e667f3bcc908
mov qword [rdi], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rdi + 8], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rdi + 0x10], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rdi + 0x18], rax
movabs rax, 0x510e527fade682d1
mov qword [rdi + 0x20], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rdi + 0x28], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rdi + 0x30], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rdi + 0x38], rax
movabs rax, 0x4000000000
mov qword [rdi + 0xd0], rax
xorps xmm0, xmm0
movups xmmword [rdi + 0x40], xmm0
mov rcx, rdi
call fcn.14004cc50
mov edx, dword [rdi + 0xd4]
mov rcx, rsi
mov r8, rdi
call fcn.140050630
mov edx, 0xd8
mov rcx, rdi
call fcn.140094ef0
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1400b4910
mov rax, rsi
add rsp, 0x108
pop rdi
pop rsi
ret
Function at 0x140121850
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 r13, r9
mov rbp, r8
mov r14, rdx
mov rsi, rcx
mov r12, qword [rsp + 0x108]
mov rax, qword [rsp + 0x100]
mov rcx, qword [0x140187028]
xor rcx, rsp
mov qword [rsp + 0x80], rcx
test rax, rax
jne 0x1401218b0
lea rcx, [0x14019e548]
lea rdx, [0x14011b170]
call fcn.14009a8a0
lea rax, [0x14019e550]
test r12, r12
cmove r12, rax
mov edi, dword [rax + 4]
lea rcx, [rdi*2 + 2]
cmp rcx, r14
jbe 0x140121910
mov dword [rsp + 0x20], 0x147
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_rsapadding.c
xor ebx, ebx
mov ecx, 4
xor edx, edx
mov r8d, 0x7e
call fcn.140139ad0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400b4910
mov eax, ebx
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rdi + rdi]
mov r15, rcx
not r15
lea rdx, [r14 + r15]
dec rdx
cmp rdx, r13
jae 0x140121946
mov dword [rsp + 0x20], 0x14d
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_rsapadding.c
xor ebx, ebx
mov ecx, 4
xor edx, edx
mov r8d, 0x72
jmp 0x1401218e5
dec r14
or rcx, 1
cmp r14, rcx
jae 0x14012195f
mov dword [rsp + 0x20], 0x152
jmp 0x1401218cf
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xf0]
mov byte [rsi], 0
lea r8, [rsi + rdi]
inc r8
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x38], r8
xor r9d, r9d
call fcn.14004c4c0
xor ecx, ecx
mov ebx, 0
test eax, eax
je 0x140121aa9
mov rbx, r14
sub rbx, r13
add r15, rbx
mov rcx, qword [rsp + 0x38]
je 0x1401219c2
mov rax, qword [rsp + 0x38]
lea rcx, [rax + rdi]
xor edx, edx
mov r8, r15
call fcn.1400b6a60
mov rcx, qword [rsp + 0x38]
inc rsi
mov rax, rdi
not rax
add rbx, rax
mov byte [rcx + rbx], 1
test r13, r13
mov r15, rcx
je 0x1401219ef
lea rcx, [r15 + r14]
sub rcx, r13
sub rcx, rdi
mov rdx, rbp
mov r8, r13
call fcn.1400b63b0
lea r8, [0x14016f150]
mov rcx, rsi
mov rdx, rdi
call fcn.140119ce0
mov r13, r14
sub r13, rdi
mov rcx, r13
call fcn.140094e50
xor ebx, ebx
test rax, rax
je 0x140121ab3
mov rbp, rax
mov qword [rsp + 0x20], r12
mov rcx, rax
mov rdx, r13
mov r8, rsi
mov r9, rdi
call fcn.14004f260
test eax, eax
je 0x140121aa6
cmp r14, rdi
je 0x140121a59
cmp r13, 1
mov rax, r13
adc rax, 0
xor ecx, ecx
mov dl, byte [rbp + rcx]
xor byte [r15 + rcx], dl
inc rcx
cmp rax, rcx
jne 0x140121a49
movaps xmm0, xmmword [0x14015fb50]
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], r12
mov rdx, rdi
mov r8, r15
mov r9, r13
call fcn.14004f260
test eax, eax
je 0x140121aa6
mov ebx, 1
test rdi, rdi
je 0x140121aa6
xor eax, eax
mov cl, byte [rsp + rax + 0x40]
xor byte [rsi + rax], cl
inc rax
cmp rdi, rax
jne 0x140121a97
mov rcx, rbp
call fcn.140094eb0
jmp 0x1401218ea
xor ecx, ecx
jmp 0x140121aa9
Function at 0x140145890
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 rdi, rcx
mov rax, qword [0x140187028]
xor rax, rsp
mov qword [rsp + 0x108], rax
movaps xmm0, xmmword [0x14015fb50]
lea r14, [rsp + 0xc0]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
mov edx, 0x20
mov rcx, r8
mov r8, r14
call fcn.14011b3d0
and byte [r14], 0xf8
mov al, byte [r14 + 0x1f]
and al, 0x3f
or al, 0x40
mov byte [r14 + 0x1f], al
lea r15, [rsp + 0x20]
mov r8d, 0xa0
mov rcx, r15
mov dl, 0xaa
call fcn.1400b6a60
lea r8, [0x1401755a0]
mov rcx, r15
mov rdx, r14
call fcn.1400a6ba0
mov rcx, rdi
mov rdx, r15
call fcn.1401445c0
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x30], xmm1
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.1400b4910
nop
add rsp, 0x110
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400019e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x14000f008]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x38]
mov rcx, 0xffffffff80000002
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
xor esi, esi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140001a79
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x40], 0x100
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ProductId
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
test eax, eax
je 0x140001a8d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.Unknown
mov rcx, rdi
call fcn.140005290
jmp 0x140001ba1
mov qword [rsp + 0x178], rbx
mov qword [rsp + 0x180], rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
lea rax, [rsp + 0x50]
movups xmmword [rdi], xmm0
mov rdx, 0xffffffffffffffff
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
mov rbx, rdx
inc rbx
cmp byte [rax + rbx], sil
jne 0x140001ac0
movabs rbp, 0x7fffffffffffffff
cmp rbx, rbp
ja 0x140001bcb
mov qword [rdi + 0x18], 0xf
cmp rbx, 0x10
jae 0x140001b07
mov r8, rbx
mov qword [rdi + 0x10], rbx
lea rdx, [rsp + 0x50]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rdi], sil
jmp 0x140001b91
mov rax, rbx
or rax, 0xf
cmp rax, rbp
ja 0x140001b22
mov ecx, 0x16
mov rbp, rax
cmp rax, rcx
cmovb rbp, rcx
mov rcx, rbp
add rcx, 1
cmovb rcx, rdx
cmp rcx, 0x1000
jb 0x140001b65
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001bc5
mov rcx, rax
call fcn.140007cd8
test rax, rax
je 0x140001b5e
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140001b72
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140001b72
call fcn.140007cd8
mov rsi, rax
mov r8, rbx
mov qword [rdi], rsi
lea rdx, [rsp + 0x50]
mov qword [rdi + 0x10], rbx
mov rcx, rsi
mov qword [rdi + 0x18], rbp
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], 0
mov rbx, qword [rsp + 0x178]
mov rbp, qword [rsp + 0x180]
mov rax, rdi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140007cb0
mov rsi, qword [rsp + 0x188]
add rsp, 0x160
pop rdi
ret
call fcn.140001130
int3
call fcn.1400011d0
int3
Function at 0x140002110
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xe0
mov rax, qword [0x14000f008]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
lea rax, [rsp + 0x38]
mov rcx, 0xffffffff80000002
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
xor esi, esi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400021a9
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0x44]
mov dword [rsp + 0x40], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.InstallDate
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
test eax, eax
je 0x1400021bd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.Unknown
mov rcx, rdi
call fcn.140005290
jmp 0x140002317
mov qword [rsp + 0xf8], rbx
mov qword [rsp + 0x100], rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x44]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x48], rax
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
lea r9, [rsp + 0x58]
mov edx, 0x50
lea r8, str._d__m__Y__H:_M:_S
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_strftime]
xorps xmm0, xmm0
lea rax, [rsp + 0x80]
movups xmmword [rdi], xmm0
mov rdx, 0xffffffffffffffff
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
mov rbx, rdx
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], sil
jne 0x140002230
movabs rbp, 0x7fffffffffffffff
cmp rbx, rbp
ja 0x140002341
mov qword [rdi + 0x18], 0xf
cmp rbx, 0x10
jae 0x14000227a
mov r8, rbx
mov qword [rdi + 0x10], rbx
lea rdx, [rsp + 0x80]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rdi], sil
jmp 0x140002307
mov rax, rbx
or rax, 0xf
cmp rax, rbp
ja 0x140002295
mov ecx, 0x16
mov rbp, rax
cmp rax, rcx
cmovb rbp, rcx
mov rcx, rbp
add rcx, 1
cmovb rcx, rdx
cmp rcx, 0x1000
jb 0x1400022d8
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000233b
mov rcx, rax
call fcn.140007cd8
test rax, rax
je 0x1400022d1
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x1400022e5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x1400022e5
call fcn.140007cd8
mov rsi, rax
mov r8, rbx
mov qword [rdi], rsi
lea rdx, [rsp + 0x80]
mov qword [rdi + 0x10], rbx
mov rcx, rsi
mov qword [rdi + 0x18], rbp
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], 0
mov rbx, qword [rsp + 0xf8]
mov rbp, qword [rsp + 0x100]
mov rax, rdi
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140007cb0
mov rsi, qword [rsp + 0x108]
add rsp, 0xe0
pop rdi
ret
call fcn.140001130
int3
call fcn.1400011d0
int3
Function at 0x140008714
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000875e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000875e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000875e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000875e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000875e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140008760
xor al, al
add rsp, 0x28
ret
Function at 0x140002174
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400021be
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400021be
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400021be
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400021be
cmp dword [rcx + 0x84], 0xe
jbe 0x1400021be
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400021c0
xor al, al
add rsp, 0x28
ret
Function at 0x140003e30
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003e64
cmp word [rcx], 0x5a4d
jne 0x140003e64
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003e64
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003e64
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003d70
test eax, eax
jne 0x140003e80
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003de0
test rax, rax
je 0x140003e75
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.14000462f
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004530
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.1400044d0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004994
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14055f6f8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14055f6f4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400049e2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400049da
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140004ac9
inc ebx
add rax, 0x28
jmp 0x1400049ba
mov rcx, r12
call fcn.1400051c1
mov rbp, rax
test rax, rax
jne 0x140004a01
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140004930
movsxd rbx, ebx
mov rax, qword [0x14055f6f8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.14000526f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14055f6f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004a63
mov rax, qword [0x14055f6f8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004930
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140004ac3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140004ac3
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 [0x14055f6f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140004ac3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004930
inc dword [0x14055f6f4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004ef0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x14055f760]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14055f740]
test rbx, rbx
je 0x140004f3c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004f36
test eax, eax
jne 0x140004f36
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004f0e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400050f0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140005113
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140005113
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140005114
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x14000514e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140005145
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140005150
inc r8d
add rax, 0x28
jmp 0x14000512c
xor eax, eax
ret

Function at 0x1400051c1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14055b7d0]
mov r8, rcx
mov rcx, r9
call fcn.1400050f0
test eax, eax
je 0x1400051ed
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140005114
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001488
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14001fbc0]
mov dword [rax], 1
mov rax, qword [0x14001fbd0]
mov dword [rax], 1
mov rax, qword [0x14001fbe0]
mov dword [rax], 1
mov rax, qword [0x14001fbb0]
mov dword [rax], 1
mov rax, qword [0x14001fa10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014e6
mov eax, 0
jmp 0x140001593
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 0x140001512
mov eax, 0
jmp 0x140001593
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001538
cmp eax, 0x20b
je 0x14000155f
jmp 0x14000158e
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000154b
mov eax, 0
jmp 0x140001593
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001593
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000157a
mov eax, 0
jmp 0x140001593
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001593
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140009000
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x90
movaps xmmword [rsp + 0x80], xmm6
lea rbx, [0x14001e30e]
lea rax, [0x140031120]
mov rcx, qword [0x140033128]
movq xmm6, rax
movq xmm0, rbx
punpcklqdq xmm6, xmm0
test rcx, rcx
je 0x14000906f
call qword [sym.imp.KERNEL32.dll_GetProcessId]
xor ecx, ecx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
test eax, eax
je 0x1400090d8
mov rcx, qword [0x140033128]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x140033128]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140033120], 0
jne 0x140009090
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x90
pop rbx
ret
mov eax, 0x414
mov dword [rsp + 0x48], 3
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], 0
mov word [rsp + 0x60], ax
mov dword [rsp + 0x64], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], rbx
movaps xmmword [rsp + 0x50], xmm6
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
jmp 0x140009078
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0x400
xor edx, edx
mov qword [rsp + 0x30], 0
mov r8d, eax
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 0
mov ecx, 0x1300
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea rcx, str.Failed_to_send_CTRL_C_to_child_process.
call sub.msvcrt.dll_puts
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_puts
jmp 0x140009050
Function at 0x140015730
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 fcn.14001c920
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14001c920
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140016362
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140033208]
test eax, eax
je 0x1400163fa
lea rax, [0x1400331e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140033210]
mov qword [rbp - 8], rax
jmp 0x1400163de
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 0x1400163d2
cmp qword [rbp - 0x10], 0
je 0x1400163d2
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 0x140016398
lea rax, [0x1400331e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400163fb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140016500
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 0x140016528
mov eax, 0
jmp 0x140016576
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 0x140016551
mov eax, 0
jmp 0x140016576
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 0x140016571
mov eax, 0
jmp 0x140016576
mov eax, 1
add rsp, 0x20
pop rbp
ret