joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014f70
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
mov rdx, rcx
mov rcx, qword [0x140059f00]
call fcn.140015be0
test rax, rax
je 0x140014fa0
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp fcn.140014e60
add rsp, 0x20
pop rbx
ret

Function at 0x140015090
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
mov rcx, qword [0x140059f00]
call fcn.140015be0
mov rbx, rax
test rax, rax
je 0x1400150e3
cmp qword [rax + 8], 0
je 0x1400150c2
cmp dword [rax + 0x1c], 0
jne 0x1400150c2
mov rcx, rax
call fcn.140014580
mov rcx, qword [rbx]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov eax, dword [rsp + 0x38]
shl rax, 0x20
or rax, rcx
add rsp, 0x20
pop rbx
ret
or rax, 0xffffffffffffffff
add rsp, 0x20
pop rbx
ret

Function at 0x1400150f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor r14d, r14d
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
cmp dword [rcx + 0x1c], r14d
jne 0x140015124
call fcn.140014580
mov dword [rbx + 0x1c], 1
mov dword [rbx + 0x14], r14d
movsxd rcx, dword [rbx + 0x14]
mov eax, dword [rbx + 0x18]
sub eax, ecx
mov rbp, rcx
cmp rcx, rdi
jl 0x140015189
movsxd rcx, eax
mov rax, rdi
add rcx, qword [rbx + 8]
dec rax
je 0x14001517f
dec rax
je 0x140015171
cmp rax, 2
je 0x140015165
mov rdx, rcx
mov r8, rdi
mov rcx, rsi
call sub.msvcrt.dll_memcpy
movsxd rax, edi
jmp 0x140015201
mov eax, dword [rcx]
mov dword [rsi], eax
movsxd rax, edi
jmp 0x140015201
movzx eax, word [rcx]
mov word [rsi], ax
movsxd rax, edi
jmp 0x140015201
movzx eax, byte [rcx]
mov byte [rsi], al
movsxd rax, edi
jmp 0x140015201
movsxd rdx, eax
mov r8, rcx
mov rcx, rsi
add rdx, qword [rbx + 8]
call sub.msvcrt.dll_memcpy
movsxd r8, dword [rbx + 0x10]
mov rcx, qword [rbx]
sub rdi, rbp
add rsi, rbp
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x50]
cmp rdi, r8
jl 0x1400151d1
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x50]
mov dword [rbx + 0x14], r14d
add eax, ebp
cdqe
jmp 0x140015204
mov rdx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rsp + 0x50]
mov rdx, qword [rbx + 8]
cmp rdi, rax
mov rcx, rsi
mov dword [rbx + 0x14], eax
cmovg rdi, rax
mov dword [rbx + 0x18], eax
mov r8, rdi
call sub.msvcrt.dll_memcpy
lea eax, [rdi + rbp]
cdqe
sub dword [rbx + 0x14], edi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140015220
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rdi, rcx
mov rcx, qword [0x1400552c8]
mov rsi, r8
mov r15d, edx
mov r14d, 0x1000
xor edx, edx
mov r8d, r14d
mov r12, r9
xor r13d, r13d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x1400153e4
movzx r8d, byte [rsp + 0x30]
mov qword [rsp + 0x70], rbx
mov rbx, rax
cmp rsi, 0xffffffffffffffff
je 0x14001528a
test rsi, rsi
je 0x14001534a
dec rsi
lea rdx, [rsp + 0x30]
cmp qword [rdi + 8], r13
je 0x1400152a9
mov r8d, 1
mov rcx, rdi
call fcn.1400150f0
mov dword [rsp + 0x34], eax
jmp 0x1400152c6
mov rcx, qword [rdi]
lea r9, [rsp + 0x34]
mov r8d, 1
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x34]
movzx r8d, byte [rsp + 0x30]
cmp eax, 1
jne 0x14001534a
test r8b, r8b
je 0x1400152e2
mov byte [rbx], r8b
movzx r8d, byte [rsp + 0x30]
inc rbx
lea eax, [r14 - 1]
mov rdx, rbx
movsxd rcx, eax
sub rdx, rbp
cmp rdx, rcx
jle 0x140015324
mov rcx, qword [0x1400552c8]
add r14d, 0x1000
mov r8, rbp
mov edx, 8
movsxd r9, r14d
sub ebx, ebp
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movzx r8d, byte [rsp + 0x30]
movsxd rbx, ebx
mov rbp, rax
add rbx, rax
test r8b, r8b
je 0x14001534a
test r15d, r15d
jne 0x140015278
cmp r8b, 0xd
je 0x14001534f
cmp r8b, 0xa
jne 0x140015278
dec rbx
jmp 0x1400153cd
test r15d, r15d
jne 0x1400153cd
cmp r8b, 0xa
jne 0x14001535a
dec rbx
jmp 0x1400153cd
cmp r8b, 0xd
jne 0x1400153cd
dec rbx
lea rdx, [rsp + 0x30]
cmp qword [rdi + 8], r13
je 0x140015382
mov r8d, 1
mov rcx, rdi
call fcn.1400150f0
mov dword [rsp + 0x34], eax
jmp 0x14001539b
mov rcx, qword [rdi]
lea r9, [rsp + 0x34]
mov r8d, 1
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [rsp + 0x30], 0xa
je 0x1400153cd
cmp qword [rdi + 8], r13
je 0x1400153ad
inc dword [rdi + 0x14]
jmp 0x1400153cd
mov rcx, qword [rdi]
lea r8, [rsp + 0x3c]
mov r9d, 1
or edx, 0xffffffff
mov qword [rsp + 0x38], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rax, rbx
sub rax, rbp
mov qword [r12], rax
mov byte [rbx], r13b
mov rbx, qword [rsp + 0x70]
mov rax, rbp
jmp 0x1400153e7
mov rax, r13
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140015410
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, rcx
mov rcx, qword [0x1400552c8]
mov rbp, r8
mov r12d, edx
mov r8d, 0x1000
xor edx, edx
mov r13, r9
xor edi, edi
mov r15d, 0x800
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x1400155f2
movzx edx, word [rsp + 0x30]
mov qword [rsp + 0x70], rbx
mov rbx, rax
nop dword [rax]
cmp rbp, 0xffffffffffffffff
je 0x140015482
test rbp, rbp
je 0x140015544
dec rbp
cmp qword [rsi + 8], 0
lea rdx, [rsp + 0x30]
je 0x1400154a2
mov r8d, 2
mov rcx, rsi
call fcn.1400150f0
mov dword [rsp + 0x34], eax
jmp 0x1400154bf
mov rcx, qword [rsi]
lea r9, [rsp + 0x34]
mov r8d, 2
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x34]
movzx edx, word [rsp + 0x30]
cmp eax, 2
jne 0x140015544
test dx, dx
je 0x1400154da
mov word [rbx], dx
movzx edx, word [rsp + 0x30]
add rbx, 2
mov rdi, rbx
lea eax, [r15 - 1]
sub rdi, r14
movsxd rcx, eax
sar rdi, 1
cmp rdi, rcx
jle 0x140015520
mov rcx, qword [0x1400552c8]
add r15d, 0x800
mov r8, r14
movsxd r9, r15d
mov edx, 8
add r9, r9
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movzx edx, word [rsp + 0x30]
mov r14, rax
movsxd rax, edi
lea rbx, [r14 + rax*2]
test dx, dx
je 0x140015544
mov edi, 0
test r12d, r12d
jne 0x140015470
cmp dx, 0xd
je 0x140015549
cmp dx, 0xa
je 0x14001554f
jmp 0x140015470
test r12d, r12d
jne 0x140015553
cmp dx, 0xa
jne 0x140015572
sub rbx, 2
xor edi, edi
mov rax, rbx
sub rax, r14
sar rax, 1
mov qword [r13], rax
mov word [rbx], di
mov rbx, qword [rsp + 0x70]
mov rax, r14
jmp 0x1400155f5
cmp dx, 0xd
jne 0x140015553
sub rbx, 2
cmp qword [rsi + 8], 0
lea rdx, [rsp + 0x30]
je 0x14001559e
mov r8d, 2
mov rcx, rsi
call fcn.1400150f0
xor edi, edi
mov dword [rsp + 0x34], eax
jmp 0x1400155b7
mov rcx, qword [rsi]
xor edi, edi
lea r9, [rsp + 0x34]
lea r8d, [rdi + 2]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [rsp + 0x30], 0xa
je 0x140015555
cmp qword [rsi + 8], 0
je 0x1400155cc
add dword [rsi + 0x14], 2
jmp 0x140015555
mov rcx, qword [rsi]
mov r9d, 1
lea r8, [rsp + 0x3c]
lea edx, [r9 - 3]
mov qword [rsp + 0x38], 0xfffffffffffffffe
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x140015555
mov rax, rdi
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140015610
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rsi, rcx
mov rcx, qword [0x1400552c8]
mov rdi, r8
mov r15d, edx
mov r14d, 0x1000
xor edx, edx
mov r8d, r14d
mov r12, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x1400157a9
movzx r8d, byte [rsp + 0x30]
mov qword [rsp + 0x60], rbx
mov rbx, rax
cmp rdi, 0xffffffffffffffff
je 0x140015679
test rdi, rdi
je 0x140015707
dec rdi
mov rdx, rbx
mov rcx, rsi
call fcn.1400159e0
mov dword [rsp + 0x34], eax
test eax, eax
jne 0x140015691
xor r8b, r8b
jmp 0x140015695
movzx r8d, byte [rbx]
cdqe
mov byte [rsp + 0x30], r8b
add rbx, rax
lea eax, [r14 - 5]
mov rdx, rbx
movsxd rcx, eax
sub rdx, rbp
cmp rdx, rcx
jle 0x1400156e1
mov rcx, qword [0x1400552c8]
add r14d, 0x1000
mov r8, rbp
mov edx, 8
movsxd r9, r14d
sub ebx, ebp
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movzx r8d, byte [rsp + 0x30]
movsxd rbx, ebx
mov rbp, rax
add rbx, rax
test r8b, r8b
je 0x140015707
test r15d, r15d
jne 0x140015667
cmp r8b, 0xd
je 0x140015710
cmp r8b, 0xa
jne 0x140015667
dec rbx
jmp 0x140015794
test r15d, r15d
jne 0x140015794
cmp r8b, 0xa
jne 0x14001571b
dec rbx
jmp 0x140015794
cmp r8b, 0xd
jne 0x140015794
dec rbx
cmp qword [rsi + 8], 0
lea rdx, [rsp + 0x30]
je 0x140015744
mov r8d, 1
mov rcx, rsi
call fcn.1400150f0
mov dword [rsp + 0x34], eax
jmp 0x140015761
mov rcx, qword [rsi]
lea r9, [rsp + 0x34]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [rsp + 0x30], 0xa
je 0x140015794
cmp qword [rsi + 8], 0
je 0x140015774
inc dword [rsi + 0x14]
jmp 0x140015794
mov rcx, qword [rsi]
lea r8, [rsp + 0x3c]
mov r9d, 1
or edx, 0xffffffff
mov qword [rsp + 0x38], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rax, rbx
sub rax, rbp
mov qword [r12], rax
mov byte [rbx], 0
mov rbx, qword [rsp + 0x60]
mov rax, rbp
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x1400157d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
movsxd rdi, r8d
mov rsi, rdx
mov rbx, rcx
mov dword [rsp + 0x50], ebp
cmp dword [rcx + 0x24], ebp
jne 0x14001590e
cmp dword [rcx + 0x1c], 1
jne 0x140015823
mov eax, dword [rcx + 0x14]
mov rcx, qword [rcx]
lea r9d, [rbp + 1]
neg eax
lea r8, [rsp + 0x6c]
cdqe
mov edx, eax
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x1c], ebp
mov dword [rbx + 0x14], eax
mov ecx, dword [rbx + 0x14]
cmp ecx, edi
jle 0x1400158af
mov eax, dword [rbx + 0x10]
mov edx, edi
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rbx + 8]
dec edx
je 0x140015897
dec edx
je 0x14001587e
cmp edx, 2
je 0x140015867
mov r8, rdi
mov rdx, rsi
call sub.msvcrt.dll_memcpy
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [rsi]
mov dword [rcx], eax
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
movzx eax, word [rsi]
mov word [rcx], ax
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
movzx eax, byte [rsi]
mov byte [rcx], al
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov rcx, rbx
call fcn.140014580
mov eax, dword [rbx + 0x10]
mov rdx, rsi
cmp edi, eax
jl 0x1400158e9
mov rcx, qword [rbx]
lea r9, [rsp + 0x50]
mov r8d, edi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
sub eax, dword [rbx + 0x14]
mov r8, rdi
movsxd rcx, eax
add rcx, qword [rbx + 8]
call sub.msvcrt.dll_memcpy
sub dword [rbx + 0x14], edi
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
movsxd rax, ebp
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400159e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x30
cmp qword [rcx + 8], 0
mov rbx, rdx
mov rsi, rcx
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x50], 0
je 0x140015a15
mov r8d, 1
call fcn.1400150f0
mov dword [rsp + 0x50], eax
jmp 0x140015a36
mov rcx, qword [rcx]
lea r9, [rsp + 0x50]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x50]
cmp eax, 1
je 0x140015a48
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
movzx ecx, byte [rsp + 0x40]
test cl, cl
js 0x140015a67
mov byte [rbx], cl
mov byte [rbx + 1], 0
mov eax, 1
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
movzx eax, cl
mov qword [rsp + 0x48], rdi
and al, 0xe0
cmp al, 0xc0
jne 0x140015a7c
mov edi, 2
jmp 0x140015a9a
movzx eax, cl
and al, 0xf0
cmp al, 0xe0
jne 0x140015a8c
mov edi, 3
jmp 0x140015a9a
movzx eax, cl
and al, 0xf8
cmp al, 0xf0
jne 0x140015b05
mov edi, 4
mov byte [rbx], cl
cmp qword [rsi + 8], 0
lea rdx, [rbx + 1]
je 0x140015aba
lea eax, [rdi - 1]
mov rcx, rsi
movsxd r8, eax
call fcn.1400150f0
mov rcx, rax
jmp 0x140015ad9
mov rcx, qword [rsi]
lea r8d, [rdi - 1]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x50]
lea eax, [rdi - 1]
cmp ecx, eax
je 0x140015af2
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
movsxd rax, edi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
mov rdi, qword [rsp + 0x48]
mov word [rbx], 0x3f
mov rbx, qword [rsp + 0x58]
mov eax, 1
add rsp, 0x30
pop rsi
ret
Function at 0x14001c1c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push r12
sub rsp, 0x48
xor ebx, ebx
mov r12d, edx
mov ebp, 1
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov edx, 0x80000000
mov r8d, ebp
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14001c399
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x70], rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
je 0x14001c24c
test eax, eax
jle 0x14001c24c
mov rdx, qword [0x14005a800]
lea r9, [rsp + 0x80]
mov r8d, eax
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001c24c
cmp dword [rsp + 0x80], edi
cmove ebx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14001c394
mov rdx, qword [0x14005a800]
mov rax, rdx
cmp dword [rdx], 0x50555245
jne 0x14001c394
mov esi, dword [rdx + 8]
add rax, 0xc
lea ecx, [rsi - 0x52455331]
cmp ecx, 8
ja 0x14001c394
lea ecx, [rdi - 8]
mov qword [rsp + 0x40], r15
movsxd r15, ecx
lea rcx, [r15 + rdx]
cmp rax, rcx
jae 0x14001c38f
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x88], r14
lea r13, [0x14001c4b0]
nop word [rax + rax]
cmp dword [rax], 0x434e5354
movsxd rdi, dword [rax + 4]
lea r14, [rax + 8]
jne 0x14001c36b
test edi, edi
jle 0x14001c36b
mov rcx, qword [0x1400552c8]
lea r8, [rdi + 0x28]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x14001c36b
lea rcx, [rax + 0x28]
mov r8, rdi
mov rdx, r14
mov dword [rax + 0x10], edi
mov dword [rax + 0x14], r12d
mov qword [rax + 8], rcx
call sub.msvcrt.dll_memcpy
cmp esi, 0x52455331
je 0x14001c344
jle 0x14001c35a
cmp esi, 0x52455333
jle 0x14001c330
mov qword [rbx + 0x18], r13
lea rax, [0x14001ef40]
jmp 0x14001c356
lea rax, [0x14001c3c0]
mov qword [rbx + 0x18], rax
lea rax, [0x14001ef10]
jmp 0x14001c356
lea rax, [0x14001c3b0]
mov qword [rbx + 0x18], rax
lea rax, [0x14001ef00]
mov qword [rbx + 0x20], rax
mov rax, qword [0x140055b40]
mov qword [0x140055b40], rbx
mov qword [rbx], rax
mov rdx, qword [0x14005a800]
lea rax, [r14 + rdi]
add rdx, r15
cmp rax, rdx
jb 0x14001c2c0
mov r14, qword [rsp + 0x88]
mov r13, qword [rsp + 0x78]
mov r15, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x70]
add rsp, 0x48
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001f230
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
mov rcx, qword [0x140059f80]
call fcn.140015b28
cmp dword [0x140051018], 0
mov rdi, qword [rax]
je 0x14001f2a7
cmp qword [0x140059fa0], rdi
jne 0x14001f2a7
cmp dword [0x140055d44], 0
je 0x14001f2a7
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x140055d48]
mov qword [rsp + 0x38], rsi
xor esi, esi
test rbx, rbx
je 0x14001f297
cmp rbx, rdi
je 0x14001f28c
cmp dword [rbx + 0x38], esi
jne 0x14001f28c
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [rbx + 0x38], esi
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14001f278
mov rbx, qword [rsp + 0x30]
mov dword [0x140055d44], esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14001f2b0
Capabilities:
Check for time delay via gettickcount
Suspend thread

Disassembly:
push rsi
sub rsp, 0x20
mov rcx, qword [0x140059f80]
call fcn.140015b28
cmp dword [0x140051018], 0
mov rsi, qword [rax]
je 0x14001f3f0
cmp dword [0x140055d44], 0
jne 0x14001f3f0
lea rcx, [0x140055d50]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1400554fc], 0
je 0x14001f326
lea rcx, [0x14005a860]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x14006acc0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x140059fe0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x14006aca0]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [0x140059fa0], rsi
mov dword [0x140055d44], 1
call qword [sym.imp.USER32.dll_PostThreadMessageA]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rbx, qword [0x140055d48]
lea edi, [rax + 0xc8]
test rbx, rbx
je 0x14001f3a3
cmp rbx, rsi
je 0x14001f39b
cmp dword [rbx + 0x38], 0
jne 0x14001f39b
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jae 0x14001f38b
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rbx + 0x38], 0
je 0x14001f370
cmp dword [rbx + 0x38], 0
jne 0x14001f39b
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14001f363
cmp dword [0x1400554fc], 0
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
je 0x14001f3dd
lea rcx, [0x140059fe0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x14006acc0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x14005a860]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140055d50]
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x20
pop rsi
ret
Function at 0x140023f50
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
call fcn.140023d60
call fcn.14001f2b0
xor ecx, ecx
call fcn.140024210
test eax, eax
jne 0x140023f60
mov rbx, qword [0x140055518]
test rbx, rbx
je 0x140024040
cmp dword [0x140055520], eax
je 0x140024040
cmp dword [0x140055d80], 0
mov eax, dword [0x14005550c]
mov dword [rsp + 0x20], 0x23
lea eax, [rax*4]
mov dword [rsp + 0x24], eax
je 0x14002400b
mov rcx, qword [0x14005a800]
movsxd r8, eax
mov rdx, rbx
call sub.msvcrt.dll_memcpy
xor r9d, r9d
cmp dword [0x14005550c], r9d
jle 0x140024004
xor r8d, r8d
nop word [rax + rax]
mov rdx, qword [0x14005a800]
inc r9d
add rdx, r8
add r8, 4
movzx ecx, byte [rdx]
movzx eax, byte [rdx + 3]
mov byte [rdx], al
movzx eax, byte [rdx + 2]
mov byte [rdx + 3], cl
movzx ecx, byte [rdx + 1]
mov byte [rdx + 1], al
mov byte [rdx + 2], cl
cmp r9d, dword [0x14005550c]
jl 0x140023fd0
mov rbx, qword [0x14005a800]
call fcn.1400352f0
lea rcx, [0x14006acc0]
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140055da8]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [rax + 0x18]
lea rcx, [0x14006acc0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rsp + 0x20], 1
call fcn.1400352f0
lea rcx, [0x14006acc0]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x24], 0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140055da8]
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [rax + 0x18]
lea rcx, [0x14006acc0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [0x140055da8]
call qword [rax + 0x28]
lea rcx, [0x140059fe0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x14006acc0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x14005a860]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x140055d98]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x140055d98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140055da0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x140055da0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x140059fe0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x14006acc0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x14005a860]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x140059fe0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x14006acc0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x14005a860]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
add rsp, 0x40
pop rbx
ret
Function at 0x140026bf0
Capabilities:
Hash data with crc32

Disassembly:
xor ecx, ecx
lea rdx, [0x140055db0]
nop dword [rax]
mov eax, ecx
shr eax, 1
test cl, 1
je 0x140026c0e
xor eax, 0xedb88320
test al, 1
je 0x140026c1b
shr eax, 1
xor eax, 0xedb88320
jmp 0x140026c1d
shr eax, 1
test al, 1
je 0x140026c2a
shr eax, 1
xor eax, 0xedb88320
jmp 0x140026c2c
shr eax, 1
test al, 1
je 0x140026c39
shr eax, 1
xor eax, 0xedb88320
jmp 0x140026c3b
shr eax, 1
test al, 1
je 0x140026c48
shr eax, 1
xor eax, 0xedb88320
jmp 0x140026c4a
shr eax, 1
test al, 1
je 0x140026c57
shr eax, 1
xor eax, 0xedb88320
jmp 0x140026c59
shr eax, 1
test al, 1
je 0x140026c66
shr eax, 1
xor eax, 0xedb88320
jmp 0x140026c68
shr eax, 1
test al, 1
je 0x140026c75
shr eax, 1
xor eax, 0xedb88320
jmp 0x140026c77
shr eax, 1
inc ecx
mov dword [rdx], eax
add rdx, 4
cmp ecx, 0x100
jl 0x140026c00
ret

Function at 0x1400284e0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x110
mov rsi, rdx
lea rdx, [rsp + 0x40]
mov rbp, r8
mov rdi, rcx
xor ebx, ebx
call fcn.140028d10
test eax, eax
je 0x1400285d9
lea rdx, [rsp + 0x40]
mov rcx, rsi
call sub.msvcrt.dll__stricmp
test eax, eax
jne 0x1400285d9
lea rdx, [rsp + 0xa4]
mov rcx, rbp
call sub.msvcrt.dll__stricmp
test eax, eax
jne 0x1400285d9
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rdi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1400285d9
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1400285d0
test eax, eax
jle 0x1400285d0
lea ecx, [rdi + 1]
movsxd rcx, ecx
call sub.msvcrt.dll_malloc
mov rsi, rax
test rax, rax
je 0x1400285d0
lea r9, [rsp + 0x138]
mov r8d, edi
mov rdx, rax
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400285d0
cmp dword [rsp + 0x138], edi
jne 0x1400285d0
mov rcx, rsi
mov byte [rdi + rsi], bl
call fcn.1400289f0
mov ebx, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x110]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret