joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18005a4a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov esi, dword [0x18009d060]
test esi, esi
je 0x18005a562
dec esi
mov ecx, esi
call sub.KERNEL32.DLL_TlsGetValue
cmp rax, 1
ja 0x18005a557
je 0x18005a4f4
xor ebx, ebx
test rdi, rdi
je 0x18005a4f8
mov r14, qword [rdi]
mov qword [rdi], 0
test r14, r14
cmovne ebx, dword [rdi + 0x10]
cmovne r14, qword [rdi + 8]
jmp 0x18005a4fb
xor eax, eax
jmp 0x18005a557
xor r14d, r14d
mov rax, qword [0x1800e7488]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call fcn.180002540
test rax, rax
je 0x18005a583
mov qword [rax], r14
mov byte [rax + 8], bl
mov dword [rax + 0x10], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.DLL_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.DLL_TlsSetValue
test rdi, rdi
je 0x18005a554
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call fcn.180002550
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, [0x18009d048]
call fcn.180054560
mov esi, eax
mov ecx, esi
call sub.KERNEL32.DLL_TlsGetValue
cmp rax, 1
jbe 0x18005a4d3
jmp 0x18005a557
mov ecx, 8
mov edx, 0x18
call fcn.1800783b0
int3

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

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov esi, dword [0x18009d080]
test esi, esi
je 0x18005a5d6
dec esi
mov ecx, esi
call sub.KERNEL32.DLL_TlsGetValue
cmp rax, 1
jbe 0x18005a5f1
add rax, 4
jmp 0x18005a66d
lea rcx, [0x18009d068]
call fcn.180054560
mov esi, eax
mov ecx, esi
call sub.KERNEL32.DLL_TlsGetValue
cmp rax, 1
ja 0x18005a5cd
je 0x18005a66b
xor r14d, r14d
test rdi, rdi
je 0x18005a60c
cmp byte [rdi], 0
mov byte [rdi], 0
movzx eax, byte [rdi + 1]
cmove eax, r14d
mov r14d, eax
mov rax, qword [0x1800e7488]
movzx eax, byte [rax]
mov ecx, 8
mov edx, 4
call fcn.180002540
test rax, rax
je 0x18005a67a
mov rbx, rax
mov dword [rax], esi
add rax, 4
mov r15, rax
mov byte [rbx + 4], r14b
mov ecx, esi
call sub.KERNEL32.DLL_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rdx, rbx
call sub.KERNEL32.DLL_TlsSetValue
test rdi, rdi
je 0x18005a666
mov edx, 8
mov r8d, 4
mov rcx, rdi
call fcn.180002550
mov rax, r15
jmp 0x18005a66d
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov ecx, 4
mov edx, 8
call fcn.1800783b0
int3
Function at 0x18005a690
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov rdi, rcx
mov esi, dword [0x18009d0c0]
test esi, esi
je 0x18005a762
dec esi
mov ecx, esi
call sub.KERNEL32.DLL_TlsGetValue
cmp rax, 1
ja 0x18005a759
je 0x18005a6dd
test rdi, rdi
je 0x18005a6e1
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x18005a6e3
mov rbx, qword [rdi + 8]
jmp 0x18005a6e3
xor eax, eax
jmp 0x18005a759
xor ebx, ebx
mov qword [rbp - 8], rbx
mov dword [rbp], esi
mov rax, qword [0x1800e7488]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.180002540
test rax, rax
je 0x18005a783
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.DLL_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.DLL_TlsSetValue
test rdi, rdi
je 0x18005a756
mov rax, qword [rdi]
test rax, rax
je 0x18005a743
lock dec qword [rax]
jne 0x18005a743
mov rcx, rdi
call fcn.180015460
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.180002550
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x18009d0a8]
call fcn.180054560
mov esi, eax
mov ecx, esi
call sub.KERNEL32.DLL_TlsGetValue
cmp rax, 1
jbe 0x18005a6c1
jmp 0x18005a759
mov ecx, 8
mov edx, 0x10
call fcn.1800783b0
ud2

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

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov esi, dword [0x18009d100]
test esi, esi
je 0x18005a871
dec esi
mov ecx, esi
call sub.KERNEL32.DLL_TlsGetValue
cmp rax, 1
ja 0x18005a868
je 0x18005a809
test rdi, rdi
je 0x18005a80d
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x18005a80f
mov rbx, qword [rdi + 8]
jmp 0x18005a80f
xor eax, eax
jmp 0x18005a868
xor ebx, ebx
mov rax, qword [0x1800e7488]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.180002540
test rax, rax
je 0x18005a892
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.DLL_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.DLL_TlsSetValue
test rdi, rdi
je 0x18005a865
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.180002550
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x18009d0e8]
call fcn.180054560
mov esi, eax
mov ecx, esi
call sub.KERNEL32.DLL_TlsGetValue
cmp rax, 1
jbe 0x18005a7ed
jmp 0x18005a868
mov ecx, 8
mov edx, 0x10
call fcn.1800783b0
int3
Function at 0x18005a8b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov rdi, rcx
mov esi, dword [0x18009d120]
test esi, esi
je 0x18005a982
dec esi
mov ecx, esi
call sub.KERNEL32.DLL_TlsGetValue
cmp rax, 1
ja 0x18005a979
je 0x18005a8fd
test rdi, rdi
je 0x18005a901
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x18005a903
mov rbx, qword [rdi + 8]
jmp 0x18005a903
xor eax, eax
jmp 0x18005a979
xor ebx, ebx
mov qword [rbp - 8], rbx
mov dword [rbp], esi
mov rax, qword [0x1800e7488]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.180002540
test rax, rax
je 0x18005a9a3
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.DLL_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.DLL_TlsSetValue
test rdi, rdi
je 0x18005a976
mov rax, qword [rdi]
test rax, rax
je 0x18005a963
lock dec qword [rax]
jne 0x18005a963
mov rcx, rdi
call fcn.180015380
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.180002550
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x18009d108]
call fcn.180054560
mov esi, eax
mov ecx, esi
call sub.KERNEL32.DLL_TlsGetValue
cmp rax, 1
jbe 0x18005a8e1
jmp 0x18005a979
mov ecx, 8
mov edx, 0x10
call fcn.1800783b0
ud2
Function at 0x18008df30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x18008dfba
mov rax, rdx
mov rdx, qword [rbp + 0x50]
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 0x18008dfb0
cmp r10, r11
jb 0x18008e036
cmp r10, rdx
ja 0x18008e048
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x18008dfb2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x18008df90
jmp 0x18008e017
ja 0x18008dfba
mov r11, r10
cmp rax, r8
jne 0x18008df57
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x18008e01b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x18008dff0
mov r8, r10
sub ecx, r9d
jns 0x18008e00e
jmp 0x18008e01d
cmp r10, rdx
je 0x18008e02a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x18008e01d
xor al, 1
cmp r8, rdx
jne 0x18008dfd0
jmp 0x18008e01d
xor eax, eax
jmp 0x18008e01d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, [0x1800dc478]
call fcn.180084f50
lea r8, [0x1800dc490]
mov rcx, r11
mov rdx, r10
call fcn.18008b470
lea r8, [0x1800dc490]
mov rcx, r10
call fcn.18008b400
int3

Function at 0x18009b620
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 fcn.18009c280
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.18009c280
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 0x18009b690
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1800f9194]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x18009b820
mov rax, qword [0x1800f9198]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x18009b6dc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x18009b765
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x18009b6c0
mov rcx, rdi
call fcn.18009bfb0
test rax, rax
mov r12, rax
je 0x18009b872
mov rax, qword [0x1800f9198]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.18009c0f0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1800f9198]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.DLL_VirtualQuery]
test rax, rax
je 0x18009b855
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x18009b75e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x18009b7d0
add dword [0x1800f9194], 1
cmp ebx, 8
jae 0x18009b791
test bl, 4
jne 0x18009b830
test ebx, ebx
je 0x18009b786
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x18009b844
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x18009b786
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x18009b7aa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x1800f9198]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
test eax, eax
jne 0x18009b75e
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.18009b620
xor esi, esi
jmp 0x18009b6e7
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x18009b786
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x18009b786
mov rax, qword [0x1800f9198]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.18009b620
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.18009b620
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x18009bc00
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1800f91c0]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rbx, qword [0x1800f91a0]
test rbx, rbx
je 0x18009bc54
mov rbp, qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.DLL_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x18009bc4b
test rsi, rsi
je 0x18009bc4b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x18009bc30
lea rcx, [0x1800f91c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]

Function at 0x18009bfb0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1800e7430]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x18009c01f
mov rcx, r9
call fcn.18009be80
test eax, eax
je 0x18009c01f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x18009c01d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x18009c014
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x18009c01f
add rdx, 0x28
cmp rdx, r9
jne 0x18009c000
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x140003b2c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140003b5c
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140003bd4
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140003b73
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140003b75
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140003bce
test ecx, ecx
jle 0x140003bae
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140003bce
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003bce
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x140003bf0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140003c1e
xor eax, eax
jmp 0x140003d07
cmp qword [rcx + 0x68], 0
je 0x140003c30
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
jmp 0x140003d07
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140003c47
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003c49
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003c7b
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140003d01
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140003cb2
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140003cdc
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140003d01
cmp rsi, rbx
ja 0x140003cb9
test rsi, rsi
je 0x140003d01
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400040ec
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140124040]
xor rax, rsp
mov qword [rbp - 8], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x140004125
xor eax, eax
jmp 0x140004245
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x14000415f
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x14000415f
lea ecx, [r8 - 1]
mov eax, esi
mov dword [rdx], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
jmp 0x140004245
cmp qword [rbx + 0x80], 0
je 0x140004243
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000419a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400041bb
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
jmp 0x140004240
lea rax, [rbp - 0x38]
mov byte [rbp - 0x40], sil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x3f]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x40]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140004209
sub eax, 1
je 0x140004209
cmp eax, 2
jne 0x140004243
movsx ecx, byte [rbp - 0x40]
jmp 0x1400041a7
mov r14, qword [rbp - 0x38]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x140004234
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r14, rax
jne 0x140004243
lea rax, [rbp - 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rbp - 0x30], rax
cmovne edi, esi
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400dbec0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140004948
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140124040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400049b7
cmp byte [rcx + 0x71], 0
je 0x1400049b7
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140004a0c
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400049d1
sub eax, 1
je 0x1400049d5
cmp eax, 2
jne 0x140004a0c
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400dbec0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140004a03
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140004a0c
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400049b9
xor al, al
jmp 0x1400049b9
Function at 0x140009590
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140124040]
xor rax, rsp
mov qword [rbp - 8], rax
xor r12d, r12d
mov r15, r8
mov qword [rdx], r12
mov rbx, rdx
mov qword [rdx + 8], r12
mov r14d, r12d
mov dword [rdx + 0x10], r12d
movsxd rsi, dword [r8 + 0x3c]
add rsi, r8
movzx eax, word [rsi + 0x14]
lea rdi, [rsi + 0x18]
add rdi, rax
cmp r12w, word [rsi + 6]
jae 0x1400096c5
xorps xmm0, xmm0
mov qword [rbp - 0x18], r12
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x10], r12
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdi + r8], r12b
jne 0x1400095fe
mov rdx, rdi
lea rcx, [rbp - 0x28]
call fcn.140005308
mov rdx, qword [rbp - 0x10]
lea rax, [rbp - 0x28]
mov rcx, qword [rbp - 0x28]
cmp rdx, 0xf
cmova rax, rcx
cmp qword [rbp - 0x18], 5
jne 0x140009682
cmp dword [rax], 0x7865742e
jne 0x140009682
cmp byte [rax + 4], 0x74
jne 0x140009682
mov r9d, dword [rdi + 0xc]
mov r8d, r12d
mov r11d, dword [rdi + 8]
add r9, r15
mov qword [rbp - 0x40], rdi
mov r10, r12
mov qword [rbp - 0x38], r9
test r11, r11
je 0x14000966d
movzx eax, byte [r9 + r10]
inc r10
crc32 r8d, eax
cmp r10, r11
jb 0x14000965a
movups xmm0, xmmword [rbp - 0x40]
mov dword [rbp - 0x30], r8d
movsd xmm1, qword [rbp - 0x30]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
cmp rdx, 0xf
jbe 0x1400096b1
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400096ac
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400096ed
call fcn.1400dbf24
movzx eax, word [rsi + 6]
inc r14d
add rdi, 0x28
cmp r14d, eax
jl 0x1400095eb
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400dbec0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3

Function at 0x1400098bc
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
mov ecx, 8
call fcn.1400dbee0
mov qword [rax], rbx
mov qword [rsp + 0x40], rax
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
and dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140009944]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x140009916
mov rax, rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
and dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x14000c1f4
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x140124040]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
jmp 0x14000c25c
mov rdx, rdi
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov rcx, rbx
test eax, eax
je 0x14000c28c
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x14000c23c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400dbec0
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
mov dword [0x1401e6f98], eax
jmp 0x14000c26b