joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c024
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000c06e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000c06e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000c06e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000c06e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000c06e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000c070
xor al, al
add rsp, 0x28
ret

Function at 0x14000f824
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 0x14000f683
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f683
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f683
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f683
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f683
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f683
cmp dword [rcx + 0xf8], 0
je 0x14000f683
mov ecx, ebx
call fcn.14000f740
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.14000f510
nop
cmp dword [rbp + 0x20], 0
je 0x14000f6d1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f6dc
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f614
Function at 0x140018cd0
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 0x140018d57
mov rsi, rbx
cmp word [rax], bp
je 0x140018d16
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140018d00
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140018cfc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016510
mov rdi, rax
test rax, rax
je 0x140018d44
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000d5f0
mov rbp, rdi
xor ecx, ecx
call fcn.140015554
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 0x14001f740
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001f768
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001f768
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x1400023b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x140006008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x140006008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140006008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x27a6c13a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
push rdi
push rsi
sub rsp, 0x230
lea rbp, [rsp + 0x80]
lea rax, [rbp - 0x60]
lea rdx, section..rdata
mov ecx, 0x3f
mov rdi, rax
mov rsi, rdx
rep movsq qword [rdi], qword [rsi]
mov rdx, rsi
mov rax, rdi
mov ecx, dword [rdx]
mov dword [rax], ecx
lea rax, [rax + 4]
lea rdx, [rdx + 4]
movzx ecx, word [rdx]
mov word [rax], cx
lea rax, [rax + 2]
lea rdx, [rdx + 2]
movzx ecx, byte [rdx]
mov byte [rax], cl
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x1ff
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x1a8], rax
mov rax, qword [rbp + 0x1a8]
mov rdx, rax
lea rax, [rbp - 0x60]
mov ecx, 0x1ff
mov r8, qword [rax]
mov qword [rdx], r8
mov r8d, ecx
add r8, rdx
lea r9, [r8 + 8]
mov r8d, ecx
add r8, rax
add r8, 8
mov r8, qword [r8 - 0x10]
mov qword [r9 - 0x10], r8
lea r8, [rdx + 8]
and r8, 0xfffffffffffffff8
sub rdx, r8
sub rax, rdx
add ecx, edx
and ecx, 0xfffffff8
shr ecx, 3
mov edx, ecx
mov edx, edx
mov rdi, r8
mov rsi, rax
mov rcx, rdx
rep movsq qword [rdi], qword [rsi]
mov rax, qword [rbp + 0x1a8]
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateFiber]
call rax
mov qword [rbp + 0x1a0], rax
mov rax, qword [rbp + 0x1a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SwitchToFiber]
call rax
nop
add rsp, 0x230
pop rsi
pop rdi
pop rbp
ret

Function at 0x27a6c1670
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x27a6c16e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x27a6c7064]
mov r12, rcx
test ebx, ebx
jle 0x27a6c1810
mov rax, qword [0x27a6c7068]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x27a6c172c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x27a6c17b3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x27a6c1710
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x27a6c1832
mov rax, qword [0x27a6c7068]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x27a6c7068]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x27a6c1817
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x27a6c17ac
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x27a6c17c0
add dword [0x27a6c7064], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x27a6c7068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x27a6c17ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x27a6c1737
mov rax, qword [0x27a6c7068]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x27a6c1ad0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x27a6c70a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x27a6c7080]
test rbx, rbx
je 0x27a6c1b24
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x27a6c1b1b
test r12, r12
je 0x27a6c1b1b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x27a6c1b00
lea rcx, [0x27a6c70a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x27a6c1d40
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x27a6c1d58
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x27a6c1d60
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x27a6c1d70
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x27a6c1dbc
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x27a6c1db3
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x27a6c1dbe
add rax, 0x28
cmp rax, r9
jne 0x27a6c1da0
xor eax, eax
ret

Function at 0x27a6c1dc0
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x27a6c1e50
mov rdx, qword [0x27a6c43c0]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x27a6c1e3e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x27a6c1e3e
cmp word [rax + 0x18], 0x20b
jne 0x27a6c1e3e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x27a6c1e50
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x27a6c1e29
add r12, 0x28
cmp r12, rsi
je 0x27a6c1e50
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x27a6c1e20
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x27a6c1e60
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x27a6c43c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x27a6c1e80
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x27a6c1e88
ret
cmp word [r8 + 0x18], 0x20b
jne 0x27a6c1e80
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x27a6c1ed5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x27a6c1ecc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x27a6c1e80
add rax, 0x28
cmp rax, r9
jne 0x27a6c1eb8
xor eax, eax
ret

Function at 0x27a6c1ee0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x27a6c43c0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x27a6c1f00
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x27a6c1f08
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x27a6c1f00
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x27a6c1f20
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x27a6c43c0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x27a6c1f40
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x27a6c1f48
ret
cmp word [rdx + 0x18], 0x20b
jne 0x27a6c1f40
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x27a6c1f88
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x27a6c1f7f
test rcx, rcx
je 0x27a6c1f40
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x27a6c1f70
xor eax, eax
ret
Function at 0x27a6c1f90
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x27a6c43c0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x27a6c1fb0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x27a6c1fb8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x27a6c1fd0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x27a6c43c0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x27a6c1ff0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x27a6c1ff8
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x27a6c1ff0
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x27a6c1ff0
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x27a6c2034
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x27a6c2048
add rax, 0x28
cmp r9, rax
jne 0x27a6c2020
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

Function at 0x27a6c2060
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x27a6c43c0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x27a6c2082
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x27a6c2090
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x27a6c2082
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x27a6c2082
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x27a6c2082
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x27a6c20dd
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x27a6c20f0
add rdx, 0x28
cmp r10, rdx
jne 0x27a6c20c8
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x27a6c20ff
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x27a6c210f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x27a6c20e6
test ecx, ecx
jg 0x27a6c20f8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140772210
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140772397
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 0x140772241
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140772227
add dl, dl
jne 0x14077224e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407722ae
xor eax, eax
add dl, dl
jne 0x14077225d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140772365
add dl, dl
jne 0x14077226e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14077227b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140772288
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140772295
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407722a2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140772236
mov eax, 1
add dl, dl
jne 0x1407722be
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407722cb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407722b3
sub eax, ebx
mov ebx, 1
jne 0x140772304
mov ecx, 1
add dl, dl
jne 0x1407722e6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407722f3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407722db
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140772236
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140772320
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14077232d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140772315
cmp eax, 0x7d00
jae 0x140772353
cmp eax, 0x500
jb 0x14077234e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140772236
cmp eax, 0x7f
ja 0x140772356
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140772236
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14077238a
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 0x140772236
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001470
Capabilities:
Hash data using djb2

Disassembly:
push rbx
push rbp
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbp, rcx
xor r15d, r15d
mov rcx, qword [rcx + 0x128]
mov r14, r8
mov rbx, rdx
cmp dword [rcx + 0x47c], r15d
jne 0x140001653
lea rdi, [rcx + 0x228]
cmp dword [rcx + 0x478], r15d
je 0x1400014c4
mov dword [rcx + 0x478], r15d
jmp 0x1400014dc
mov rcx, qword [rcx + 0x480]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140001653
test rdi, rdi
je 0x140001653
lea r9, [rdi + 0x2c]
mov qword [rsp + 0x88], rsi
mov r8d, 0x105
mov qword [rsp + 0x20], 0x105
lea rdx, [rbx + 0x1c]
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs_s]
test eax, eax
je 0x140001546
lea r9, [rdi + 0x234]
cmp word [r9], r15w
je 0x14000153e
mov r8d, 0x105
mov qword [rsp + 0x20], 0x105
lea rdx, [rbx + 0x1c]
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs_s]
test eax, eax
jne 0x140001622
mov rax, qword [rsp + 0x30]
dec rax
mov qword [rbx + 0x10], rax
mov eax, dword [rdi]
test al, 0x40
je 0x140001561
mov dword [rbx + 0x18], 0x2000
jmp 0x140001582
bt eax, 0xa
jae 0x140001570
mov dword [rbx + 0x18], 0xc000
jmp 0x140001582
test al, 0x10
mov ecx, 0x4000
mov eax, 0x8000
cmovne eax, ecx
mov dword [rbx + 0x18], eax
mov rcx, qword [rbp + 0x128]
cmp dword [rcx + 0x47c], r15d
jne 0x140001614
lea rdi, [rcx + 0x228]
cmp dword [rcx + 0x478], r15d
je 0x1400015af
mov dword [rcx + 0x478], r15d
jmp 0x1400015c3
mov rcx, qword [rcx + 0x480]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140001614
test rdi, rdi
je 0x140001614
lea rax, [rdi + 0x2c]
mov ecx, 0x1505
lea r8, [rax + 0x208]
cmp rax, r8
je 0x1400015f5
nop dword [rax]
movzx edx, word [rax]
add rax, 2
test edx, edx
je 0x1400015f5
imul ecx, ecx, 0x21
add ecx, edx
cmp rax, r8
jne 0x1400015e0
btr ecx, 0x1f
mov dword [rbx + 4], ecx
mov rax, qword [rbp + 0x128]
mov dword [rax + 0x478], 1
mov eax, 0x128
jmp 0x14000163f
mov dword [rbx + 4], 0x7fffffff
mov eax, 0x128
jmp 0x14000163f
mov word [rbx + 0x1c], 0x3f
movzx eax, r15w
mov qword [rbx + 0x10], 1
mov dword [rbx + 0x18], r15d
mov dword [rbx + 4], 0xffffffff
mov dword [rbx], r15d
mov word [rbx + 8], ax
mov rsi, qword [rsp + 0x88]
mov qword [r14], rbx
jmp 0x140001656
mov qword [r14], r15
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140003c80
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
Function at 0x1400027f0
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 0x140002818
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 0x14000283e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002840
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002899
test ecx, ecx
jle 0x140002879
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 0x140002899
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002899
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 0x1400028c0
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 0x1400028e2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400028f8
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 0x140002914
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002916
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002952
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 0x1400029ee
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000298d
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 0x1400029ce
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 0x1400029ee
cmp rbx, rax
ja 0x1400029a0
test rbx, rbx
je 0x1400029ee
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