joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001aaf0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x50
xor r8d, r8d
mov byte [rbp - 0x28], Ordinal_50
mov byte [rbp - 8], r8b
mov rbx, rcx
mov qword [rcx + 0x10], r8
mov word [rbp - 0x15], 0x6666
mov dword [rbp - 0x23], 0x38373065
mov word [rbp - 0x1b], 0x3166
mov word [rbp - 0xc], 0x6634
mov word [rbp - 0x12], 0x3665
mov word [rbp - 0x18], 0x6233
mov word [rbp - 0xf], 0x6235
mov dword [rbp - 0x1f], 0x35363963
mov byte [rbp - 0x13], Ordinal_50
mov byte [rbp - 0x10], Ordinal_50
mov byte [rbp - 0x19], reloc.WLDAP32.dll_Ordinal_50
mov word [rbp - 0xa], 0x6432
mov dword [rbp - 0x27], 0x64633733
mov byte [rbp - 0xd], Ordinal_50
mov byte [rbp - 0x16], reloc.WS2_32.dll_gethostname
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], r8b
mov dword [rbp - 0x30], r8d
cmp byte [rbp - 0x28], r8b
je 0x14001ab8a
lea rax, [rbp - 0x28]
or r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x14001ab80
lea rdx, [rbp - 0x28]
call fcn.14000d058
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
Function at 0x14001ac10
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov r14, rcx
xor sil, sil
cmp qword [rcx + 0x18], 0x10
jb 0x14001ac38
mov rcx, qword [rcx]
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14001adbc
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x98], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x98]
lea r8d, [rdi + 4]
lea rdx, [rsp + 0xa0]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 4]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [rbx - 4]
mov esi, eax
mov edx, eax
lea rcx, [rsp + 0x48]
call fcn.14001cfb0
mov r8, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
sub r8, rbx
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x98]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r9, rbx
lea ecx, [rdi + 1]
test rsi, rsi
je 0x14001ad4d
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r9]
add ecx, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
lea r9, [r9 + 1]
lea r8d, [rdi + rcx]
mov eax, 0x80078071
mul r8d
shr edx, 0xf
imul eax, edx, 0xfff1
sub r8d, eax
mov edi, r8d
sub rsi, 1
jne 0x14001ad10
shl edi, 0x10
add edi, ecx
cmp edi, dword [rsp + 0xa0]
sete sil
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x14001adbc
mov rax, qword [rsp + 0x58]
sub rax, rbx
cmp rax, 0x1000
jb 0x14001adb3
test bl, 0x1f
je 0x14001ad86
call fcn.140128ff4
int3
mov rax, qword [rbx - 8]
cmp rax, rbx
jb 0x14001ad95
call fcn.140128ff4
int3
sub rbx, rax
cmp rbx, 8
jae 0x14001ada4
call fcn.140128ff4
int3
cmp rbx, 0x27
jbe 0x14001adb0
call fcn.140128ff4
int3
mov rbx, rax
mov rcx, rbx
call fcn.1400eb7f4
nop
mov rcx, r14
call fcn.14000c7e0
movzx eax, sil
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001af50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov edi, r9d
mov rcx, qword [rcx]
mov rsi, r8
mov r10d, edx
cmp rcx, 0xffffffffffffffff
je 0x14001afb9
xor r9d, r9d
xor r8d, r8d
mov edx, r10d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rbx]
lea r9, [rsp + 0x40]
xor eax, eax
mov r8d, edi
mov rdx, rsi
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x40], edi
sete al
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rdx, qword [rbx + 0x30]
lea eax, [r10 + rdi]
sub rdx, qword [rbx + 0x28]
mov ecx, eax
cmp rcx, rdx
ja 0x14001aff3
mov r8, r10
mov rdx, rdi
add r8, qword [rbx + 0x28]
mov r9, rdi
mov rcx, rsi
call fcn.14001d6b0
mov al, 1
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
xor al, al
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14001c0a0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2b0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x2f0], rbx
mov r14, rdx
mov rbx, rcx
call fcn.14001ade0
test al, al
je 0x14001c11d
mov rcx, rbx
call fcn.14001ae90
test al, al
je 0x14001c11d
xor r12d, r12d
mov dword [rsp + 0x300], r12d
mov r9d, 4
lea r8, [rsp + 0x300]
mov edx, r9d
mov rcx, rbx
call fcn.14001af50
test al, al
jne 0x14001c124
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x14001c11d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
xor al, al
jmp 0x14001c2c4
mov edi, 8
mov r15d, dword [rsp + 0x300]
add r15d, 0xfffffff8
movabs rax, 0x948b0fcd6e9e0653
mul r15
sub r15, rdx
shr r15, 1
add r15, rdx
shr r15, 8
lea rcx, [rsp + 0x1b0]
call fcn.140014f90
lea rcx, [rsp + 0x38]
call fcn.14001aaf0
nop
cmp qword [rax + 0x18], 0x10
jb 0x14001c171
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x1b0]
call fcn.140014fd0
nop
lea rcx, [rsp + 0x38]
call fcn.14000c7e0
mov ebp, r12d
test r15d, r15d
je 0x14001c2bb
movabs r13, 0xbe82fa0be82f9f
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x14001c1fa
xor r9d, r9d
xor r8d, r8d
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x308], r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x308]
mov r8d, 0x144
lea rdx, [rsp + 0x60]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x308], 0x144
sete al
test al, al
je 0x14001c2a0
jmp 0x14001c22a
mov rdx, qword [rbx + 0x30]
sub rdx, qword [rbx + 0x28]
lea ecx, [rdi + 0x144]
cmp rcx, rdx
ja 0x14001c2a0
mov r8d, edi
add r8, qword [rbx + 0x28]
mov edx, 0x144
mov r9d, edx
lea rcx, [rsp + 0x60]
call fcn.14001d6b0
add edi, 0x144
mov r8d, 0x144
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x1b0]
call fcn.1400150c0
test al, al
je 0x14001c2a0
mov rsi, qword [r14]
lea r9, [rsp + 0x60]
mov r8, qword [rsi + 8]
mov rdx, rsi
mov rcx, r14
call fcn.14001cec0
mov rdx, qword [r14 + 8]
mov rcx, r13
sub rcx, rdx
cmp rcx, 1
jb 0x14001c293
lea rcx, [rdx + 1]
mov qword [r14 + 8], rcx
mov qword [rsi + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
inc ebp
cmp ebp, r15d
jb 0x14001c1a2
jmp 0x14001c2bb
lea rcx, str.list_T__too_long
call fcn.1400bc800
int3
mov dil, 1
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x14001c2bd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
jmp 0x14001c2bd
xor edi, edi
movzx eax, dil
xor eax, 1
mov rbx, qword [rsp + 0x2f0]
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001cad0
Capabilities:
Get file version info

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov rsi, rdx
mov rdi, rcx
xor eax, eax
mov dword [rsp + 0x30], eax
mov qword [r11 + 0x20], rax
mov dword [r11 + 0x18], eax
xor edx, edx
mov rcx, qword [rsi]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebp, eax
test eax, eax
jne 0x14001cb3e
call fcn.14000b6b4
mov rcx, rax
test rax, rax
jne 0x14001cb29
mov ecx, 0x80004005
call fcn.14000b9ec
int3
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rdi], rax
or ebx, 0xffffffff
jmp 0x14001cc5d
mov rcx, rbp
call fcn.1400ec130
mov rbx, rax
mov r9, rax
mov r8d, ebp
xor edx, edx
mov rcx, qword [rsi]
call sub.VERSION.dll_GetFileVersionInfoA
mov rcx, rbx
test eax, eax
jne 0x14001cb7d
call fcn.1400ec138
call fcn.14000b6b4
mov rcx, rax
test rax, rax
jne 0x14001cb29
mov ecx, 0x80004005
call fcn.14000b9ec
int3
lea r9, [rsp + 0xa0]
lea r8, [rsp + 0xa8]
lea rdx, [0x140247090]
call sub.VERSION.dll_VerQueryValueW
mov rcx, rbx
test eax, eax
jne 0x14001cbc1
call fcn.1400ec138
call fcn.14000b6b4
mov rcx, rax
test rax, rax
jne 0x14001cb29
mov ecx, 0x80004005
call fcn.14000b9ec
int3
mov rax, qword [rsp + 0xa8]
movzx ebp, word [rax + 0x12]
movzx r14d, word [rax + 0x10]
movzx r15d, word [rax + 0x16]
movzx r12d, word [rax + 0x14]
call fcn.1400ec138
call fcn.14000b6b4
mov rcx, rax
test rax, rax
jne 0x14001cbf9
mov ecx, 0x80004005
call fcn.14000b9ec
int3
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r15d
mov r9d, r14d
mov r8d, ebp
lea rdx, str._d._d._d._d
lea rcx, [rsp + 0x38]
call fcn.140008754
mov r14, qword [rsp + 0x38]
lea rcx, [r14 - 0x18]
call fcn.140007924
add rax, 0x18
mov qword [rdi], rax
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [r14 - 8], eax
sub eax, 1
jg 0x14001cc5d
mov rcx, qword [r14 - 0x18]
mov rax, qword [rcx]
lea rdx, [r14 - 0x18]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14001cc77
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, rdi
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001d970
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
mov rax, rsp
push rbp
push rsi
push r14
sub rsp, 0x170
add dword [rcx + 0x58], r8d
mov ebp, r8d
mov r14, rdx
mov rsi, rcx
test r8d, r8d
jle 0x14001db5a
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
mov qword [rax - 0x20], r13
mov qword [rax - 0x28], r15
nop dword [rax + rax]
movsxd rax, dword [rsi + 0x54]
lea rcx, [rsi + 0x14]
mov edi, 0x40
mov rdx, r14
sub edi, dword [rsi + 0x54]
cmp ebp, edi
cmovl edi, ebp
add rcx, rax
movsxd rbx, edi
mov r8, rbx
call fcn.14011c9b0
add dword [rsi + 0x54], edi
sub ebp, edi
add r14, rbx
cmp dword [rsi + 0x54], 0x40
jne 0x14001db2a
mov r12d, dword [rsi]
lea rbx, [rsp + 0x20]
mov r13d, dword [rsi + 4]
lea rdx, [rsi + 0x16]
mov r9d, dword [rsi + 8]
sub rbx, rsi
mov r11d, dword [rsi + 0xc]
mov edi, r12d
mov r15d, dword [rsi + 0x10]
mov r8d, r13d
mov r10d, reloc.WS2_32.dll_recv
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rdx - 2]
movzx eax, byte [rdx - 1]
lea rdx, [rdx + 4]
shl eax, 0x10
shl ecx, 0x18
add ecx, eax
movzx eax, byte [rdx - 4]
shl eax, 8
add ecx, eax
movzx eax, byte [rdx - 3]
add ecx, eax
mov dword [rbx + rdx - 0x1a], ecx
sub r10, 1
jne 0x14001da20
lea rcx, [rsp + 0x28]
lea edx, [r10 + 0x40]
nop word [rax + rax]
mov eax, dword [rcx + 0x2c]
xor eax, dword [rcx + 0x18]
xor eax, dword [rcx - 8]
xor eax, dword [rcx]
lea rcx, [rcx + 4]
rol eax, 1
mov dword [rcx + 0x34], eax
sub rdx, 1
jne 0x14001da60
nop word [rax + rax]
cmp rdx, 0x14
jge 0x14001da9e
mov eax, r8d
mov ecx, r9d
not eax
and ecx, r8d
and eax, r11d
mov r10d, 0x5a827999
or eax, ecx
jmp 0x14001dada
cmp rdx, 0x28
jge 0x14001daac
mov r10d, 0x6ed9eba1
jmp 0x14001dad1
cmp rdx, 0x3c
jge 0x14001dacb
mov eax, r9d
mov ecx, r9d
or eax, r8d
and ecx, r8d
and eax, r11d
mov r10d, 0x8f1bbcdc
or eax, ecx
jmp 0x14001dada
mov r10d, 0xca62c1d6
mov eax, r11d
xor eax, r9d
xor eax, r8d
mov ecx, edi
rol ecx, 5
add ecx, dword [rsp + rdx*4 + 0x20]
inc rdx
add ecx, eax
add ecx, r10d
add ecx, r15d
mov r15d, r11d
mov r11d, r9d
mov r9d, r8d
ror r9d, 2
mov r8d, edi
mov edi, ecx
cmp rdx, 0x50
jl 0x14001da80
add dword [rsi + 8], r9d
lea eax, [r12 + rcx]
add dword [rsi + 0xc], r11d
add dword [rsi + 0x10], r15d
mov dword [rsi], eax
lea eax, [r8 + r13]
mov dword [rsi + 4], eax
mov dword [rsi + 0x54], 0
test ebp, ebp
jg 0x14001d9b0
mov r15, qword [rsp + 0x160]
mov r13, qword [rsp + 0x168]
mov r12, qword [rsp + 0x1a0]
mov rdi, qword [rsp + 0x198]
mov rbx, qword [rsp + 0x190]
add rsp, 0x170
pop r14
pop rsi
pop rbp
ret
Function at 0x14001e550
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
test r8d, r8d
jle 0x14001e7ca
mov rax, rsp
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push r15
sub rsp, 0x140
mov qword [rax - 0x10], rbx
mov r10, rcx
mov qword [rax - 0x18], rbp
xor r15d, r15d
mov qword [rax - 0x20], rsi
mov qword [rax - 0x28], rdi
mov qword [rax - 0x30], r12
mov qword [rax - 0x38], r13
mov qword [rax - 0x40], r14
nop dword [rax]
nop word [rax + rax]
mov eax, r15d
lea r9, [rsp]
shl eax, 6
movsxd r11, eax
add r11, rdx
xor r8d, r8d
nop dword [rax]
nop word [rax + rax]
lea eax, [r8*4]
inc r8d
movsxd rcx, eax
lea r9, [r9 + 4]
movzx eax, byte [r11 + rcx + 1]
movzx edx, byte [rcx + r11]
shl edx, 8
or edx, eax
movzx eax, byte [r11 + rcx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [r11 + rcx + 3]
shl edx, 8
or edx, eax
mov dword [r9 - 4], edx
cmp r8d, 0x10
jl 0x14001e5c0
lea rax, [rsp + 0x38]
mov r11d, Ordinal_50
nop dword [rax]
mov edx, dword [rax]
mov r9d, edx
mov r8d, dword [rax - 0x34]
lea rax, [rax + 4]
mov ecx, edx
rol r9d, 0xf
shr edx, 0xa
rol ecx, 0xd
xor r9d, ecx
mov ecx, r8d
xor r9d, edx
ror ecx, 7
mov edx, r8d
shr r8d, 3
rol edx, 0xe
xor edx, ecx
xor edx, r8d
add r9d, edx
add r9d, dword [rax - 0x3c]
add r9d, dword [rax - 0x18]
mov dword [rax + 4], r9d
sub r11, 1
jne 0x14001e610
mov r11d, dword [r10 + 0x88]
xor ebx, ebx
mov edi, dword [r10 + 0x8c]
mov esi, dword [r10 + 0x90]
mov r13d, dword [r10 + 0x94]
mov r9d, dword [r10 + 0x98]
mov ebp, dword [r10 + 0x9c]
mov r14d, dword [r10 + 0xa0]
mov r12d, dword [r10 + 0xa4]
lea r10, [0x140247110]
nop word [rax + rax]
mov r8d, r9d
mov eax, r9d
rol eax, 7
mov ecx, r9d
ror r8d, 0xb
not ecx
xor r8d, eax
and ecx, r14d
mov eax, r9d
mov edx, r11d
ror eax, 6
xor r8d, eax
ror edx, 0xd
mov eax, ebp
and eax, r9d
xor ecx, eax
mov eax, r11d
add r8d, ecx
rol eax, 0xa
add r8d, dword [rbx + r10]
xor edx, eax
add r8d, dword [rsp + rbx]
mov eax, r11d
ror eax, 2
add r8d, r12d
xor edx, eax
mov ecx, edi
xor ecx, esi
mov eax, edi
and eax, esi
and ecx, r11d
xor ecx, eax
mov r12d, r14d
add edx, ecx
mov r14d, ebp
mov ebp, r9d
add rbx, 4
lea r9d, [r8 + r13]
mov r13d, esi
mov esi, edi
mov edi, r11d
lea r11d, [rdx + r8]
cmp rbx, 0x100
jl 0x14001e6a0
mov r10, qword [rsp + 0x150]
mov eax, r12d
mov rdx, qword [rsp + 0x158]
inc r15d
mov dword [rsp + 0x168], r12d
add dword [r10 + 0x88], r11d
add dword [r10 + 0x8c], edi
add dword [r10 + 0x90], esi
add dword [r10 + 0x94], r13d
add dword [r10 + 0x98], r9d
add dword [r10 + 0x9c], ebp
add dword [r10 + 0xa0], r14d
add dword [r10 + 0xa4], eax
cmp r15d, dword [rsp + 0x160]
jl 0x14001e5a0
mov r14, qword [rsp + 0x108]
mov r13, qword [rsp + 0x110]
mov r12, qword [rsp + 0x118]
mov rdi, qword [rsp + 0x120]
mov rsi, qword [rsp + 0x128]
mov rbp, qword [rsp + 0x130]
mov rbx, qword [rsp + 0x138]
add rsp, 0x140
pop r15
ret
Function at 0x14001ed80
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rbp
mov r14, rdx
mov rdi, rcx
xor bl, bl
cmp qword [rcx + 0x18], 0x10
jb 0x14001edb1
mov rcx, qword [rcx]
xor ebp, ebp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rbp + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14001ee24
mov dword [rsp + 0x80], ebp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov edx, eax
mov rcx, r14
call fcn.14000e8f0
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x80]
mov r8d, ebx
mov rdx, qword [r14]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov rcx, rdi
call fcn.14000c7e0
movzx eax, bl
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret

Function at 0x14001ee50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x40
xor dil, dil
mov rsi, rdx
cmp qword [rcx + 0x18], 0x10
mov rbx, rcx
jb 0x14001ee7a
mov rcx, qword [rcx]
xor r14d, r14d
xor r9d, r9d
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov dword [rsp + 0x28], r14d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14001eeee
mov r8d, dword [rsi + 8]
lea r9, [rsp + 0x60]
sub r8d, dword [rsi]
mov rcx, rax
mov rdx, qword [rsi]
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsi + 8]
mov eax, 1
sub rdx, qword [rsi]
mov ecx, dword [rsp + 0x60]
cmp rcx, rdx
movzx edi, dil
cmove edi, eax
mov rcx, rbx
call fcn.14000c7e0
mov rbx, qword [rsp + 0x68]
movzx eax, dil
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14001f7f0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push r15
sub rsp, 0x290
mov rsi, rcx
mov rdi, rdx
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x14001f818
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], 0xffffffffffffffff
mov rax, qword [rdi]
xor r15d, r15d
mov qword [rsp + 0x2c0], rbx
mov rcx, qword [rax]
mov qword [rax], rax
mov rax, qword [rdi]
mov qword [rax + 8], rax
mov qword [rdi + 8], r15
cmp rcx, qword [rdi]
je 0x14001f850
nop dword [rax]
mov rbx, qword [rcx]
call fcn.1400eb7f4
mov rcx, rbx
cmp rbx, qword [rdi]
jne 0x14001f840
cmp qword [rsi + 0x20], 0x10
lea rcx, [rsi + 8]
jb 0x14001f85e
mov rcx, qword [rcx]
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], r15d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
je 0x14001f8d8
lea r9, [rsp + 0x2b0]
mov dword [rsp + 0x2b0], r15d
mov r8d, 4
mov qword [rsp + 0x20], r15
lea rdx, [rsp + 0x2b8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x2b0]
cmp ecx, 4
jae 0x14001f8df
mov rcx, qword [rsi]
cmp rcx, 0xffffffffffffffff
je 0x14001f8d8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], 0xffffffffffffffff
xor al, al
jmp 0x14001fa09
mov eax, dword [rsp + 0x2b8]
sub eax, ecx
mov qword [rsp + 0x280], r14
mov ecx, eax
movabs rax, 0x6a63bd81a98ef607
mul rcx
lea rcx, [rsp + 0x40]
mov r14, rdx
shr r14, 7
call fcn.140014f90
cmp qword [rsi + 0x40], 0x10
lea rdx, [rsi + 0x28]
jb 0x14001f91e
mov rdx, qword [rdx]
mov qword [rsp + 0x2c8], rbp
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x288], r12
call fcn.140014fd0
mov ebx, r15d
test r14d, r14d
je 0x14001f9e9
movabs r12, 0xc7ce0c7ce0c7cd
nop
mov rcx, qword [rsi]
lea r9, [rsp + 0x2b0]
mov r8d, 0x134
mov qword [rsp + 0x20], r15
lea rdx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x2b0], 0x134
jb 0x14001fa1d
mov r8d, 0x134
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x40]
call fcn.1400150c0
test al, al
je 0x14001fa1d
mov rbp, qword [rdi]
lea r9, [rsp + 0x140]
mov rdx, rbp
mov rcx, rdi
mov r8, qword [rbp + 8]
call fcn.1400209d0
mov rdx, qword [rdi + 8]
mov rcx, r12
sub rcx, rdx
cmp rcx, 1
jb 0x14001fa37
lea rcx, [rdx + 1]
inc ebx
mov qword [rdi + 8], rcx
mov qword [rbp + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
cmp ebx, r14d
jb 0x14001f950
xor ebx, ebx
mov r12, qword [rsp + 0x288]
mov rbp, qword [rsp + 0x2c8]
mov r14, qword [rsp + 0x280]
movzx eax, bl
xor eax, 1
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop r15
pop rdi
pop rsi
ret
mov rcx, qword [rsi]
mov bl, 1
cmp rcx, 0xffffffffffffffff
je 0x14001f9eb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], 0xffffffffffffffff
jmp 0x14001f9eb
lea rcx, str.list_T__too_long
call fcn.1400bc800
int3
Function at 0x14001fe20
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov qword [rax - 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
xor dil, dil
cmp qword [rdx + 0x18], 0x10
jb 0x14001fe5e
mov rcx, qword [rdx]
jmp 0x14001fe61
mov rcx, rsi
xor r12d, r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r12 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14001ffee
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp dword [r14 + 4], eax
sete dil
test dil, dil
je 0x14001ffe4
cmp ebx, 1
jne 0x14001ffe4
mov dword [rsp + 0xc8], r12d
mov edx, ebp
lea rcx, [rsp + 0x48]
call fcn.14001cfb0
nop
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0xc8]
mov r8d, ebp
mov rbx, qword [rsp + 0x48]
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0xc8], ebp
sete dil
test dil, dil
je 0x14001ff8f
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
call fcn.14001ef20
lea rdx, [r14 + 0x108]
cmp byte [rdx], r12b
jne 0x14001ff27
mov ebx, r12d
jmp 0x14001ff39
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rdx + rbx], 0
jne 0x14001ff30
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
mov r8, rbx
mov rdi, qword [rsp + 0x70]
cmp rdi, rbx
cmovb r8, rdi
test r8, r8
je 0x14001ff67
call fcn.14011db30
test eax, eax
jne 0x14001ff7c
cmp rdi, rbx
jae 0x14001ff71
or eax, 0xffffffff
jmp 0x14001ff7a
mov eax, r12d
cmp rdi, rbx
seta al
test eax, eax
sete dil
lea rcx, [rsp + 0x60]
call fcn.14000c7e0
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x14001ffe4
mov rax, qword [rsp + 0x58]
sub rax, rbx
cmp rax, 0x1000
jb 0x14001ffdc
test bl, 0x1f
je 0x14001ffaf
call fcn.140128ff4
int3
mov rax, qword [rbx - 8]
cmp rax, rbx
jb 0x14001ffbe
call fcn.140128ff4
int3
sub rbx, rax
cmp rbx, 8
jae 0x14001ffcd
call fcn.140128ff4
int3
cmp rbx, 0x27
jbe 0x14001ffd9
call fcn.140128ff4
int3
mov rbx, rax
mov rcx, rbx
call fcn.1400eb7f4
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rsi
call fcn.14000c7e0
movzx eax, dil
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret