joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140047a24
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x140093028]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rdx
mov r14, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x11], xmm0
movups xmmword [rbp - 1], xmm0
movups xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x1f], rax
mov dword [rbp + 0xf], 0x5284eac3
mov qword [rbp + 7], r9
or rdi, 0xffffffffffffffff
mov rax, rdi
xor ebx, ebx
inc rax
cmp word [r9 + rax*2], bx
jne 0x140047a74
add ax, ax
mov word [rbp - 1], ax
add ax, 2
mov word [rbp + 1], ax
test rsi, rsi
je 0x140047bea
mov edx, select
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400952dc], eax
jle 0x140047bc0
lea rcx, [0x1400952dc]
call fcn.1400690e8
cmp dword [0x1400952dc], edi
jne 0x140047bc0
movups xmm0, xmmword [str._GXyYXSLJPXSZ.5]
movups xmmword [rbp - 0x31], xmm0
movups xmm1, xmmword [0x140085268]
movups xmmword [rbp - 0x21], xmm1
psrldq xmm1, 0xf
movd eax, xmm1
test al, al
je 0x140047b20
mov r8, rbx
movabs rax, 0x97b425ed097b425f
mul r8
shr rdx, 5
movsx eax, dl
imul ecx, eax, 0x36
mov al, r8b
sub al, cl
add al, 0x32
xor byte [rbp + r8 - 0x31], al
inc r8
cmp r8, 0x20
jb 0x140047af4
xorps xmm0, xmm0
movups xmmword [rbp - 0x51], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x41], xmm1
lea rax, [rbp - 0x31]
inc rdi
cmp byte [rax + rdi], bl
jne 0x140047b33
mov r8, rdi
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x51]
call fcn.14004bc48
nop
lea r8, [rbp - 0x51]
mov rdx, qword [0x140095028]
mov rcx, r14
call fcn.1400469b8
mov qword [0x140095290], rax
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x140047ba4
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047b9f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140047b9f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140069480
movdqa xmm0, xmmword [0x140086f20]
movdqu xmmword [rbp - 0x41], xmm0
mov byte [rbp - 0x51], bl
lea rcx, [0x1400952dc]
call fcn.14006907c
cmp qword [0x140095290], rbx
je 0x140047bea
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
mov r9, rsi
lea rdx, [rbp - 0x59]
mov rcx, r14
call fcn.14004b5ec
neg al
sbb rbx, rbx
and rbx, qword [rbp - 0x59]
mov rax, rbx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140069020
add rsp, 0xc0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140048b98
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 0x140048bc8
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 0x140048c40
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140048bdf
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140048be1
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140048c3a
test ecx, ecx
jle 0x140048c1a
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 0x140048c3a
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140048c3a
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 0x140048c5c
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140048c7c
xor eax, eax
jmp 0x140048d65
cmp qword [rcx + 0x68], 0
je 0x140048c8e
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 0x140048d65
mov rax, qword [rcx + 0x38]
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140048ca5
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140048ca7
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140048cd9
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rdi, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140048d5f
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140048d10
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
mov ebx, 0xfff
jmp 0x140048d3a
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]
add r14, rax
sub rdi, rax
cmp rax, rbx
jne 0x140048d5f
cmp rdi, rbx
ja 0x140048d17
test rdi, rdi
je 0x140048d5f
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
sub rbp, rdi
mov rax, rbp
add rsp, 0x20
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140049134
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 [0x140093028]
xor rax, rsp
mov qword [rbp - 8], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x14004916d
xor eax, eax
jmp 0x14004928d
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x1400491a7
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x1400491a7
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 0x14004928d
cmp qword [rbx + 0x80], 0
je 0x14004928b
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400491e2
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 0x140049203
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 0x140049288
lea rax, [rbp - 0x40]
mov byte [rbp - 0x30], sil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x2f]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x30]
lea rax, [rbp - 0x38]
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 0x140049251
sub eax, 1
je 0x140049251
cmp eax, 2
jne 0x14004928b
movsx ecx, byte [rbp - 0x30]
jmp 0x1400491ef
mov r14, qword [rbp - 0x40]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x14004927c
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 0x14004928b
lea rax, [rbp - 0x30]
mov byte [rbx + 0x71], 1
cmp qword [rbp - 0x38], rax
cmovne edi, esi
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140069020
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 0x1400496d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140093028]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14004973f
cmp byte [rcx + 0x71], 0
je 0x14004973f
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140049794
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 0x140049759
sub eax, 1
je 0x14004975d
cmp eax, 2
jne 0x140049794
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140069020
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 0x14004978b
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 0x140049794
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140049741
xor al, al
jmp 0x140049741
Function at 0x14004c718
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Parse pe header
Resolve function by parsing pe exports

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 eax, 0x5a4d
cmp word [rcx], ax
jne 0x14004c8d8
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14004c8d8
mov r8d, dword [rax + rcx + 0xd8]
test r8d, r8d
je 0x14004c8d4
mov rbx, qword [r8 + rcx + 0x58]
test rbx, rbx
je 0x14004c8d4
sub rcx, rdx
movabs r14, 0x2b992ddfa232
add rbx, rcx
cmp qword [rbx], r14
jne 0x14004c8d8
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r8, qword [rax + 0x30]
movsxd rcx, dword [r8 + 0x3c]
mov r10d, dword [rcx + r8 + 0x88]
add r10, r8
cmp r10, r8
je 0x14004c7ff
mov r9d, dword [r10 + 0x18]
test r9d, r9d
je 0x14004c7ff
mov esi, dword [r10 + 0x20]
dec r9d
mov r11d, 0x405644d9
lea rcx, [rsi + r9*4]
mov edx, dword [rcx + r8]
add rdx, r8
mov cl, byte [rdx]
inc rdx
test cl, cl
je 0x14004c7fa
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x14004c7db
cmp r11d, 0xb596807c
je 0x14004c804
test r9d, r9d
jne 0x14004c7be
mov rax, qword [rax]
jmp 0x14004c799
mov ecx, dword [r10 + 0x24]
add rcx, r8
movzx edx, word [rcx + r9*2]
mov ecx, dword [r10 + 0x1c]
add rcx, r8
mov eax, dword [rcx + rdx*4]
add rax, r8
call rax
mov ebp, eax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r8, qword [rax + 0x30]
movsxd rcx, dword [r8 + 0x3c]
mov r10d, dword [rcx + r8 + 0x88]
add r10, r8
cmp r10, r8
je 0x14004c898
mov r9d, dword [r10 + 0x18]
test r9d, r9d
je 0x14004c898
mov edi, dword [r10 + 0x20]
dec r9d
mov r11d, 0x3d564020
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r8]
add rdx, r8
mov cl, byte [rdx]
inc rdx
test cl, cl
je 0x14004c893
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x14004c874
cmp r11d, 0x91c39c58
je 0x14004c89d
test r9d, r9d
jne 0x14004c857
mov rax, qword [rax]
jmp 0x14004c832
mov ecx, dword [r10 + 0x24]
add rcx, r8
movzx edx, word [rcx + r9*2]
mov ecx, dword [r10 + 0x1c]
add rcx, r8
mov eax, dword [rcx + rdx*4]
add rax, r8
call rax
mov edx, eax
movabs rax, 0x2b992ddfa233
xor rdx, rbp
xor rdx, r14
cmp rdx, r14
cmove rdx, rax
mov qword [rbx], rdx
mov al, 1
jmp 0x14004c8da
xor al, al
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 0x14004d13c
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140093028]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, rdx
mov rbx, rcx
mov qword [rbp - 0x30], rcx
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14004d259
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14004d259
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x28], xmm1
xor edx, edx
mov qword [rbp - 0x18], rdx
mov ecx, dword [rax + rsi + 0xb0]
test ecx, ecx
jne 0x14004d1ba
and qword [rbx], rdx
and qword [rbx + 8], rdx
and qword [rbx + 0x10], rdx
lea rcx, [rbp - 0x28]
call fcn.14004ca78
jmp 0x14004d267
lea rdi, [rsi + rcx]
mov r14d, dword [rax + rsi + 0xb4]
add r14, rdi
mov rcx, qword [rbp - 0x20]
cmp rdi, r14
jae 0x14004d236
cmp dword [rdi + 4], 0
je 0x14004d236
mov eax, dword [rdi]
add rax, rsi
mov qword [rbp - 0x48], rax
lea rax, [rdi + 8]
mov qword [rbp - 0x40], rax
mov eax, dword [rdi + 4]
sub rax, 8
shr rax, 1
mov dword [rbp - 0x38], eax
cmp rcx, rdx
je 0x14004d216
movups xmm0, xmmword [rbp - 0x48]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rbp - 0x38]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rbp - 0x20], rcx
jmp 0x14004d22e
lea r8, [rbp - 0x48]
mov rdx, rcx
lea rcx, [rbp - 0x28]
call fcn.14004d9d0
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
mov eax, dword [rdi + 4]
add rdi, rax
jmp 0x14004d1cd
and qword [rbp - 0x18], 0
and qword [rbp - 0x20], 0
mov rax, qword [rbp - 0x28]
and qword [rbp - 0x28], 0
mov qword [rbx], rax
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
jmp 0x14004d1ac
and qword [rcx], 0
and qword [rcx + 8], 0
and qword [rcx + 0x10], 0
mov rax, rbx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140069020
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14004ef6c
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140093028]
xor rax, rsp
mov qword [rbp - 8], rax
xor ebx, ebx
lea r9, [rbp - 0x30]
and dword [rbp - 0x30], ebx
mov r14, rcx
xor r8d, r8d
xor edx, edx
lea edi, [rbx + 0xb]
mov ecx, edi
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, 0xc0000004
jmp 0x14004eff3
test rbx, rbx
je 0x14004efc8
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp - 0x30]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rbp - 0x30]
lea r9, [rbp - 0x30]
mov rdx, rax
mov ecx, edi
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, esi
je 0x14004efb2
test eax, eax
jns 0x14004f034
test rbx, rbx
je 0x14004f011
mov r8d, 0x8000
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140069020
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
test rbx, rbx
je 0x14004f011
xor edi, edi
cmp dword [rbx], edi
jbe 0x14004f000
and qword [rbp - 0x18], 0
xorps xmm0, xmm0
and qword [rbp - 0x10], 0
mov eax, edi
imul rsi, rax, 0x128
movups xmmword [rbp - 0x28], xmm0
movzx edx, word [rsi + rbx + 0x2e]
add rdx, 0x30
add rdx, rsi
add rdx, rbx
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x14004f06c
lea rcx, [rbp - 0x28]
call fcn.14004bc48
cmp qword [r14 + 0x18], 0x10
mov rdx, r14
jb 0x14004f08c
mov rdx, qword [r14]
cmp qword [rbp - 0x10], 0x10
lea rcx, [rbp - 0x28]
cmovae rcx, qword [rbp - 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14004f0ea
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x14004f0db
mov rcx, qword [rbp - 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f0d6
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004f132
call fcn.140069480
inc edi
cmp edi, dword [rbx]
jb 0x14004f03f
jmp 0x14004f000
mov rdi, qword [rsi + rbx + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x14004f13e
mov rcx, qword [rbp - 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f139
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004f139
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140069480
mov rax, rdi
jmp 0x14004f013
Function at 0x14004f148
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r14, r8
mov rbp, rdx
mov r12, rcx
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rcx + rbx], 0
jne 0x14004f171
movsxd rcx, dword [rdx + 0x3c]
lea r13, [rdx + 0x18]
add r13, rcx
xor esi, esi
movzx eax, word [rcx + rdx + 0x14]
movzx r15d, word [rcx + rdx + 6]
add r13, rax
test r15d, r15d
je 0x14004f1d4
lea rcx, [rsi + rsi*4]
mov r8, rbx
lea rdi, [rcx*8]
mov rdx, r12
add rdi, r13
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14004f1cd
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], 0
jne 0x14004f1bf
cmp rbx, rax
je 0x14004f1f3
inc esi
cmp esi, r15d
jb 0x14004f19a
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
cmp dword [rdi + 0xc], 0
je 0x14004f1d4
test r14, r14
je 0x14004f204
mov eax, dword [rdi + 8]
mov dword [r14], eax
mov eax, dword [rdi + 0xc]
add rax, rbp
jmp 0x14004f1d6
Function at 0x140050778
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x13c0
call fcn.14006a4d0
sub rsp, rax
mov rax, qword [0x140093028]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
mov ebx, edx
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
or dword [rsp + 0x13a4], 0xffffffff
mov edx, 0x270
mov dword [rsp + 0x24], eax
mov r8d, 1
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, r8d
mov dword [rsp + r8*4 + 0x24], eax
inc r8
cmp r8, rdx
jb 0x1400507bc
mov dword [rsp + 0x20], edx
lea rcx, [rsp + 0x20]
cmp ebx, 4
jne 0x1400507f0
call fcn.140067120
mov ecx, eax
jmp 0x14005082a
add ebx, 0xfffffffc
call fcn.140067120
mov ecx, eax
mov edi, ebx
imul rcx, rdi
cmp ecx, ebx
jae 0x140050826
mov eax, ebx
xor edx, edx
neg eax
div ebx
mov ebx, edx
cmp ecx, edx
jae 0x140050826
lea rcx, [rsp + 0x20]
call fcn.140067120
mov ecx, eax
imul rcx, rdi
cmp ecx, ebx
jb 0x140050812
shr rcx, 0x20
lea eax, [rcx + 5]
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.140069020
mov rbx, qword [rsp + 0x13d0]
add rsp, 0x13c0
pop rdi
ret
Function at 0x140050850
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x140093028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rbp, rax
mov edx, dword [0x1400861c4]
mov dword [rsp + 0x20], edx
movzx edx, word [0x1400861c8]
mov word [rsp + 0x24], dx
mov cl, byte [0x1400861ca]
mov byte [rsp + 0x26], cl
xor r8d, r8d
movabs rax, 0x4ec4ec4ec4ec4ec5
mul r8
shr rdx, 4
movsx eax, dl
imul ecx, eax, 0x34
mov al, r8b
sub al, cl
add al, 0x32
xor byte [rsp + r8 + 0x20], al
inc r8
cmp r8, 7
jb 0x1400508a5
mov rdi, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400508de
mov rdi, qword [rbx]
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r8, qword [rax + 0x30]
movsxd rcx, dword [r8 + 0x3c]
mov r10d, dword [rcx + r8 + 0x88]
add r10, r8
cmp r10, r8
je 0x140050955
mov r9d, dword [r10 + 0x18]
test r9d, r9d
je 0x140050955
mov r14d, dword [r10 + 0x20]
dec r9d
lea rcx, [r14 + r9*4]
mov edx, dword [rcx + r8]
add rdx, r8
mov r11d, 0xf50156be
mov cl, byte [rdx]
inc rdx
test cl, cl
je 0x140050950
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x140050931
cmp r11d, 0x9d2d2dc1
je 0x14005095a
test r9d, r9d
jne 0x140050914
mov rax, qword [rax]
jmp 0x1400508ef
mov ecx, dword [r10 + 0x1c]
add rcx, r8
mov eax, dword [r10 + 0x24]
add rax, r8
movzx eax, word [rax + r9*2]
mov r10d, dword [rcx + rax*4]
add r10, r8
xor r9d, r9d
lea r8, [rsp + 0x20]
mov rdx, rdi
mov rcx, rbp
call r10
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r8, qword [rax + 0x30]
movsxd rcx, dword [r8 + 0x3c]
mov r10d, dword [rcx + r8 + 0x88]
add r10, r8
cmp r10, r8
je 0x1400509fc
mov r9d, dword [r10 + 0x18]
test r9d, r9d
je 0x1400509fc
mov esi, dword [r10 + 0x20]
dec r9d
lea rcx, [rsi + r9*4]
mov edx, dword [rcx + r8]
add rdx, r8
mov r11d, 0x7a0466b4
mov cl, byte [rdx]
inc rdx
test cl, cl
je 0x1400509f7
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x1400509d8
cmp r11d, 0x4608aec4
je 0x140050a01
test r9d, r9d
jne 0x1400509bb
mov rax, qword [rax]
jmp 0x140050996
mov edx, dword [r10 + 0x1c]
add rdx, r8
mov eax, dword [r10 + 0x24]
add rax, r8
movzx eax, word [rax + r9*2]
mov edx, dword [rdx + rax*4]
add rdx, r8
mov ecx, 1
call rdx
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140050a58
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140050a53
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140050a88
mov rcx, r8
call fcn.140069480
and qword [rbx + 0x10], 0
mov qword [rbx + 0x18], setsockopt
mov byte [rbx], 0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140069020
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140054244
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140093028]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140054306
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [0x140093510]
lea rsi, str.Xb_b_
and dword [rsp + 0x3c], 0
mov edi, eax
movabs rax, 0x4d54ee85da812030
add rdx, rax
cmp rdx, 1
jbe 0x1400542b6
mov rcx, qword [str.Xb_b_]
mov edx, edi
mov r8, qword [rcx + 0x30]
mov rcx, rsi
call r8
jmp 0x1400542bb
test edi, edi
setne al
lea rcx, str.C:Users_ntoskrnlDesktopSDK_boost_asio_182_0_boost_asiodetail_throw_error.hpp
movzx eax, al
add rax, 2
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x48], rax
lea rcx, str.win_tss_ptr_create
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x30], 0x30
mov dword [rsp + 0x34], 5
test al, 1
je 0x140054306
cmp rax, 1
jne 0x140054325
test edi, edi
jne 0x140054325
mov eax, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140069020
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
lea r8, [rsp + 0x20]
lea rdx, [0x140086954]
lea rcx, [rsp + 0x38]
call fcn.140054178
int3

Function at 0x140054834
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140093028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 8]
mov rbx, rcx
or r9d, 0xffffffff
mov qword [rsp + 0x28], rax
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x140095224], eax
test eax, eax
je 0x14005489a
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x1400548bb
mov rdx, qword [rbx + 8]
lea rcx, [fcn.140002004]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140069020
add rsp, 0x40
pop rbx
ret