joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140024b70
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x140076048]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movzx edi, r8b
lea rcx, [rsp + 0x60]
call fcn.140001dd0
mov rsi, rax
mov qword [rsp + 0x40], rax
mov rbx, qword [0x1400793f0]
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.140001dd0
mov byte [rsp + 0xa0], dil
mov qword [rsp + 0xa8], rbx
mov ecx, 0x30
call fcn.14002d234
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rsp + 0x90]
movups xmmword [rax + 0x10], xmm1
xor ebp, ebp
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x98], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rsp + 0x80], bpl
mov byte [rax + 0x20], dil
mov qword [rax + 0x28], rbx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebp
mov r9, rax
lea r8, [0x1400118b0]
xor edx, edx
xor ecx, ecx
call fcn.140039ba0
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140024cf5
cmp dword [rsp + 0x38], ebp
je 0x140024d04
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call fcn.14002c4ac
test eax, eax
jne 0x140024d0f
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x140024cb7
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140024cb2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140024cef
mov rcx, r8
call fcn.14002d200
mov qword [rsi + 0x10], rbp
mov qword [rsi + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rsi], 0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14002d1e0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140033898
nop
mov dword [rsp + 0x38], ebp
mov ecx, 6
call fcn.14002c41c
nop
mov ecx, 1
call fcn.14002c41c
int3
mov ecx, eax
call fcn.14002c3e0
int3
Function at 0x1400253f0
Capabilities:
Create process on windows
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x140076048]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbx, rcx
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbx + 0xe0]
test rcx, rcx
je 0x14002542f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rbx + 0xa0]
xor edx, edx
mov ecx, 0xc3a
call qword [0x140079310]
mov qword [rbx + 0xe0], rax
lea rcx, [rbx + 0x60]
call fcn.140029ab0
xor edi, edi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x30], edi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x1400254d6
lea rdx, [rsp + 0x30]
mov rcx, qword [rbx + 0xe0]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x1400254d6
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x40], eax
je 0x1400254d6
lea r8, [0x140079530]
cmp qword [0x140079548], 8
cmovae r8, qword [0x140079530]
lea rdx, [0x140079770]
cmp qword [0x140079788], 8
cmovae rdx, qword [0x140079770]
xor ecx, ecx
lea r9d, [rdi + 0x10]
call qword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
jmp 0x14002565b
mov rcx, qword [rbx + 0xe0]
test rcx, rcx
jne 0x1400255c2
lea rdx, [0x140079710]
lea rcx, [rsp + 0x60]
call fcn.140011380
nop
lea rdx, [0x140079530]
lea rcx, [rsp + 0x80]
call fcn.140011380
mov dword [rsp + 0xa0], reloc.OLEAUT32.dll_SafeArrayGetDim
mov ecx, 0x48
call fcn.14002d234
mov rbx, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.140011380
nop
lea rcx, [rbx + 0x20]
lea rdx, [rsp + 0x80]
call fcn.140011380
mov ecx, dword [rsp + 0xa0]
mov dword [rbx + 0x40], ecx
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9, rbx
lea r8, [0x140017d20]
xor edx, edx
xor ecx, ecx
call fcn.140039ba0
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14002567c
lea rcx, [rsp + 0x60]
call fcn.140013380
cmp dword [rsp + 0x58], 0
je 0x14002568b
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.14002c4ac
test eax, eax
jne 0x140025696
jmp 0x14002565b
mov dword [rsp + 0x20], 0x40
xor edx, edx
mov r9d, 0x3000
mov r8d, 0x400
call qword [0x140079330]
test rax, rax
jne 0x140025640
lea r8, str.._readme.txt
mov ecx, 0xeb
call fcn.140012930
lea r8, [0x140079530]
cmp qword [0x140079548], 8
cmovae r8, qword [0x140079530]
lea rdx, [0x1400797d0]
cmp qword [0x1400797e8], 8
cmovae rdx, qword [0x1400797d0]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor edx, edx
lea rcx, str.cmd.exe__c_._readme.txt
call qword [sym.imp.KERNEL32.dll_WinExec]
xor al, al
jmp 0x14002565b
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbx + 0xe0]
call qword [0x140079338]
mov al, 1
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14002d1e0
mov rbx, qword [rsp + 0xd8]
add rsp, 0xc0
pop rdi
ret
mov dword [rsp + 0x58], edi
mov ecx, 6
call fcn.14002c41c
nop
mov ecx, 1
call fcn.14002c41c
int3
mov ecx, eax
call fcn.14002c3e0
int3
Function at 0x140029f40
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140076048]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r8
mov r9, rdx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x80]
call qword [0x140079328]
mov rbx, rax
test rax, rax
jne 0x14002a0c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.140015b90
nop
lea r8, [0x140079750]
cmp qword [0x140079768], 8
cmovae r8, qword [0x140079750]
mov r9, qword [0x140079760]
mov rcx, rax
call fcn.140007290
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
lea r8, [0x140079530]
cmp qword [0x140079548], 8
cmovae r8, qword [0x140079530]
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14002a072
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002a06d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002a110
call fcn.14002d200
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], di
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x14002a0c3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002a0be
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002a10a
call fcn.14002d200
xor al, al
jmp 0x14002a0e9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14002d1e0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
call fcn.140033898
nop
call fcn.140033898
nop
int3
Function at 0x14002a2c0
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140076048]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rdx
mov qword [rsp + 0x50], rdx
mov r14, 0xffffffffffffffff
cmp qword [rdx + 0x10], 0
jne 0x14002a317
lea r8, [rcx + 0x60]
cmp rdx, r8
je 0x14002a317
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x14002a30b
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
mov rcx, rdi
call fcn.140001eb0
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14002a324
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor r15d, r15d
cmp eax, 0xffffffff
je 0x14002a3e7
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14002a343
mov rcx, qword [rdi]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, r14
je 0x14002a3e7
xor eax, eax
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x48]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002a3dd
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.14002d4c0
mov rsi, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.14002f180
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x48]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002a3d5
movsxd rax, dword [rsi + 0x3c]
mov r14d, dword [rax + rsi + 8]
mov rcx, rsi
call fcn.14002d200
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x14002a422
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14002a41d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002a456
mov rcx, r8
call fcn.14002d200
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 7
mov word [rdi], r15w
mov rax, r14
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002d1e0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140033898
int3
Function at 0x1400392dc
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x140076048]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x14005a4c0]
mov rbp, rcx
call fcn.140048e74
xor edi, edi
test rax, rax
je 0x1400393c2
mov ebx, edi
call fcn.140039d54
mov r14d, dword [rax]
call fcn.140039d54
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.140048dc0
mov rsi, rax
test rax, rax
je 0x140039353
call fcn.140039d54
mov dword [rax], r14d
jmp 0x14003937d
call fcn.140039d54
cmp dword [rax], 0x22
jne 0x1400393ba
call fcn.140039d54
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140048dc0
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1400393ba
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140039381
cmp rax, 3
je 0x14003939c
mov rcx, rsi
call fcn.140039238
test al, al
je 0x1400393ad
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400393ad
mov dil, 1
mov rcx, rbx
call fcn.140037c74
mov al, dil
jmp 0x1400393c4
mov rcx, rbx
call fcn.140037c74
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14002d1e0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140039708
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140039567
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140039567
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140039567
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140039567
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140039567
cmp dword [rcx + 0x84], 0xe
jbe 0x140039567
cmp dword [rcx + 0xf8], 0
je 0x140039567
mov ecx, ebx
call fcn.140039624
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400393f4
nop
cmp dword [rbp + 0x20], 0
je 0x1400395b5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400395c0
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400394f8
Function at 0x14004cf1c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14004cfa3
mov rsi, rbx
cmp word [rax], bp
je 0x14004cf62
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14004cf4c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14004cf48
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140044890
mov rdi, rax
test rax, rax
je 0x14004cf90
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002f340
mov rbp, rdi
xor ecx, ecx
call fcn.140044854
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401302c5
Capabilities:
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
in al, dx
sub byte [rbp + 0x56418ca9], bh
push rdx
call 0x140130b02
Function at 0x140009610
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x290
mov rax, qword [0x140c0c0c0]
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 0x14000966b
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x140009672
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14000975a
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 0x1400096a0
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.140016760
cmp qword [rbx + 0x18], 7
mov rax, rbx
jbe 0x1400096c6
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 0x14000977b
test rdx, rdx
je 0x140009708
sub r8, rax
movzx ecx, word [r8 + rax]
cmp cx, word [rax]
jne 0x14000977b
add rax, 2
sub rdx, 1
jne 0x1400096f4
mov edi, dword [rsp + 0x48]
cmp r10, 7
jbe 0x140009747
lea rdx, [r10*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x14000973f
mov r9, qword [r9 - 8]
add rdx, 0x27
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400097cd
mov rcx, r9
call fcn.140119c90
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.140119c70
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x290
pop rsi
ret
cmp r10, 7
jbe 0x1400097b2
lea rdx, [r10*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x1400097aa
mov r9, qword [r9 - 8]
add rdx, 0x27
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400097cd
mov rcx, r9
call fcn.140119c90
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140009680
jmp 0x140009747
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140013490
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 0x140013625
cmp rcx, rbp
je 0x140013625
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 0x14001352c
lea eax, [r10 + rcx]
cmp ax, r8w
ja 0x14001364c
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x140013543
mov eax, ecx
add cx, r11w
cmp cx, r8w
ja 0x140013543
shl eax, 0xa
mov dil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x140013556
movzx r8d, al
mov r10d, r14d
mov r11d, r14d
jmp 0x1400135a3
mov r8d, eax
cmp eax, 0x800
jae 0x140013570
shr r8d, 6
mov r10d, r9d
or r8b, 0xc0
mov r11d, r9d
jmp 0x1400135a3
cmp eax, 0x10000
jae 0x14001358a
shr r8d, 0xc
mov r10d, 2
or r8b, 0xe0
mov r11d, r10d
jmp 0x1400135a3
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 0x140013625
add qword [rsi], 2
test dil, dil
jne 0x1400135c4
cmp r10d, 3
jae 0x1400135d0
mov rcx, qword [rbx]
mov r9d, r11d
mov byte [rcx], r8b
inc qword [rbx]
mov r8, qword [rbx]
test r9d, r9d
jle 0x1400135fe
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 0x1400135e0
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 0x140013625
cmp qword [rbx], rbp
jne 0x1400134ed
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 0x14001362f
Function at 0x140013f60
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 0x140013f88
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 0x140013fae
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140013fb0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140014009
test ecx, ecx
jle 0x140013fe9
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 0x140014009
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140014009
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 0x140014030
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 0x140014052
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140014068
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 0x140014084
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140014086
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400140c2
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 0x14001415e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400140fd
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 0x14001413e
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 0x14001415e
cmp rbx, rax
ja 0x140014110
test rbx, rbx
je 0x14001415e
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 0x1400145d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140c0c0c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400145fd
xor eax, eax
jmp 0x140014769
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140014637
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140014637
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 0x140014769
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14001475c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001467a
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 0x1400146a5
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 0x140014761
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 0x140014714
sub eax, 1
je 0x140014714
cmp eax, 2
jne 0x14001475c
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 0x140014761
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140014742
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 0x14001475c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140014761
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140119c70
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret