joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800a88f0
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov qword [r11 - 0x60], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rax, qword [0x180122010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, r8
mov rbp, rdx
mov qword [r11 - 0x58], rdx
xor r15d, r15d
mov dword [r11 - 0x68], r15d
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x1800a8937
mov rdx, qword [r8]
mov rcx, qword [r8 + 0x10]
test rcx, rcx
je 0x1800a8953
mov rax, rdx
cmp word [rax], 0x25
je 0x1800a898b
add rax, 2
sub rcx, 1
jne 0x1800a8943
mov rdx, rdi
mov rcx, rbp
call fcn.1800075b0
nop
mov dword [rsp + 0x20], 1
mov rax, rbp
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800c8510
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
test rax, rax
je 0x1800a8953
sub rax, rdx
sar rax, 1
cmp rax, 0xffffffffffffffff
je 0x1800a8953
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.1800075b0
nop
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1800a89b7
mov rcx, qword [rdi]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r14d, eax
test eax, eax
jne 0x1800a8a3a
mov rdx, rdi
mov rcx, rbp
call fcn.1800075b0
mov dword [rsp + 0x20], 1
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x1800a8a21
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a8a1c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800a8a1c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c8534
movdqa xmm0, xmmword [0x1800e7190]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], r15w
jmp 0x1800a8967
lea ecx, [rax + 2]
mov eax, 2
mul rcx
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.1800c9074
mov rsi, rax
cmp qword [rdi + 0x18], 8
jb 0x1800a8a65
mov rdi, qword [rdi]
lea r8d, [r14 + 1]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1800a8a9f
cmp eax, r14d
ja 0x1800a8a9f
mov eax, eax
mov word [rsi + rax*2], r15w
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x1800a8a85
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.180007980
mov rcx, rsi
call fcn.1800c8534
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rbp + 0x10], xmm1
movdqa xmm0, xmmword [0x1800e7190]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], r15w
mov dword [rsp + 0x20], 1
jmp 0x1800a8a21
Function at 0x1800bde60
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x60
mov rax, qword [0x180122010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x58], rsi
xor ebx, ebx
cmp qword [rcx + 0x20], 0xffffffffffffffff
mov r14, r9
mov qword [rsp + 0x50], rdi
mov rsi, rdx
mov qword [rsp + 0x40], r15
mov edi, r8d
mov r15, rcx
mov ebp, ebx
jne 0x1800bdea5
mov ebx, 1
jmp 0x1800bdef6
mov qword [rsp + 0x48], r12
mov r12d, 0x100000
mov rcx, qword [r15 + 0x20]
lea r9, [rsp + 0x30]
mov r8d, edi
mov dword [rsp + 0x30], ebx
cmp edi, r12d
mov qword [rsp + 0x20], rbx
mov rdx, rsi
cmova r8d, r12d
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x30]
add ebp, ecx
test eax, eax
je 0x1800bdeec
test ecx, ecx
je 0x1800bdef1
add rsi, rcx
sub edi, ecx
jne 0x1800bdeb0
jmp 0x1800bdef1
mov ebx, 1
mov r12, qword [rsp + 0x48]
mov r15, qword [rsp + 0x40]
mov eax, ebx
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
test r14, r14
je 0x1800bdf0f
mov dword [r14], ebp
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800c8510
add rsp, 0x60
pop r14
pop rbp
pop rbx
ret

Function at 0x1800be880
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x1800be8bb
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1800be8bb
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x20]
call fcn.1800c6850
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x1800c6850
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x180122010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rcx, qword [rcx]
mov rdi, rdx
cmp rcx, 0xffffffffffffffff
je 0x1800c68ae
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1800c6899
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800c68ae
mov ecx, dword [rsp + 0x20]
mov rax, rbx
shl rcx, 0x20
mov al, 1
add rcx, rbx
mov qword [rdi], rcx
jmp 0x1800c68b0
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800c8510
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14002d48c
Capabilities:
Get file size
Read file via mapping

Disassembly:
push rbx
sub rsp, 0x40
and qword [rsp + 0x30], 0
mov rax, rdx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov rbx, rcx
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
mov rcx, rax
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov qword [rbx + 0x30], rax
cmp rax, 0xffffffffffffffff
jne case.default.0x14002d4d8
add rsp, 0x40
pop rbx
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
and qword [rsp + 0x28], 0
xor r9d, r9d
and dword [rsp + 0x20], 0
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
nop dword [rax + rax]
mov qword [rbx + 0x38], rax
test rax, rax
je 0x14002d4d3
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
nop dword [rax + rax]
mov qword [rbx], rax
test rax, rax
je 0x14002d4d3
mov rcx, qword [rbx + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
mov dword [rbx + 0x18], eax
cmp eax, 0xffffffff
je 0x14002d4d3
xor eax, eax
add rsp, 0x40
pop rbx
ret
adc byte [rax], 0xce
mov word [rbp + 0x2f], cs
sub ecx, eax
pop rdx
xor qword [r15 + rdi + 0x5b], r13
invalid
pushfq
sub r11b, byte [r8 + r11*4 + 0x29a16069]
out 0x53, al
sbb dword [rcx - 0x66], esp
sbb al, byte [rbx - 0x21]
cdq
invalid
stosd dword [rdi], eax
sub byte [rdx - 0x15dfa923], bh
lodsb al, byte [rsi]
jmp 0x12ffd153f
and eax, 0x8007706f
rcl byte [rsi], cl
invalid
int3
invalid
cdq
xor al, 0x2d
invalid
scasd eax, dword [rdi]
pop rcx
xchg esp, eax
jbe 0x1400f6a78
pop rdi
jle 0x1400f6a7b
push rbp
xchg ebp, eax
call qword [rsi + 0x41]
push rsi
mov ecx, 0x418e98e
mov ecx, 0x418e98e
mov ecx, 0x418e98e
mov ecx, 0x418e98e
add byte [rbx - 0x3d], al
pop rdi
mov esi, 0x3162296d
add bh, bh
push rbp
or byte [rsi + 0x14], dh
mov bh, 0
add byte [rdi + 0x30], cl
add eax, 0xf819fd37
add byte [rdi + 0x30], cl
add eax, 0xf819fd37
ja 0x1400f6a48
invalid
jmp [rax]
retf 0xcdb4
lodsb al, byte [rsi]
cdq
call [rbx + riz*2]
add dh, cl
invalid
and cl, ch
test ebx, ebp
movsb byte [rdi], byte [rsi]
mov dl, 0xa7
ret 0xbc80
movsd dword [rdi], dword [rsi]
xchg esi, eax
add esp, esi
invalid
cdq
invalid
mov ebx, 0xc2287183
invalid
insd dword [rdi], dx
invalid
test byte [rbx + 0x15], dl
xchg ebx, eax
and byte [rax], cl
sub eax, 0x5b08ac15
in eax, dx
rol dword [rdi + 0x21], 1
adc al, 0xc
ret
out 0x73, eax
in al, dx
mov al, 0x20
int1
sar dword [ecx], cl
cmp dword [rdx - 0x4d], esp
ret 0x21db
Function at 0x14004f73c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rbx, r9
mov r11, r8
mov rsi, rdx
mov r9, rcx
movabs rcx, 0xcbf29ce484222325
xor edx, edx
movzx eax, byte [rdx + r11]
xor rcx, rax
movabs r8, 0x100000001b3
imul rcx, r8
inc rdx
cmp rdx, 8
jb 0x14004f774
mov r8, qword [r9 + 0x30]
and r8, rcx
mov r10, r8
add r10, r10
mov rcx, qword [r9 + 0x18]
mov rdi, qword [r9 + 8]
cmp rdi, qword [rcx + r10*8]
je 0x14004f7fe
mov rdi, qword [rcx + r10*8 + 8]
mov rdi, qword [rdi]
cmp rdi, qword [rcx + r10*8]
je 0x14004f7fe
mov rdi, qword [rdi + 8]
mov rax, qword [rdi + 0x10]
cmp qword [r11], rax
jne 0x14004f7b6
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rcx], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [r9 + 0x10]
mov edx, 0x18
mov rcx, rbx
call fcn.140050978
mov qword [rsi], rdi
mov byte [rsi + 8], 0
mov rax, rsi
jmp 0x14004f895
mov rax, qword [rbx]
cmp rdi, rax
je 0x14004f833
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], rbx
mov rdx, qword [rdi + 8]
mov rcx, qword [rax + 8]
mov qword [rdi + 8], rcx
mov rcx, qword [rbx + 8]
mov qword [rax + 8], rcx
mov qword [rbx + 8], rdx
mov rdx, qword [r9 + 0x18]
mov rax, qword [rdx + r10*8]
add r8, r8
cmp rax, qword [r9 + 8]
jne 0x14004f853
mov qword [rdx + r8*8], rbx
mov rax, qword [r9 + 0x18]
mov qword [rax + r8*8 + 8], rbx
jmp 0x14004f882
cmp rax, rdi
jne 0x14004f85e
mov qword [rdx + r8*8], rbx
jmp 0x14004f882
mov rax, qword [rdx + r8*8 + 8]
mov rcx, qword [rax]
mov qword [rdx + r8*8 + 8], rcx
cmp rcx, rbx
je 0x14004f882
mov rdx, qword [r9 + 0x18]
mov rax, qword [rdx + r10*8 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + r10*8 + 8], rcx
mov rcx, r9
call fcn.14004d7fc
nop
mov qword [rsi], rbx
mov byte [rsi + 8], 1
mov rax, rsi
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140050c78
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400a1b60], eax
call fcn.1400510b0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400a1b60], 0
jne case.default.0x140050cce
mov ecx, 1
call fcn.1400510b0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
loope 0x1400f684b
invalid
jmp 0x1a7ee8467
Function at 0x1400020e0
Capabilities:
Allocate or change rwx memory
Check if file exists
Create thread
Get common file path
Get file attributes
Inject dll
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x140046040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
lea rdx, [rsp + 0x40]
mov ecx, 0x103
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x14000225e
lea r8, str.BehavEyeDll.dll
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.14001b0d4
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000225e
test al, 0x10
jne 0x14000225e
lea rcx, str.kernelbase.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.LoadLibraryA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x14000225e
mov qword [rsp + 0x178], rbx
lea rax, [rsp + 0x40]
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x180], rbp
mov r8, rbx
inc r8
cmp byte [rax + r8], 0
jne 0x140002194
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, rax
mov r9, rbx
lea rax, [rsp + 0x40]
inc r9
cmp byte [rax + r9], 0
jne 0x1400021c2
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], 0
mov r9, rsi
mov dword [rsp + 0x28], 0
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rax
mov edx, 0xffffffff
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rax, [rsp + 0x40]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140002223
mov r8, rbx
mov r9d, 0x8000
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x180]
mov al, 1
mov rbx, qword [rsp + 0x178]
jmp 0x140002260
xor al, al
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000aa50
mov rsi, qword [rsp + 0x188]
add rsp, 0x160
pop rdi
ret
Function at 0x140002290
Capabilities:
Create process on windows
Resume thread

Disassembly:
sub rsp, 0x208
mov rax, qword [0x140046040]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
xorps xmm0, xmm0
xor eax, eax
mov r8, rcx
mov qword [rsp + 0xd0], rax
lea rcx, [rsp + 0xe0]
mov qword [rsp + 0x60], rax
mov edx, 0x105
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0x50], xmm0
call fcn.14001a1b4
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0xe0]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x14
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140002391
mov rcx, qword [rsp + 0x50]
call fcn.1400020e0
test al, al
je 0x140002391
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.14000aa50
add rsp, 0x208
ret
xor al, al
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.14000aa50
add rsp, 0x208
ret
Function at 0x1400023d0
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x180
mov rax, qword [0x140046040]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rbx, rcx
lea rdx, [rsp + 0x60]
mov ecx, 0x103
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x1400025a5
lea r8, str.BehaviorLogs.txt
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.14001b0d4
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edi, 1
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [rdi + 2]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
jne 0x140002468
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
cmp eax, 0x50
sete dil
jmp 0x140002471
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1400025a5
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], 0
jne 0x140002491
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1400035d0
nop
mov r8d, 2
lea rdx, [0x14004062c]
lea rcx, [rsp + 0x40]
call fcn.1400030d0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
lea edx, [r9 + 4]
lea r8d, [r9 + 3]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000256c
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdx, qword [rsp + 0x40]
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140002568
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002563
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400025c8
call fcn.14000aa70
mov eax, ebx
jmp 0x1400025a7
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x1400025a5
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400025a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400025c8
call fcn.14000aa70
xor eax, eax
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14000aa50
mov rbx, qword [rsp + 0x198]
add rsp, 0x180
pop rdi
ret
call fcn.14001b4e4
int3
Function at 0x140009bfc
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 0x140009c2a
xor eax, eax
jmp 0x140009d10
cmp qword [rcx + 0x68], 0
je 0x140009c3b
call fcn.140009d2c
jmp 0x140009d10
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140009c52
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140009c54
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140009c86
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140032840
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 0x140009d0a
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140009cbd
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 0x140009ce6
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14001c5ec
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140009d0a
cmp rsi, rbx
ja 0x140009cc4
test rsi, rsi
je 0x140009d0a
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14001c5ec
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 0x14000b7a0
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400114c3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400114c3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400114c3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400114c3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400114c3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400114c3
cmp dword [rcx + 0xf8], 0
je 0x1400114c3
mov ecx, ebx
call fcn.140011574
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140011350
nop
cmp dword [rbp + 0x20], 0
je 0x140011511
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001151c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140011454
Function at 0x14002685c
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.14000b250
sub rsp, rax
mov rax, qword [0x140046040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001a248
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400268ab
mov rax, rbp
jmp 0x1400269b3
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 + 0x48470]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140027b44
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x48470]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400269af
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 0x1400269af
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140027b44
test rax, rax
js 0x1400269af
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400269af
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400269a1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400269a1
cmp byte [rcx], 0xd
jne 0x140026987
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140026996
cmp byte [rcx + 1], 0xa
jne 0x140026996
inc rcx
jmp 0x140026996
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x46460]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140026969
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400269b3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000aa50
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 0x140026cd0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140026ce6
mov al, 1
jmp 0x140026d46
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140026cf7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140026d44
mov ecx, dword [rcx + 0x18]
nop
call fcn.140024b00
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140026d44
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140026d44
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140026d44
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140026d46
xor al, al
add rsp, 0x20
pop rbx
ret