joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140034200
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1400d0580]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov r14d, r8d
mov rsi, rdx
mov rbp, rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r15d, r15d
mov qword [rsi + 8], rax
mov rdi, rax
test rax, rax
jne 0x140034278
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
lea edx, [rdi + 1]
mov rcx, rsi
mov ebx, eax
call qword [r8]
mov dword [rsp + 0x34], r15d
mov dword [rsp + 0x30], ebx
call fcn.140027570
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x140034394
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x10], rax
mov qword [rsi + 0x10], rax
cmp qword [rbp + 0x10], r15
jne 0x1400342c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
mov dword [rsp + 0x34], r15d
mov dword [rsp + 0x30], ebx
call fcn.140027570
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x1400343a6
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x28], rax
lea r8, [0x140036ef0]
mov r9, rsi
mov dword [rsp + 0x20], r15d
mov edx, r14d
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 8], rax
test rax, rax
jne 0x140034345
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
test rdi, rdi
je 0x14003431f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x14003432e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x34], r15d
mov dword [rsp + 0x30], ebx
call fcn.140027570
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x140034382
test rdi, rdi
je 0x140034361
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400897d0
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.thread
lea rcx, [rsp + 0x30]
call fcn.140024d20
int3
lea rdx, str.thread.entry_event
lea rcx, [rsp + 0x30]
call fcn.140024d20
int3
lea rdx, str.thread.exit_event
lea rcx, [rsp + 0x30]
call fcn.140024d20
int3
Function at 0x140036f50
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rsi, r8
mov rbp, rdx
mov r14, rcx
test r8, r8
jg 0x140036f72
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140036f88
add rsp, 0x30
pop r14
pop rsi
pop rbp
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 qword [rsp + 0x28], rbx
mov rbx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
test rax, rax
je 0x140036fd2
cmp rax, rsi
mov rdi, rsi
mov rcx, r14
cmovb rdi, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rdi
mov rcx, rbp
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, edi
mov rcx, r14
add rbp, rdi
sub rbx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [r14 + 0x80], 0
mov rdi, rbx
je 0x140037041
mov rcx, r14
call fcn.14001f840
cmp rbx, 0xfff
jbe 0x140037021
mov r9, qword [r14 + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add rbp, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x14003705a
cmp rbx, rax
ja 0x140036ff0
test rdi, rdi
je 0x140037041
mov r9, qword [r14 + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
sub rsi, rdi
mov rbx, qword [rsp + 0x28]
mov rax, rsi
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rsi, rbx
jmp 0x140037044
Function at 0x140037060
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x140037088
add rsp, 0x20
pop r14
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 qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x1400370fc
test rax, rax
jle 0x1400370dc
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x1400370fc
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400370fc
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x40]
sub rsi, rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret
Function at 0x140038000
Capabilities:
Create thread

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1400d0580]
xor rax, rsp
mov qword [rsp + 0x50], rax
call fcn.1400384a0
call fcn.1400389d0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 8
call fcn.14008922c
test rax, rax
je 0x140038045
lea rcx, [0x1400384c0]
mov qword [rax], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400097f0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400380b7
cmp dword [rsp + 0x38], 0
je 0x1400380ac
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call sub.MSVCP140.dll__Thrd_detach
test eax, eax
jne 0x1400380ac
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400897d0
add rsp, 0x68
ret
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x140038730
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400d0580]
xor rax, rsp
mov qword [rbp - 0x10], rax
movsd xmm0, qword [0x14009b800]
movsd qword [rbp - 0x50], xmm0
movzx eax, word [0x14009b808]
mov word [rbp - 0x48], ax
cmp byte [0x14009b809], 0
je 0x140038797
mov byte [rbp - 0x50], 0x50
xor byte [rbp - 0x4f], 0x3a
xor byte [rbp - 0x4e], 0x3b
xor byte [rbp - 0x4d], 0x3c
xor byte [rbp - 0x4c], 0x3d
xor byte [rbp - 0x4b], 0x3e
xor byte [rbp - 0x4a], 0x3f
xor byte [rbp - 0x49], 0x40
xor byte [rbp - 0x48], 0x41
xor byte [rbp - 0x47], 0x42
mov r8, rcx
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.140006300
nop
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rbx, rax
mov ecx, dword [str.mUTP]
mov dword [rbp - 0x50], ecx
movzx ecx, byte [0x14009b810]
mov byte [rbp - 0x50], 0x54
xor byte [rbp - 0x4f], 0x3a
xor byte [rbp - 0x4e], 0x3b
xor byte [rbp - 0x4d], 0x3c
xor cl, 0x3d
mov byte [rbp - 0x4c], cl
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova rdx, qword [rbp - 0x30]
mov r9d, 0x10000
lea r8, [rbp - 0x50]
mov rcx, rax
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, 8
call fcn.14008922c
test rax, rax
je 0x14003881a
lea rcx, [0x1400389b0]
mov qword [rax], rcx
mov qword [rbp - 0x50], rax
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400097f0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x40], rax
test rax, rax
je 0x1400388da
cmp dword [rbp - 0x38], 0
je 0x1400388cf
movaps xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rbp - 0x50], xmm0
lea rcx, [rbp - 0x50]
call sub.MSVCP140.dll__Thrd_detach
test eax, eax
jne 0x1400388cf
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm0
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x1400388b2
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400388ad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400388ad
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140089268
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400897d0
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rbp
ret
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov dword [rbp - 0x38], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x1400388f0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1400d0580]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ecx, 8
call fcn.14008922c
test rax, rax
je 0x14003891c
lea rcx, [0x140038430]
mov qword [rax], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400097f0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14003898e
cmp dword [rsp + 0x38], 0
je 0x140038983
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call sub.MSVCP140.dll__Thrd_detach
test eax, eax
jne 0x140038983
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400897d0
add rsp, 0x68
ret
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x14003b660
Capabilities:
Execute shellcode via indirect call

Disassembly:
jmp 0x14003c590
push rbx
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
mov rbx, rax
call fcn.14003c3e0
test al, al
je 0x14003c644
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call fcn.14003bc30
mov r9d, 0x40
mov edx, eax
mov r8d, 0x3000
mov esi, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x14003c62d
mov r8d, esi
mov rdx, rbx
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rax, [0x14003bcd0]
mov rdx, rdi
sub rdx, rbx
mov rcx, rdi
add rdx, rax
call rdx
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rbx
call fcn.14003c1a0
nop
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14003c620
cmp rbx, 1
jne 0x14003c638
call fcn.14000cb10
mov rdi, qword [rsp + 0x38]
xor eax, eax
mov rsi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret

Function at 0x14003b670
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov r10d, dword [0x1400daf6c]
mov rbp, rcx
mov rax, qword gs:[0x58]
mov rbx, r9
mov ecx, 4
mov rdi, r8
mov esi, edx
mov rax, qword [rax + r10*8]
mov eax, dword [rcx + rax]
cmp dword [0x1400d9a90], eax
jg 0x14003b75f
mov r10, qword [0x1400d9a88]
test r10, r10
je 0x14003b6f6
mov rax, qword [rsp + 0xa0]
mov r9, rbx
mov qword [rsp + 0x30], rax
mov r8, rdi
mov eax, dword [rsp + 0x98]
mov edx, esi
mov dword [rsp + 0x28], eax
mov rcx, rbp
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x20], eax
call r10
jmp 0x14003b706
mov ecx, 0x7f
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0xc000007a
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
lea edx, [rax + 0x2e]
xor byte [rsp + rax + 0x40], dl
inc rax
cmp rax, 0xf
jb 0x14003b720
mov rcx, qword [0x1400d9a80]
lea rdx, [rsp + 0x40]
mov byte [rsp + 0x50], 0
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x1400d9a90]
mov qword [0x1400d9a88], rax
call fcn.1400894ec
jmp 0x14003b6b7
lea rcx, [0x1400d9a90]
call fcn.140089558
cmp dword [0x1400d9a90], 0xffffffff
jne 0x14003b6b7
movdqa xmm0, xmmword [str.__sCWR_PeR_MSTR]
xor eax, eax
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x50], 1
jmp 0x14003b720
Function at 0x14003b790
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov r10d, dword [0x1400daf6c]
mov rbp, rcx
mov rax, qword gs:[0x58]
mov rbx, r9
mov ecx, 4
mov rdi, r8
mov rsi, rdx
mov rax, qword [rax + r10*8]
mov eax, dword [rcx + rax]
cmp dword [0x1400d9aa0], eax
jg 0x14003b8af
mov r10, qword [0x1400d9a98]
test r10, r10
je 0x14003b83d
mov eax, dword [rsp + 0xc8]
mov r9, rbx
mov dword [rsp + 0x48], eax
mov r8, rdi
mov eax, dword [rsp + 0xc0]
mov rdx, rsi
mov dword [rsp + 0x40], eax
mov rcx, rbp
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rax
call r10
jmp 0x14003b84d
mov ecx, 0x7f
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0xc000007a
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea edx, [rax + 0x2e]
xor byte [rsp + rax + 0x50], dl
inc rax
cmp rax, 0x12
jb 0x14003b870
mov rcx, qword [0x1400d9a80]
lea rdx, [rsp + 0x50]
mov byte [rsp + 0x63], 0
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x1400d9aa0]
mov qword [0x1400d9a98], rax
call fcn.1400894ec
jmp 0x14003b7d8
lea rcx, [0x1400d9aa0]
call fcn.140089558
cmp dword [0x1400d9aa0], 0xffffffff
jne 0x14003b7d8
movdqa xmm0, xmmword [0x1400a9d80]
xor eax, eax
movdqu xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x60], 0x1005151
jmp 0x14003b870

Function at 0x14003b8f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov r10d, dword [0x1400daf6c]
mov rbp, rcx
mov rax, qword gs:[0x58]
mov ebx, r9d
mov ecx, 4
mov rdi, r8
mov rsi, rdx
mov rax, qword [rax + r10*8]
mov eax, dword [rcx + rax]
cmp dword [0x1400d9ab0], eax
jg 0x14003b9cf
mov r10, qword [0x1400d9aa8]
test r10, r10
je 0x14003b962
mov rax, qword [rsp + 0x80]
mov r9d, ebx
mov r8, rdi
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbp
call r10
jmp 0x14003b972
mov ecx, 0x7f
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0xc000007a
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
lea edx, [rax + 0x2e]
xor byte [rsp + rax + 0x30], dl
inc rax
cmp rax, 0x16
jb 0x14003b990
mov rcx, qword [0x1400d9a80]
lea rdx, [rsp + 0x30]
mov byte [rsp + 0x47], 0
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x1400d9ab0]
mov qword [0x1400d9aa8], rax
call fcn.1400894ec
jmp 0x14003b938
lea rcx, [0x1400d9ab0]
call fcn.140089558
cmp dword [0x1400d9ab0], 0xffffffff
jne 0x14003b938
movdqa xmm0, xmmword [str.___C_GQVBaQKNN_Q__PBe_PAxj_XHTaDSCbS_w_i_IWaDdUE__Nu_oX_fe6a2d7c37445e4a7de18cb05ce2891cb3ba8493cf434b086bb50ad27d90f90a]
xor eax, eax
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0x2e2d5a73
mov dword [rsp + 0x44], 0x1003a30
jmp 0x14003b990
Function at 0x14003ba10
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
test rcx, rcx
je 0x14003bbb3
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003bbb3
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14003bbb3
mov edx, 0x20b
cmp word [rax + rcx + 0x18], dx
jne 0x14003bbb3
mov qword [rbx], rcx
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
mov qword [rsp + 0x40], rdi
mov qword [rbx + 8], rcx
xor edi, edi
mov qword [rsp + 0x48], r14
lea rax, [rcx + 0x18]
mov qword [rbx + 0x18], rax
lea rdx, [rcx + 4]
mov qword [rbx + 0x10], rdx
lea rax, [rcx + 0x88]
mov qword [rbx + 0x20], rax
lea r14, [rcx + 0x18]
lea rax, [rcx + 0x90]
mov qword [rbx + 0x28], rax
lea rax, [rcx + 0x98]
mov qword [rbx + 0x30], rax
lea rax, [rcx + 0xa0]
mov qword [rbx + 0x38], rax
lea rax, [rcx + 0xa8]
mov qword [rbx + 0x40], rax
lea rax, [rcx + 0xb0]
mov qword [rbx + 0x48], rax
lea rax, [rcx + 0xb8]
mov qword [rbx + 0x50], rax
lea rax, [rcx + 0xc0]
mov qword [rbx + 0x58], rax
lea rax, [rcx + 0xc8]
mov qword [rbx + 0x60], rax
lea rax, [rcx + 0xd0]
mov qword [rbx + 0x68], rax
lea rax, [rcx + 0xd8]
mov qword [rbx + 0x70], rax
lea rax, [rcx + 0xe0]
mov qword [rbx + 0x78], rax
lea rax, [rcx + 0xe8]
mov qword [rbx + 0x80], rax
lea rax, [rcx + 0xf0]
mov qword [rbx + 0x88], rax
lea rax, [rcx + 0xf8]
mov qword [rbx + 0x90], rax
lea rax, [rcx + 0x100]
mov qword [rbx + 0x98], rax
movzx eax, word [rcx + 0x14]
add r14, rax
cmp di, word [rdx + 2]
jae 0x14003bba1
mov qword [rsp + 0x38], rsi
nop dword [rax]
mov rdx, qword [rbx + 0xa8]
movsxd rax, edi
lea rcx, [rax + rax*4]
lea rax, [r14 + rcx*8]
mov qword [rsp + 0x30], rax
cmp rdx, qword [rbx + 0xb0]
je 0x14003bb7d
mov qword [rdx], rax
add qword [rbx + 0xa8], 8
jmp 0x14003bb8e
lea r8, [rsp + 0x30]
lea rcx, [rbx + 0xa0]
call fcn.140006fa0
mov rax, qword [rbx + 0x10]
inc edi
movzx ecx, word [rax + 2]
cmp edi, ecx
jl 0x14003bb50
mov rsi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x48]
mov al, 1
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rbx
ret
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14003bc30
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x14003bc5d
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003bc5d
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14003bc5d
mov edx, 0x20b
cmp word [rax + rcx + 0x18], dx
jne 0x14003bc5d
mov eax, dword [rax + rcx + 0x50]
ret
xor eax, eax
ret
Function at 0x14003c1a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x1400d0580]
xor rax, rsp
mov qword [rbp + 0x50], rax
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x10], xmm0
xor r15d, r15d
mov qword [rbp], r15
lea rdx, [rsp + 0x50]
call fcn.14003ba10
test al, al
je 0x14003c375
mov dword [rsp + 0x30], 0x4a544401
mov word [rsp + 0x34], 0x47
mov byte [rsp + 0x36], 1
mov eax, r15d
nop word [rax + rax]
lea ecx, [rax + 0x2f]
xor byte [rsp + rax + 0x30], cl
inc rax
cmp rax, 5
jb 0x14003c210
mov byte [rsp + 0x36], 0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14003bbc0
mov rsi, rax
mov dword [rsp + 0x38], 0x53554201
mov dword [rsp + 0x3c], 0x1005547
mov rdx, r15
nop word [rax + rax]
lea ecx, [rdx + 0x2f]
xor byte [rsp + rdx + 0x38], cl
inc rdx
cmp rdx, 6
jb 0x14003c250
mov byte [rsp + 0x3f], 0
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.14003bbc0
mov r14, rax
test rsi, rsi
je 0x14003c375
cmp rsi, rax
jae 0x14003c375
mov dword [rbp + 0x20], 1
mov dword [rbp + 0x24], 2
mov dword [rbp + 0x28], 4
mov dword [rbp + 0x2c], 8
mov dword [rbp + 0x30], reloc.WS2_32.dll_recv
mov dword [rbp + 0x34], 0x20
mov dword [rbp + 0x38], 0x40
mov dword [rbp + 0x3c], 0x80
mov dword [rbp + 0x40], 0x100
mov dword [rbp + 0x44], 0x200
mov dword [rbp + 0x48], 0x400
mov dword [rbp + 0x4c], 0x80000000
lea rdi, [rbp + 0x20]
mov edx, dword [rsi + 8]
add edx, 0x1000
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax + 0x18]
mov qword [rbp + 0x18], rcx
mov qword [rsp + 0x40], rdx
mov dword [rbp + 0x10], r15d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov r9d, dword [rdi]
lea r8, [rsp + 0x40]
lea rdx, [rbp + 0x18]
call fcn.14003b8f0
mov edx, dword [r14 + 8]
mov ecx, dword [r14 + 0xc]
mov rax, qword [rsp + 0x68]
add rcx, qword [rax + 0x18]
mov qword [rsp + 0x40], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x10], r15d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov r9d, dword [rdi]
lea r8, [rbp + 0x18]
lea rdx, [rsp + 0x40]
call fcn.14003b8f0
add rdi, 4
lea rax, [rbp + 0x50]
cmp rdi, rax
jne 0x14003c2e1
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14003c3b6
mov rdx, qword [rbp]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003c3b1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003c3b1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140089268
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1400897d0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14003c3e0
Capabilities:
Encode data using xor
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x1400d0580]
xor rax, rsp
mov qword [rbp + 0x20], rax
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
xor ebx, ebx
mov qword [rbp - 0x20], rbx
lea rdx, [rsp + 0x30]
call fcn.14003ba10
test al, al
je 0x14003c51e
mov dword [rsp + 0x20], 0x4a544401
mov word [rsp + 0x24], 0x47
mov byte [rsp + 0x26], 1
mov ecx, ebx
lea eax, [rcx + 0x2f]
xor byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 5
jb 0x14003c440
mov byte [rsp + 0x26], 0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.14003bbc0
mov rsi, rax
mov dword [rsp + 0x28], 0x53554201
mov dword [rsp + 0x2c], 0x1005547
mov rdx, rbx
nop word [rax + rax]
lea ecx, [rdx + 0x2f]
xor byte [rsp + rdx + 0x28], cl
inc rdx
cmp rdx, 6
jb 0x14003c480
mov byte [rsp + 0x2f], 0
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.14003bbc0
mov rdi, rax
mov dword [rsp + 0x20], 0x46505401
mov word [rsp + 0x24], 0x52
mov byte [rsp + 0x26], 1
nop dword [rax + rax]
lea ecx, [rbx + 0x2f]
xor byte [rsp + rbx + 0x20], cl
inc rbx
cmp rbx, 5
jb 0x14003c4c0
mov byte [rsp + 0x26], 0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.14003bbc0
mov rbx, rax
test rsi, rsi
je 0x14003c51e
cmp rsi, rdi
jae 0x14003c51e
cmp rdi, rax
jae 0x14003c51e
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor edx, edx
mov eax, dword [rdi + 0xc]
mov rcx, qword [rbp + 0x18]
div ecx
test edx, edx
jne 0x14003c51e
xor edx, edx
mov eax, dword [rbx + 0xc]
div ecx
test edx, edx
jne 0x14003c51e
mov bl, 1
jmp 0x14003c520
xor bl, bl
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14003c561
mov rdx, qword [rbp - 0x20]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003c55c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003c55c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140089268
movzx eax, bl
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1400897d0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret