joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008710
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x690
mov rax, qword [0x14002b138]
xor rax, rsp
mov qword [rsp + 0x680], rax
lea r8, [rsp + 0x40]
lea rdx, [0x140002560]
lea rcx, [rsp + 0x50]
xor ebx, ebx
mov dword [rsp + 0x40], ebx
call fcn.1400214f4
mov dword [rsp + 0x38], ebx
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rbx
lea rdi, [0x1400024d0]
lea esi, [rbx + 1]
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x48]
lea rdx, [0x140002690]
mov rcx, rdi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x44], 0x208
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x20], rax
call sub.SHLWAPI.dll_SHRegGetUSValueW
mov word [rsp + 0x266], bx
cmp eax, ebx
jne 0x14000887c
lea rdx, [0x140002498]
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_StrCmpICW]
cmp eax, ebx
jne 0x1400087c4
mov bl, sil
jmp 0x14000887c
lea rcx, [rsp + 0x272]
xor edx, edx
mov r8d, 0x40e
mov word [rsp + 0x270], bx
call fcn.1400249ae
lea rax, [rsp + 0x270]
sub rdi, rax
mov r11d, 0x208
lea rcx, [rsp + 0x270]
mov r8d, ebx
lea rax, [r11 + 0x7ffffdf6]
cmp rax, rbx
je 0x14000881e
movzx eax, word [rdi + rcx]
cmp ax, bx
je 0x14000881e
mov word [rcx], ax
add rcx, 2
sub r11, rsi
jne 0x1400087fd
cmp r11, rbx
jne 0x14000882d
sub rcx, 2
mov r8d, 0x8007007a
cmp r8d, ebx
mov word [rcx], bx
mov dword [rsp + 0x40], r8d
jl 0x14000887c
lea r8, [rsp + 0x60]
lea rcx, [rsp + 0x270]
mov edx, 0x208
call fcn.140009460
cmp eax, ebx
mov dword [rsp + 0x40], eax
jl 0x14000887c
lea r8, [rsp + 0x4c]
lea rdx, [0x1400024b8]
lea rcx, [rsp + 0x270]
call fcn.140023a44
movzx ecx, bl
cmp eax, ebx
cmove ecx, esi
mov bl, cl
lea rcx, [rsp + 0x50]
call fcn.140021548
mov al, bl
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.1400247e0
lea r11, [rsp + 0x690]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140012064
Capabilities:
Extract resource via kernel32 functions

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 r12
push r13
push r14
sub rsp, 0x20
mov eax, r8d
mov rbp, rdx
mov r14d, 1
shr eax, 4
mov ebx, r8d
mov rsi, rcx
add ax, r14w
lea r8d, [r14 + 5]
mov rcx, rbp
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor r13d, r13d
mov r12, rax
cmp rax, r13
je 0x1400121da
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
cmp rax, r13
je 0x1400121da
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
cmp rax, r13
je 0x1400121da
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x140012110
cmp rdi, r11
jae 0x1400121da
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x1400120fa
cmp rdi, r11
jae 0x1400121da
cmp word [rdi], r13w
je 0x1400121da
mov rax, qword [rsi]
movzx ebx, word [rdi]
mov ecx, r14d
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or ecx, eax
jge 0x140012142
mov edx, ebx
mov rcx, rsi
call fcn.14001243c
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x140012163
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
sub rcx, r14
add ecx, r14d
movsxd r9, ecx
mov rcx, qword [rsi]
lea rdi, [rbx + rbx]
mov rdx, rdi
add r9, r9
call fcn.1400248c6
cmp eax, r13d
je 0x1400121b2
cmp eax, 0xc
je 0x1400121a7
cmp eax, 0x16
je 0x14001219c
cmp eax, 0x22
je 0x14001219c
cmp eax, 0x50
je 0x1400121b2
mov ecx, 0x80004005
call fcn.14000adb8
int3
mov ecx, 0x80070057
call fcn.14000adb8
int3
mov ecx, 0x8007000e
call fcn.14000adb8
int3
cmp ebx, r13d
jl 0x1400121cf
mov rcx, qword [rsi]
cmp ebx, dword [rcx - 0xc]
jg 0x1400121cf
mov dword [rcx - 0x10], ebx
mov rcx, qword [rsi]
mov eax, r14d
mov word [rdi + rcx], r13w
jmp 0x1400121dc
mov ecx, 0x80070057
call fcn.14000adb8
int3
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x1400229d0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x50
and dword [rax - 0x28], 0
mov rbx, rdx
mov rdi, rcx
lea rdx, [0x140004910]
lea rcx, [rax - 0x20]
lea r8, [rax - 0x28]
call fcn.1400214f4
mov rax, qword [rsp + 0x80]
mov r9d, 4
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x140022a71
movzx r8d, ax
or r8d, 0x80070000
test eax, eax
cmovle r8d, eax
mov dword [rsp + 0x30], r8d
mov rcx, qword [0x14002b160]
lea rax, [0x14002b160]
cmp rcx, rax
je 0x140022a76
test byte [rcx + 0x1c], 4
je 0x140022a76
mov rcx, qword [rcx + 0x10]
mov r9d, r8d
lea r8, [0x140001d20]
mov edx, 0x42
call fcn.140006078
mov r8d, dword [rsp + 0x30]
mov rax, qword [rsp + 0x90]
test rax, rax
je 0x140022a86
mov dword [rax], r8d
lea rcx, [rsp + 0x38]
call fcn.140021548
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x140024340
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x14002b138]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.1400249ae
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x140000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call fcn.1400249ae
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x1400243d3
cmp dword [rsp + 0x24], 5
jb 0x1400243ed
jmp 0x1400243e9
cmp dword [rsp + 0x30], esi
jne 0x1400243ed
cmp dword [rsp + 0x24], 4
ja 0x1400243e9
jne 0x1400243ed
cmp dword [rsp + 0x28], 0
jbe 0x1400243ed
mov byte [rbx + 0x18], sil
lea rax, [0x140001b08]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.14002419c
movzx ecx, byte [0x14002c370]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x14002c370], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400247e0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140024c68
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x140024cb5
cmp rcx, 0xffffffffffffffff
je 0x140024cb5
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140024cad
cmp dword [rcx + 0x3c], edx
jl 0x140024cad
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140024cad
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140024cb5
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140024f00
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140024f6b
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x140024f8b
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, [0x140001ba8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret

Function at 0x1423e6378
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1423e6382
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1423e63ab
pop rbp
sub rbp, 0x33
sub rbp, 0x23e6378
sub rsp, 0x20
jmp 0x1423e63ca
mov rax, 0x23e6378
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x59278242
xor byte [rax], dl
inc rax
dec rcx
jne 0x1423e63e9
jmp 0x1423e6400
or cl, bl
stosd dword [rdi], eax
leave
retf
Function at 0x1800020b8
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
jle 0x180002102
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
xor r10d, r10d
mov ebx, edx
mov edi, r10d
mov r11, rcx
mov dl, byte [r11]
movsxd rax, edi
mov cl, dl
xor cl, byte [rax + r8]
lea eax, [rdi + 1]
xor cl, r10b
mov r10b, dl
cdq
mov byte [r11], cl
idiv r9d
inc r11
mov edi, edx
sub rbx, 1
jne 0x1800020d1
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret

Function at 0x180002104
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
jle 0x18000214c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
xor r10d, r10d
mov ebx, edx
mov edi, r10d
mov r11, rcx
movsxd rax, edi
mov cl, byte [rax + r8]
lea eax, [rdi + 1]
xor cl, byte [r11]
cdq
idiv r9d
xor cl, r10b
mov byte [r11], cl
mov edi, edx
inc r11
mov r10b, cl
sub rbx, 1
jne 0x18000211d
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret

Function at 0x1800021ac
Capabilities:
Generate random numbers via rtlgenrandom

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
movsxd rbp, dword [rsp + 0x70]
mov r12d, ecx
mov rsi, r9
mov edi, r8d
mov ebx, edx
lea ecx, [rbp + 0x30]
call fcn.180002150
mov r10d, dword [0x180004288]
mov r8, rbp
mov rdx, rsi
mov r13, rax
mov r15, qword [rax + 8]
lea r14, [r15 + 0x13]
mov dword [r15 + 0x2c], ebp
mov dword [r14 + 0xe], edi
lea rdi, [r15 + 0x30]
mov dword [r14], r10d
mov rcx, rdi
mov r10d, dword [0x180004270]
mov dword [r14 + 4], r10d
mov dword [r14 + 8], 0xb140409b
mov byte [r14 + 0xc], r12b
mov byte [r14 + 0xd], bl
mov dword [r14 + 0x12], ebp
call fcn.180002ecc
mov edx, select
lea ecx, [rdx - 0xa]
call fcn.180002e94
lea rbx, [r15 + 4]
mov dword [r15], eax
mov rcx, rbx
mov edx, eax
call fcn.180002e80
mov r9d, 0x1f
lea r8, [0x1800040c0]
mov rcx, r14
lea esi, [r9 - 9]
mov edx, esi
call fcn.1800020b8
mov r9d, dword [r15]
mov edx, esi
mov rcx, r14
mov r8, rbx
call fcn.1800020b8
mov edx, ebp
lea r9d, [rsi + 9]
mov rcx, rdi
lea r8, [0x1800040c0]
call fcn.1800020b8
mov r9d, dword [r15]
mov edx, ebp
mov rcx, rdi
mov r8, rbx
call fcn.1800020b8
mov rdx, r13
lea rcx, [0x180004290]
call fcn.180001604
cmp r12d, 6
je 0x1800022be
mov rcx, qword [0x180004170]
call qword [sym.imp.KERNEL32.dll_SetEvent]
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
Function at 0x14002b4c0
Capabilities:
Hash data using fnv

Disassembly:
push rbx
push rsi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov ebx, 1
mov eax, ebx
shl rax, cl
cmp rdx, rax
jbe 0x14002b4f5
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x58], rdi
mov rdi, qword [rsi + 8]
or rax, rbx
bsr rcx, rax
mov r8, rdi
mov qword [rsp + 0x20], r14
inc ecx
shl rbx, cl
lea rcx, [rsi + 0x18]
lea rdx, [rbx + rbx]
call fcn.14002ac50
mov qword [rsi + 0x38], rbx
lea rax, [rbx - 1]
mov qword [rsi + 0x30], rax
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx]
cmp rcx, rdi
je 0x14002b614
mov qword [rsp + 0x50], rbp
mov rax, rcx
movabs rbp, 0x100000001b3
movabs rbx, 0xcbf29ce484222325
nop dword [rax + rax]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
mov edx, r9d
mov rcx, qword [rcx]
xor rdx, rbx
imul rdx, rbp
and r11, rdx
shl r11, 4
add r11, qword [rsi + 0x18]
mov r8, qword [r11]
cmp r8, rdi
jne 0x14002b592
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x14002b603
mov rdx, qword [r11 + 8]
cmp r9b, byte [rdx + 0x10]
jne 0x14002b5cb
mov r10, qword [rdx]
cmp r10, rax
je 0x14002b5c5
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x14002b603
cmp r8, rdx
je 0x14002b5df
mov rdx, qword [rdx + 8]
cmp r9b, byte [rdx + 0x10]
je 0x14002b625
cmp r8, rdx
jne 0x14002b5d0
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rdi
jne 0x14002b560
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x14002b603

Function at 0x14002b8c0
Capabilities:
Hash data using fnv

Disassembly:
movzx eax, byte [rcx]
test al, al
jne 0x14002b8ca
mov eax, edx
ret
xor eax, edx
imul edx, eax, 0x1000193
inc rcx
jmp fcn.14002b8c0
Function at 0x140030450
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 8], rcx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov dword [rbp + 0x67], 0
lea rdi, [rdx + 0x170]
mov dword [rbp - 0x59], 0x76696e61
mov dword [rbp - 0x55], 0x68636169
mov dword [rbp - 0x51], 0x656c6c69
mov word [rbp - 0x4d], 0x64
mov byte [rbp - 0x4b], 0
mov edx, 0xe40c292c
lea rcx, [rbp - 0x58]
call fcn.14002b8c0
mov r8d, eax
lea rdx, [rbp + 7]
mov rcx, rdi
call fcn.1400627e0
nop
mov ebx, 1
mov dword [rbp + 0x67], ebx
cmp byte [rax + 0x4e], 0
jne 0x140030507
mov dword [rbp - 0x69], 0x76696e61
mov dword [rbp - 0x65], 0x63696169
mov dword [rbp - 0x61], 0x6465
mov edx, 0xe40c292c
lea rcx, [rbp - 0x68]
call fcn.14002b8c0
mov r8d, eax
lea rdx, [rbp - 0x49]
mov rcx, rdi
call fcn.1400627e0
mov ebx, 3
cmp byte [rax + 0x4e], 0
jne 0x140030507
xor dil, dil
jmp 0x14003050a
mov dil, 1
test bl, 2
je 0x14003051c
and ebx, 0xfffffffd
lea rcx, [rbp - 0x39]
call fcn.14002c1e0
nop
test bl, 1
je 0x14003052a
lea rcx, [rbp + 0x17]
call fcn.14002c1e0
test dil, dil
setne al
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14003d940
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 0x14003d968
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 0x14003d98e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14003d990
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14003d9e9
test ecx, ecx
jle 0x14003d9c9
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 0x14003d9e9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14003d9e9
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 0x14003da10
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 0x14003da32
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14003da48
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 0x14003da64
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14003da66
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14003daa2
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 0x14003db3e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14003dadd
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 0x14003db1e
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 0x14003db3e
cmp rbx, rax
ja 0x14003daf0
test rbx, rbx
je 0x14003db3e
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 0x14003df70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1402f9040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14003df9d
xor eax, eax
jmp 0x14003e109
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14003dfd7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14003dfd7
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 0x14003e109
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14003e0fc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14003e01a
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 0x14003e045
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 0x14003e101
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 0x14003e0b4
sub eax, 1
je 0x14003e0b4
cmp eax, 2
jne 0x14003e0fc
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 0x14003e101
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14003e0e2
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 0x14003e0fc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14003e101
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14022f560
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14003e4b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1402f9040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14003e583
cmp byte [rcx + 0x71], 0
je 0x14003e583
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14003e57f
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 0x14003e544
sub eax, 1
je 0x14003e548
cmp eax, 2
jne 0x14003e57f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14022f560
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14003e576
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 0x14003e57f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14003e52c
xor al, al
jmp 0x14003e52c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14022f560
add rsp, 0x60
pop rbx
ret
Function at 0x14006b870
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
movabs rax, 0xa27870fb79780d91
lea rdx, [rbp - 0x29]
mov qword [rbp - 0x39], rax
mov rbx, rcx
mov rax, qword [rbp - 0x39]
movabs rcx, 0x3c755938586c70
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x39], rcx
mov rax, qword [rbp - 0x39]
mov qword [rbp - 0x21], rax
movabs rax, 0xa27870941e1d64c7
mov qword [rbp - 0x39], rax
mov rax, qword [rbp - 0x39]
mov qword [rbp + 0x37], rax
mov qword [rbp - 0x39], rcx
lea rcx, [rbx + 0x1e8]
mov rax, qword [rbp - 0x39]
movdqa xmm0, xmmword [rbp - 0x29]
mov qword [rbp + 0x3f], rax
mov rax, 0xffffffffffffffff
xorps xmm0, xmmword [rbp + 0x37]
movdqa xmmword [rbp - 0x29], xmm0
inc rax
cmp byte [rdx + rax], 0
jne 0x14006b8f3
cmp qword [rcx + 0x18], 0xf
mov r8, qword [rcx + 0x10]
jbe 0x14006b90a
mov rcx, qword [rcx]
cmp r8, rax
jne 0x14006b938
lea rdx, [rbp - 0x29]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14006b938
mov dword [rbp - 0x49], 0x67656976
lea rcx, [rbp - 0x48]
mov dword [rbp - 0x45], 0x776f
mov edx, 0xf30c40c9
jmp 0x14006ba60
mov eax, dword [rbx + 0x208]
cmp eax, 0x28a0e785
ja 0x14006b9db
je 0x14006b9bf
cmp eax, 0x1e5a725
je 0x14006b9b6
cmp eax, 0x195002d0
je 0x14006b983
cmp eax, 0x1ab33d75
jne 0x14006b9f0
mov dword [rbp - 0x49], 0x6e6f6973
lea rcx, [rbp - 0x48]
mov word [rbp - 0x45], WSACleanup
mov edx, 0xf60c4582
mov byte [rbp - 0x43], 0
jmp 0x14006ba60
movdqa xmm0, xmmword [0x1402c95a0]
lea rcx, [rbp + 0x38]
movdqu xmmword [rbp + 0x37], xmm0
mov dword [rbp + 0x47], 0x61686365
mov edx, 0xfd0c5087
mov dword [rbp + 0x4b], 0x75656772
mov word [rbp + 0x4f], reloc.WS2_32.dll_WSASetLastError
mov byte [rbp + 0x51], 0
jmp 0x14006ba60
lea rcx, [rbp - 0x48]
jmp 0x14006ba46
mov dword [rbp - 0x49], 0x75726176
lea rcx, [rbp - 0x48]
mov dword [rbp - 0x45], 0x7173
mov edx, 0xf30c40c9
jmp 0x14006ba60
cmp eax, 0x37f8e38e
je 0x14006ba42
cmp eax, 0x96fbc243
je 0x14006ba26
cmp eax, 0xe51eff33
je 0x14006ba03
xor al, al
mov rbx, qword [rsp + 0xd8]
add rsp, 0xc0
pop rbp
ret
mov dword [rbp - 0x49], 0x746e6170
lea rcx, [rbp - 0x48]
mov dword [rbp - 0x45], 0x6e6f6568
mov edx, 0xf50c43ef
mov word [rbp - 0x41], WSACleanup
mov byte [rbp - 0x3f], 0
jmp 0x14006ba60
mov dword [rbp - 0x49], 0x656b7970
lea rcx, [rbp - 0x48]
mov word [rbp - 0x45], WSACleanup
mov edx, 0xf50c43ef
mov byte [rbp - 0x43], 0
jmp 0x14006ba60
lea rcx, [rbp - 0x48]
mov edx, 0xf70c4715
mov dword [rbp - 0x41], 0x656d
mov dword [rbp - 0x45], 0x616e6666
mov dword [rbp - 0x49], 0x75625f72
call fcn.14002b8c0
mov r8d, eax
lea rdx, [rbp - 0x19]
lea rcx, [rbx + 0x170]
call fcn.1400627e0
lea rcx, [rbp - 9]
movzx ebx, byte [rax + 0x4e]
call fcn.14002c1e0
movzx eax, bl
mov rbx, qword [rsp + 0xd8]
add rsp, 0xc0
pop rbp
ret