joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140423a34
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 0x140423a75
mov qword [rcx], rdi
mov qword [rcx + 8], rdi
mov rdx, qword [r8 + 0x18]
cmp rdx, 0x10
jb 0x140423b27
mov rcx, qword [r8]
jmp 0x140423afe
movsxd rcx, dword [rdx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140423a8d
mov qword [rsi], rdi
mov qword [rsi + 8], rdi
jmp 0x140423a5f
movzx r11d, word [rcx + 0x14]
movzx ebp, word [rcx + 6]
add r11, rcx
movzx ecx, di
cmp di, bp
jae 0x140423aea
mov r14d, 1
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
jb 0x140423ab4
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 0x140423adc
add rax, r14
test r9d, r9d
jne 0x140423ac6
test r8d, r8d
je 0x140423b4c
add cx, r14w
cmp cx, bp
jb 0x140423aa7
mov qword [rsi], rdi
mov qword [rsi + 8], rdi
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140423b27
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140423b22
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140423b5f
mov rcx, r8
call fcn.1404d1eb4
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 0x140423af1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1404283cc
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 0x1404283fc
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 0x140428474
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140428413
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140428415
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14042846e
test ecx, ecx
jle 0x14042844e
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 0x14042846e
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14042846e
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 0x140428490
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 0x1404284b0
xor eax, eax
jmp 0x140428599
cmp qword [rcx + 0x68], 0
je 0x1404284c2
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 0x140428599
mov rax, qword [rcx + 0x38]
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1404284d9
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1404284db
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14042850d
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 0x140428593
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140428544
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 0x14042856e
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 0x140428593
cmp rdi, rbx
ja 0x14042854b
test rdi, rdi
je 0x140428593
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 0x140428974
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 [0x140547080]
xor rax, rsp
mov qword [rbp - 8], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x1404289ad
xor eax, eax
jmp 0x140428acd
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x1404289e7
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x1404289e7
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 0x140428acd
cmp qword [rbx + 0x80], 0
je 0x140428acb
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140428a22
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 0x140428a43
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 0x140428ac8
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 0x140428a91
sub eax, 1
je 0x140428a91
cmp eax, 2
jne 0x140428acb
movsx ecx, byte [rbp - 0x30]
jmp 0x140428a2f
mov r14, qword [rbp - 0x40]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x140428abc
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 0x140428acb
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.1404d1bc0
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 0x1404291e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140547080]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14042924f
cmp byte [rcx + 0x71], 0
je 0x14042924f
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x1404292a4
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 0x140429269
sub eax, 1
je 0x14042926d
cmp eax, 2
jne 0x1404292a4
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1404d1bc0
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 0x14042929b
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 0x1404292a4
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140429251
xor al, al
jmp 0x140429251
Function at 0x14042b5f0
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 [0x140547080]
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 0x14042b6e7
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14042b6e7
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 0x14042b6be
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 0x14042b6a1
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 0x14042b6b2
lea r8, [rbp - 0x48]
lea rcx, [rbp - 0x28]
call fcn.14042bfcc
mov rdx, qword [rbp - 0x20]
mov eax, dword [rdi + 4]
add rdi, rax
mov r8, qword [rbp - 0x18]
jmp 0x14042b65b
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.140427f10
jmp 0x14042b6f5
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.1404d1bc0
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 0x14042dc3c
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 0x14042dc96
mov r11b, reloc.WLDAP32.dll_Ordinal_35
lea rdi, [0x1404eb490]
movzx ebx, byte [r10]
dec rdx
inc r10
cmp bl, r11b
jne 0x14042dc80
cmp rdx, 2
jb 0x14042dc80
cmp byte [r10], r11b
jne 0x14042dc80
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 0x14042dc5e
jmp 0x14042dcd7
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x14042dcd7
mov r11b, reloc.WLDAP32.dll_Ordinal_35
lea rdi, [0x1404eb490]
cmp dl, r11b
jne 0x14042dcbb
cmp byte [r10], r11b
jne 0x14042dcbb
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 0x14042dca9
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret
Function at 0x14042de0c
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 0x14042de2c
and qword [r8], 0
lea rdx, [0x140536968]
call fcn.14042dce8
mov rbx, rax
test rax, rax
je 0x14042df1d
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x14042df14
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 0x14042df14
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14042df14
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 0x14042df14
mov rbp, rdi
cmp rdi, 0xffffffffffffffff
je 0x14042df14
mov rax, qword [0x1405485d0]
test rax, rax
je 0x14042deb1
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 0x14042df14
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 0x14042df01
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1405485d0]
test rax, rax
je 0x14042def6
dec dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14042df1d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x14042df0f
mov qword [rsi], rbp
mov rax, rdi
jmp 0x14042df1f
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 0x14042fcdc
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, [0x1404eb490]
xor r8d, dword [rax + rcx*4]
sub r9, 1
jne 0x14042fd05
not r8d
mov ecx, r8d
call fcn.14042fe3c
mov eax, r8d
add rsp, 0x28
ret

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

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140547080]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rax, qword [0x1405485d0]
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, [0x1404eb490]
xor r8d, dword [rax + rdx*4]
sub r10, 1
jne 0x140439cfa
not r8d
lea rdx, [rsp + 0x20]
lea rcx, [r9 + 0x108]
mov dword [rsp + 0x20], r8d
call fcn.140447e48
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1404d1bc0
add rsp, 0x38
ret
Function at 0x14043eaa0
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 [0x1405485d0]
cmp byte [rbx + 0x3000], 0
je 0x14043eb61
cmp qword [rbx + 0x3008], 0
lea rbp, [rax + 0x10]
lea rdi, [rbx + 0x3010]
je 0x14043eb53
mov r9d, dword [rdi + 4]
test r9d, r9d
jns 0x14043eb0b
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.140448178
mov rcx, qword [rsp + 0x40]
and dword [rdi], 0
mov rdx, rcx
mov rcx, rdi
mov r8, rbp
call fcn.14042e54c
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, [0x1405485c8]
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 0x14043eb61
mov rdx, rcx
mov r8, rbp
mov rcx, rdi
call fcn.14042e54c
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret

Function at 0x14043f1a8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x1405485d0]
mov rbx, rcx
and dword [rax + 0x2fbc], 0
test rcx, rcx
je 0x14043f211
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.14043f21c
lea rdx, [0x14053696c]
mov rcx, rbx
mov rdi, rax
call fcn.14042dce8
mov rbx, rax
test rax, rax
je 0x14043f211
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 0x140464db4
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 0x140464df5
xor eax, eax
jmp 0x140464e5a
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 0x140464e3d
cmp dword [rdi], 0x905a4d
je 0x140464e4e
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 0x140464e6c
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, 0x7b966015652bda85
mov r15, rcx
mov qword [rsp + 0x30], rax
lea rcx, [r11 - 0x48]
movabs rax, 0xf9f7dd6498ecffc6
mov rdi, r9
mov qword [rsp + 0x38], rax
mov rsi, r8
movabs rax, 0x17f24e79094faeeb
mov ebp, edx
mov qword [r11 - 0x58], rax
movabs rax, 0xf9f7dd6498ecffaa
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.1404218d8
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 [0x1405470f0]
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 [0x140547100]
lea r14, [r13 + 0x5c]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x140547110]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [0x140547120]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [0x140547130]
movups xmmword [rax + 0x40], xmm0
movsd xmm0, qword [0x140547140]
movsd qword [rax + 0x50], xmm0
mov eax, dword [0x140547148]
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.1404217dc
mov r9d, ebp
mov r8, rbx
mov rdx, r12
mov ecx, 7
call qword [sym.imp.USER32.dll_SetWindowsHookExA]
mov rdi, rax
jmp 0x140464fc5
mov r9d, Ordinal_26
lea rdx, [r12 + 0x5c]
mov r8, r14
mov rcx, r15
call fcn.1404216e0
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [r14], 2
jne 0x140464fa4
mov rcx, rdi
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov rdx, r12
mov rcx, r15
call fcn.1404219c4
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 0x140465008
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 0x14046504d
mov edx, dword [r9 + 0xc]
cmp rcx, rdx
jb 0x140465039
mov eax, dword [r9 + 8]
add eax, edx
cmp rcx, rax
jb 0x14046503f
add r9, 0x28
jmp 0x140465020
mov eax, dword [r9 + 0x14]
sub rax, rdx
add rax, rcx
add rax, r8
ret
xor eax, eax
ret
Function at 0x140468a44
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x140547080]
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 0x140468aa3
xor r8d, r8d
lea rdx, [0x1404e4a0b]
jmp 0x140468abb
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140468aac
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140429fdc
mov rax, rbx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1404d1bc0
add rsp, 0x160
pop rbx
ret
Function at 0x14046bbe8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rdi, r8
mov rsi, rdx
mov r10, rcx
cmp rdx, r8
je 0x14046bd89
mov r14, qword [rcx + 0x18]
lea rax, [rcx + 8]
mov r12, qword [rdx + 8]
lea rcx, [rdx + 0x10]
cmp qword [rcx + 0x18], 0x10
mov r13, qword [rax]
mov r9, qword [rcx + 0x10]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], rdx
jb 0x14046bc43
mov rcx, qword [rcx]
xor r8d, r8d
movabs rdx, 0xcbf29ce484222325
movabs r11, 0x100000001b3
test r9, r9
je 0x14046bc73
movzx eax, byte [r8 + rcx]
inc r8
xor rdx, rax
imul rdx, r11
cmp r8, r9
jb 0x14046bc5f
mov r15, qword [r10 + 0x30]
lea rcx, [rbp - 0x20]
and r15, rdx
add r15, r15
mov rbx, qword [r14 + r15*8]
mov rax, qword [r14 + r15*8 + 8]
mov qword [rbp + 0x50], rbx
mov qword [rbp + 0x48], rax
call fcn.14046bda4
mov rax, qword [rbp + 0x48]
cmp rsi, rax
je 0x14046bcc8
mov rcx, qword [rbp - 0x10]
cmp rcx, rdi
je 0x14046bd3f
cmp rcx, rax
lea rcx, [rbp - 0x20]
sete bl
call fcn.14046bda4
mov rax, qword [rbp + 0x48]
test bl, bl
je 0x14046bca0
mov rbx, qword [rbp + 0x50]
cmp rbx, rsi
jne 0x14046bcd4
mov qword [r14 + r15*8], r13
mov r12, r13
mov qword [r14 + r15*8 + 8], r12
mov rcx, qword [rbp - 0x10]
cmp rcx, rdi
je 0x14046bd7e
mov r12, qword [rbp + 0x40]
lea rdx, [rcx + 0x10]
cmp qword [rdx + 0x18], 0x10
mov r9, qword [rdx + 0x10]
jb 0x14046bcfc
mov rdx, qword [rdx]
xor r8d, r8d
movabs rsi, 0xcbf29ce484222325
test r9, r9
je 0x14046bd30
movabs rcx, 0x100000001b3
movzx eax, byte [r8 + rdx]
inc r8
xor rsi, rax
imul rsi, rcx
cmp r8, r9
jb 0x14046bd18
mov rcx, qword [rbp - 0x10]
and rsi, qword [r12 + 0x30]
add rsi, rsi
mov r15, qword [r14 + rsi*8 + 8]
jmp 0x14046bd50
cmp qword [rbp + 0x50], rsi
jne 0x14046bd7e
mov qword [r14 + r15*8], rcx
jmp 0x14046bd7e
cmp rcx, rdi
je 0x14046bd7a
cmp rcx, r15
lea rcx, [rbp - 0x20]
sete bl
call fcn.14046bda4
mov rcx, qword [rbp - 0x10]
test bl, bl
je 0x14046bd4b
mov qword [r14 + rsi*8], r13
mov qword [r14 + rsi*8 + 8], r13
cmp rcx, rdi
je 0x14046bd7e
jmp 0x14046bcea
mov qword [r14 + rsi*8], rcx
mov rax, qword [rbp - 0x18]
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov rbx, qword [rsp + 0x98]
mov rax, rdi
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret