joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008fb10
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14008fbdc
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14008fbdc
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14008fbf5
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14008fbcc
cmp byte [rax], 0x5c
jne 0x14008fbc6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14008fbc6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14008fbb2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14008fbc3
test r8b, 0x10
jne 0x14008fbc6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14008fbc6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140087160
test edi, edi
jne 0x14008fb30
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140087150
int3
Function at 0x140092030
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x38]
sub rsp, 0x138
mov rax, qword [0x1401b06f8]
xor rax, rsp
mov qword [rbp + 0x20], rax
movdqa xmm1, xmmword [0x140192a50]
xorps xmm0, xmm0
mov r15, qword [rbp + 0x90]
mov rsi, r9
mov r14, r8
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movdqa xmm0, xmmword [0x140192ad0]
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rsp + 0x20], xmm1
movups xmmword [rsp + 0x30], xmm1
movups xmmword [rsp + 0x40], xmm1
movups xmmword [rsp + 0x50], xmm1
cmp rdx, 0x40
jbe 0x1400920c0
mov r9d, 0x40
lea r8, [rbp - 0x60]
call fcn.140092200
jmp 0x1400920cf
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memcpy
xor eax, eax
movdqu xmm1, xmmword [rbp + rax - 0x60]
movdqu xmm0, xmmword [rsp + rax + 0x20]
xorps xmm0, xmm1
movdqu xmmword [rsp + rax + 0x20], xmm0
movdqu xmm0, xmmword [rsp + rax + 0x60]
xorps xmm0, xmm1
movdqu xmmword [rsp + rax + 0x60], xmm0
add rax, 0x10
cmp rax, 0x40
jl 0x1400920d1
lea rbx, [rsi + 0x40]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
movups xmm0, xmmword [rsp + 0x20]
mov r8, rsi
movups xmm1, xmmword [rsp + 0x30]
mov rdx, r14
mov rdi, rax
movups xmmword [rax], xmm0
lea rcx, [rax + 0x40]
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rax + 0x10], xmm1
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm1
call sub.VCRUNTIME140.dll_memcpy
mov esi, reloc.WLDAP32.dll_Ordinal_32
lea r8, [rbp - 0x20]
mov r9d, esi
mov rdx, rbx
mov rcx, rdi
call fcn.140092200
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea ecx, [rsi + 0x40]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
movups xmm0, xmmword [rsp + 0x60]
lea r8, [rbp]
movups xmm1, xmmword [rsp + 0x70]
lea edx, [rsi + 0x40]
mov r9d, esi
mov rcx, rax
movups xmmword [rax], xmm0
mov rbx, rax
movups xmm0, xmmword [rbp - 0x80]
movups xmmword [rax + 0x10], xmm1
movups xmm1, xmmword [rbp - 0x70]
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rbp - 0x10]
movups xmmword [rax + 0x50], xmm1
call fcn.140092200
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rbp + 0x98]
lea rdx, [rbp]
cmp rbx, rsi
mov rcx, r15
cmova rbx, rsi
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, rbx
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1401292a0
add rsp, 0x138
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140092200
Capabilities:
Hash data using sha256

Disassembly:
push rbp
push rbx
push rsi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x1401b06f8]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rbx, rdx
mov qword [rbp - 0x55], 0x5be0cd19
xor edx, edx
mov dword [rbp - 0x71], 0x6a09e667
mov qword [rbp - 0x79], rdx
mov r14, r9
mov dword [rbp - 0x6d], 0xbb67ae85
mov r15, r8
mov dword [rbp - 0x69], 0x3c6ef372
mov rsi, rcx
mov dword [rbp - 0x65], 0xa54ff53a
mov dword [rbp - 0x61], 0x510e527f
mov dword [rbp - 0x5d], 0x9b05688c
mov dword [rbp - 0x59], 0x1f83d9ab
test ebx, ebx
je 0x140092303
mov qword [rsp + 0xc8], rdi
nop dword [rax]
test edx, edx
jne 0x1400922a9
cmp ebx, 0x40
jb 0x1400922a9
mov rdx, rsi
lea rcx, [rbp - 0x79]
call fcn.140092350
add qword [rbp - 0x79], 0x200
add rsi, 0x40
mov edx, dword [rbp - 0x51]
add ebx, 0xffffffc0
jmp 0x1400922f7
mov eax, edx
mov ecx, 0x40
sub ecx, edx
mov edi, ebx
cmp ebx, ecx
mov rdx, rsi
cmovae edi, ecx
lea rcx, [rbp - 0x4d]
add rcx, rax
mov r8d, edi
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [rbp - 0x51]
add rsi, rdi
add edx, edi
sub ebx, edi
mov dword [rbp - 0x51], edx
cmp edx, 0x40
jne 0x1400922f7
lea rdx, [rbp - 0x4d]
lea rcx, [rbp - 0x79]
call fcn.140092350
add qword [rbp - 0x79], 0x200
xor edx, edx
mov dword [rbp - 0x51], edx
test ebx, ebx
jne 0x140092280
mov rdi, qword [rsp + 0xc8]
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x79]
call fcn.140092a40
mov eax, reloc.WLDAP32.dll_Ordinal_32
lea rdx, [rbp - 9]
cmp r14, rax
mov rcx, r15
cmova r14, rax
mov r8, r14
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1401292a0
add rsp, 0xd0
pop r15
pop r14
pop rsi
pop rbx
pop rbp
ret
Function at 0x140092a40
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov r8d, dword [rcx + 0x28]
mov rdi, rdx
mov rbx, rcx
cmp r8d, 0x40
jae 0x140092bf8
lea ecx, [r8*8]
mov qword [rsp + 0x30], rsi
add qword [rbx], rcx
mov byte [r8 + rbx + 0x2c], 0x80
mov eax, dword [rbx + 0x28]
inc eax
mov dword [rbx + 0x28], eax
cmp eax, 0x38
jbe 0x140092ab8
cmp eax, 0x40
jae 0x140092aa2
nop word [rax + rax]
mov byte [rax + rbx + 0x2c], 0
mov eax, dword [rbx + 0x28]
inc eax
mov dword [rbx + 0x28], eax
cmp eax, 0x40
jb 0x140092a90
lea rsi, [rbx + 0x2c]
mov rcx, rbx
mov rdx, rsi
call fcn.140092350
xor eax, eax
mov dword [rbx + 0x28], eax
jmp 0x140092ac0
lea rsi, [rbx + 0x2c]
jae 0x140092ad2
nop
mov byte [rax + rbx + 0x2c], 0
mov eax, dword [rbx + 0x28]
inc eax
mov dword [rbx + 0x28], eax
cmp eax, 0x38
jb 0x140092ac0
movzx eax, byte [rbx + 7]
mov rdx, rsi
mov byte [rbx + 0x64], al
mov rcx, rbx
movzx eax, byte [rbx + 6]
mov byte [rbx + 0x65], al
movzx eax, byte [rbx + 5]
mov byte [rbx + 0x66], al
movzx eax, byte [rbx + 4]
mov byte [rbx + 0x67], al
movzx eax, byte [rbx + 3]
mov byte [rbx + 0x68], al
movzx eax, byte [rbx + 2]
mov byte [rbx + 0x69], al
movzx eax, byte [rbx + 1]
mov byte [rbx + 0x6a], al
movzx eax, byte [rbx]
mov byte [rbx + 0x6b], al
call fcn.140092350
movzx eax, byte [rbx + 0xb]
mov byte [rdi], al
movzx eax, byte [rbx + 0xa]
mov byte [rdi + 1], al
movzx eax, byte [rbx + 9]
mov byte [rdi + 2], al
movzx eax, byte [rbx + 8]
mov byte [rdi + 3], al
movzx eax, byte [rbx + 0xf]
mov byte [rdi + 4], al
movzx eax, byte [rbx + 0xe]
mov byte [rdi + 5], al
movzx eax, byte [rbx + 0xd]
mov byte [rdi + 6], al
movzx eax, byte [rbx + 0xc]
mov byte [rdi + 7], al
movzx eax, byte [rbx + 0x13]
mov byte [rdi + 8], al
movzx eax, byte [rbx + 0x12]
mov byte [rdi + 9], al
movzx eax, byte [rbx + 0x11]
mov byte [rdi + 0xa], al
movzx eax, byte [rbx + 0x10]
mov byte [rdi + 0xb], al
movzx eax, byte [rbx + 0x17]
mov byte [rdi + 0xc], al
movzx eax, byte [rbx + 0x16]
mov byte [rdi + 0xd], al
movzx eax, byte [rbx + 0x15]
mov byte [rdi + 0xe], al
movzx eax, byte [rbx + 0x14]
mov byte [rdi + 0xf], al
movzx eax, byte [rbx + 0x1b]
mov byte [rdi + 0x10], al
movzx eax, byte [rbx + 0x1a]
mov byte [rdi + 0x11], al
movzx eax, byte [rbx + 0x19]
mov byte [rdi + 0x12], al
movzx eax, byte [rbx + 0x18]
mov byte [rdi + 0x13], al
movzx eax, byte [rbx + 0x1f]
mov byte [rdi + 0x14], al
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 0x15], al
movzx eax, byte [rbx + 0x1d]
mov byte [rdi + 0x16], al
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 0x17], al
movzx eax, byte [rbx + 0x23]
mov byte [rdi + 0x18], al
movzx eax, byte [rbx + 0x22]
mov byte [rdi + 0x19], al
movzx eax, byte [rbx + 0x21]
mov byte [rdi + 0x1a], al
movzx eax, byte [rbx + 0x20]
mov byte [rdi + 0x1b], al
movzx eax, byte [rbx + 0x27]
mov byte [rdi + 0x1c], al
movzx eax, byte [rbx + 0x26]
mov byte [rdi + 0x1d], al
movzx eax, byte [rbx + 0x25]
mov byte [rdi + 0x1e], al
movzx eax, byte [rbx + 0x24]
mov rsi, qword [rsp + 0x30]
mov byte [rdi + 0x1f], al
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140093a30
Capabilities:
Check for debugger via api

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x480]
sub rsp, 0x580
mov rax, qword [0x1401b06f8]
xor rax, rsp
mov qword [rbp + 0x470], rax
mov rsi, rcx
mov qword [rbp - 0x80], rcx
mov byte [rsp + 0x20], 0
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor r12d, r12d
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x18], r12
lea rax, [rsp + 0x20]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r12b
jne 0x140093a91
lea rdx, [rsp + 0x20]
call fcn.140016340
nop
call fcn.140097b40
mov dword [rsp + 0x30], eax
mov edi, r12d
xor edx, edx
mov r8d, 0x4d0
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [rbp - 0x30], 0x100010
lea rdx, [rbp - 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov r14d, 1
test eax, eax
je 0x140093b0d
cmp qword [rbp - 0x18], rdi
jne 0x140093b0a
cmp qword [rbp - 0x10], rdi
jne 0x140093b0a
cmp qword [rbp - 8], rdi
jne 0x140093b0a
cmp qword [rbp], rdi
jne 0x140093b0a
cmp qword [rbp + 8], rdi
jne 0x140093b0a
cmp qword [rbp + 0x10], rdi
je 0x140093b0d
mov edi, r14d
mov dword [rsp + 0x34], edi
call fcn.140097e50
mov dword [rsp + 0x38], eax
call fcn.1400978f0
mov dword [rsp + 0x3c], eax
mov dword [rbp - 0x70], r12d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
mov eax, dword [rbp - 0x70]
mov dword [rsp + 0x40], eax
mov r15d, r12d
mov edx, 0x4d0
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x140093bb8
mov rdi, rax
xor eax, eax
mov ecx, 0x4d0
rep stosb byte [rdi], al
mov dword [rbx + 0x30], 0x100010
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x140093ba7
cmp qword [rbx + 0x48], r15
jne 0x140093ba4
cmp qword [rbx + 0x50], r15
jne 0x140093ba4
cmp qword [rbx + 0x58], r15
jne 0x140093ba4
cmp qword [rbx + 0x60], r15
je 0x140093ba7
mov r15d, r14d
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [rsp + 0x44], r15d
lea rdx, [0x140097f60]
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov dword [reloc.WS2_32.dll_accept], r14d
int3
Function at 0x140095fa0
Capabilities:
Enumerate gui resources
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x180
mov rax, qword [0x1401b06f8]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov r12, rcx
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
xor esi, esi
mov qword [rsp + 0x60], rsi
lea rdx, [rsp + 0x50]
lea rcx, [0x140095f60]
call qword [sym.imp.USER32.dll_EnumWindows]
mov r14, qword [rsp + 0x50]
mov r15, qword [rsp + 0x58]
cmp r14, r15
je 0x140096100
nop dword [rax]
nop word [rax + rax]
mov r8d, 0x100
lea rdx, [rsp + 0x70]
mov rcx, qword [r14]
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov rdi, qword [0x1401cd460]
mov rbp, qword [0x1401cd468]
cmp rdi, rbp
je 0x1400960ca
nop dword [rax + rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
lea rax, [rsp + 0x70]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140096060
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.140016340
mov rax, qword [rdi + 0x10]
mov r9, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14009608a
mov r9, qword [rdi]
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x40]
call fcn.14007c740
mov rbx, rax
lea rcx, [rsp + 0x30]
call fcn.14000d220
cmp rbx, 0xffffffffffffffff
jne 0x1400960d8
add rdi, 0x20
cmp rdi, rbp
jne 0x140096040
add r14, 8
cmp r14, r15
je 0x1400960fb
jmp 0x140096010
cmp r12, rdi
je 0x1400960f6
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x1400960eb
mov rdi, qword [rdi]
mov rdx, rdi
mov rcx, r12
call fcn.140016110
mov esi, 1
mov r14, qword [rsp + 0x50]
test r14, r14
je 0x140096141
mov rdx, qword [rsp + 0x60]
sub rdx, r14
and rdx, 0xfffffffffffffff8
mov rax, r14
cmp rdx, 0x1000
jb 0x140096139
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140096139
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.140129630
mov eax, esi
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1401292a0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140096a80
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140096aa8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140096ace
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140096ad0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140096b29
test ecx, ecx
jle 0x140096b09
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 0x140096b29
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140096b29
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140096b50
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140096b72
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140096b88
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 rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140096ba4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140096ba6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140096be2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140096c7e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140096c1d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140096c5e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140096c7e
cmp rbx, rax
ja 0x140096c30
test rbx, rbx
je 0x140096c7e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140097080
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1401b06f8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400970ad
xor eax, eax
jmp 0x140097219
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400970e7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400970e7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140097219
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14009720c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14009712a
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 0x140097155
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140097211
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
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 0x1400971c4
sub eax, 1
je 0x1400971c4
cmp eax, 2
jne 0x14009720c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140097211
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400971f2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14009720c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140097211
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401292a0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140097420
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1401b06f8]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400974f3
cmp byte [rcx + 0x71], 0
je 0x1400974f3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x1400974ef
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 0x1400974b4
sub eax, 1
je 0x1400974b8
cmp eax, 2
jne 0x1400974ef
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401292a0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400974e6
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 0x1400974ef
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14009749c
xor al, al
jmp 0x14009749c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401292a0
add rsp, 0x60
pop rbx
ret
Function at 0x140097e80
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
sub rsp, 0xa8
movaps xmm0, xmmword [0x140191ca0]
movaps xmmword [rsp + 0x30], xmm0
movaps xmm1, xmmword [0x140191cb0]
movaps xmmword [rsp + 0x40], xmm1
movaps xmm0, xmmword [0x140191cc0]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm1, xmmword [str.BeLD]
movaps xmmword [rsp + 0x60], xmm1
movaps xmm0, xmmword [0x140191ce0]
movaps xmmword [rsp + 0x70], xmm0
movaps xmm1, xmmword [0x140191cf0]
movaps xmmword [r11 - 0x28], xmm1
movsd xmm0, qword [0x140191d00]
movsd qword [r11 - 0x18], xmm0
mov eax, dword [0x140191d08]
mov dword [r11 - 0x10], eax
movzx eax, word [0x140191d0c]
mov word [r11 - 0xc], ax
movzx eax, byte [str._YL_VW]
mov byte [r11 - 0xa], al
xor ecx, ecx
mov dword [rsp + 0x20], ecx
cmp ecx, 0x6f
jge 0x140097f41
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
mov eax, 0xa0a0a0a1
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x33
movzx eax, cl
sub al, dl
add al, 0x37
xor al, byte [r8]
mov byte [r8], al
inc ecx
jmp 0x140097f03
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x140097f4e
add rsp, 0xa8
ret

Function at 0x140097f90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x1401b06f8]
xor rax, rsp
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x58], 0
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [rsp + 0x2c]
xor ecx, ecx
lea r9d, [rcx + 0x40]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x14009804f
mov byte [rax], 0xc3
mov edx, dword [rsp + 0x2c]
lea r9, [rsp + 0x58]
mov r8d, 0x140
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14009804f
call rbx
nop
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401292a0
add rsp, 0x70
pop rbx
ret
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401292a0
add rsp, 0x70
pop rbx
ret