joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003031c
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140065950]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140028d24
xor ebx, ebx
cmp qword [0x1400693d8], rbx
mov rdi, rax
jne 0x14003042f
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140030506
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140030506
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1400693d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1400693e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1400693e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1400693f8], rax
test rax, rax
je 0x140030426
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1400693f0], rax
jmp 0x140030436
mov rax, qword [0x1400693f0]
jmp 0x14003043d
mov rax, qword [0x1400693f0]
mov r11, qword [0x1400693f8]
cmp rax, rdi
je 0x1400304a4
cmp r11, rdi
je 0x1400304a4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1400693f8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1400304a4
test rax, rax
je 0x1400304a4
call rsi
test rax, rax
je 0x14003049e
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14003049e
test byte [rsp + 0x40], 1
jne 0x1400304a4
bts ebp, 0x15
jmp 0x1400304e4
mov rcx, qword [0x1400693e0]
cmp rcx, rdi
je 0x1400304e4
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400304e4
call rax
mov rbx, rax
test rax, rax
je 0x1400304e4
mov rcx, qword [0x1400693e8]
cmp rcx, rdi
je 0x1400304e4
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400304e4
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400693d8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140030506
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140030508
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14002a6e0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140576a64
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, 0x5a4d
xor edi, edi
mov rbx, r8
mov rsi, rcx
cmp word [rdx], ax
je 0x140576aa5
mov qword [rcx], rdi
mov qword [rcx + 8], rdi
mov rdx, qword [r8 + 0x18]
cmp rdx, 0x10
jb 0x140576b57
mov rcx, qword [r8]
jmp 0x140576b2e
movsxd rcx, dword [rdx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140576abd
mov qword [rsi], rdi
mov qword [rsi + 8], rdi
jmp 0x140576a8f
movzx r11d, word [rcx + 0x14]
movzx ebp, word [rcx + 6]
add r11, rcx
movzx ecx, di
cmp di, bp
jae 0x140576b1a
mov r14d, 1
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
jb 0x140576ae4
mov rdx, qword [rbx]
movzx eax, cx
lea r10, [rax + rax*4]
lea rax, [r11 + 0x18]
lea rax, [rax + r10*8]
sub rdx, rax
movzx r8d, byte [rax]
movzx r9d, byte [rax + rdx]
sub r8d, r9d
jne 0x140576b0c
add rax, r14
test r9d, r9d
jne 0x140576af6
test r8d, r8d
je 0x140576b7c
add cx, r14w
cmp cx, bp
jb 0x140576ad7
mov qword [rsi], rdi
mov qword [rsi + 8], rdi
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140576b57
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140576b52
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140576b8f
mov rcx, r8
call fcn.1406261b4
mov rbp, qword [rsp + 0x58]
mov rax, rsi
mov byte [rbx], dil
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbx + 0x10], rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
mov eax, dword [r11 + r10*8 + 0x20]
mov qword [rsi], rax
mov eax, dword [r11 + r10*8 + 0x24]
mov qword [rsi + 8], rax
jmp 0x140576b21
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14057b3fc
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 0x14057b42c
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 0x14057b4a4
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x14057b443
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14057b445
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14057b49e
test ecx, ecx
jle 0x14057b47e
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 0x14057b49e
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14057b49e
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 0x14057b4c0
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 0x14057b4e0
xor eax, eax
jmp 0x14057b5c9
cmp qword [rcx + 0x68], 0
je 0x14057b4f2
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 0x14057b5c9
mov rax, qword [rcx + 0x38]
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14057b509
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14057b50b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14057b53d
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 0x14057b5c3
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14057b574
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 0x14057b59e
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 0x14057b5c3
cmp rdi, rbx
ja 0x14057b57b
test rdi, rdi
je 0x14057b5c3
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 0x14057b9a4
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 [0x14069d080]
xor rax, rsp
mov qword [rbp - 8], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x14057b9dd
xor eax, eax
jmp 0x14057bafd
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x14057ba17
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x14057ba17
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 0x14057bafd
cmp qword [rbx + 0x80], 0
je 0x14057bafb
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14057ba52
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 0x14057ba73
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 0x14057baf8
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 0x14057bac1
sub eax, 1
je 0x14057bac1
cmp eax, 2
jne 0x14057bafb
movsx ecx, byte [rbp - 0x30]
jmp 0x14057ba5f
mov r14, qword [rbp - 0x40]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x14057baec
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 0x14057bafb
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.140625ec0
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 0x14057c210
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14069d080]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14057c27f
cmp byte [rcx + 0x71], 0
je 0x14057c27f
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14057c2d4
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 0x14057c299
sub eax, 1
je 0x14057c29d
cmp eax, 2
jne 0x14057c2d4
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140625ec0
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 0x14057c2cb
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 0x14057c2d4
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14057c281
xor al, al
jmp 0x14057c281
Function at 0x14057e690
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14069d080]
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 0x14057e787
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14057e787
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x28], xmm1
xor r8d, r8d
mov qword [rbp - 0x18], r8
mov edi, dword [rax + rdx + 0xb0]
add rdi, rdx
mov rdx, qword [rbp - 0x20]
mov eax, dword [rdi]
test eax, eax
je 0x14057e75e
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 rdx, r8
je 0x14057e741
movups xmm0, xmmword [rbp - 0x48]
movups xmmword [rdx], xmm0
movsd xmm1, qword [rbp - 0x38]
movsd qword [rdx + 0x10], xmm1
mov rdx, qword [rbp - 0x20]
add rdx, 0x18
mov qword [rbp - 0x20], rdx
jmp 0x14057e752
lea r8, [rbp - 0x48]
lea rcx, [rbp - 0x28]
call fcn.14057f05c
mov rdx, qword [rbp - 0x20]
mov eax, dword [rdi + 4]
add rdi, rax
mov r8, qword [rbp - 0x18]
jmp 0x14057e6fb
and qword [rbp - 0x18], 0
and qword [rbp - 0x20], 0
mov rcx, qword [rbp - 0x28]
and qword [rbp - 0x28], 0
mov qword [rbx], rcx
mov qword [rbx + 8], rdx
mov qword [rbx + 0x10], r8
lea rcx, [rbp - 0x28]
call fcn.14057af40
jmp 0x14057e795
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.140625ec0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140580ccc
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x140580d26
mov r11b, reloc.WLDAP32.dll_Ordinal_35
lea rdi, [0x140640490]
movzx ebx, byte [r10]
dec rdx
inc r10
cmp bl, r11b
jne 0x140580d10
cmp rdx, 2
jb 0x140580d10
cmp byte [r10], r11b
jne 0x140580d10
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rbx
shr r9d, 8
xor r9d, dword [rdi + rcx*4]
test rdx, rdx
jne 0x140580cee
jmp 0x140580d67
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x140580d67
mov r11b, reloc.WLDAP32.dll_Ordinal_35
lea rdi, [0x140640490]
cmp dl, r11b
jne 0x140580d4b
cmp byte [r10], r11b
jne 0x140580d4b
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rdi + rcx*4]
test dl, dl
jne 0x140580d39
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret
Function at 0x140580e9c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
test r8, r8
je 0x140580ebc
and qword [r8], 0
lea rdx, [0x14068b968]
call fcn.140580d78
mov rbx, rax
test rax, rax
je 0x140580fad
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x140580fa4
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140580fa4
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140580fa4
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140580fa4
mov rbp, rdi
cmp rdi, 0xffffffffffffffff
je 0x140580fa4
mov rax, qword [0x14069e940]
test rax, rax
je 0x140580f41
inc dword [rax + 0x3b0]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140580fa4
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rbp
je 0x140580f91
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14069e940]
test rax, rax
je 0x140580f86
dec dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140580fad
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x140580f9f
mov qword [rsi], rbp
mov rax, rdi
jmp 0x140580faf
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140582d6c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x28
movsxd rdx, dword [rcx + 0x108]
mov r9d, 4
mov rax, qword [rcx + 0x110]
mov r8d, dword [rax + rdx*4 - 4]
lea rdx, [rsp + 0x38]
not r8d
movzx eax, byte [rdx]
inc rdx
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
lea rax, [0x140640490]
xor r8d, dword [rax + rcx*4]
sub r9, 1
jne 0x140582d95
not r8d
mov ecx, r8d
call fcn.140582ecc
mov eax, r8d
add rsp, 0x28
ret

Function at 0x14058cd44
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14069d080]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rax, qword [0x14069e940]
mov r10d, 4
mov dword [rsp + 0x20], ecx
mov r9, qword [rax + 0x1b90]
movsxd rcx, dword [r9 + 0x108]
mov rax, qword [r9 + 0x110]
mov r8d, dword [rax + rcx*4 - 4]
lea rcx, [rsp + 0x20]
not r8d
movzx eax, byte [rcx]
inc rcx
movzx edx, r8b
xor rdx, rax
shr r8d, 8
lea rax, [0x140640490]
xor r8d, dword [rax + rdx*4]
sub r10, 1
jne 0x14058cd8a
not r8d
lea rdx, [rsp + 0x20]
lea rcx, [r9 + 0x108]
mov dword [rsp + 0x20], r8d
call fcn.14059aed8
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140625ec0
add rsp, 0x38
ret
Function at 0x140591b30
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, qword [0x14069e940]
cmp byte [rbx + 0x3000], 0
je 0x140591bf1
cmp qword [rbx + 0x3008], 0
lea rbp, [rax + 0x10]
lea rdi, [rbx + 0x3010]
je 0x140591be3
mov r9d, dword [rdi + 4]
test r9d, r9d
jns 0x140591b9b
mov eax, r9d
mov rcx, rdi
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14059b208
mov rcx, qword [rsp + 0x40]
and dword [rdi], 0
mov rdx, rcx
mov rcx, rdi
mov r8, rbp
call fcn.1405815dc
mov eax, dword [rdi]
mov edx, 1
mov r9, qword [rbx + 0x3008]
lea ecx, [rax - 1]
neg eax
sbb eax, eax
and eax, ecx
lea rcx, [0x14069e938]
movsxd r8, eax
mov rax, qword [rbx + 0x3018]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140591bf1
mov rdx, rcx
mov r8, rbp
mov rcx, rdi
call fcn.1405815dc
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret

Function at 0x140592238
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x14069e940]
mov rbx, rcx
and dword [rax + 0x2fbc], 0
test rcx, rcx
je 0x1405922a1
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.1405922ac
lea rdx, [0x14068b96c]
mov rcx, rbx
mov rdi, rax
call fcn.140580d78
mov rbx, rax
test rax, rax
je 0x1405922a1
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1405b8118
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
xor r9d, r9d
mov dword [rax - 0x20], 0x80
xor r8d, r8d
mov edx, 0x80000000
mov dword [rax - 0x28], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1405b8159
xor eax, eax
jmp 0x1405b81be
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov edx, eax
mov r8d, 0x3000
mov ebx, eax
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
and qword [rsp + 0x20], 0
xor r9d, r9d
mov rdx, rax
mov r8d, ebx
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1405b81a1
cmp dword [rdi], 0x905a4d
je 0x1405b81b2
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1405b81d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
movabs rax, 0x41e52f21e8f9cbb
mov r15, rcx
mov qword [rsp + 0x30], rax
lea rcx, [r11 - 0x48]
movabs rax, 0xc5807c4fa8db77e0
mov rdi, r9
mov qword [rsp + 0x38], rax
mov rsi, r8
movabs rax, 0x687a7c9e72ebe8d5
mov ebp, edx
mov qword [r11 - 0x58], rax
movabs rax, 0xc5807c4fa8db778c
mov qword [r11 - 0x50], rax
movups xmm0, xmmword [rsp + 0x20]
pxor xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, 0x1000
mov rcx, r15
mov rbx, rax
call fcn.140574908
mov edx, reloc.WS2_32.dll_WSACleanup
xor ecx, ecx
mov r8d, 0x3000
mov r12, rax
lea r9d, [rdx - 0x70]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
movups xmm0, xmmword [0x14069d150]
mov r9d, reloc.WS2_32.dll_WSACleanup
mov r13, rax
mov rdx, r12
mov r8, r13
mov rcx, r15
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14069d160]
lea r14, [r13 + 0x5c]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x14069d170]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [0x14069d180]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [str.D__H]
movups xmmword [rax + 0x40], xmm0
movsd xmm0, qword [0x14069d1a0]
movsd qword [rax + 0x50], xmm0
mov eax, dword [0x14069d1a8]
mov dword [r13 + 0x58], eax
lea rax, [r12 + 0x5c]
mov qword [r13 + 6], rax
mov qword [r14 + 0x10], rsi
mov eax, dword [rdi + 0x28]
add rax, rsi
mov qword [r14 + 8], rax
call fcn.14057480c
mov r9d, ebp
mov r8, rbx
mov rdx, r12
mov ecx, 7
call qword [sym.imp.USER32.dll_SetWindowsHookExA]
mov rdi, rax
jmp 0x1405b8329
mov r9d, Ordinal_26
lea rdx, [r12 + 0x5c]
mov r8, r14
mov rcx, r15
call fcn.140574710
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [r14], 2
jne 0x1405b8308
mov rcx, rdi
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov rdx, r12
mov rcx, r15
call fcn.1405749f4
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_VirtualFree]

Function at 0x1405b836c
Capabilities:
Enumerate pe sections

Disassembly:
movzx r9d, word [rdx + 0x14]
movzx eax, word [rdx + 6]
add r9, 0x18
add r9, rdx
lea rdx, [rax + rax*4]
lea r10, [r9 + rdx*8]
cmp r9, r10
jae 0x1405b83b1
mov edx, dword [r9 + 0xc]
cmp rcx, rdx
jb 0x1405b839d
mov eax, dword [r9 + 8]
add eax, edx
cmp rcx, rax
jb 0x1405b83a3
add r9, 0x28
jmp 0x1405b8384
mov eax, dword [r9 + 0x14]
sub rax, rdx
add rax, rcx
add rax, r8
ret
xor eax, eax
ret
Function at 0x1405bc378
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x14069d080]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor r9d, r9d
mov qword [rsp + 0x38], rcx
mov rbx, rcx
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 5]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
and qword [rbx + 0x10], 0
and qword [rbx + 0x18], 0
test eax, eax
je 0x1405bc3d7
xor r8d, r8d
lea rdx, [0x140639a0b]
jmp 0x1405bc3ef
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1405bc3e0
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14057d00c
mov rax, rbx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140625ec0
add rsp, 0x160
pop rbx
ret