joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140036910
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x180], rax
xor esi, esi
mov rdi, rdx
cmp byte [0x14008e0b8], sil
mov rbx, rcx
mov dword [rsp + 0x48], esi
jne 0x14003697f
lea rcx, str.shell32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x14003697f
lea rdx, str.SHGetKnownFolderPath
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14008e0b0], rax
mov byte [0x14008e0b8], 1
jmp 0x140036986
mov rax, qword [0x14008e0b0]
test rax, rax
je 0x140036a31
lea r9, [rsp + 0x38]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call rax
test eax, eax
js 0x140036af3
mov rdx, qword [rsp + 0x38]
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
cmp word [rdx], si
jne 0x1400369c8
mov r8, rsi
jmp 0x1400369da
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], si
jne 0x1400369d0
lea rcx, [rsp + 0x50]
call fcn.140003a80
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rbx + 0x18], 7
lea rdx, [rsp + 0x50]
mov qword [rbx + 0x10], rsi
mov rcx, rbx
mov word [rbx], si
call fcn.140003d10
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x140036b02
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
inc r8
call fcn.140003ec0
jmp 0x140036b02
mov r8, rdi
lea rdx, [rsp + 0x38]
lea rcx, [0x14008dc90]
call fcn.140034520
movzx r8d, byte [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call fcn.1400344a0
test rax, rax
je 0x140036af3
mov r8, rdi
lea rdx, [rsp + 0x38]
lea rcx, [0x14008dc90]
call fcn.140034e60
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rax, qword [rsp + 0x38]
xor ecx, ecx
mov edx, dword [rax + 0x2c]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140036af3
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
cmp word [rsp + 0x70], si
jne 0x140036acc
mov r8, rsi
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140003a80
jmp 0x1400369ef
lea rax, [rsp + 0x70]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], si
jne 0x140036ad5
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140003a80
jmp 0x1400369ef
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
mov word [rbx], si
mov rax, rbx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14003a3d0
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
Function at 0x140037210
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ebx, ecx
mov rsi, r8
xor ecx, ecx
movzx edi, dx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebp, ebx
movzx r9d, di
shr ebx, 4
mov edx, 6
inc bx
mov rcx, rax
movzx r8d, bx
mov r14, rax
and ebp, 0xf
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
xor edi, edi
mov qword [rsp + 0x38], 7
xor r8d, r8d
mov qword [rsp + 0x30], rdi
lea rdx, [0x140079378]
mov word [rsp + 0x20], di
lea rcx, [rsp + 0x20]
mov rbx, rax
call fcn.140003a80
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140003610
mov r8, qword [rsp + 0x38]
cmp r8, 8
jb 0x1400372b4
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
inc r8
call fcn.140003ec0
test rbx, rbx
je 0x14003736e
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x14003736e
mov ecx, edi
nop word [rax + rax]
movzx eax, word [rbx]
add rbx, 2
test ax, ax
je 0x1400372f7
movzx eax, ax
cmp ecx, ebp
je 0x140037302
lea rbx, [rbx + rax*2]
inc ecx
cmp ecx, 0x10
jl 0x1400372e0
mov al, 1
jmp 0x140037370
inc eax
mov qword [rsp + 0x30], rdi
mov word [rsp + 0x20], di
lea rcx, [rsp + 0x20]
mov edx, eax
xor r8d, r8d
mov qword [rsp + 0x38], 7
mov edi, eax
call fcn.140039020
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140003610
mov r8, qword [rsp + 0x38]
cmp r8, 8
jb 0x140037352
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
inc r8
call fcn.140003ec0
cmp qword [rsi + 0x18], 8
jb 0x14003735c
mov rsi, qword [rsi]
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.1400020b0
mov al, 1
jmp 0x140037370
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14003a3d0
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140037390
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x240
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rdx
mov rdi, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r8d, ebx
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400373e2
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x140037430
lea rax, [rbx - 1]
mov edx, 0x7ffffffe
cmp rax, rdx
ja 0x140037430
sub rdx, rbx
lea r8, [rsp + 0x20]
sub r8, rdi
mov rax, rdi
nop
lea rcx, [rdx + rbx]
test rcx, rcx
je 0x140037420
movzx ecx, word [r8 + rax]
test cx, cx
je 0x140037420
mov word [rax], cx
add rax, 2
sub rbx, 1
jne 0x140037400
test rbx, rbx
lea rcx, [rax - 2]
cmovne rcx, rax
xor eax, eax
mov word [rcx], ax
or rax, 0xffffffffffffffff
cmp word [rdi + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140037434
cmp word [rdi + rax*2 - 2], 0x5c
je 0x14003745c
lea r8, [0x14007afa8]
mov edx, 0x104
mov rcx, rdi
call fcn.140002130
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14003a3d0
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
ret
Function at 0x140037b20
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ebx, ebx
mov dword [rsp + 0x70], 0
lea rax, [rsp + 0x68]
mov word [rsp + 0x74], 0x500
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x60], eax
test eax, eax
je 0x140037bb8
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rsp + 0x60]
test eax, eax
cmove ecx, ebx
mov dword [rsp + 0x60], ecx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x60]
cmp eax, 1
sete al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14003a3d0
add rsp, 0x80
pop rbx
ret
Function at 0x140037e00
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbp
push rsi
sub rsp, 0x288
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x140037e33
mov al, 1
jmp 0x140037fc1
lea rax, [rsp + 0x48]
mov r9d, 0x20219
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140037e5e
cmp eax, 2
jmp 0x140037fbe
mov rcx, rsi
mov qword [rsp + 0x280], rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
mov byte [rsp + 0x40], 0
lea rdi, [rsi + rcx*2]
xor ecx, ecx
cmp rdi, rsi
jbe 0x140037e9d
cmp word [rdi - 2], 0x5c
je 0x140037e9d
mov eax, 0x5c
mov byte [rsp + 0x40], 1
mov word [rdi], ax
add rdi, 2
mov word [rdi], cx
lea rax, [rsp + 0x50]
mov dword [rsp + 0x44], 0x104
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x44]
mov qword [rsp + 0x30], rcx
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
xor edx, edx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140037f8b
mov qword [rsp + 0x2b0], rbx
lea rbx, [rsp + 0x60]
sub rbx, rdi
nop dword [rax]
mov edx, 0x208
mov rax, rdi
nop dword [rax + rax]
lea rcx, [rdx + 0x7ffffdf6]
test rcx, rcx
je 0x140037f22
movzx ecx, word [rbx + rax]
test cx, cx
je 0x140037f22
mov word [rax], cx
add rax, 2
sub rdx, 1
jne 0x140037f00
test rdx, rdx
lea rcx, [rax - 2]
mov rdx, rsi
cmovne rcx, rax
xor eax, eax
mov word [rcx], ax
mov rcx, rbp
call fcn.140037e00
test al, al
je 0x140037f83
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x44]
xor eax, eax
mov dword [rsp + 0x44], 0x104
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140037ef0
mov rbx, qword [rsp + 0x2b0]
cmp byte [rsp + 0x40], 0
lea rax, [rdi - 2]
cmove rax, rdi
xor ecx, ecx
mov word [rax], cx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rdi, qword [rsp + 0x280]
test eax, eax
sete al
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14003a3d0
add rsp, 0x288
pop rsi
pop rbp
ret
Function at 0x14003a270
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx], 0
mov rbx, rcx
jne 0x14003a2d6
mov qword [rcx + 0x58], 0
xor r8d, r8d
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx + 0x50], rax
test rax, rax
je 0x14003a2d6
mov qword [rsp + 0x28], 0
lea r8, [0x140039e20]
mov r9, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, 0x3e8
mov qword [rbx], rax
add rsp, 0x30
pop rbx
jmp qword [sym.imp.KERNEL32.dll_Sleep]
add rsp, 0x30
pop rbx
ret

Function at 0x140044cac
Capabilities:
Parse pe header

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, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140044a80
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140044a80
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140044a80
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140044a80
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140044a80
cmp dword [rcx + 0x84], 0xe
jbe 0x140044a80
cmp dword [rcx + 0xf8], esi
je 0x140044a80
mov ecx, r14d
call fcn.140044bc8
mov ecx, 2
call fcn.14004af3c
nop
cmp byte [0x14008eac0], 0
jne 0x140044b4a
mov r15d, 1
mov eax, r15d
xchg dword [0x14008eab4], eax
test ebx, ebx
jne 0x140044af3
mov rdi, qword [section..data]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14008eab8]
cmp rcx, rax
je 0x140044aea
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140002030]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14008ead0]
jmp 0x140044aff
cmp ebx, r15d
jne 0x140044b05
lea rcx, [0x14008eae8]
call fcn.14004653c
nop
test ebx, ebx
jne 0x140044b1c
lea rdx, [0x14006d668]
lea rcx, [0x14006d640]
call fcn.140044940
lea rdx, [0x14006d678]
lea rcx, [0x14006d670]
call fcn.140044940
movzx eax, byte [0x14008eac0]
test esi, esi
cmove eax, r15d
mov byte [0x14008eac0], al
jmp 0x140044b4a
mov ecx, 2
call fcn.14004af90
test esi, esi
jne 0x140044b61
mov ecx, r14d
call fcn.140044b7c
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140044a10
Function at 0x1400568d0
Capabilities:
Encode data using xor

Disassembly:
movsx r9d, byte [0x14008da10]
xor r8d, r8d
movd xmm2, r9d
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
test edx, edx
je 0x140056950
cmp edx, 0x20
jb 0x140056933
mov r10d, edx
and r10d, 0xffffffe0
nop dword [rax]
movdqu xmm0, xmmword [r8 + rcx]
lea eax, [r8 + 0x10]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [r8 + rcx], xmm1
add r8d, 0x20
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rax + rcx]
pxor xmm1, xmm0
movdqu xmmword [rax + rcx], xmm1
cmp r8d, r10d
jb 0x140056900
cmp r8d, edx
jae 0x140056950
mov eax, r8d
add rax, rcx
sub edx, r8d
mov ecx, edx
xor byte [rax], r9b
lea rax, [rax + 1]
sub rcx, 1
jne 0x140056943
ret
Function at 0x140060710
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1400605b0
call fcn.14004718c
mov dword [rax], 0x16
call fcn.140042550
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140060598
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140060598
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1400605e2
lock or dword [rax + 0x14], 0x10
jmp 0x140060598
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1400605ff
mov rcx, qword [rbp + 0x10]
call fcn.1400548f8
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140048a90
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.140060c48
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x140060656
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x140060598
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1400606c2
mov rcx, qword [rbp + 0x10]
call fcn.140048a90
cmp eax, 0xffffffff
je 0x1400606a9
mov rcx, qword [rbp + 0x10]
call fcn.140048a90
cmp eax, 0xfffffffe
je 0x1400606a9
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140048a90
movsxd rdi, eax
lea rsi, [0x14008eb40]
mov rcx, rbx
sar rdi, 6
call fcn.140048a90
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1400606b0
lea rax, [0x14008d300]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400606c2
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1400606f8
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1400606f4
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1400606f4
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x14006059b
jmp 0x140060568

Function at 0x140061a30
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140061a50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14004711c
or eax, 0xffffffff
jmp 0x140061a52
xor eax, eax
add rsp, 0x28
ret
Function at 0x1406ec058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406ec1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1406ec089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406ec06f
add dl, dl
jne 0x1406ec096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406ec0f6
xor eax, eax
add dl, dl
jne 0x1406ec0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406ec1ad
add dl, dl
jne 0x1406ec0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406ec0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406ec0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406ec0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406ec0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406ec07e
mov eax, 1
add dl, dl
jne 0x1406ec106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406ec113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406ec0fb
sub eax, ebx
mov ebx, 1
jne 0x1406ec14c
mov ecx, 1
add dl, dl
jne 0x1406ec12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406ec13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406ec123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406ec07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406ec168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406ec175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406ec15d
cmp eax, 0x7d00
jae 0x1406ec19b
cmp eax, 0x500
jb 0x1406ec196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406ec07e
cmp eax, 0x7f
ja 0x1406ec19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406ec07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406ec1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1406ec07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140004080
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x1400040b7
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x1400040d8
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400040da
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140004133
test ecx, ecx
jle 0x140004113
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140004133
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140004133
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140004160
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 0x140004182
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140004198
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 + 0x20], rdi
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400041b4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400041b6
xor ecx, ecx
mov qword [rsp + 0x28], rbx
movsxd rax, ecx
test ecx, ecx
je 0x1400041f0
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
sub rdi, rbx
add r14, rbx
mov r8, rdi
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140004297
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x14000422b
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rbx, r8
cmp r8, 0xfff
jbe 0x140004271
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]
sub rdi, rax
add r14, rax
mov rbx, rdi
cmp rax, 0xfff
jne 0x1400042b0
cmp rdi, rax
ja 0x140004240
mov r8, rbx
test rbx, rbx
je 0x140004297
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rbx
sub r8, rax
sub rbp, r8
mov rbx, qword [rsp + 0x28]
mov rax, rbp
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rdi
jmp 0x14000429a
Function at 0x1400046e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000e010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000470d
xor eax, eax
jmp 0x140004862
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140004738
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140004738
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x140004862
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140004855
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14000477b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x1400047a6
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 0x14000485a
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
js 0x140004855
cmp eax, 1
jle 0x140004815
cmp eax, 3
jne 0x140004855
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 0x14000485a
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140004843
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 0x140004855
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x14000485a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140006e40
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret