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

Disassembly:
sub rsp, 0x48
movdqa xmmword [rsp + 0x30], xmm6
cmp byte [0x140045c18], 0
je 0x14002fadf
xor eax, eax
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
mov rax, qword [0x140045c10]
test rax, rax
jne 0x14002fad5
pxor xmm6, xmm6
movdqu xmmword [0x140045bf8], xmm6
movdqu xmmword [0x140045be8], xmm6
movdqu xmmword [0x140045bd8], xmm6
movdqu xmmword [0x140045bc8], xmm6
mov qword [0x140045c08], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov qword [0x140045bc8], rax
lea rcx, str.dbghelp.dll
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_LoadLibraryExW
mov qword [0x140045bd0], rax
test rax, rax
je 0x14002fccc
lea rdx, str.ImagehlpApiVersionEx
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x140045bd8], rax
mov rcx, qword [0x140045bd0]
lea rdx, str.SymInitialize
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x140045be0], rax
mov rcx, qword [0x140045bd0]
lea rdx, str.SymSetOptions
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x140045be8], rax
mov rcx, qword [0x140045bd0]
lea rdx, str.SymGetOptions
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x140045bf0], rax
mov rcx, qword [0x140045bd0]
lea rdx, str.SymLoadModule64
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x140045bf8], rax
mov rcx, qword [0x140045bd0]
lea rdx, str.SymGetModuleInfo64
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x140045c00], rax
mov rcx, qword [0x140045bd0]
lea rdx, str.SymFromName
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x140045c08], rax
mov qword [rsp + 0x28], 0xc
mov rdx, qword [0x140045bd8]
movdqu xmm0, xmmword [0x140045bf8]
movq xmm1, rdx
movq xmm2, qword [0x140045be0]
punpcklqdq xmm2, xmm1
pcmpeqd xmm0, xmm6
pshufd xmm1, xmm0, 0xb1
pand xmm1, xmm0
pcmpeqd xmm2, xmm6
pshufd xmm0, xmm2, 0xb1
pand xmm0, xmm2
packssdw xmm0, xmm1
movmskps ecx, xmm0
test ecx, ecx
jne 0x14002fcb2
test rax, rax
je 0x14002fcb2
lea rcx, [rsp + 0x28]
call rdx
cmp word [rsp + 0x28], 0xc
jb 0x14002fcb2
mov rcx, qword [0x140045bc8]
xor edx, edx
xor r8d, r8d
call qword [0x140045be0]
test eax, eax
je 0x14002fcb2
mov rax, qword [0x140045bf0]
test rax, rax
je 0x14002fc9a
cmp qword [0x140045be8], 0
je 0x14002fc9a
call rax
and eax, 0xffffd8f8
lea ecx, [rax + 0x2704]
call qword [0x140045be8]
lea rax, [0x140045bc8]
mov qword [0x140045c10], rax
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
mov rcx, qword [0x140045bd0]
mov byte [0x140045c18], 1
test rcx, rcx
je 0x14002fcd3
call sub.KERNEL32.dll_FreeLibrary
jmp 0x14002fcd3
mov byte [0x140045c18], 1
xorps xmm0, xmm0
movups xmmword [0x140045bf8], xmm0
movups xmmword [0x140045be8], xmm0
movups xmmword [0x140045bd8], xmm0
mov qword [0x140045c08], 0
xor eax, eax
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x1400301b0
Capabilities:
Parse pe header

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rsi, rcx
test rcx, rcx
je 0x1400301f0
movzx eax, word [rsi]
cmp eax, 0x5a4d
jne 0x140030204
movsxd rdi, dword [rsi + 0x3c]
cmp dword [rsi + rdi], 0x4550
jne 0x140030212
cmp word [rsi + rdi + 0x14], 0
je 0x140030220
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov esi, dword [rsi + rdi + 0x50]
jmp 0x14003022c
xor ecx, ecx
call sub.KERNEL32.dll_GetModuleHandleW
mov rsi, rax
movzx eax, word [rsi]
cmp eax, 0x5a4d
je 0x1400301ce
xor esi, esi
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
jmp 0x14003022c
xor esi, esi
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
jmp 0x14003022c
xor esi, esi
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
mov eax, esi
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret

Function at 0x140030260
Capabilities:
Parse pe header

Disassembly:
push rbp
push rsi
sub rsp, 0x58
lea rbp, [rsp + 0x50]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
lea rdx, [rbp - 0x30]
mov r8d, 0x30
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
je 0x1400302dd
cmp dword [rbp - 0x10], 0x1000
jne 0x1400302d1
mov eax, dword [rbp - 0xc]
cmp al, 1
je 0x1400302d1
and eax, 0x100
jne 0x1400302d1
mov rsi, qword [rbp - 0x28]
movzx eax, word [rsi]
cmp eax, 0x5a4d
jne 0x1400302f3
movsxd rax, dword [rsi + 0x3c]
cmp dword [rsi + rax], 0x4550
jne 0x1400302ff
cmp word [rsi + rax + 0x14], 0
je 0x14003030b
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
jmp 0x1400302e9
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
jmp 0x1400302e7
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor esi, esi
mov rax, rsi
add rsp, 0x58
pop rsi
pop rbp
ret
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
jmp 0x1400302e7
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
jmp 0x1400302e7
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
jmp 0x1400302e7
Function at 0x140030540
Capabilities:
Parse pe header

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov rbx, r9
mov qword [rbp], r8
mov rdi, rdx
mov r14, rcx
test rcx, rcx
je 0x1400306a6
movzx eax, word [r14]
cmp eax, 0x5a4d
jne 0x1400306bf
movsxd rax, dword [r14 + 0x3c]
cmp dword [r14 + rax], 0x4550
jne 0x1400306cd
cmp word [r14 + rax + 0x14], 0
je 0x1400306db
mov edx, dword [r14 + rax + 0x90]
mov rcx, r14
call fcn.140030530
test rax, rax
jne 0x1400305da
xor esi, esi
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
jmp 0x140030715
test rbx, rbx
je 0x1400305d2
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call rbx
mov rax, qword [rbp - 8]
add rax, 0x14
mov r12d, dword [rax]
test r12d, r12d
je 0x1400306e9
mov qword [rbp - 8], rax
mov edx, dword [rax + 0xc]
mov rcx, r14
call fcn.140030530
mov rsi, rax
test rax, rax
je 0x140030709
mov rcx, r14
mov edx, r12d
call fcn.140030530
mov r12, rax
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0x10]
mov rcx, r14
call fcn.140030530
mov r13, rax
mov rcx, qword [rax]
call fcn.140030260
cmp qword [rbp], 0
je 0x140030644
mov rcx, rdi
mov rdx, rax
mov r8, rsi
call qword [rbp]
test eax, eax
je 0x1400306f0
test r12, r12
je 0x1400305d2
xor esi, esi
jmp 0x140030652
inc esi
mov r15d, esi
mov rdx, qword [r12 + r15*8]
test rdx, rdx
je 0x1400305c0
js 0x140030680
add edx, 2
mov rcx, r14
call fcn.140030530
xor edx, edx
test rbx, rbx
jne 0x14003068a
jmp 0x140030650
movzx edx, dx
xor eax, eax
test rbx, rbx
je 0x140030650
lea r9, [r15*8]
add r9, r13
mov rcx, rdi
mov r8, rax
call rbx
test eax, eax
jne 0x140030650
jmp 0x1400305c5
xor ecx, ecx
call sub.KERNEL32.dll_GetModuleHandleW
mov r14, rax
movzx eax, word [r14]
cmp eax, 0x5a4d
je 0x14003057a
xor esi, esi
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
jmp 0x140030715
xor esi, esi
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
jmp 0x140030715
xor esi, esi
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
jmp 0x140030715
cmp qword [rbp], 0
je 0x1400306fb
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call qword [rbp]
mov esi, 1
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
jmp 0x140030715
xor esi, esi
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140030800
Capabilities:
Parse pe header

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rsi, rcx
test rcx, rcx
je 0x1400308ca
movzx eax, word [rsi]
cmp eax, 0x5a4d
jne 0x1400308e2
movsxd rax, dword [rsi + 0x3c]
cmp dword [rsi + rax], 0x4550
jne 0x1400308ee
add rax, rsi
movzx ecx, word [rax + 0x14]
test rcx, rcx
je 0x140030906
add rax, 4
lea r14, [rax + rcx]
add r14, 0x14
movzx r15d, word [rax + 2]
xor r12d, r12d
lea rdi, str..detour
nop dword [rax]
cmp r12d, r15d
jae 0x1400308fa
mov eax, r12d
lea rax, [rax + rax*4]
lea rbx, [r14 + rax*8]
mov rcx, rbx
mov rdx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
inc r12d
test eax, eax
jne 0x140030870
mov eax, dword [rbx + 0xc]
test rax, rax
je 0x1400308fa
cmp dword [rbx + 0x10], 0
je 0x1400308fa
mov ecx, dword [rsi + rax]
cmp ecx, 0x40
jb 0x1400308fa
add rsi, rax
cmp dword [rsi + 4], 0x727444
jne 0x1400308fa
cmp dword [rsi + 8], 0
jne 0x1400308c1
mov dword [rsi + 8], ecx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
jmp 0x140030912
xor ecx, ecx
call sub.KERNEL32.dll_GetModuleHandleW
mov rsi, rax
movzx eax, word [rsi]
cmp eax, 0x5a4d
je 0x14003082d
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
jmp 0x140030910
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
jmp 0x140030910
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
jmp 0x140030910
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret

Function at 0x140030a90
Capabilities:
Parse pe header

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
movaps xmmword [rsp + 0x50], xmm6
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
xorps xmm6, xmm6
lea r14, [rsp + 0x20]
add rbx, 0x10000
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm6
jmp 0x140030ada
mov rbx, qword [rsp + 0x20]
add rbx, qword [rsp + 0x38]
mov r8d, 0x30
mov rcx, rbx
mov rdx, r14
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
je 0x140030b47
cmp dword [rsp + 0x40], 0x1000
jne 0x140030ad0
mov eax, dword [rsp + 0x44]
cmp al, 1
je 0x140030ad0
and eax, 0x100
jne 0x140030ad0
movzx eax, word [rbx]
cmp eax, 0x5a4d
jne 0x140030ad0
mov eax, dword [rbx + 0x3c]
cmp rax, 0x40
jb 0x140030ad0
cmp qword [rsp + 0x38], rax
jb 0x140030ad0
cdqe
cmp dword [rbx + rax], 0x4550
jne 0x140030ad0
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call fcn.140030940
test rax, rax
je 0x140030aae
jmp 0x140030b53
mov ecx, 0x7e
call sub.KERNEL32.dll_SetLastError
xor eax, eax
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400323a4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140032428
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140035dc0]
cmp byte [rcx + rax], 0
je 0x140032428
dec r8
sub rdx, 1
jne 0x14003240e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400326a4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400326ee
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400326ee
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400326ee
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400326ee
cmp dword [rcx + 0x84], 0xe
jbe 0x1400326ee
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400326f0
xor al, al
add rsp, 0x28
ret
Function at 0x140003e30
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003e64
cmp word [rcx], 0x5a4d
jne 0x140003e64
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003e64
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003e64
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003d70
test eax, eax
jne 0x140003e80
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003de0
test rax, rax
je 0x140003e75
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140004632
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004530
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.1400044d0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004994
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x140986838]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x140986834]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400049e2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400049da
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140004ac9
inc ebx
add rax, 0x28
jmp 0x1400049ba
mov rcx, r12
call fcn.1400051c1
mov rbp, rax
test rax, rax
jne 0x140004a01
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140004930
movsxd rbx, ebx
mov rax, qword [0x140986838]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.14000526f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140986838]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004a63
mov rax, qword [0x140986838]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004930
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140004ac3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140004ac3
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140986838]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140004ac3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004930
inc dword [0x140986834]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400082c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x68], 0
je 0x1400082f9
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
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 0x140008443
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x40]
cmp qword [rax], 0
je 0x140008323
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x58]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
jmp 0x14000832b
mov dword [rsp + 0x20], 0
movsxd rax, dword [rsp + 0x20]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x60], 0
jle 0x1400083eb
cmp qword [rsp + 0x28], 0
jle 0x1400083eb
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x60], rax
jge 0x140008363
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
call fcn.14000ff80
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x58]
mov ecx, dword [rsp + 0x28]
mov eax, dword [rax]
sub eax, ecx
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x58]
mov dword [rcx], eax
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x40]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x40]
mov qword [rcx], rax
cmp qword [rsp + 0x60], 0
jle 0x140008433
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x80], 0
je 0x140008433
mov rax, qword [rsp + 0x50]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x60]
mov edx, 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
add rsp, 0x48
ret
Function at 0x14000dfa0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [0x1400bc080]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xc0]
cmp qword [rax + 0x68], 0
je 0x14000dfdd
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14000dfe4
mov al, 1
jmp 0x14000e165
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x38], 0xffffffff
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xc0]
call qword [rsp + 0x60]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], 0xffffffff
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jne 0x14000e038
mov dword [rsp + 0x3c], 1
jmp 0x14000e040
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x14000e059
xor al, al
jmp 0x14000e165
mov qword [rsp + 0x70], reloc.WLDAP32.dll_Ordinal_32
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0xa0]
mov rcx, qword [rsp + 0xc0]
add rcx, 0x74
lea rdx, [rsp + 0x78]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x80]
mov rdx, rcx
mov rcx, qword [rsp + 0x68]
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]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x14000e0cc
cmp dword [rsp + 0x34], 1
je 0x14000e0d8
cmp dword [rsp + 0x34], 3
je 0x14000e153
jmp 0x14000e163
mov rax, qword [rsp + 0xc0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jbe 0x14000e12a
mov rax, qword [rsp + 0xc0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x50], rax
je 0x14000e12a
xor al, al
jmp 0x14000e165
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14000e144
mov dword [rsp + 0x40], 1
jmp 0x14000e14c
mov dword [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
jmp 0x14000e165
mov rax, qword [rsp + 0xc0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14000e165
xor al, al
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140099420
add rsp, 0xb8
ret
Function at 0x140035c00
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov r10, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
cmp byte [r8 + 6], sil
je 0x140035c34
mov eax, esi
lea ecx, [rax - 0x65]
xor byte [r8 + rax], cl
inc rax
cmp rax, 5
jb 0x140035c20
mov byte [r8 + 6], sil
add r8, 5
lea r9, [rsp + 0x20]
mov rdx, r10
lea rcx, [rsp + 0x30]
call fcn.14001e190
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140035c59
mov rbx, qword [rbx]
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140041670
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140035cd3
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035cce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140035cce
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400996d4
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x140035ce0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov r10, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
cmp byte [r8 + 7], sil
je 0x140035d14
mov eax, esi
lea ecx, [rax - 0x65]
xor byte [r8 + rax], cl
inc rax
cmp rax, 6
jb 0x140035d00
mov byte [r8 + 7], sil
add r8, 6
lea r9, [rsp + 0x20]
mov rdx, r10
lea rcx, [rsp + 0x30]
call fcn.14001e190
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140035d39
mov rbx, qword [rbx]
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140041670
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140035db3
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035dae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140035dae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400996d4
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x140035dc0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov r10, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
cmp byte [r8 + 8], sil
je 0x140035df4
mov eax, esi
lea ecx, [rax - 0x65]
xor byte [r8 + rax], cl
inc rax
cmp rax, 7
jb 0x140035de0
mov byte [r8 + 8], sil
add r8, 7
lea r9, [rsp + 0x20]
mov rdx, r10
lea rcx, [rsp + 0x30]
call fcn.14001e190
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140035e19
mov rbx, qword [rbx]
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140041670
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140035e93
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035e8e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140035e8e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400996d4
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x140035ea0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov r10, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
cmp byte [r8 + 9], sil
je 0x140035ed4
mov eax, esi
lea ecx, [rax - 0x65]
xor byte [r8 + rax], cl
inc rax
cmp rax, 8
jb 0x140035ec0
mov byte [r8 + 9], sil
add r8, 8
lea r9, [rsp + 0x20]
mov rdx, r10
lea rcx, [rsp + 0x30]
call fcn.14001e190
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140035ef9
mov rbx, qword [rbx]
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140041670
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140035f73
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035f6e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140035f6e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400996d4
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret