joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d910
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140016c60], rbx
je 0x14000d977
cmp rax, rbx
jne 0x14000d96a
mov ebx, 1
mov esi, ebx
jmp 0x14000d97c
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000d94f
mov ebx, 1
mov eax, dword [0x140016c68]
cmp eax, ebx
jne 0x14000d994
mov edi, 0x1f
mov ecx, edi
call fcn.140171000
jmp 0x14000da00
mov eax, dword [0x140016c68]
test eax, eax
jne 0x14000d9f5
mov dword [0x140016c68], ebx
lea r15, [0x140010bb8]
lea rdi, [0x140010ba0]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000d9e7
test eax, eax
jne 0x14000d9eb
cmp qword [rdi], r14
je 0x14000d9dc
mov rax, qword [rdi]
mov rcx, qword [0x140010b58]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000d9be
test eax, eax
je 0x14000d9fb
mov eax, 0xff
jmp 0x14000db56
mov dword [0x1400163e4], ebx
mov edi, 0x1f
mov eax, dword [0x140016c68]
cmp eax, ebx
jne 0x14000da27
lea rdx, [0x140010b98]
lea rcx, [0x140010b60]
call sub.msvcrt.dll__initterm
mov dword [0x140016c68], 2
test esi, esi
jne 0x14000da35
mov rax, r14
xchg qword [0x140016c60], rax
cmp qword [0x140016c80], r14
je 0x14000da68
lea rcx, [0x140016c80]
call fcn.14000dfd0
test eax, eax
je 0x14000da68
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140016c80]
mov r9, qword [0x140010b58]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000da81
mov eax, 0xff
jmp 0x14000db56
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000db07
test ax, ax
je 0x14000da9c
test edx, edx
jne 0x14000db07
sub ax, bx
cmp ax, di
ja 0x14000dab2
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000da9c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400019fc
mov dword [0x1400163e0], eax
cmp dword [0x140016400], r14d
jne 0x14000daf0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400163e4], r14d
jne 0x14000db05
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400163e0]
jmp 0x14000db56
cmp ax, 0x22
jne 0x14000db1b
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000da8a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.14000e064
add rsp, 0x28
jmp 0x14000d910
Function at 0x1400021c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rax, qword [0x140040040]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor eax, eax
mov qword [rbp - 0x51], 0xfc6
mov dword [rbp + 0x27], eax
lea r8, [rbp - 0x59]
mov qword [rbp + 0x3b], rax
xor ebx, ebx
mov rax, qword [0x140040900]
xorps xmm0, xmm0
add rax, 0x10cb8d0
mov qword [rsp + 0x38], rbx
mov qword [rbp - 0x49], rax
mov rdi, rcx
mov rcx, qword [0x140040910]
lea rax, [rbp - 9]
mov qword [rbp - 0x41], rax
xorps xmm1, xmm1
mov eax, dword [0x140040908]
mov r9d, 0x28
mov qword [rsp + 0x30], rbx
mov edx, 0x2209a4
mov dword [rsp + 0x28], ebx
mov dword [rbp - 0x55], eax
movaps xmmword [rbp - 9], xmm0
movaps xmmword [rbp + 7], xmm1
movaps xmmword [rbp + 0x17], xmm0
movups xmmword [rbp + 0x2b], xmm0
mov dword [rbp - 0x59], 0xcabd5e5
mov qword [rbp - 0x39], 0x50
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
movaps xmm0, xmmword [rbp - 9]
lea rcx, [rbp - 0x59]
movaps xmm1, xmmword [rbp + 7]
mov dl, 0x40
movaps xmmword [rbp - 0x59], xmm0
movaps xmm0, xmmword [rbp + 0x17]
movaps xmmword [rbp - 0x39], xmm0
movaps xmm0, xmmword [rbp + 0x37]
movaps xmmword [rbp - 0x49], xmm1
movaps xmm1, xmmword [rbp + 0x27]
movaps xmmword [rbp - 0x19], xmm0
movaps xmmword [rbp - 0x29], xmm1
nop
xor byte [rcx], dl
lea eax, [rbx + 0x17]
add dl, al
lea eax, [rbx + 0x18]
xor byte [rcx + 1], dl
lea rcx, [rcx + 0x10]
add dl, al
lea eax, [rbx + 0x19]
xor byte [rcx - 0xe], dl
add dl, al
xor byte [rcx - 0xd], dl
lea eax, [rbx + 0x1a]
add dl, al
lea eax, [rbx + 0x1b]
xor byte [rcx - 0xc], dl
add dl, al
xor byte [rcx - 0xb], dl
lea eax, [rbx + 0x1c]
add dl, al
lea eax, [rbx + 0x1d]
xor byte [rcx - 0xa], dl
add dl, al
xor byte [rcx - 9], dl
lea eax, [rbx + 0x1e]
add dl, al
lea eax, [rbx + 0x1f]
xor byte [rcx - 8], dl
add dl, al
xor byte [rcx - 7], dl
lea eax, [rbx + 0x20]
add dl, al
lea eax, [rbx + 0x21]
xor byte [rcx - 6], dl
add dl, al
xor byte [rcx - 5], dl
lea eax, [rbx + 0x22]
add dl, al
lea eax, [rbx + 0x23]
xor byte [rcx - 4], dl
add dl, al
xor byte [rcx - 3], dl
lea eax, [rbx + 0x24]
add dl, al
lea eax, [rbx + 0x25]
xor byte [rcx - 2], dl
add dl, al
xor byte [rcx - 1], dl
lea eax, [rbx + 0x26]
add dl, al
add ebx, 0x10
cmp ebx, 0x40
jl 0x1400022a0
movaps xmm0, xmmword [rbp - 0x59]
mov rax, rdi
movsd xmm1, qword [rbp - 0x49]
movups xmmword [rdi], xmm0
movups xmm0, xmmword [rbp - 0x41]
movsd qword [rdi + 0x10], xmm1
movsd xmm1, qword [rbp - 0x31]
movups xmmword [rdi + 0x18], xmm0
movss xmm0, dword [rbp - 0x29]
movss dword [rdi + 0x30], xmm0
movsd qword [rdi + 0x28], xmm1
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140033030
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400043a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
test r8, r8
je 0x1400043b9
mov qword [r8], 0
lea rdx, [0x140035910]
call fcn.1400041b0
mov rbx, rax
test rax, rax
jne 0x1400043d8
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbp
xor edx, edx
mov r8d, 2
mov qword [rsp + 0x38], rsi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000449a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x14000449a
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000449a
mov rax, qword [0x140040928]
mov rbp, rsi
test rax, rax
je 0x140004437
inc dword [rax + 0x3c8]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14000449a
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rbp
je 0x140004487
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140040928]
test rax, rax
je 0x14000447c
dec dword [rax + 0x3c8]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400044a3
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x140004495
mov qword [rdi], rbp
mov rax, rsi
jmp 0x1400044a5
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400137c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push r15
sub rsp, 0x20
mov rdi, qword [0x140040928]
xor esi, esi
mov r15, rcx
mov dword [rdi + 0x2d9c], esi
test rcx, rcx
je 0x1400138da
mov qword [rsp + 0x40], rbx
lea rbx, [rdi + 0x2da0]
mov dword [rdi + 0x2d9c], esi
mov ecx, dword [rbx + 4]
mov qword [rsp + 0x48], rbp
test ecx, ecx
jns 0x14001381a
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
mov rcx, rbx
test eax, eax
cmovg edx, eax
call fcn.1400147f0
mov dword [rbx], esi
cmp dword [rbx + 4], esi
jne 0x14001382e
mov edx, 8
mov rcx, rbx
call fcn.1400147f0
movsxd rcx, dword [rbx]
mov ebp, esi
mov rax, qword [rbx + 8]
mov byte [rcx + rax], sil
inc dword [rbx]
cmp dword [rdi + 0x2db0], esi
jle 0x14001387a
mov qword [rsp + 0x50], r14
mov r14, rsi
nop dword [rax]
mov r9, qword [rdi + 0x2db8]
mov r8, rbx
add r9, r14
mov rcx, rdi
mov rdx, r9
call qword [r9 + 0x20]
inc ebp
add r14, 0x30
cmp ebp, dword [rdi + 0x2db0]
jl 0x140013850
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
cmp qword [rbx + 8], rsi
je 0x140013889
mov esi, dword [rbx]
dec esi
mov rax, qword [rdi + 0x2da8]
lea rdx, [0x140035914]
test rax, rax
movsxd rsi, esi
lea rdi, [0x14004091c]
mov rcx, r15
cmovne rdi, rax
call fcn.1400041b0
mov rbx, rax
test rax, rax
je 0x1400138d5
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
Function at 0x14001b7f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
push r13
push r14
sub rsp, 0xb8
mov r13, rcx
movsxd rax, r9d
xor ecx, ecx
mov qword [rsp + 0x60], rax
mov dword [rsp + 0xe8], ecx
mov r14, rdx
test r9d, r9d
jle 0x14001ba52
mov qword [r11 + 8], rbx
lea rbx, [r8 + 0x20]
mov qword [r11 + 0x10], rbp
movzx ebp, byte [r13 + 0x24]
mov qword [r11 + 0x18], rsi
mov qword [r11 - 0x18], rdi
mov edi, pe_nt_image_headers64
mov qword [r11 - 0x20], r12
xor r12d, r12d
mov qword [r11 - 0x28], r15
movaps xmmword [r11 - 0x38], xmm6
movaps xmmword [r11 - 0x48], xmm7
xorps xmm7, xmm7
movaps xmmword [r11 - 0x58], xmm8
movzx r11d, byte [r13 + 0x20]
movss xmm8, dword [0x140039f50]
nop word [rax + rax]
movss xmm6, dword [rbx - 0x20]
comiss xmm6, xmm7
jbe 0x14001b8ba
movsxd r10, dword [r14 + 0x24]
mov r9, qword [r14 + 8]
movsx ecx, di
movzx eax, byte [r10 + r9 + 7]
movzx edx, byte [r10 + r9 + 6]
imul edx, ecx
movsx ecx, di
add dx, ax
movzx eax, byte [r10 + r9 + 5]
movsx r8d, dx
movzx edx, byte [r10 + r9 + 4]
imul edx, ecx
add ax, dx
cwde
sub eax, r8d
movd xmm0, eax
jmp 0x14001b8d9
movsxd rdx, dword [r14 + 0x1c]
xorps xmm6, xmm8
mov rax, qword [r14 + 8]
movzx ecx, byte [rdx + rax + 0x12]
movzx eax, byte [rdx + rax + 0x13]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
xor edi, edi
mov byte [rbx], r11b
mov byte [rbx + 1], bpl
divss xmm6, xmm0
cmp dword [rbx - 0x10], edi
jle 0x14001b9f0
mov r15, qword [rsp + 0xf0]
mov rax, r12
shl rax, 4
add r15, 6
xor esi, esi
add r15, rax
nop word [rax + rax]
mov rax, qword [rbx - 0x18]
test rax, rax
jne 0x14001b920
mov edx, dword [rbx - 0x1c]
add edx, edi
jmp 0x14001b923
mov edx, dword [rax + rsi]
mov eax, dword [r13 + 0x24]
xorps xmm3, xmm3
xorps xmm2, xmm2
mov rcx, r14
cvtsi2ss xmm3, rax
mov eax, dword [r13 + 0x20]
cvtsi2ss xmm2, rax
mulss xmm3, xmm6
mulss xmm2, xmm6
call fcn.140016b20
mov edx, eax
mov rcx, r14
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
movss dword [rsp + 0x28], xmm7
movss dword [rsp + 0x20], xmm7
call fcn.140019450
movzx ecx, word [r13 + 0x1c]
inc r12
movzx r11d, word [r13 + 0x20]
movzx eax, cx
sub ax, word [rsp + 0x50]
dec cx
movzx ebp, word [r13 + 0x24]
dec ax
add ax, r11w
inc edi
add ax, word [rsp + 0x54]
add rsi, 4
mov word [r15 - 2], ax
movzx eax, bp
sub ax, word [rsp + 0x58]
add ax, cx
mov ecx, dword [rsp + 0xe8]
add ax, word [rsp + 0x5c]
inc ecx
mov word [r15], ax
add r15, 0x10
mov dword [rsp + 0xe8], ecx
cmp edi, dword [rbx - 0x10]
jl 0x14001b910
jmp 0x14001b9f7
mov ecx, dword [rsp + 0xe8]
add rbx, 0x28
mov edi, pe_nt_image_headers64
sub qword [rsp + 0x60], 1
jne 0x14001b870
movaps xmm8, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x90]
mov r15, qword [rsp + 0xa0]
mov r12, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0xe0]
mov rbp, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xd0]
mov eax, ecx
add rsp, 0xb8
pop r14
pop r13
ret
Function at 0x140033d58
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140033da2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140033da2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140033da2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140033da2
cmp dword [rcx + 0x84], 0xe
jbe 0x140033da2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140033da4
xor al, al
add rsp, 0x28
ret
Function at 0x1400059d0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
lea rax, [0x140096310]
mov rdi, rcx
mov rsi, rdx
lea rcx, [rsp + 0x20]
mov edx, 0xfa0
mov qword [rsp + 0x38], rax
lea r12, [rsp + 0x30]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
call fcn.14000d130
mov rax, qword [rsp + 0x20]
mov rbp, qword [0x1400b8c70]
mov qword [rsp + 0x40], rax
mov rbx, rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
test rbx, rbx
jle 0x140005bb8
nop word [rax + rax]
mov rax, qword [rsp + 0x48]
mov r9, rsi
mov r8d, 0xfa0
mov edx, 1
lea rcx, [rax + 8]
call sub.msvcrt.dll_fread
mov rbx, rax
cmp rax, 0xfa0
je 0x140005b40
mov rcx, rsi
call sub.msvcrt.dll_ferror
test eax, eax
je 0x140005a87
mov rcx, rsi
call fcn.140005660
mov rcx, rbp
call fcn.14008ac80
cmp byte [rax], 0
jne 0x140005bf0
test rbx, rbx
js 0x140005c10
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.14000a660
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.14000a360
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
test rbx, rbx
jle 0x140005b18
mov rax, rbx
add rax, 1
jo 0x140005beb
test rax, rax
js 0x140005c2e
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
lea r9, [r8 + rdx + 8]
lea rdx, [rcx + 8]
mov r8, rax
mov rcx, r9
call sub.msvcrt.dll_memcpy
add rbx, qword [rsp + 0x30]
jo 0x140005beb
mov qword [rsp + 0x30], rbx
mov rcx, qword [rsp + 0x48]
nop dword [rax]
test rcx, rcx
je 0x140005b27
test byte [rcx + 7], 0x40
je 0x140005c00
movdqu xmm0, xmmword [rsp + 0x30]
mov rax, rdi
movups xmmword [rdi], xmm0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, rbp
call fcn.14008ac80
cmp byte [rax], 0
jne 0x140005bf0
mov rdx, qword [rsp + 0x40]
mov rcx, r12
call fcn.14000a360
mov rbx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
test rbx, rbx
jle 0x140005bb8
mov rcx, rbx
add rcx, 1
jo 0x140005bcd
test rcx, rcx
js 0x140005bd8
mov r8, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
add rdx, 8
lea rax, [r8 + rax + 8]
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
add rbx, qword [rsp + 0x30]
jo 0x140005bcd
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsp + 0x40]
test rbx, rbx
jg 0x140005a48
nop dword [rax + rax]
xor ecx, ecx
lea rdx, [rbx - 1]
call fcn.14000c0d0
mov rcx, qword [rsp + 0x48]
jmp 0x140005b18
call fcn.140009060
jmp 0x140005ba5
movabs r8, 0x7fffffffffffffff
xor edx, edx
call fcn.1400096a0
jmp 0x140005ba5
call fcn.140009060
mov rcx, qword [rsp + 0x48]
jmp 0x140005b18
call fcn.140008da0
jmp 0x140005b27
movabs r8, 0x7fffffffffffffff
mov rcx, rbx
xor edx, edx
call fcn.1400096a0
mov rcx, qword [rsp + 0x48]
jmp 0x140005b18
movabs r8, 0x7fffffffffffffff
mov rcx, rax
xor edx, edx
call fcn.1400096a0
mov rcx, qword [rsp + 0x48]
jmp 0x140005b18
Function at 0x140005c50
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rdi, rcx
mov rsi, rdx
mov rbx, r8
test r8, r8
js 0x140005d40
lea r14, [rsp + 0x20]
mov rdx, r8
mov rcx, r14
call fcn.14000d130
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov rdx, rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
test rdx, rdx
jle 0x140005d90
mov rax, qword [rsp + 0x38]
mov r9, rsi
mov r8, rbx
mov edx, 1
lea rcx, [rax + 8]
call sub.msvcrt.dll_fread
mov rbp, rax
cmp rbx, rax
je 0x140005cd1
mov rcx, rsi
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x140005d60
mov rcx, qword [0x1400b8c70]
call fcn.14008ac80
cmp byte [rax], 0
mov r12, rax
jne 0x140005d21
mov rcx, rsi
call sub.msvcrt.dll_fgetc
mov rdx, rsi
mov ecx, eax
mov r13d, eax
call sub.msvcrt.dll_ungetc
cmp byte [r12], 0
jne 0x140005d21
test r13d, r13d
jns 0x140005da0
cmp rbx, rbp
jle 0x140005d21
test rbp, rbp
js 0x140005d70
lea rcx, [rsp + 0x30]
mov rdx, rbp
call fcn.14000a660
movdqu xmm0, xmmword [rsp + 0x30]
mov rax, rdi
movups xmmword [rdi], xmm0
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbx
call fcn.1400096a0
jmp 0x140005d21
mov rcx, rsi
call fcn.140005660
jmp 0x140005cd1
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbp
call fcn.1400096a0
jmp 0x140005d21
sub rdx, 1
xor ecx, ecx
call fcn.14000c0d0
jmp 0x140005d21
mov rdx, rsi
mov rcx, r14
call fcn.1400059d0
cmp byte [r12], 0
mov rbx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
jne 0x140005e06
lea rcx, [rsp + 0x30]
mov rdx, rbx
call fcn.14000a360
test rbx, rbx
jle 0x140005e06
mov rcx, rbx
add rcx, 1
jo 0x140005e26
test rcx, rcx
js 0x140005e30
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov r8, rcx
lea rax, [rdx + rax + 8]
lea rdx, [rsi + 8]
mov rcx, rax
call sub.msvcrt.dll_memcpy
add rbx, qword [rsp + 0x30]
jo 0x140005e26
mov qword [rsp + 0x30], rbx
test rsi, rsi
je 0x140005d21
test byte [rsi + 7], 0x40
jne 0x140005d21
mov rcx, rsi
call fcn.140008da0
jmp 0x140005d21
call fcn.140009060
jmp 0x140005e06
movabs r8, 0x7fffffffffffffff
xor edx, edx
call fcn.1400096a0
jmp 0x140005e06
Function at 0x140006140
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
lea rax, [0x140096243]
mov rdi, qword [rcx]
mov r12, qword [rcx + 8]
test rdi, rdi
lea rcx, [r12 + 8]
cmove rcx, rax
mov rbp, rdx
lea rdx, [0x14009626d]
mov r13, r8
call fcn.140005400
mov rcx, qword [0x1400b8c70]
mov rsi, rax
call fcn.14008ac80
cmp byte [rax], 0
mov rbx, rax
jne 0x1400061d4
test rsi, rsi
je 0x1400061f8
test r13, r13
jle 0x1400062e0
mov rcx, rbp
mov r9, rsi
mov r8, r13
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x1400061e8
movzx edi, byte [rbx]
mov byte [rbx], 0
mov rcx, rsi
call sub.msvcrt.dll_fclose
cmp byte [rbx], 0
jne 0x1400061d4
mov byte [rbx], dil
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, rsi
call fcn.140005660
movzx edi, byte [rbx]
jmp 0x1400061c1
mov edx, 8
mov ecx, 0x40
lea rbp, [0x140096244]
call fcn.14000bf20
lea rdx, [rdi + 0xd]
lea rcx, [rsp + 0x30]
mov rbx, rax
mov rax, qword [0x1400b8ae0]
mov qword [rbx + 0x10], rbp
mov qword [rbx], rax
call fcn.14000a5d0
mov rsi, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
movabs rdx, 0x6f20746f6e6e6163
lea rax, [rsi + r14 + 8]
mov r13, rsi
mov qword [rax], rdx
add r13, 0xd
movabs rdx, 0x203a6e65706f20
mov qword [rax + 6], rdx
jo 0x140006320
test rdi, rdi
jle 0x140006309
mov rcx, rdi
add rcx, 1
jo 0x140006310
test rcx, rcx
js 0x1400062f8
lea rax, [r13 + r14 + 8]
mov r8, rcx
lea rdx, [r12 + 8]
mov rcx, rax
call sub.msvcrt.dll_memcpy
add rdi, r13
jo 0x140006310
mov qword [rbx + 0x18], rdi
mov rdx, rbp
mov rcx, rbx
lea r9, str.syncio
mov qword [rbx + 0x20], r14
lea r8, str.writeFile
mov qword [rbx + 8], 0
mov qword [rsp + 0x20], 0x371
call fcn.14000bc80
nop
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea rdx, [r13 - 1]
xor ecx, ecx
call fcn.14000c0d0
movzx edi, byte [rbx]
jmp 0x1400061c1
movabs r8, 0x7fffffffffffffff
xor edx, edx
call fcn.1400096a0
mov rdi, r13
jmp 0x140006299
call fcn.140009060
jmp 0x140006309
call fcn.140009060
mov r13, rsi
jmp 0x140006264

Function at 0x140006690
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x1400066af
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140094370
Function at 0x14000d900
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea r13, [0x1400c3040]
mov rsi, rdx
mov rbx, rcx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rsi, rsi
jle 0x14000d98f
mov rdi, qword [str.p_t_]
xor r14d, r14d
lea r12, [rsp + 0x20]
lea rbp, [0x1400953a0]
jmp 0x14000d955
add r14, 1
add rbx, 0x10
cmp rsi, r14
je 0x14000d996
mov ecx, 1
call rdi
movdqu xmm0, xmmword [rbx]
xor r8d, r8d
mov rdx, r12
mov rcx, rax
movups xmmword [rsp + 0x20], xmm0
call fcn.14000d7f0
mov rcx, rbp
call fcn.14008ac80
cmp byte [rax], 0
je 0x14000d948
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rdi, qword [str.p_t_]
mov ecx, 1
call rdi
mov r8d, 1
mov edx, 1
lea rcx, [0x140096499]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rdi
mov rcx, rax
call fcn.140094370
mov rcx, r13
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400133c0
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rcx]
mov rdx, qword [rcx + 8]
test rax, rax
jle 0x140013420
lea r8, [rax + rdx + 8]
lea rcx, [rdx + 8]
xor eax, eax
nop word [rax + rax]
movzx edx, byte [rcx]
add rcx, 1
add rdx, rax
mov rax, rdx
shl rax, 0xa
add rax, rdx
mov rdx, rax
shr rdx, 6
xor rax, rdx
cmp r8, rcx
jne 0x1400133e0
lea rax, [rax + rax*8]
mov rdx, rax
shr rdx, 0xb
xor rdx, rax
mov rax, rdx
shl rax, 0xf
add rax, rdx
ret
xor eax, eax
ret
Function at 0x140015b20
Capabilities:
Hash data using murmur3

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rdx
sar rdx, 0x3f
mov rbp, rcx
shr rdx, 0x3e
mov r12, rsi
lea rax, [rsi + rdx]
and eax, 3
sub rax, rdx
sub r12, rax
cmp rsi, 3
jle 0x140015c97
mov ebx, dword [rcx]
mov rcx, qword [0x1400b8c70]
call fcn.14008ac80
cmp byte [rax], 0
jne 0x140015c79
xor edi, edi
mov ecx, 4
jmp 0x140015b89
cmp rsi, rcx
jle 0x140015c70
mov ebx, dword [rbp + rcx]
add rcx, 4
imul eax, ebx, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, edi
rol eax, 0xd
lea edi, [rax + rax*4 - 0x19ab949c]
cmp r12, rcx
jg 0x140015b78
mov rdx, rsi
sar rdx, 0x3f
shr rdx, 0x3e
lea rax, [rsi + rdx]
and eax, 3
sub rax, rdx
test rax, rax
jle 0x140015ca0
lea r9, [rax - 1]
mov r8, r9
add r8, rcx
js 0x140015c89
cmp rsi, r8
jle 0x140015c89
movzx edx, byte [rbp + r8]
test r9, r9
je 0x140015c29
sub rax, 2
mov r8, rax
add r8, rcx
js 0x140015c89
cmp r8, rsi
jge 0x140015c89
movzx r8d, byte [rbp + r8]
shl edx, 8
or edx, r8d
test rax, rax
je 0x140015c29
test rcx, rcx
js 0x140015c86
cmp rsi, rcx
jle 0x140015c86
movzx eax, byte [rbp + rcx]
shl edx, 8
or edx, eax
imul ebx, edx, 0xcc9e2d51
rol ebx, 0xf
mov rcx, qword [0x1400b8c70]
call fcn.14008ac80
cmp byte [rax], 0
jne 0x140015c79
imul eax, ebx, 0x1b873593
xor edi, esi
xor eax, edi
mov edx, eax
shr edx, 0x10
xor eax, edx
imul eax, eax, 0x85ebca6b
mov edx, eax
shr edx, 0xd
xor edx, eax
imul edx, edx, 0xc2b2ae35
mov eax, edx
shr eax, 0x10
xor eax, edx
jmp 0x140015c7b
lea rdx, [rsi - 1]
call fcn.14000c0d0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8, rcx
lea rdx, [rsi - 1]
mov rcx, r8
call fcn.14000c0d0
jmp 0x140015c79
xor ecx, ecx
xor edi, edi
jmp 0x140015ba9
xor ebx, ebx
jmp 0x140015c32
sub rsp, 0x28
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
test rdx, rdx
js 0x140015cd8
lea rcx, [rax + 8]
test rax, rax
cmove rcx, rax
add rsp, 0x28
jmp 0x140015b20
lea rax, [rdx - 1]
mov r8, rdx
xor ecx, ecx
mov rdx, rax
call fcn.14000ee20
xor eax, eax
add rsp, 0x28
ret