joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000921c
Capabilities:
Read .ini file

Disassembly:
mov r11d, r9d
mov r10, r8
lea r9, [rcx + 8]
mov rax, rdx
cmp qword [r9 + 0x18], 8
jb 0x140009233
mov r9, qword [r9]
cmp qword [r8 + 0x18], 8
jb 0x14000923d
mov r10, qword [r8]
cmp qword [rdx + 0x18], 8
jb case.default.0x140009250
mov rax, qword [rdx]
mov r8d, r11d
mov rdx, r10
mov rcx, rax
jmp qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al

Function at 0x140009258
Capabilities:
Read .ini file

Disassembly:
push rbx
add rcx, 8
mov r10, r9
mov r11, r8
mov rbx, rdx
cmp qword [rcx + 0x18], 8
jb case.default.0x14000928d
mov rcx, qword [rcx]
mov eax, dword [rsp + 0x38]
mov r8, r10
mov r9, qword [rsp + 0x30]
mov rdx, r11
mov qword [rsp + 0x38], rcx
mov rcx, rbx
mov dword [rsp + 0x30], eax
pop rbx
jmp qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]

Function at 0x140009800
Capabilities:
Get file size
Parse pe header
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor edi, edi
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
je 0x14000995e
cmp di, word [rdx]
je 0x14000995e
cmp qword [rcx + 8], rdi
je 0x140009834
call fcn.14000971c
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov rcx, rsi
mov dword [rsp + 0x20], 3
lea edx, [r9 + 1]
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
mov qword [rbx], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14000995e
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0x40
jb 0x14000995e
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
xor edx, edx
mov dword [rsp + 0x20], esi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rax
mov qword [rbx + 0x18], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14000995e
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 8], rax
mov rdx, rax
test rax, rax
je 0x14000995e
lea r9, [rsi + rax]
mov qword [rbx + 0x10], r9
cmp dword [rax + 0x3c], 0x40
jb 0x14000995e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
mov qword [rbx + 0x20], rcx
lea rax, [rcx + 0xf8]
cmp r9, rax
jb 0x14000995e
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14000995e
cmp dword [rcx], 0x4550
jne 0x14000995e
mov eax, 0x14c
cmp word [rcx + 4], ax
je 0x140009938
mov eax, 0x8664
cmp word [rcx + 4], ax
je 0x14000992e
mov eax, 0xaa64
cmp word [rcx + 4], ax
jne 0x14000995e
mov dil, 1
mov eax, 0x108
jmp 0x14000993d
mov eax, 0xf8
lea r8, [rcx + rax]
mov byte [rbx + 0x30], dil
mov qword [rbx + 0x28], r8
movzx ecx, word [rcx + 6]
lea rdx, [rcx + rcx*4]
lea rcx, [r8 + rdx*8]
cmp r9, rcx
jb 0x14000995e
mov al, 1
jmp 0x140009968
mov rcx, rbx
call fcn.14000971c
xor al, al
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14000cf60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140017170]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp qword [rcx + 0x18], 0
mov r14, rdx
mov rsi, rcx
je 0x14000d0f8
cmp byte [rcx + 0x88], 0
movsxd rbp, dword [rdx + 0x10]
je 0x14000d0c9
mov edx, dword [rcx + 0x90]
mov ecx, dword [rcx + 0x80]
lea eax, [rdx + rbp]
cmp eax, ecx
jle 0x14000d0c9
mov ebx, dword [rsi + 0x84]
cmp ebx, 1
jne 0x14000d01d
sub ecx, edx
movsxd rbx, ecx
mov rcx, rbx
call fcn.14000db44
mov r8, rbx
mov edx, 0x20
mov rcx, rax
mov rdi, rax
call sub.VCRUNTIME140.dll_memset
mov r9, qword [rsi + 0x18]
mov r8, rbx
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call fcn.14000d8b0
mov rcx, qword [rsi + 0x18]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
and dword [rsi + 0x90], 0
jmp 0x14000d0c9
jle 0x14000d0c9
mov rcx, rsi
call fcn.14000c620
mov rcx, rsi
call fcn.14000ca00
test al, al
je 0x14000d0c9
cmp dword [rsi + 0x94], ebx
jle 0x14000d0c9
lea rdi, [rsi + 0x98]
mov rax, qword [rdi]
mov rbx, qword [rax]
cmp rbx, rax
je 0x14000d0c9
and qword [rsp + 0x20], 0
lea rdx, [rbx + 0x28]
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x20]
and qword [rsp + 0x38], 0
call fcn.140004b60
mov rdx, rbx
mov rcx, rdi
call fcn.14000c4dc
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14000d0c9
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d0c4
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d0c4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d8b0
cmp qword [r14 + 0x18], 0x10
jb 0x14000d0d3
mov r14, qword [r14]
mov r9, qword [rsi + 0x18]
mov r8, rbp
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsi + 0x18]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add dword [rsi + 0x90], ebp
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000d890
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14000d480
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rdx, [rsp + 0x20]
mov rdi, rcx
call fcn.14000d454
mov rbx, qword [rsp + 0x20]
test rbx, rbx
je 0x14000d4f4
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14000d4f4
mov edx, 0x1d4c0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14000d4d8
mov eax, dword [rbx + 0x10]
mov edi, 1
mov dword [0x140018050], eax
mov edx, edi
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x14000d4f9
mov rcx, rdi
call fcn.14000d550
mov rcx, rax
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edi, dword [rsp + 0x48]
jmp 0x14000d4f9
mov edi, 1
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14000d543
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14000d543
mov rbx, qword [rsp + 0x28]
mov rcx, rbx
mov rax, qword [rbx]
mov rax, qword [rax]
call qword [0x1400105b0]
or ecx, 0xffffffff
lock xadd dword [rbx + 0xc], ecx
cmp ecx, 1
jne 0x14000d543
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rcx]
mov rax, qword [rdx + 8]
call qword [0x1400105b0]
mov rbx, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x30
pop rdi
ret

Function at 0x14000d680
Capabilities:
Create thread
Resume thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x30
mov r9, qword [rcx]
lea r8, [0x14000d760]
mov rsi, rdx
mov rdi, rcx
xor edx, edx
xor ecx, ecx
lea rax, [r9 + 0x10]
mov qword [r11 - 0x10], rax
mov dword [rsp + 0x20], 4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, rax
test rax, rax
je 0x14000d73d
mov rax, qword [rdi]
mov rdx, rsi
mov qword [rax + 8], rcx
mov rcx, qword [rdi]
add rcx, 0x18
call fcn.140002178
mov rax, qword [rdi]
xor ecx, ecx
mov ebp, dword [rax + 0x10]
lea rax, [0x140017f80]
cmp dword [rax], 0
je 0x14000d709
inc ecx
lea rdx, [0x140018090]
add rax, 0x44
cmp rax, rdx
jl 0x14000d6f0
jmp 0x14000d72e
movsxd rax, ecx
lea r14, [0x140017f40]
imul rbx, rax, 0x44
mov r8, rsi
mov edx, 0x40
lea rcx, [rbx + r14]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov dword [rbx + r14 + 0x40], ebp
mov rcx, qword [rdi]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x18000539c
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9, rcx
test r8b, r8b
je 0x1800053b6
cmp r8b, 0x90
je 0x1800053b6
cmp r8b, 0xcc
je 0x1800053b6
xor eax, eax
ret
mov r10d, 1
mov ecx, r10d
cmp edx, r10d
jbe 0x1800053d3
mov eax, ecx
cmp byte [rax + r9], r8b
jne 0x1800053b3
add ecx, r10d
cmp ecx, edx
jb 0x1800053c4
mov eax, r10d
ret
Function at 0x18002ede0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x18002ee0d
xor al, al
jmp 0x18002ef6f
mov rax, qword [0x18004f700]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x18004f708]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x18004f710]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x18004f718]
mov qword [rcx + 0x18], rax
mov rax, qword [0x18004f720]
mov qword [rcx + 0x20], rax
mov rax, qword [0x18004f728]
mov qword [rcx + 0x28], rax
mov rax, qword [0x18004f730]
mov qword [rcx + 0x30], rax
mov rax, qword [0x18004f738]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x18004f740]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x18002ef61
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x18002eeb9
mov r11d, 2
jmp 0x18002eedd
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x18002eed3
mov r11d, 1
jmp 0x18002eedd
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x18002ef85
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x18002ef22
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x18002ef3a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x18002ef4a
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x18002ef58
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x18002eea0
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x18002ef6a
Function at 0x30007514
Capabilities:
Get file system object information

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x310
mov rax, qword [0x3000a228]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov r13, qword [rsp + 0x370]
xor esi, esi
test rcx, rcx
mov rdi, r9
mov r12, r8
mov rbp, rdx
mov qword [rsp + 0x30], rsi
mov r9, rcx
je 0x30007592
cmp word [rcx], si
je 0x30007592
xor ecx, ecx
test r8, r8
setne cl
xor eax, eax
test rdx, rdx
setne al
cmp eax, ecx
jne 0x30007592
xor ecx, ecx
test r13, r13
setne cl
xor eax, eax
test rdi, rdi
setne al
cmp eax, ecx
jne 0x30007592
test rdx, rdx
lea eax, [rsi - 1]
jne 0x300075c3
test rdi, rdi
jne 0x300075ce
mov ebx, 0x80070057
mov rcx, rsi
call fcn.300034e4
mov eax, ebx
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.30007ea0
add rsp, 0x310
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
test rdi, rdi
mov qword [rdx], rsi
mov dword [r8], eax
je 0x300075d5
mov qword [rdi], rsi
mov dword [r13], eax
lea rdx, [rsp + 0x30]
mov rcx, r9
call fcn.30006970
mov rsi, qword [rsp + 0x30]
test eax, eax
mov ebx, eax
js 0x30007597
test rbp, rbp
mov r15d, 0x2b8
je 0x30007631
lea rcx, [rsp + 0x40]
mov r8, r15
xor edx, edx
call sub.MSVCR80.dll_memset
lea r8, [rsp + 0x40]
mov r9d, r15d
mov edx, 0x80
mov rcx, rsi
mov dword [rsp + 0x20], 0x4011
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov qword [rbp], rax
mov eax, dword [rsp + 0x48]
mov dword [r12], eax
test rdi, rdi
je 0x30007597
lea rcx, [rsp + 0x40]
mov r8, r15
xor edx, edx
call sub.MSVCR80.dll_memset
lea r8, [rsp + 0x40]
mov r9d, r15d
mov edx, 0x80
mov rcx, rsi
mov dword [rsp + 0x20], 0x4010
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov qword [rdi], rax
mov eax, dword [rsp + 0x48]
mov dword [r13], eax
jmp 0x30007597
Function at 0x14000c2b0
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rcx
mov rax, qword [rsp + 8]
mov dword [rax + 0x40], 0
mov rax, qword [rsp + 8]
mov qword [rax + 0x48], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x6a09e667
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0xbb67ae85
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x3c6ef372
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0xa54ff53a
mov eax, 4
imul rax, rax, 4
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x510e527f
mov eax, 4
imul rax, rax, 5
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x9b05688c
mov eax, 4
imul rax, rax, 6
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x1f83d9ab
mov eax, 4
imul rax, rax, 7
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x5be0cd19
mov rax, qword [rsp + 8]
ret
Function at 0x14000ca50
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x40]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x40], 0x38
jae 0x14000ca7c
mov dword [rsp + 0x24], 0x38
jmp 0x14000ca84
mov dword [rsp + 0x24], 0x40
movzx eax, byte [rsp + 0x24]
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov byte [rax], pe_nt_image_headers64
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
movzx eax, byte [rsp + 0x20]
cmp qword [rsp + 0x28], rax
jae 0x14000cadb
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov byte [rax], 0
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
jmp 0x14000caad
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x40], 0x38
jb 0x14000cb03
mov rcx, qword [rsp + 0x40]
call fcn.14000c5f0
mov rax, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x40]
xor eax, eax
mov ecx, 0x38
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x40]
shl eax, 3
mov eax, eax
mov rcx, qword [rsp + 0x40]
add rax, qword [rcx + 0x48]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x48], rax
mov eax, 1
imul rax, rax, 0x3f
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x40]
movzx edx, byte [rdx + 0x48]
mov byte [rcx + rax], dl
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x48]
shr rax, 8
mov ecx, 1
imul rcx, rcx, 0x3e
mov rdx, qword [rsp + 0x40]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x48]
shr rax, 0x10
mov ecx, 1
imul rcx, rcx, 0x3d
mov rdx, qword [rsp + 0x40]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x48]
shr rax, 0x18
mov ecx, 1
imul rcx, rcx, 0x3c
mov rdx, qword [rsp + 0x40]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x48]
shr rax, 0x20
mov ecx, 1
imul rcx, rcx, 0x3b
mov rdx, qword [rsp + 0x40]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x48]
shr rax, 0x28
mov ecx, 1
imul rcx, rcx, 0x3a
mov rdx, qword [rsp + 0x40]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x48]
shr rax, 0x30
mov ecx, 1
imul rcx, rcx, 0x39
mov rdx, qword [rsp + 0x40]
mov byte [rdx + rcx], al
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x48]
shr rax, 0x38
mov ecx, 1
imul rcx, rcx, 0x38
mov rdx, qword [rsp + 0x40]
mov byte [rdx + rcx], al
mov rcx, qword [rsp + 0x40]
call fcn.14000c5f0
add rsp, 0x30
pop rdi
ret
Function at 0x14000f190
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14000f1be
xor eax, eax
jmp 0x14000f2a4
cmp qword [rcx + 0x68], 0
je 0x14000f1cf
call fcn.14000ce40
jmp 0x14000f2a4
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000f1e6
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000f1e8
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000f21a
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400120a0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14000f29e
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14000f251
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14000f27a
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14001a444
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000f29e
cmp rsi, rbx
ja 0x14000f258
test rsi, rsi
je 0x14000f29e
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14001a444
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140010aa8
Capabilities:
Parse pe header

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

Function at 0x14001f8b0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001f6a0
Function at 0x140027c88
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x140027cba
call fcn.14001b9e8
mov dword [rax], 0x16
call fcn.140019728
jmp 0x140027dd9
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140027dd9
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140027dd9
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140027ce9
lock or dword [rcx + 0x14], 0x10
jmp 0x140027dd9
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140027cfd
call fcn.1400292ec
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400251d4
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140028a68
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140027dc7
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140027d92
mov rcx, rsi
call fcn.1400251d4
cmp eax, edi
je 0x140027d7d
mov rcx, rsi
call fcn.1400251d4
cmp eax, 0xfffffffe
je 0x140027d7d
mov rcx, rsi
call fcn.1400251d4
movsxd rbx, eax
lea r14, [0x140544c60]
mov rcx, rsi
sar rbx, 6
call fcn.1400251d4
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140027d84
lea rdx, [0x140049250]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140027d92
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140027db6
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140027db6
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140027db6
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x140027ddc
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140028104
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140010350
sub rsp, rax
mov rax, qword [0x140049020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400251d4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140028153
mov rax, rbp
jmp 0x14002825b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x544c60]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140029240
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x544c60]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140028257
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140028257
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140029240
test rax, rax
js 0x140028257
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140028257
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140028249
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140028249
cmp byte [rcx], 0xd
jne 0x14002822f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002823e
cmp byte [rcx + 1], 0xa
jne 0x14002823e
inc rcx
jmp 0x14002823e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x49420]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140028211
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002825b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000fce0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400285bc
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140544c60]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14002861a
cmp word [rdx], r12w
jne 0x14002861a
or byte [rax + r8*8 + 0x38], cl
jmp 0x140028620
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14002877b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140028756
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140028659
mov rcx, r9
jmp 0x14002867c
cmp r9, rdx
jae 0x140028693
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14002863d
jmp 0x14002877b
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140028750
cmp dword [rsp + 0x80], edi
je 0x140028750
mov rdx, r14
lea r11, [0x140544c60]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140028729
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400286fc
mov word [rbx], r12w
jmp 0x140028777
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140028705
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140028777
cmp word [rsp + 0x70], r12w
jne 0x140028736
cmp rbx, rsi
je 0x1400286f6
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140029248
cmp word [rsp + 0x70], r12w
je 0x14002877b
mov word [rbx], r13w
jmp 0x140028777
lea r11, [0x140544c60]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140028773
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14002877b
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret