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

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
mov rsi, rdx
and dword [rsp + 0x60], 0
xor edi, edi
mov rcx, qword [rcx + 0xa48]
test rcx, rcx
je 0x100039756
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x100039756
lea r8, [0x1000067d8]
lea rdx, [0x100006670]
call fcn.100034218
mov rdi, rax
mov ecx, 0x10
call fcn.1000671f0
mov rbx, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x100039803
test rdi, rdi
je 0x1000397a2
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80000080
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1f01ff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x1000397ca
mov dword [rsp + 0x28], 0x80000080
and dword [rsp + 0x20], 0
mov r9d, 0x1f01ff
lea r8, [0x100005488]
lea rdx, [0x1000028d0]
xor ecx, ecx
call fcn.1000329e4
mov rdx, rax
mov rcx, rbx
call fcn.100017960
mov r11d, 0xfeff
mov word [rsp + 0x60], r11w
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8d, 2
lea rdx, [rsp + 0x60]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x100039805
xor ebx, ebx
mov qword [rsi], rbx
mov rax, rsi
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x100039f18
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x690
mov rax, qword [0x10007d1c0]
xor rax, rsp
mov qword [rsp + 0x680], rax
mov rsi, rcx
mov edi, 0x104
xor ebx, ebx
lea rcx, [rsp + 0x470]
mov edx, edi
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x44], ebx
mov dword [rsp + 0x40], edi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, ebx
je 0x100039f8e
lea r9, [0x100009fe0]
lea r8, [rsp + 0x470]
lea rcx, [rsp + 0x260]
mov rdx, rdi
mov dword [rsp + 0x20], ebx
call fcn.1000155bc
cmp eax, ebx
jge 0x100039fcc
xor eax, eax
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.100068440
lea r11, [rsp + 0x690]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
jne 0x10003a008
mov dword [rsp + 0x44], ebx
mov dword [rsp + 0x40], edi
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x44]
lea rdx, [rsp + 0x260]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetFileMUIPath]
cmp eax, ebx
jne 0x100039fb5
jmp 0x100039f8e
lea rcx, [rsi + 0x434]
lea r8, [rsp + 0x50]
mov rdx, rdi
sub r8, rcx
mov r9d, ebx
lea rax, [rdx + 0x7ffffefa]
cmp rax, rbx
je 0x10003a040
movzx eax, word [r8 + rcx]
cmp ax, bx
je 0x10003a040
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x10003a01d
cmp rdx, rbx
jne 0x10003a04f
sub rcx, 2
mov r9d, 0x8007007a
cmp r9d, ebx
mov word [rcx], bx
jl 0x100039f8e
lea r9, [0x100009ff8]
lea r8, [rsp + 0x470]
lea rcx, [rsp + 0x260]
mov rdx, rdi
mov dword [rsp + 0x20], ebx
call fcn.1000155bc
cmp eax, ebx
jl 0x100039f8e
jmp 0x10003a097
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
jne 0x10003a0de
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x44]
lea rdx, [rsp + 0x260]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor ecx, ecx
mov dword [rsp + 0x44], ebx
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetFileMUIPath]
cmp eax, ebx
jne 0x10003a088
jmp 0x100039f8e
lea rcx, [rsi + 0x63c]
lea r8, [rsp + 0x50]
mov edx, ebx
sub r8, rcx
lea rax, [rdi + 0x7ffffefa]
cmp rax, rbx
je 0x10003a112
movzx eax, word [r8 + rcx]
cmp ax, bx
je 0x10003a112
mov word [rcx], ax
add rcx, 2
sub rdi, 1
jne 0x10003a0ef
cmp rdi, rbx
jne 0x10003a120
sub rcx, 2
mov edx, 0x8007007a
cmp edx, ebx
mov word [rcx], bx
setge bl
mov eax, ebx
jmp 0x100039f90
Function at 0x10003a384
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
cmp dword [rcx + 0x14], ebp
je 0x10003a3bc
cmp rdx, rbp
je 0x10003a3b2
cmp r8, rbp
jne 0x10003a3bc
mov eax, 0x80070057
jmp 0x10003a4d2
mov ecx, dword [rcx + 0x10]
cmp ecx, 1
je 0x10003a3d8
cmp ecx, 2
je 0x10003a3d8
cmp ecx, 5
je 0x10003a3d8
mov eax, 0x80070032
jmp 0x10003a4d2
cmp qword [rbx + 0x8a8], rbp
je 0x10003a3ce
sub ecx, 1
je 0x10003a3f4
cmp ecx, 1
jne 0x10003a407
lea rdx, [0x10001be04]
jmp 0x10003a3fb
lea rdx, [0x10001bdd4]
lea rcx, [rbx + 0x898]
call fcn.1000230b0
mov eax, dword [rbx + 0x14]
cmp eax, ebp
je 0x10003a423
mov qword [rbx + 0x9b0], rdi
mov qword [rbx + 0x8c0], rsi
mov qword [rbx + 0x8c8], rdi
sete al
lea r8, [0x100035fa4]
mov r9, rbx
mov byte [rbx + 0x9a8], al
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
mov dword [rbx + 0xa40], ebp
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x8b8], rax
cmp rax, rbp
je 0x10003a4d0
cmp dword [rbx + 0x10], 1
jne 0x10003a474
lea rcx, [rbx + 0x24]
cmp word [rcx], bp
je 0x10003a474
cmp rcx, rbp
je 0x10003a474
call fcn.100031418
cmp dword [rbx + 0x14], ebp
jne 0x10003a4d0
lea rcx, [0x10000a1a0]
call fcn.1000250f8
cmp dword [rbx + 0x10], 5
jne 0x10003a495
mov rcx, rbx
call fcn.10003a53c
jmp 0x10003a4a5
mov rcx, qword [rbx + 0x8b8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x8b8]
cmp rcx, rbp
je 0x10003a4bd
cmp rcx, 0xffffffffffffffff
je 0x10003a4bd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x10000a250]
mov qword [rbx + 0x8b8], rbp
call fcn.1000250f8
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x10006404c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx]
mov sil, r8b
call fcn.100063fd8
mov r11, qword [rdi]
mov r14d, 0x66
movzx ebx, word [r11]
cmp ebx, r14d
jg 0x10006418b
je 0x100064178
lea ebp, [r14 - 0x36]
cmp ebx, ebp
jl 0x10006426e
lea r13d, [r14 - 0x2f]
cmp ebx, r13d
jle 0x100064137
lea ecx, [rbp + 0x2c]
cmp ebx, ecx
je 0x100064124
lea r12d, [r14 - 5]
cmp ebx, r12d
je 0x100064111
cmp ebx, 0x63
je 0x1000640d0
cmp ebx, 0x65
jne 0x10006426e
lea ebx, [rbp - 0x15]
jmp 0x10006426e
mov rdx, qword [rsp + 0x58]
lea rcx, [r11 + 2]
mov qword [rdi], rcx
call fcn.100063fd8
mov r11, qword [rdi]
lea rax, [r11 + 2]
mov qword [rdi], rax
mov bx, word [r11]
movzx eax, bx
sub ax, r12w
cmp ax, 0x19
ja 0x100064108
movzx ecx, bx
call qword [sym.imp.msvcrt.dll_towupper]
mov bx, ax
xor bx, 0x40
jmp 0x100064275
xor eax, eax
cmp sil, al
je 0x10006426e
lea ebx, [rax + 7]
jmp 0x10006426e
xor eax, eax
cmp sil, al
je 0x10006426e
mov bx, cx
jmp 0x10006426e
lea rax, [r11 + 2]
mov qword [rdi], rax
movzx ebx, word [r11]
sub bx, bp
mov rcx, qword [rdi]
cmp bp, word [rcx]
ja 0x100064275
cmp r13w, word [rcx]
jb 0x100064275
mov rdx, qword [rsp + 0x58]
shl bx, 3
add bx, word [rcx]
add rcx, 2
sub bx, bp
mov qword [rdi], rcx
call fcn.100063fd8
jmp 0x100064145
xor eax, eax
cmp sil, al
je 0x10006426e
lea ebx, [rax + 0xc]
jmp 0x10006426e
cmp ebx, 0x6e
je 0x100064264
cmp ebx, 0x72
je 0x100064258
cmp ebx, 0x74
je 0x10006424c
cmp ebx, 0x76
je 0x100064240
cmp ebx, 0x78
jne 0x10006426e
add r11, 2
xor eax, eax
lea ebp, [rax + 0x30]
lea r13d, [rax + 0x37]
lea r12d, [rax + 0x61]
mov qword [rdi], r11
mov bx, ax
mov rcx, qword [rdi]
cmp bp, word [rcx]
ja 0x1000641e1
mov eax, 0x39
cmp ax, word [rcx]
jae 0x1000641fa
cmp r12w, word [rcx]
ja 0x1000641ed
cmp r14w, word [rcx]
jae 0x1000641fa
movzx eax, word [rcx]
sub ax, 0x41
cmp ax, 5
ja 0x100064275
movzx eax, word [rcx]
sub ax, r12w
cmp ax, 5
ja 0x10006420f
movzx eax, word [rcx]
sub eax, 0x57
jmp 0x100064226
movzx eax, word [rcx]
sub ax, 0x41
cmp ax, 5
movzx eax, word [rcx]
ja 0x100064224
sub eax, r13d
jmp 0x100064226
sub eax, ebp
mov rdx, qword [rsp + 0x58]
shl bx, 4
add rcx, 2
add bx, ax
mov qword [rdi], rcx
call fcn.100063fd8
jmp 0x1000641cf
xor eax, eax
cmp sil, al
je 0x10006426e
lea ebx, [rax + 0xb]
jmp 0x10006426e
xor eax, eax
cmp sil, al
je 0x10006426e
lea ebx, [rax + 9]
jmp 0x10006426e
xor eax, eax
cmp sil, al
je 0x10006426e
lea ebx, [rax + 0xd]
jmp 0x10006426e
xor eax, eax
cmp sil, al
je 0x10006426e
lea ebx, [rax + 0xa]
add r11, 2
mov qword [rdi], r11
mov rbp, qword [rsp + 0x60]
mov ax, bx
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1000670d8
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x10007d1c0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call sub.msvcrt.dll_memset
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x100000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x10006716b
cmp dword [rsp + 0x24], 5
jb 0x100067185
jmp 0x100067181
cmp dword [rsp + 0x30], esi
jne 0x100067185
cmp dword [rsp + 0x24], 4
ja 0x100067181
jne 0x100067185
cmp dword [rsp + 0x28], 0
jbe 0x100067185
mov byte [rbx + 0x18], sil
lea rax, [0x100001c00]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.100010ac8
movzx ecx, byte [0x100081779]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x100081779], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.100068440
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1000686a4
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x10006870f
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x10006872f
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, [0x100001de8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret

Function at 0x100068a8c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100068ad9
cmp rcx, 0xffffffffffffffff
je 0x100068ad9
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x100068ad1
cmp dword [rcx + 0x3c], edx
jl 0x100068ad1
cmp dword [rcx + 0x3c], 0x10000000
jae 0x100068ad1
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100068ad9
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14000af30
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x140034de0]
test rcx, rcx
je 0x14000af6b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000af5e
mov rcx, qword [0x140034de0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x140034de0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140034e38], 0
je 0x14000b05e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x14002a978]
mov qword [rsp + 0x80], rsi
lea rsi, [0x140034e40]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b03f
test al, 0x10
je 0x14000b03f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000afe5
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x140003810
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0x30
cmp byte [rcx + 0x58], 0
mov rbp, rcx
je 0x140003a28
mov qword [rsp + 0x58], rbx
lea rax, [rcx + 2]
mov qword [rsp + 0x28], rsi
mov rdx, 0xfffffffffffffffb
mov qword [rsp + 0x20], rdi
sub rdx, rcx
mov qword [rsp + 0x18], r12
mov r8, 0xfffffffffffffffc
mov qword [rsp + 0x10], r13
sub r8, rcx
mov qword [rsp + 8], r14
mov r13, 0xfffffffffffffffa
sub r13, rcx
mov qword [rsp], r15
mov r15, rcx
mov qword [rsp + 0x48], rdx
mov r12d, 1
mov qword [rsp + 0x50], r8
sub r12, rcx
mov r14, 0xfffffffffffffffe
mov rcx, 0xfffffffffffffffd
not r15
sub rcx, rbp
movabs r9, 0xa9fb6ded3163673b
mov qword [rsp + 0x40], rcx
sub r14, rbp
nop dword [rax]
nop word [rax + rax]
lea ecx, [rax + r14]
mov rsi, r9
and cl, 7
mov rdi, r9
shl cl, 3
mov rbx, r9
shr rsi, cl
mov r11, r9
xor byte [rax - 2], sil
lea ecx, [rax + r15]
xor byte [rax + 6], sil
and cl, 7
xor byte [rax + 0xe], sil
mov r10, r9
xor byte [rax + 0x16], sil
xor byte [rax + 0x1e], sil
shl cl, 3
shr rdi, cl
movzx ecx, al
xor byte [rax - 1], dil
sub cl, bpl
xor byte [rax + 7], dil
and cl, 7
xor byte [rax + 0xf], dil
xor byte [rax + 0x17], dil
xor byte [rax + 0x1f], dil
shl cl, 3
shr rbx, cl
lea ecx, [rax + r12]
xor byte [rax], bl
and cl, 7
xor byte [rax + 8], bl
xor byte [rax + 0x10], bl
xor byte [rax + 0x18], bl
xor byte [rax + 0x20], bl
shl cl, 3
shr r11, cl
lea ecx, [rax + r13]
xor byte [rax + 1], r11b
and cl, 7
xor byte [rax + 9], r11b
xor byte [rax + 0x11], r11b
xor byte [rax + 0x19], r11b
xor byte [rax + 0x21], r11b
shl cl, 3
shr r10, cl
lea ecx, [rax + rdx]
xor byte [rax + 2], r10b
and cl, 7
xor byte [rax + 0xa], r10b
movabs rdx, 0xa9fb6ded3163673b
xor byte [rax + 0x12], r10b
xor byte [rax + 0x1a], r10b
xor byte [rax + 0x22], r10b
shl cl, 3
shr r9, cl
lea ecx, [rax + r8]
xor byte [rax + 3], r9b
and cl, 7
xor byte [rax + 0xb], r9b
mov r8, rdx
xor byte [rax + 0x13], r9b
xor byte [rax + 0x1b], r9b
xor byte [rax + 0x23], r9b
shl cl, 3
shr r8, cl
movzx ecx, byte [rsp + 0x40]
xor byte [rax + 4], r8b
add cl, al
xor byte [rax + 0xc], r8b
and cl, 7
xor byte [rax + 0x14], r8b
xor byte [rax + 0x1c], r8b
xor byte [rax + 0x24], r8b
shl cl, 3
shr rdx, cl
xor byte [rax + 5], dl
xor byte [rax + 0xd], dl
xor byte [rax + 0x15], dl
xor byte [rax + 0x1d], dl
xor byte [rax + 0x25], dl
xor byte [rax + 0x26], sil
movabs r9, 0xa9fb6ded3163673b
xor byte [rax + 0x27], dil
xor byte [rax + 0x28], bl
xor byte [rax + 0x29], r11b
add rax, 0x2c
mov rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x50]
lea rcx, [r14 + rax]
cmp rcx, 0x58
jb 0x1400038b0
mov r15, qword [rsp]
mov r14, qword [rsp + 8]
mov r13, qword [rsp + 0x10]
mov r12, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x58]
mov byte [rbp + 0x58], 0
add rsp, 0x30
pop rbp
ret
Function at 0x1400082b0
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 0x1400082de
xor eax, eax
jmp 0x1400083c4
cmp qword [rcx + 0x68], 0
je 0x1400082ef
call fcn.1400083e0
jmp 0x1400083c4
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140008306
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140008308
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000833a
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140036b10
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 0x1400083be
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140008371
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 0x14000839a
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140014588
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1400083be
cmp rsi, rbx
ja 0x140008378
test rsi, rsi
je 0x1400083be
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140014588
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 0x14000a27c
Capabilities:
Parse pe header

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

Function at 0x140017700
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400174fc
Function at 0x14001f29c
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.140009b80
sub rsp, rax
mov rax, qword [0x140051040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001b528
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001f2eb
mov rax, rbp
jmp 0x14001f3f3
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 + 0x426890]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400203bc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x426890]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001f3ef
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 0x14001f3ef
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400203bc
test rax, rax
js 0x14001f3ef
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001f3ef
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001f3e1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001f3e1
cmp byte [rcx], 0xd
jne 0x14001f3c7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001f3d6
cmp byte [rcx + 1], 0xa
jne 0x14001f3d6
inc rcx
jmp 0x14001f3d6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x51470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001f3a9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001f3f3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400093e0
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 0x14001f614
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001f62a
mov al, 1
jmp 0x14001f68a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001f63b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001f688
mov ecx, dword [rcx + 0x18]
nop
call fcn.140023a34
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001f688
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001f688
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001f688
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001f68a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001f75c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140426890]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001f7b3
cmp word [rdx], r13w
jne 0x14001f7b3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001f7b8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001f8dd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001f8fe
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001f7f1
mov rdx, r9
mov word [rbx], cx
jmp 0x14001f818
cmp r9, r8
jae 0x14001f828
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001f7d2
jmp 0x14001f8dd
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001f8d2
cmp dword [rsp + 0x80], esi
je 0x14001f8d2
lea r8, [0x140426890]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001f8aa
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001f87a
mov word [rbx], r13w
jmp 0x14001f8da
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001f887
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001f8da
cmp word [rsp + 0x70], r13w
jne 0x14001f8b7
cmp rbx, r14
je 0x14001f874
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400203c4
cmp word [rsp + 0x70], r13w
je 0x14001f8dd
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140426890]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001f8d7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001f8dd