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

Disassembly:
jmp 0x140013c50
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x228
lea rbp, [rsp + 0x20]
lea rcx, [0x1400280f9]
call fcn.140011497
nop
mov rax, qword [rbp + 0x220]
mov eax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x220]
add rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
mov dword [rbp + 0x24], 0
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 8]
mov eax, dword [rcx + rax + 0x88]
mov dword [rbp + 0x44], eax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 8]
mov eax, dword [rcx + rax + 0x8c]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x44], 0
je 0x140013df9
mov eax, dword [rbp + 0x44]
mov rcx, qword [rbp + 0x220]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
cmp dword [rax + 0x1c], 0
je 0x140013d0d
mov rax, qword [rbp + 0x88]
cmp dword [rax + 0x24], 0
je 0x140013d0d
mov rax, qword [rbp + 0x88]
cmp dword [rax + 0x20], 0
jne 0x140013d14
xor eax, eax
jmp 0x140013e25
mov rax, qword [rbp + 0x88]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rbp + 0x220]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x88]
mov eax, dword [rax + 0x24]
mov rcx, qword [rbp + 0x220]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0x88]
mov eax, dword [rax + 0x20]
mov rcx, qword [rbp + 0x220]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xe8], rax
mov dword [rbp + 0x104], 0
jmp 0x140013d88
mov eax, dword [rbp + 0x104]
inc eax
mov dword [rbp + 0x104], eax
mov rax, qword [rbp + 0x88]
mov eax, dword [rax + 0x18]
cmp dword [rbp + 0x104], eax
jae 0x140013df7
mov eax, dword [rbp + 0x104]
mov rcx, qword [rbp + 0xe8]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rbp + 0x220]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rdx, qword [rbp + 0x228]
mov rcx, qword [rbp + 0x128]
call fcn.14001150a
test eax, eax
jne 0x140013df5
mov eax, dword [rbp + 0x104]
mov rcx, qword [rbp + 0xc8]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rbp + 0xa8]
mov eax, dword [rcx + rax*4]
mov dword [rbp + 0x24], eax
jmp 0x140013df7
jmp 0x140013d7a
jmp 0x140013dfd
xor eax, eax
jmp 0x140013e25
cmp dword [rbp + 0x24], 0
je 0x140013e23
mov eax, dword [rbp + 0x44]
cmp dword [rbp + 0x24], eax
jbe 0x140013e1e
mov eax, dword [rbp + 0x64]
mov ecx, dword [rbp + 0x44]
add ecx, eax
mov eax, ecx
cmp dword [rbp + 0x24], eax
jae 0x140013e1e
xor eax, eax
jmp 0x140013e25
mov eax, dword [rbp + 0x24]
jmp 0x140013e25
xor eax, eax
lea rsp, [rbp + 0x208]
pop rdi
pop rbp
ret
Function at 0x1400112c6
Capabilities:
Get file size
Read file on windows

Disassembly:
jmp 0x1400147e0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1b8]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x158], rax
lea rcx, [0x1400280f9]
call fcn.140011497
nop
mov byte [rbp + 4], 0
mov dword [rbp + 0x24], 0
lea rdx, [rbp + 0x24]
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jbe 0x1400148f9
cmp dword [rbp + 0x24], 0
je 0x14001486a
xor al, al
jmp 0x1400148fd
mov eax, dword [rbp + 0x44]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
je 0x1400148f9
mov dword [rbp + 0x84], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
nop
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x84]
mov r8d, dword [rbp + 0x44]
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400148ee
mov rax, qword [rbp + 0x188]
mov rcx, qword [rbp + 0x68]
mov qword [rax], rcx
mov rax, qword [rbp + 0x190]
mov ecx, dword [rbp + 0x44]
mov dword [rax], ecx
mov byte [rbp + 4], 1
jmp 0x1400148f9
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
movzx eax, byte [rbp + 4]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001df10]
call fcn.14001140b
mov rax, rdi
mov rcx, qword [rbp + 0x158]
xor rcx, rbp
call fcn.140011212
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret

Function at 0x14001132f
Capabilities:
Parse pe header

Disassembly:
jmp 0x140017ad0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140017af0
xor al, al
jmp 0x140017b71
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140017b03
xor al, al
jmp 0x140017b71
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140017b2d
xor al, al
jmp 0x140017b71
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140017b41
xor al, al
jmp 0x140017b71
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140017b53
xor al, al
jmp 0x140017b71
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140017b6f
xor al, al
jmp 0x140017b71
mov al, 1
add rsp, 0x38
ret
Function at 0x140011488
Capabilities:
Get system information on windows

Disassembly:
jmp 0x140013220
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x188]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x138], rax
lea rcx, [0x1400280f9]
call fcn.140011497
nop
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
mov dword [rbp + 0x44], 0x100
mov qword [rbp + 0x68], 0
xor eax, eax
cmp eax, 1
je 0x1400132f1
mov dword [rbp + 0x24], 0
mov eax, dword [rbp + 0x44]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x1400132b2
xor eax, eax
jmp 0x140013311
lea r9, [rbp + 0x24]
mov r8d, dword [rbp + 0x44]
mov rdx, qword [rbp + 0x68]
mov ecx, dword [rbp + 0x160]
call fcn.14001137a
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xc0000004
jne 0x1400132ed
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov eax, dword [rbp + 0x24]
add eax, 0x100
mov dword [rbp + 0x44], eax
jmp 0x1400132ef
jmp 0x1400132f1
jmp 0x140013285
cmp dword [rbp + 4], 0
jge 0x14001330d
cmp qword [rbp + 0x68], 0
je 0x140013309
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
xor eax, eax
jmp 0x140013311
mov rax, qword [rbp + 0x68]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001dd00]
call fcn.14001140b
mov rax, rdi
mov rcx, qword [rbp + 0x138]
xor rcx, rbp
call fcn.140011212
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x1400159c0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400114c4
movzx eax, al
test eax, eax
jne 0x1400159e0
mov ecx, 7
call fcn.140011415
nop
mov byte [rsp + 0x20], 0
call fcn.14001142e
mov byte [rsp + 0x21], al
cmp dword [0x1400228e8], 1
jne 0x140015a04
mov ecx, 7
call fcn.140011415
nop
jmp 0x140015a5c
cmp dword [0x1400228e8], 0
jne 0x140015a57
mov dword [0x1400228e8], 1
lea rdx, [0x14001d660]
lea rcx, [0x14001d330]
call fcn.1400111fe
test eax, eax
je 0x140015a38
mov eax, 0xff
jmp 0x140015b61
lea rdx, [0x14001d220]
lea rcx, [section..rdata]
call fcn.140011424
mov dword [0x1400228e8], 2
jmp 0x140015a5c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011401
call fcn.140011357
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140015ab9
mov rcx, qword [rsp + 0x30]
call fcn.1400111a4
movzx eax, al
test eax, eax
je 0x140015ab9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140029020]
nop
call fcn.1400113a7
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140015aed
mov rcx, qword [rsp + 0x38]
call fcn.1400111a4
movzx eax, al
test eax, eax
je 0x140015aed
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011479
nop
call fcn.140015c10
mov dword [rsp + 0x28], eax
call fcn.14001132f
movzx eax, al
test eax, eax
jne 0x140015b0c
mov ecx, dword [rsp + 0x28]
call fcn.140011064
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140015b1b
call fcn.140011483
nop
xor edx, edx
mov cl, 1
call fcn.140011190
mov eax, dword [rsp + 0x28]
jmp 0x140015b61
add rsp, 0x68
ret
Function at 0x140008fb0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x290
mov rax, qword [0x141a8b180]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, rcx
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14000900b
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x140009012
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400090fa
mov qword [rsp + 0x2a0], rdi
xor edi, edi
nop dword [rax]
xorps xmm0, xmm0
mov qword [rsp + 0x30], rdi
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x6c]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], di
jne 0x140009040
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.1400168c0
cmp qword [rbx + 0x18], 7
mov rax, rbx
jbe 0x140009066
mov rax, qword [rbx]
mov r10, qword [rsp + 0x38]
lea r8, [rsp + 0x20]
mov r9, qword [rsp + 0x20]
cmp r10, 7
mov rdx, qword [rsp + 0x30]
cmova r8, r9
cmp rdx, qword [rbx + 0x10]
jne 0x14000911b
test rdx, rdx
je 0x1400090a8
sub r8, rax
movzx ecx, word [r8 + rax]
cmp cx, word [rax]
jne 0x14000911b
add rax, 2
sub rdx, 1
jne 0x140009094
mov edi, dword [rsp + 0x48]
cmp r10, 7
jbe 0x1400090e7
lea rdx, [r10*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x1400090df
mov r9, qword [r9 - 8]
add rdx, 0x27
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000916d
mov rcx, r9
call fcn.140107000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rdi, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140106fe0
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x290
pop rsi
ret
cmp r10, 7
jbe 0x140009152
lea rdx, [r10*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x14000914a
mov r9, qword [r9 - 8]
add rdx, 0x27
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000916d
mov rcx, r9
call fcn.140107000
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140009020
jmp 0x1400090e7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14000f0b0
Capabilities:
Get disk information

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0xd0
mov rax, qword [0x141a8b180]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, rcx
xor edi, edi
xorps xmm0, xmm0
movups xmmword [r11 - 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [r11 - 0x48], xmm1
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [0x141aa2560]
lea rcx, [r11 - 0x58]
call fcn.140006ae0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov r8d, 0x19
lea rdx, [0x140170da8]
lea rcx, [rsp + 0x40]
call fcn.140006ae0
nop
lea rcx, [rsp + 0x40]
call fcn.1400e1d88
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000f172
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f16d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f16d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140107000
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x78]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140170d20]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x14000f2f6
lea r9, [rsp + 0xb5]
mov r8d, dword [rsp + 0x78]
dec r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x14000f1b1
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
lea rax, [rsp + 0xb5]
cmp r9, rax
jne 0x14000f20d
movdqa xmm0, xmmword [0x141a69000]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], dl
jmp 0x14000f226
lea r8, [rsp + 0xb5]
sub r8, r9
mov rdx, r9
lea rcx, [rsp + 0x40]
call fcn.140006ae0
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x80]
call fcn.1400d6b60
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000f279
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f274
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f274
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140107000
mov rax, qword [rbx]
mov byte [rax + 0x75], 1
mov rax, qword [rbx]
mov byte [rax + 0x74], 0
mov byte [0x141aa25f0], 0
mov rdx, qword [rsp + 0x98]
cmp rdx, 0xf
jbe 0x14000f2d5
inc rdx
mov rcx, qword [rsp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f2cf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f2cf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140107000
nop
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140106fe0
mov rbx, qword [rsp + 0xe8]
add rsp, 0xd0
pop rdi
ret
lea rdx, [0x140170d28]
lea rcx, [rsp + 0x60]
call fcn.140005020
lea rdx, [0x141a86430]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140013390
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
push r15
mov rsi, qword [rsp + 0x48]
xor r14d, r14d
mov rbx, qword [rsp + 0x60]
mov r12, r9
mov rcx, qword [rsp + 0x50]
mov r13, r8
mov rbp, qword [rsp + 0x58]
mov r15, rdx
mov qword [rsi], r8
mov qword [rbx], rcx
mov rax, qword [rsi]
cmp rax, r9
je 0x140013525
cmp rcx, rbp
je 0x140013525
mov r9d, 1
movzx edx, word [r15]
xor dil, dil
movzx ecx, word [rax]
mov r11d, 0x2800
mov r8d, 0x3ff
mov r10d, 0x2400
cmp r9w, dx
jae 0x14001342c
lea eax, [r10 + rcx]
cmp ax, r8w
ja 0x14001354c
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x140013443
mov eax, ecx
add cx, r11w
cmp cx, r8w
ja 0x140013443
shl eax, 0xa
mov dil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x140013456
movzx r8d, al
mov r10d, r14d
mov r11d, r14d
jmp 0x1400134a3
mov r8d, eax
cmp eax, 0x800
jae 0x140013470
shr r8d, 6
mov r10d, r9d
or r8b, 0xc0
mov r11d, r9d
jmp 0x1400134a3
cmp eax, 0x10000
jae 0x14001348a
shr r8d, 0xc
mov r10d, 2
or r8b, 0xe0
mov r11d, r10d
jmp 0x1400134a3
shr r8d, 0x12
mov r10d, 3
movzx r11d, dil
or r8b, 0xf0
xor r11d, 1
add r11d, r11d
lea r9d, [r11 + 1]
mov rdx, rbp
sub rdx, qword [rbx]
mov ecx, r9d
cmp rdx, rcx
jl 0x140013525
add qword [rsi], 2
test dil, dil
jne 0x1400134c4
cmp r10d, 3
jae 0x1400134d0
mov rcx, qword [rbx]
mov r9d, r11d
mov byte [rcx], r8b
inc qword [rbx]
mov r8, qword [rbx]
test r9d, r9d
jle 0x1400134fe
lea ecx, [r10 + r10*2]
add ecx, ecx
nop
sub ecx, 6
mov edx, eax
shr edx, cl
dec r9d
and dl, 0x3f
or dl, 0x80
mov byte [r8], dl
inc qword [rbx]
mov r8, qword [rbx]
test r9d, r9d
jg 0x1400134e0
shr eax, 0xa
mov r9d, 1
test dil, dil
mov ecx, r9d
cmovne ecx, eax
mov word [r15], cx
mov rax, qword [rsi]
cmp rax, r12
je 0x140013525
cmp qword [rbx], rbp
jne 0x1400133ed
cmp r13, qword [rsi]
sete r14b
mov eax, r14d
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
ret
mov eax, 2
jmp 0x14001352f
Function at 0x140013ec0
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 0x140013ee8
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 0x140013f0e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140013f10
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140013f69
test ecx, ecx
jle 0x140013f49
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 0x140013f69
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140013f69
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 0x140013f90
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 0x140013fb2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140013fc8
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 0x140013fe4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140013fe6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140014022
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 0x1400140be
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14001405d
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 0x14001409e
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 0x1400140be
cmp rbx, rax
ja 0x140014070
test rbx, rbx
je 0x1400140be
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 0x140014530
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x141a8b180]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14001455d
xor eax, eax
jmp 0x1400146c9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140014597
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140014597
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 0x1400146c9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400146bc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400145da
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 0x140014605
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 0x1400146c1
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 0x140014674
sub eax, 1
je 0x140014674
cmp eax, 2
jne 0x1400146bc
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 0x1400146c1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400146a2
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 0x1400146bc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400146c1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140106fe0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140015430
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x141a8b180]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140015503
cmp byte [rcx + 0x71], 0
je 0x140015503
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400154ff
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 0x1400154c4
sub eax, 1
je 0x1400154c8
cmp eax, 2
jne 0x1400154ff
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140106fe0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400154f6
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 0x1400154ff
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400154ac
xor al, al
jmp 0x1400154ac
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140106fe0
add rsp, 0x60
pop rbx
ret

Function at 0x14001a7f0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14001a84d
lea rbx, [0x141a62b10]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x14001a834
cmp r10, 2
jb 0x14001a834
cmp byte [r9], r8b
jne 0x14001a834
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x14001a810
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14001a88f
lea rbx, [0x141a62b10]
cmp r8b, 0x23
jne 0x14001a873
cmp byte [r9], r8b
jne 0x14001a873
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x14001a860
mov rbx, qword [rsp + 8]
not eax
ret