joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006ab00
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
cmp qword [rcx + 0x10], 1
mov rbx, rcx
jne 0x14006ab29
cmp qword [rcx + 0x18], 0xf
jbe 0x14006ab1e
mov rbx, qword [rcx]
movsx ecx, byte [rbx]
call qword [sym.imp.USER32.dll_VkKeyScanW]
jmp 0x14006ab6c
mov r8, rbx
lea rdx, [rsp + 0x20]
lea rcx, [0x1400eeef8]
call fcn.140048280
mov rdi, qword [rsp + 0x30]
cmp byte [rdi + 0x19], 0
jne 0x14006ab58
lea r8, [rdi + 0x20]
mov rdx, rbx
call fcn.1400481b0
test al, al
je 0x14006ab5f
mov rdi, qword [0x1400eeef8]
cmp rdi, qword [0x1400eeef8]
je 0x14006abae
movzx eax, word [rdi + 0x40]
xor ecx, ecx
lea rdx, [rsp + 0x38]
xorps xmm0, xmm0
mov qword [rsp + 0x58], rcx
movups xmmword [rsp + 0x38], xmm0
mov ecx, 1
mov dword [rsp + 0x38], 1
mov r8d, 0x28
mov word [rsp + 0x40], ax
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.USER32.dll_SendInput]
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Error:_Unknown_key:
call fcn.140065e80
cmp qword [rbx + 0x18], 0xf
mov r8, qword [rbx + 0x10]
jbe 0x14006abcf
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.14006db70
lea rdx, [0x140066060]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14006ac00
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
cmp qword [rcx + 0x10], 1
mov rbx, rcx
jne 0x14006ac29
cmp qword [rcx + 0x18], 0xf
jbe 0x14006ac1e
mov rbx, qword [rcx]
movsx ecx, byte [rbx]
call qword [sym.imp.USER32.dll_VkKeyScanW]
jmp 0x14006ac6c
mov r8, rbx
lea rdx, [rsp + 0x20]
lea rcx, [0x1400eeef8]
call fcn.140048280
mov rdi, qword [rsp + 0x30]
cmp byte [rdi + 0x19], 0
jne 0x14006ac58
lea r8, [rdi + 0x20]
mov rdx, rbx
call fcn.1400481b0
test al, al
je 0x14006ac5f
mov rdi, qword [0x1400eeef8]
cmp rdi, qword [0x1400eeef8]
je 0x14006acb6
movzx eax, word [rdi + 0x40]
xor ecx, ecx
lea rdx, [rsp + 0x38]
xorps xmm0, xmm0
mov qword [rsp + 0x58], rcx
movups xmmword [rsp + 0x38], xmm0
mov ecx, 1
mov dword [rsp + 0x38], 1
mov r8d, 0x28
mov word [rsp + 0x40], ax
movups xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x44], 2
call qword [sym.imp.USER32.dll_SendInput]
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Error:_Unknown_key:
call fcn.140065e80
cmp qword [rbx + 0x18], 0xf
mov r8, qword [rbx + 0x10]
jbe 0x14006acd7
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.14006db70
lea rdx, [0x140066060]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret

Function at 0x14006ad00
Capabilities:
Create udp socket
Initialize winsock library
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1d0
mov rbx, rcx
mov rcx, qword [0x1400ee300]
cmp rcx, 0xffffffffffffffff
jne 0x14006add0
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov edi, 2
mov r8d, reloc.WS2_32.dll_recvfrom
mov edx, edi
mov ecx, edi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [0x1400ee300], rax
cmp rax, 0xffffffffffffffff
jne 0x14006ad6a
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1d0
pop rdi
ret
mov ecx, 0x11cb
mov word [0x1400f2ba0], di
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, str.127.0.0.1
mov word [0x1400f2ba2], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov rcx, qword [0x1400ee300]
lea r9, [rsp + 0x1e8]
mov edx, 0xffff
mov dword [0x1400f2ba4], eax
mov r8d, 0x1006
mov dword [rsp + 0x1e8], 0x1f4
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [0x1400ee300]
cmp qword [rbx + 0x18], 0xf
mov r8d, dword [rbx + 0x10]
jbe 0x14006adde
mov rbx, qword [rbx]
lea rax, [0x1400f2ba0]
mov dword [rsp + 0x28], socket
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.WS2_32.dll_sendto]
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1d0
pop rdi
ret
Function at 0x14006ae10
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rsi
push r14
sub rsp, 0x280
mov r14, rcx
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14006ae6e
lea rdx, str.Failed_to_create_process_snapshot.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.14006c830
lea rdx, [0x14006ce10]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor al, al
mov rsi, qword [rsp + 0x2a0]
add rsp, 0x280
pop r14
ret
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x14006ae9a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Failed_to_retrieve_information_about_the_first_process.
jmp 0x14006ae3e
mov qword [rsp + 0x290], rbx
mov qword [rsp + 0x298], rdi
nop word [rax + rax]
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.140046e00
mov rdi, qword [rsp + 0x38]
lea rax, [rsp + 0x20]
mov rbx, qword [rsp + 0x20]
cmp rdi, 7
mov rdx, qword [r14 + 0x10]
mov r8, r14
cmova rax, rbx
cmp qword [r14 + 0x18], 7
jbe 0x14006aee7
mov r8, qword [r14]
cmp rdx, qword [rsp + 0x30]
jne 0x14006af52
test rdx, rdx
je 0x14006af0a
sub r8, rax
movzx ecx, word [r8 + rax]
cmp cx, word [rax]
jne 0x14006af52
add rax, 2
sub rdx, 1
jne 0x14006aef6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rdi, 7
jbe 0x14006af4e
lea rdx, [rdi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x14006af46
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006afcc
mov rcx, rbx
call fcn.14006eb78
mov al, 1
jmp 0x14006afaa
cmp rdi, 7
jbe 0x14006af89
lea rdx, [rdi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x14006af81
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006afcc
mov rcx, rbx
call fcn.14006eb78
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14006aeb0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rbx, qword [rsp + 0x290]
mov rdi, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x2a0]
add rsp, 0x280
pop r14
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14006afe0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x140
mov dword [rax + 0x10], 0xff
lea rax, [rax + 0x18]
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
lea rdx, str.SOFTWAREMicrosoftCryptography
xor r8d, r8d
mov rcx, 0xffffffff80000002
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14006b097
mov rcx, qword [rsp + 0x160]
lea rax, [rsp + 0x158]
mov qword [rsp + 0x28], rax
lea rdx, str.MachineGuid
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x160]
test eax, eax
jne 0x14006b091
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, dword [rsp + 0x158]
lea rdx, [rsp + 0x40]
xorps xmm0, xmm0
dec r8d
movups xmmword [rbx], xmm0
mov rcx, rbx
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
call fcn.140047820
jmp 0x14006b0db
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
mov ecx, 0x20
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
call fcn.14006ef50
mov qword [rbx], rax
mov qword [rbx + 0x10], socket
mov qword [rbx + 0x18], 0x1f
movups xmm0, xmmword [str.Error_reading_HWID]
movups xmmword [rax], xmm0
movzx ecx, word [0x140084d10]
mov word [rax + 0x10], cx
mov byte [rax + 0x12], dil
mov rax, rbx
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret

Function at 0x14006b750
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x14006b771
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp 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]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14006b79e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14006b7a0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14006b7f9
test ecx, ecx
jle 0x14006b7d9
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 0x14006b7f9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14006b7f9
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
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
or cl, byte [rcx]
invalid
Function at 0x14006b820
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14006b851
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14006b868
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp 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]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14006b88b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14006b88d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14006b8c9
mov qword [rsp + 0x38], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14006b95e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14006b904
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14006b93e
nop dword [rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14006b95e
cmp rbx, rax
ja 0x14006b910
test rbx, rbx
je 0x14006b95e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
or ecx, dword [rdx]
or bh, bh
or ecx, dword [rdx]
or bh, bh
or ecx, dword [rdx]
or bh, bh
or cl, byte [rcx]
invalid
Function at 0x14006bda0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14006bdc4
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x14006be07
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x14006be07
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov eax, edi
mov byte [rdx], dil
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0x80], rsi
je 0x14006bf38
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14006be4a
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 0x14006be75
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmove edi, ecx
mov eax, edi
jmp 0x14006bf3d
lea rax, [rsp + 0x90]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x98]
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 0x14006beea
sub eax, 1
je 0x14006beea
cmp eax, 2
jne 0x14006bf38
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmove edi, ecx
mov eax, edi
jmp 0x14006bf3d
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x14006bf1b
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14006bf38
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14006bf3d
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x14006c410
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14006c4d9
cmp byte [rcx + 0x71], 0
je 0x14006c4d9
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14006c4cc
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
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 0x14006c488
sub eax, 1
je 0x14006c48c
cmp eax, 2
jne 0x14006c4cc
mov rdi, qword [rsp + 0x68]
mov al, 1
mov byte [rbx + 0x71], 0
add rsp, 0x50
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x14006c4ba
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14006c4cc
cmp byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x68]
sete al
add rsp, 0x50
pop rbx
ret
mov rdi, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rbx
ret
mov al, 1
add rsp, 0x50
pop rbx
ret
Function at 0x14006e690
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x14006e6f1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14006e6b0
mov ecx, dword [r9]
jmp 0x14006e7db
cmp ecx, 0x4e0
jb 0x14006e7db
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14006e710
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14006e760
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x14006f224
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0xedf88d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xedf89d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xedf885
lea eax, [rcx + 1]
jmp 0xedf8ab
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xedf8be
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xedf8a4
sub eax, 3
jb 0xedf8de
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xedf92d
sar eax, 1
movsxd rbp, eax
jb 0xedf914
jmp 0xedf8ec
add ebx, ebx
jne 0xedf8ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xedf914
inc ecx
add ebx, ebx
jne 0xedf8fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xedf914
call r11
adc ecx, ecx
add ebx, ebx
jne 0xedf90d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xedf8fc
add ecx, 2
jmp 0xedf919
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00edf842
jmp 0xedf88d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xad4000]
mov eax, dword [rdi]
or eax, eax
je 0xedf989
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xadf000]
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 0xedf939
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 0xedf983
mov qword [rbx], rax
add rbx, 8
jmp 0xedf959
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0xedf9cd
cmp al, 0xef
ja 0xedf9b5
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xedf995
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xedf9a4
mov eax, dword [rdi]
add rdi, 4
jmp 0xedf9a4
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 + 0x1af]
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 0xedfa21
sub rsp, 0xffffffffffffff80
jmp 0x474a20
Function at 0x140001450
Capabilities:
Accept command line arguments
Extract resource via kernel32 functions
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x14001d010]
xor rax, rsp
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [rsp + 0x20], 2
mov rbp, rax
jl 0x1400015d7
mov rdx, qword [rax + 8]
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rdx + rcx*2], 0
jne 0x1400014a0
cmp rcx, 0x10
jne 0x1400015d7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea r8, [0x140019a28]
mov edx, 0x6e
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x1400015d7
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400015d7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x1400015d7
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r8d, eax
mov rdx, rsi
lea rcx, [0x14001f010]
mov qword [0x14001f420], r8
call fcn.140007df0
movdqa xmm0, xmmword [str.0000000000000000_]
xor r8d, r8d
movups xmmword [0x14001edf0], xmm0
mov rdx, qword [rbp + 8]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rdx + rax*2], r8w
jne 0x140001550
test rax, rax
je 0x1400015a2
lea r9, [0x14001edf0]
mov r10, r8
nop dword [rax]
movzx eax, byte [r10 + rdx]
inc r8d
mov byte [r9], al
lea r9, [r9 + 1]
mov rdx, qword [rbp + 8]
lea r10, [r10 + 2]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rdx + rax*2], 0
jne 0x140001590
movsxd rcx, r8d
cmp rcx, rax
jb 0x140001570
lea rdx, [0x14001ee00]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor r9d, r9d
lea r8, [0x1400018a0]
mov rcx, rax
lea edx, [r9 + 0xa]
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
xor eax, eax
jmp 0x1400015dc
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140002370
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140002e88
Capabilities:
Parse pe header

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

Function at 0x140008ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140008cbc