joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001c80
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
push rdi
push r13
push r14
push r15
sub rsp, 0x20
mov r8, qword [rcx]
mov r13, rcx
mov ecx, dword [rcx + 0x48]
movzx eax, word [r8 + 0x14]
mov r15, qword [r8 + 0x30]
dec rcx
mov r11d, dword [rax + r8 + 0x20]
lea r9, [rax + r8 + 0x18]
movabs rax, 0xffffffff00000000
and r15, rax
mov eax, dword [r9 + 0x10]
not rcx
or r11, r15
and rcx, r11
test eax, eax
jne 0x180001ce1
mov edx, dword [r9 + 0x24]
test dl, 0x40
je 0x180001cd9
mov eax, dword [r8 + 0x20]
jmp 0x180001ce1
test dl, dl
jns 0x180001ce1
mov eax, dword [r8 + 0x24]
mov edx, dword [r9 + 0x24]
mov ebx, 1
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov r10d, eax
mov r14d, ebx
lea rdi, [0x180010f70]
mov qword [rsp + 0x68], r12
cmp bx, word [r8 + 6]
jae 0x180001e50
lea rbx, [r9 + 0x4c]
nop word [rax + rax]
mov esi, dword [r13 + 0x48]
mov ebp, dword [rbx - 0x1c]
mov eax, dword [rbx - 0x14]
or rbp, r15
lea rdi, [rsi - 1]
not rdi
and rdi, rbp
test eax, eax
jne 0x180001d53
mov r9d, dword [rbx]
test r9b, 0x40
je 0x180001d4a
mov eax, dword [r8 + 0x20]
jmp 0x180001d53
test r9b, r9b
jns 0x180001d53
mov eax, dword [r8 + 0x24]
mov r12d, eax
cmp rcx, rdi
je 0x180001e0a
lea rax, [r10 + r11]
cmp rax, rdi
ja 0x180001e0a
test r10, r10
je 0x180001dfd
bt edx, 0x19
jae 0x180001db0
cmp r11, rcx
jne 0x180001dfd
cmp dword [r8 + 0x38], esi
je 0x180001d93
xor edx, edx
mov rax, r10
div rsi
test rdx, rdx
jne 0x180001dfd
mov r8d, 0x4000
mov rdx, r10
mov rcx, r11
call qword [r13 + 0x28]
mov edx, dword [rbx]
mov r11, rbp
mov rcx, rdi
mov r10, r12
jmp 0x180001e2b
mov eax, edx
shr eax, 0x1d
and eax, 1
movsxd rcx, eax
mov eax, edx
shr eax, 0x1e
and eax, 1
cdqe
lea rcx, [rax + rcx*2]
mov eax, edx
shr eax, 0x1f
lea rcx, [rax + rcx*2]
lea rax, [0x180010f70]
mov r8d, dword [rax + rcx*4]
bt edx, 0x1a
jae 0x180001de8
bts r8d, 9
lea r9, [rsp + 0x50]
mov rdx, r10
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180001e72
mov edx, dword [rbx]
mov r11, rbp
mov rcx, rdi
mov r10, r12
jmp 0x180001e2b
mov eax, dword [rbx]
bt eax, 0x19
jae 0x180001e1c
bt edx, 0x19
jae 0x180001e1c
or edx, eax
jmp 0x180001e22
or edx, eax
btr edx, 0x19
mov r10, r12
sub r10, r11
add r10, rbp
mov r8, qword [r13]
inc r14d
add rbx, 0x28
movzx eax, word [r8 + 6]
cmp r14d, eax
jl 0x180001d20
mov ebx, 1
lea rdi, [0x180010f70]
test r10, r10
je 0x180001ebc
bt edx, 0x19
jae 0x180001e76
cmp r11, rcx
jne 0x180001ebc
mov r8d, 0x4000
mov rdx, r10
mov rcx, r11
call qword [r13 + 0x28]
jmp 0x180001ebc
xor eax, eax
jmp 0x180001ebe
mov eax, edx
shr eax, 0x1d
and eax, 1
movsxd rcx, eax
mov eax, edx
shr eax, 0x1e
and eax, 1
cdqe
lea rcx, [rax + rcx*2]
mov eax, edx
shr eax, 0x1f
lea rcx, [rax + rcx*2]
mov r8d, dword [rdi + rcx*4]
bt edx, 0x1a
jae 0x180001ea7
bts r8d, 9
lea r9, [rsp + 0x50]
mov rdx, r10
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180001e72
mov eax, ebx
mov r12, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
pop rdi
pop rbx
ret
Function at 0x1800025f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rsi, r9
mov rbp, r8
mov r12, rdx
mov r13, rcx
call fcn.1800037a0
mov r10, qword [rax + 0x18]
mov r15, qword [r10 + 0x20]
test r15, r15
je 0x1800027cf
mov r14, qword [rsp + 0x70]
mov r9d, 0xffff
mov r11d, 5
nop
movzx r8d, word [r15 + 0x48]
mov rdx, qword [r15 + 0x50]
xor ecx, ecx
test r8w, r8w
je 0x1800027cf
cmp r8w, 0x40
ja 0x1800027cf
movzx eax, byte [rdx]
ror ecx, 0x12
cmp al, 0x61
jb 0x180002674
movzx eax, al
sub eax, 0x20
cdqe
jmp 0x180002677
movzx eax, al
add rcx, rax
inc rdx
add r8w, r9w
jne 0x180002660
cmp ecx, 0x603d1c31
jne 0x1800027c3
mov r9, qword [r15 + 0x20]
movsxd rax, dword [r9 + 0x3c]
mov edi, dword [rax + r9 + 0x88]
mov r10d, dword [rdi + r9 + 0x20]
mov ebx, dword [rdi + r9 + 0x24]
add r10, r9
add rbx, r9
nop
cmp word [r10], 0
je 0x1800027b7
mov edx, dword [r10]
add rdx, r9
xor ecx, ecx
movzx eax, byte [rdx]
nop word [rax + rax]
ror ecx, 0x12
movsx eax, al
inc rdx
add ecx, eax
movzx eax, byte [rdx]
test al, al
jne 0x1800026d0
cmp ecx, 0x91ace12
je 0x18000270a
cmp ecx, 0x1a630824
je 0x18000270a
cmp ecx, 0xdfa81d5b
je 0x18000270a
cmp ecx, 0xd3e1d296
je 0x18000270a
cmp ecx, 0xf747c46f
jne 0x180002784
mov eax, dword [rdi + r9 + 0x1c]
movzx edx, word [rbx]
lea r8, [r9 + rax]
cmp ecx, 0x91ace12
jne 0x18000272b
mov eax, dword [r8 + rdx*4]
add rax, r9
mov qword [rbp], rax
jmp 0x18000277b
cmp ecx, 0x1a630824
jne 0x18000273f
mov eax, dword [r8 + rdx*4]
add rax, r9
mov qword [rsi], rax
jmp 0x18000277b
cmp ecx, 0xdfa81d5b
jne 0x180002754
mov eax, dword [r8 + rdx*4]
add rax, r9
mov qword [r13], rax
jmp 0x18000277b
cmp ecx, 0xd3e1d296
jne 0x180002769
mov eax, dword [r8 + rdx*4]
add rax, r9
mov qword [r12], rax
jmp 0x18000277b
cmp ecx, 0xf747c46f
jne 0x18000277b
mov eax, dword [r8 + rdx*4]
add rax, r9
mov qword [r14], rax
mov eax, 0xffff
add r11w, ax
cmp qword [rbp], 0
je 0x1800027a5
cmp qword [rsi], 0
je 0x1800027a5
cmp qword [r13], 0
je 0x1800027a5
cmp qword [r12], 0
je 0x1800027a5
cmp qword [r14], 0
jne 0x1800027ee
add r10, 4
add rbx, 2
test r11w, r11w
jne 0x1800026b0
mov r11d, 5
mov r9d, 0xffff
mov r15, qword [r15]
test r15, r15
jne 0x180002640
xor al, al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov al, 1
jmp 0x1800027d1
Function at 0x180002a20
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
mov rcx, qword [rdx]
lea rdx, [0x1800028f0]
call qword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerW]
mov qword [0x1800128b8], rax
test rax, rax
je 0x180002bdd
mov qword [rsp + 0x40], rbx
lea rdx, [0x180010f50]
mov qword [rsp + 0x30], rdi
xor edi, edi
mov rcx, rax
mov dword [0x180010f54], 2
mov dword [0x180010f5c], edi
mov dword [0x180010f64], 1
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov rcx, qword [0x1800128b8]
lea rdx, [0x180010f50]
mov byte [0x180012898], dil
mov dword [0x180010f54], 4
mov dword [0x180010f5c], edi
mov dword [0x180010f64], edi
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
lea edx, [rdi + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [0x1800128a0], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
lea r8, [0x180002ee0]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov qword [0x1800128a8], rax
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x180010f54]
mov rbx, rax
cmp ecx, 1
je 0x180002b20
cmp ecx, 3
je 0x180002b20
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x180010f54]
cmp ecx, 1
jne 0x180002b05
mov rcx, qword [0x1800128a0]
mov byte [0x180012898], 1
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [0x1800128a8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1800128a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1800128a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x1800128b8]
lea rdx, [0x180010f50]
mov dword [0x180010f54], 3
mov dword [0x180010f5c], edi
mov dword [0x180010f64], 1
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov rcx, qword [0x1800128b8]
lea rdx, [0x180010f50]
mov dword [0x180010f54], 1
mov dword [0x180010f5c], edi
mov dword [0x180010f64], edi
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x180003dd3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180010070]
jne 0x1800037da
rol rcx, 0x10
test cx, 0xffff
jne 0x1800037d6
repz ret
ror rcx, 0x10
jmp 0x180003d2c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180011840]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180011938]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180003db1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x180011840]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x180003dd3
mov rax, qword [rsp + 0x88]
mov qword [0x180011938], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1800118d8], rax
mov rax, qword [0x180011938]
mov qword [0x1800117b0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1800118c0], rax
mov dword [0x1800117a0], 0xc0000409
mov dword [0x1800117a4], 1
mov rax, qword [0x180010070]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180010078]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180011838], eax
mov ecx, 1
call fcn.180005d2c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18000b320]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180011838], 0
jne 0x180003e5a
mov ecx, 1
call fcn.180005d2c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x180006b28
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x180010070]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.180004cd4
xor ebx, ebx
cmp qword [0x1800127b8], rbx
mov rdi, rax
jne 0x180006c3b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x180006d12
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180006d12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1800127b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1800127c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1800127c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1800127d8], rax
test rax, rax
je 0x180006c32
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1800127d0], rax
jmp 0x180006c42
mov rax, qword [0x1800127d0]
jmp 0x180006c49
mov rax, qword [0x1800127d0]
mov r11, qword [0x1800127d8]
cmp rax, rdi
je 0x180006cb0
cmp r11, rdi
je 0x180006cb0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1800127d8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x180006cb0
test rax, rax
je 0x180006cb0
call rsi
test rax, rax
je 0x180006caa
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180006caa
test byte [rsp + 0x40], 1
jne 0x180006cb0
bts ebp, 0x15
jmp 0x180006cf0
mov rcx, qword [0x1800127c0]
cmp rcx, rdi
je 0x180006cf0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180006cf0
call rax
mov rbx, rax
test rax, rax
je 0x180006cf0
mov rcx, qword [0x1800127c8]
cmp rcx, rdi
je 0x180006cf0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180006cf0
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1800127b8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180006d12
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x180006d14
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800037c0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400022c0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x180
mov rax, qword [0x140051098]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x60]
xor edi, edi
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
lea edx, [rdi + 0x1c]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
xorps xmm0, xmm0
test eax, eax
jne 0x140002350
xorps xmm1, xmm1
lea rax, [rsp + 0x60]
movdqu xmmword [rsp + 0x50], xmm1
mov r8, 0xffffffffffffffff
movups xmmword [rsp + 0x40], xmm0
inc r8
cmp byte [rax + r8], dil
jne 0x140002325
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.14000cf10
movups xmm0, xmmword [rsp + 0x40]
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm1
jmp 0x14000236d
movups xmmword [rbx], xmm0
xor r8d, r8d
mov qword [rbx + 0x10], rdi
lea rdx, [0x1400486fd]
mov qword [rbx + 0x18], rdi
mov rcx, rbx
call fcn.14000cf10
mov rax, rbx
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140014f90
mov rbx, qword [rsp + 0x198]
add rsp, 0x180
pop rdi
ret
Function at 0x140002920
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x140051098]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rax, rdx
mov rdi, rcx
mov qword [rsp + 0x68], rcx
xor r14d, r14d
cmp qword [rdx + 0x18], 0x10
jb 0x14000295c
mov rax, qword [rdx]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1400029aa
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
jne 0x1400029cf
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
xor r8d, r8d
lea rdx, [0x1400486fd]
mov rcx, rdi
call fcn.14000cf10
jmp 0x140002ad9
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], r14b
mov rbx, rsi
test eax, eax
jne 0x1400029fc
mov qword [rsp + 0x58], rbx
mov byte [rsp + rsi + 0x48], al
jmp 0x140002a30
lea rcx, [rsp + 0x48]
cmp rbx, 0xf
ja 0x140002a1d
mov qword [rsp + 0x58], rbx
mov r8, rbx
xor edx, edx
call fcn.140017670
mov byte [rsp + rsi + 0x48], 0
jmp 0x140002a30
mov byte [rsp + 0x20], 0
mov r9, rbx
xor r8d, r8d
mov rdx, rbx
call fcn.14000d820
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rdx, qword [rsp + 0x48]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x68]
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140002a7f
cmp dword [rsp + 0x68], esi
jne 0x140002a7f
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rdi + 0x10], xmm1
jmp 0x140002ad9
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
xor r8d, r8d
lea rdx, [0x1400486fd]
mov rcx, rdi
call fcn.14000cf10
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140002ad9
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002ad4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002b01
call fcn.140014fb0
mov rax, rdi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140014f90
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.140023880
int3
Function at 0x1400068e0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140006902
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14000697c
mov rdi, r14
mov rcx, rbx
call fcn.14000a270
test rax, rax
jle 0x140006954
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140016fb0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000696c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140006974
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140006916
sub r14, rdi
jmp 0x140006a5f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140006993
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140006995
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400069c7
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140016fb0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140006a5c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140006a02
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x140006a3d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140023070
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x140006a5c
cmp rbp, rax
ja 0x140006a10
test rbp, rbp
je 0x140006a5c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140023070
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret

Function at 0x140015cdc
Capabilities:
Parse pe header

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

Function at 0x140025454
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140025250
Function at 0x1400287bc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400287d2
mov al, 1
jmp 0x140028832
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400287e3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140028830
mov ecx, dword [rcx + 0x18]
nop
call fcn.140032490
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140028830
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140028830
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140028830
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140028832
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14002ca68
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.140015880
sub rsp, rax
mov rax, qword [0x140051098]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002869c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002cab7
mov rax, rbp
jmp 0x14002cbbf
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 + 0x53920]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002e488
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x53920]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002cbbb
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 0x14002cbbb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002e488
test rax, rax
js 0x14002cbbb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002cbbb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002cbad
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002cbad
cmp byte [rcx], 0xd
jne 0x14002cb93
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002cba2
cmp byte [rcx + 1], 0xa
jne 0x14002cba2
inc rcx
jmp 0x14002cba2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x51480]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002cb75
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002cbbf
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140014f90
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 0x14002d828
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, [0x140053920]
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 0x14002d87f
cmp word [rdx], r13w
jne 0x14002d87f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14002d884
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14002d9a9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14002d9ca
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14002d8bd
mov rdx, r9
mov word [rbx], cx
jmp 0x14002d8e4
cmp r9, r8
jae 0x14002d8f4
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 0x14002d89e
jmp 0x14002d9a9
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 0x14002d99e
cmp dword [rsp + 0x80], esi
je 0x14002d99e
lea r8, [0x140053920]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14002d976
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002d946
mov word [rbx], r13w
jmp 0x14002d9a6
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 0x14002d953
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14002d9a6
cmp word [rsp + 0x70], r13w
jne 0x14002d983
cmp rbx, r14
je 0x14002d940
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002e490
cmp word [rsp + 0x70], r13w
je 0x14002d9a9
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, [0x140053920]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002d9a3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14002d9a9