joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff6ccb989d0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
test rdx, rdx
je 0x7ff6ccb98a5a
mov rax, rdx
movzx ecx, word [rdx]
cmp ecx, 0x5a4d
jne 0x7ff6ccb98a5a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
je 0x7ff6ccb98a5a
cmp dword [rcx], 0x4550
jne 0x7ff6ccb98a5a
movzx edx, word [rcx + 0x18]
cmp edx, 0x20b
jne 0x7ff6ccb98a5a
cmp dword [rcx + 0x50], 0x147
jbe 0x7ff6ccb98a5a
cmp dword [rcx + 0x84], 0
je 0x7ff6ccb98a5a
mov r9d, dword [rcx + 0x88]
test r9, r9
je 0x7ff6ccb98a5a
mov ecx, dword [rcx + 0x8c]
test ecx, ecx
je 0x7ff6ccb98a5a
mov rdx, r9
add rdx, rax
je 0x7ff6ccb98a5a
cmp dword [rdx + 0x14], 0
je 0x7ff6ccb98a5a
add ecx, r9d
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], ecx
mov rcx, rsi
mov rdx, r8
mov r8, rax
call fcn.7ff6ccb98a90
jmp 0x7ff6ccb98a83
mov qword [rsi], r8
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
mov dword [rsi + 0x18], 0
mov qword [rsi + 0x20], r8
movups xmmword [rsi + 0x28], xmm0
mov qword [rsi + 0x38], r8
movups xmmword [rsi + 0x40], xmm0
mov qword [rsi + 0x50], r8
movups xmmword [rsi + 0x58], xmm0
mov rax, rsi
add rsp, 0x30
pop rsi
ret
Function at 0x14000a9e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x10]
mov rbx, rcx
mov r10d, eax
and r10d, 7
je 0x14000aa11
cmp eax, r10d
jge 0x14000a9ff
call fcn.14000a1e0
mov eax, dword [rbx + 0x14]
mov ecx, r10d
shr eax, cl
sub dword [rbx + 0x10], r10d
mov dword [rbx + 0x14], eax
mov eax, dword [rbx + 0x10]
xor r8d, r8d
mov r9d, eax
test eax, eax
jle 0x14000aa52
mov ecx, dword [rbx + 0x14]
lea rdx, [rsp + 0x30]
movzx r10d, cl
nop word [rax + rax]
shr ecx, 8
lea eax, [r9 - 8]
mov byte [rdx], r10b
lea rdx, [rdx + 1]
inc r8d
mov dword [rbx + 0x14], ecx
mov r9d, eax
movzx r10d, cl
test eax, eax
jg 0x14000aa30
mov dword [rbx + 0x10], eax
jns 0x14000aa78
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rcx, qword [rax]
lea rax, str.zlib_corrupt
mov qword [rdx + rcx], rax
xor eax, eax
add rsp, 0x20
pop rbx
ret
movsxd rcx, r8d
cmp rcx, 4
jge 0x14000aaa7
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r8
jb 0x14000aa91
xor dl, dl
jmp 0x14000aa9a
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x14000aa85
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x14000aa54
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x14000ab11
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rcx, qword [rax]
lea rax, str.read_past_buffer
mov qword [rdx + rcx], rax
mov rdi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x14000ab2b
mov rcx, rbx
call fcn.14000a320
test eax, eax
je 0x14000ab04
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x14001b340
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x140205040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
cmp dword [0x1402097cc], 0
mov esi, edx
mov edi, ecx
je 0x14001b387
mov dword [0x14020994c], ecx
mov ecx, 0xaede7345
mov dword [0x140209950], edx
call fcn.14001b5c0
jmp 0x14001b475
xor ecx, ecx
mov qword [rsp + 0xe0], rbx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ecx, dword [0x140208774]
mov r8, rax
sub r8, rcx
mov eax, 0x2e8ba2e9
imul ebx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0xb
sub ebx, ecx
movsxd rax, ebx
mov rbx, qword [rsp + 0xe0]
cmp r8, rax
jb 0x14001b469
xorps xmm0, xmm0
mov dword [rsp + 0x20], esi
xor eax, eax
lea r8, str.km.move__d___d__r
mov r9d, edi
mov qword [rsp + 0xa0], rax
mov edx, 0x78
lea rcx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
call fcn.140002370
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14001b441
mov rcx, qword [0x140209888]
lea rdx, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov dword [0x140208774], eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400c4480
mov rsi, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret

Function at 0x14001b4a0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0xc8
mov rax, qword [0x140205040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
cmp dword [0x1402097cc], 0
je 0x14001b518
test ecx, ecx
je 0x14001b4ef
or dword [0x140209948], 1
mov ecx, 0x9823ae8d
call fcn.14001b5c0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400c4480
add rsp, 0xc8
ret
and dword [0x140209948], 0xfffffffe
mov ecx, 0x9823ae8d
call fcn.14001b5c0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400c4480
add rsp, 0xc8
ret
xorps xmm0, xmm0
lea r8, str.km.left__d__r
xor eax, eax
mov r9d, ecx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0xa0], rax
mov edx, 0x78
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
call fcn.140002370
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14001b573
mov rcx, qword [0x140209888]
lea rdx, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400c4480
add rsp, 0xc8
ret
Function at 0x14001b5c0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140205040]
xor rax, rsp
mov qword [rsp + 0x48], rax
inc dword [0x140209908]
mov dword [0x14020990c], ecx
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movups xmm0, xmmword [0x140209948]
mov rcx, qword [0x140209890]
xor r9d, r9d
movups xmm1, xmmword [0x140209958]
lea rdx, [0x140209900]
mov dword [0x140209904], eax
movaps xmmword [0x140209910], xmm0
lea rax, [0x140209898]
movups xmm0, xmmword [0x140209968]
mov r8d, 0x48
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
movaps xmmword [0x140209920], xmm1
movsd xmm1, qword [0x140209978]
movaps xmmword [0x140209930], xmm0
movsd qword [0x140209940], xmm1
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [0x140209890]
lea rdx, [0x1402098b0]
xor eax, eax
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
mov qword [0x14020994c], rax
xorps xmm0, xmm0
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov r8d, 0x400
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x38], xmm0
call qword [sym.imp.WS2_32.dll_recvfrom]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400c4480
add rsp, 0x58
ret
Function at 0x1400203c0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140205040]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor ebx, ebx
mov ecx, 8
mov rax, qword gs:[0x58]
mov rax, qword [rax]
mov eax, dword [rcx + rax]
cmp dword [0x140209a80], eax
jle 0x140020459
lea rcx, [0x140209a80]
call fcn.1400c4550
cmp dword [0x140209a80], 0xffffffff
jne 0x140020459
xorps xmm0, xmm0
movups xmmword [0x140209a60], xmm0
xorps xmm1, xmm1
movdqu xmmword [0x140209a70], xmm1
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, [0x1401df8a0]
lea rcx, [0x140209a60]
call fcn.140042590
lea rcx, [0x1400cb1e0]
call fcn.1400c4b9c
nop
lea rcx, [0x140209a80]
call fcn.1400c44e4
mov dword [rsp + 0x40], 0x42c80000
mov dword [rsp + 0x44], 0x41c80000
lea rcx, [0x140209a60]
cmp qword [0x140209a78], 0xf
cmova rcx, qword [0x140209a60]
xor r8d, r8d
lea rdx, [rsp + 0x40]
call fcn.14008c880
test al, al
je 0x14002049a
mov byte [0x140209a20], 1
jmp 0x1400204a3
cmp byte [0x140209a20], 0
je 0x1400204ff
mov ebx, 1
mov rdi, 0xffffffffffffffff
nop
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1400204d7
cmp ebx, 0xc
je 0x1400204d7
mov eax, ebx
cmp ebx, 0x1b
cmove eax, edi
mov dword [0x14020510c], eax
mov byte [0x140209a20], 0
inc ebx
cmp ebx, 0x100
jl 0x1400204b0
mov r8d, reloc.WS2_32.dll_select
lea rdx, [0x1401df8b0]
lea rcx, [0x140209a60]
call fcn.14003f820
jmp 0x14002065e
cmp dword [0x14020510c], 0xffffffff
jne 0x140020526
mov r8d, reloc.WS2_32.dll_recv
lea rdx, str..
lea rcx, [0x140209a60]
call fcn.14003f820
jmp 0x14002065e
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbx
xor r8d, r8d
lea rdx, [0x1401ddcc6]
lea rcx, [rsp + 0x68]
call fcn.140042590
nop
movsxd rax, dword [0x14020510c]
lea rdx, str.None
mov rdx, qword [rdx + rax*8]
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp byte [rdx + rdi], 0
jne 0x140020570
mov r8, rdi
lea rcx, [rsp + 0x68]
call fcn.14003f980
movabs rax, 0x7fffffffffffffff
mov rcx, qword [rsp + 0x78]
sub rax, rcx
cmp rax, 9
jb 0x14002067f
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x80], 0xf
cmova rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 9
lea r9, [0x1401df8e0]
lea rcx, [rsp + 0x48]
call fcn.1400433a0
mov rdx, qword [0x140209a78]
cmp rdx, 0xf
jbe 0x14002061e
inc rdx
mov rcx, qword [0x140209a60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140020619
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140020619
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c44a0
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [0x140209a60], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [0x140209a70], xmm1
movdqa xmm0, xmmword [0x1401ef720]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
lea rcx, [rsp + 0x48]
call fcn.140040580
nop
lea rcx, [rsp + 0x68]
call fcn.140040580
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400c4480
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
call fcn.140002570
nop
int3
Function at 0x140020690
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140205040]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor ebx, ebx
mov ecx, 8
mov rax, qword gs:[0x58]
mov rax, qword [rax]
mov eax, dword [rcx + rax]
cmp dword [0x140209a84], eax
jle 0x140020729
lea rcx, [0x140209a84]
call fcn.1400c4550
cmp dword [0x140209a84], 0xffffffff
jne 0x140020729
xorps xmm0, xmm0
movups xmmword [0x140209a88], xmm0
xorps xmm1, xmm1
movdqu xmmword [0x140209a98], xmm1
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [0x1401df8f0]
lea rcx, [0x140209a88]
call fcn.140042590
lea rcx, [0x1400cb1f0]
call fcn.1400c4b9c
nop
lea rcx, [0x140209a84]
call fcn.1400c44e4
mov dword [rsp + 0x40], 0x42c80000
mov dword [rsp + 0x44], 0x41c80000
lea rcx, [0x140209a88]
cmp qword [0x140209aa0], 0xf
cmova rcx, qword [0x140209a88]
xor r8d, r8d
lea rdx, [rsp + 0x40]
call fcn.14008c880
test al, al
je 0x14002076a
mov byte [0x140209a38], 1
jmp 0x140020773
cmp byte [0x140209a38], 0
je 0x1400207cf
mov ebx, 1
mov rdi, 0xffffffffffffffff
nop
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1400207a7
cmp ebx, 0xc
je 0x1400207a7
mov eax, ebx
cmp ebx, 0x1b
cmove eax, edi
mov dword [0x14020866c], eax
mov byte [0x140209a38], 0
inc ebx
cmp ebx, 0x100
jl 0x140020780
mov r8d, select
lea rdx, [0x1401df908]
lea rcx, [0x140209a88]
call fcn.14003f820
jmp 0x14002092e
cmp dword [0x14020866c], 0xffffffff
jne 0x1400207f6
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, str._.
lea rcx, [0x140209a88]
call fcn.14003f820
jmp 0x14002092e
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbx
xor r8d, r8d
lea rdx, [0x1401ddcc6]
lea rcx, [rsp + 0x68]
call fcn.140042590
nop
movsxd rax, dword [0x14020866c]
lea rdx, str.None
mov rdx, qword [rdx + rax*8]
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp byte [rdx + rdi], 0
jne 0x140020840
mov r8, rdi
lea rcx, [rsp + 0x68]
call fcn.14003f980
movabs rax, 0x7fffffffffffffff
mov rcx, qword [rsp + 0x78]
sub rax, rcx
cmp rax, 9
jb 0x14002094f
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x80], 0xf
cmova rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 9
lea r9, [0x1401df8e0]
lea rcx, [rsp + 0x48]
call fcn.1400433a0
mov rdx, qword [0x140209aa0]
cmp rdx, 0xf
jbe 0x1400208ee
inc rdx
mov rcx, qword [0x140209a88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400208e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400208e9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c44a0
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [0x140209a88], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [0x140209a98], xmm1
movdqa xmm0, xmmword [0x1401ef720]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
lea rcx, [rsp + 0x48]
call fcn.140040580
nop
lea rcx, [rsp + 0x68]
call fcn.140040580
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400c4480
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
call fcn.140002570
nop
int3
Function at 0x14003e900
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 0x14003e928
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 0x14003e94e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14003e950
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14003e9a9
test ecx, ecx
jle 0x14003e989
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 0x14003e9a9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14003e9a9
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 0x14003e9d0
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 0x14003e9f2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14003ea08
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 0x14003ea24
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14003ea26
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14003ea62
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 0x14003eafe
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14003ea9d
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 0x14003eade
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 0x14003eafe
cmp rbx, rax
ja 0x14003eab0
test rbx, rbx
je 0x14003eafe
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 0x14003ef20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140205040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14003ef4d
xor eax, eax
jmp 0x14003f0b9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14003ef87
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14003ef87
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 0x14003f0b9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14003f0ac
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14003efca
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 0x14003eff5
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 0x14003f0b1
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 0x14003f064
sub eax, 1
je 0x14003f064
cmp eax, 2
jne 0x14003f0ac
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 0x14003f0b1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14003f092
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 0x14003f0ac
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14003f0b1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400c4480
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140040090
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140205040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140040163
cmp byte [rcx + 0x71], 0
je 0x140040163
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14004015f
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 0x140040124
sub eax, 1
je 0x140040128
cmp eax, 2
jne 0x14004015f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400c4480
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140040156
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 0x14004015f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14004010c
xor al, al
jmp 0x14004010c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400c4480
add rsp, 0x60
pop rbx
ret
Function at 0x1400411c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [r8 + 0x18], 0xf
mov rbx, rdx
mov r11, qword [r8 + 0x10]
mov r10, r8
jbe 0x1400411da
mov r10, qword [r8]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
test r11, r11
je 0x140041214
movabs rdx, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [r10 + rcx]
inc rcx
xor r9, rax
imul r9, rdx
cmp rcx, r11
jb 0x140041200
lea rdx, [rsp + 0x20]
lea rcx, [0x140209980]
call fcn.140044860
mov rcx, qword [rax + 8]
mov rax, qword [0x140209988]
test rcx, rcx
cmovne rax, rcx
mov qword [rbx], rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret