joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002f790
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov r9, qword [rcx + 0x190]
mov r10, rcx
movsxd rax, edx
imul rbx, rax, 0x68
add rbx, qword [rcx + 0x18]
mov dword [rcx + 0x7c], edx
test dword [rbx], 0x10000
movss xmm0, dword [rbx + 0x34]
je 0x14002f7cc
addss xmm0, dword [rcx + 0x94]
lea rsi, [r9 + 0xd8]
movss dword [rsi], xmm0
movss xmm1, dword [rcx + 0xc8]
addss xmm1, dword [rcx + 0x84]
movss dword [r9 + 0xf0], xmm0
subss xmm0, dword [r9 + 0x10]
movss dword [r9 + 0xdc], xmm1
subss xmm0, dword [r9 + 0x118]
movss dword [r9 + 0x11c], xmm0
mov eax, dword [rcx + 0x90]
mov dword [r9 + 0x110], eax
movsx eax, byte [rbx + 0x62]
mov dword [r9 + 0x124], eax
movss dword [r9 + 0x1ec], xmm1
mov eax, dword [rbx + 0x34]
mov dword [r9 + 0x1e8], eax
mov eax, dword [rbx + 0x38]
mov dword [r9 + 0x1f0], eax
mov eax, dword [rbx + 0x3c]
mov dword [r9 + 0x18c], eax
cmp byte [rbx + 0x5a], 0
jne 0x14002f867
maxss xmm1, dword [rcx + 0x88]
movss dword [r9 + 0xdc], xmm1
movzx eax, byte [rbx + 0x60]
mov byte [r9 + 0x93], al
cmp byte [rbx + 0x60], 0
je 0x14002f88d
mov rax, qword [0x14004a9e8]
xor ecx, ecx
mov dword [rax + 0x1cd8], ecx
mov dword [rax + 0x1ce0], ecx
test dword [r10 + 4], 0x100000
je 0x14002f89f
mov r8d, 2
jmp 0x14002f915
movups xmm0, xmmword [rbx + 0x20]
mov rax, qword [r9 + 0x268]
movss xmm1, dword [rbx + 0x20]
movss xmm2, dword [rbx + 0x24]
movss xmm3, dword [rbx + 0x28]
movss xmm4, dword [rbx + 0x2c]
movups xmmword [r9 + 0x208], xmm0
movss dword [rax + 0x88], xmm1
movss dword [rax + 0x8c], xmm2
movss dword [rax + 0x90], xmm3
movss dword [rax + 0x94], xmm4
mov rax, qword [r9 + 0x268]
movsxd rdx, dword [rax + 0x58]
mov rcx, qword [rax + 0x60]
add rdx, rdx
movss dword [rcx + rdx*8 - 0x10], xmm1
movss dword [rcx + rdx*8 - 0xc], xmm2
movss dword [rcx + rdx*8 - 8], xmm3
movss dword [rcx + rdx*8 - 4], xmm4
movzx r8d, byte [rbx + 0x57]
mov rdx, qword [r9 + 0x268]
mov rcx, qword [r10 + 0x1a8]
call fcn.140025770
mov rdi, qword [0x14004a9e8]
cmp byte [rdi + 0x3124], 0
je 0x14002f95a
cmp byte [rbx + 0x60], 0
jne 0x14002f95a
xor r8d, r8d
lea rdx, [0x140041e20]
mov rcx, rsi
call fcn.1400183b0
mov dword [rdi + 0x3158], 0x7f7fffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140031e00
Capabilities:
Hash data with crc32

Disassembly:
mov rax, qword [0x14004a9e8]
mov rdx, qword [rax + 0x2068]
cmp ecx, 0xffffffff
jne 0x140031e1a
cmp dword [rdx + 0x7c], ecx
cmovne ecx, dword [rdx + 0x7c]
cmp ecx, dword [rdx + 0x74]
mov eax, 0xffffffff
cmove ecx, eax
test byte [rdx + 4], 7
je 0x140031e97
mov r10d, dword [rdx]
lea r8, [0x140041e11]
movzx eax, word [rdx + 0x80]
lea r11, [0x14003dc10]
not r10d
mov byte [rdx + 0x1f0], cl
mov ecx, r10d
mov byte [rdx + 0x1fe], 1
mov word [rdx + 0x82], ax
mov r9b, 0x23
cmp r9b, 0x23
jne 0x140031e73
cmp byte [r8], r9b
jne 0x140031e73
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140031e60
not ecx
jmp fcn.1400136f0
ret
Function at 0x140039790
Capabilities:
Hash data with crc32

Disassembly:
test dword [rcx + 0x10], 0x100000
je 0x14003980d
movzx r9d, byte [rdx]
lea r8, [rdx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x1400397e6
lea r11, [0x14003dc10]
cmp r9b, 0x23
jne 0x1400397c9
cmp byte [r8], r9b
jne 0x1400397c9
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1400397b6
mov rcx, qword [0x14004a9e8]
not eax
cmp dword [rcx + 0x1c6c], eax
jne 0x1400397fd
mov dword [rcx + 0x1c70], eax
cmp dword [rcx + 0x1ca8], eax
jne 0x140039820
mov byte [rcx + 0x1cac], 1
ret
mov rax, qword [0x14004a9e8]
mov rcx, qword [rax + 0x1c20]
jmp fcn.140008ac0
ret

Function at 0x14003c344
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003c38e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003c38e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003c38e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003c38e
cmp dword [rcx + 0x84], 0xe
jbe 0x14003c38e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003c390
xor al, al
add rsp, 0x28
ret
Function at 0x140001f70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, rdx
mov rdi, rcx
mov rcx, rax
lea rdx, [0x140039ab8]
call fcn.140010bfc
mov rsi, rax
test rax, rax
jne 0x140001fb1
lea rcx, str.Failed_to_open_file
call fcn.1400110f0
mov rax, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov qword [rsp + 0x30], rbx
mov r8d, 2
mov rcx, rsi
call fcn.140011484
mov rcx, rsi
call fcn.140010a5c
mov rcx, rsi
movsxd rbx, eax
call fcn.14001478c
mov rcx, rbx
call fcn.14001547c
mov qword [rdi], rax
test rax, rax
jne 0x140002010
lea rcx, str.Failed_to_allocate_buffer
call fcn.1400110f0
mov rcx, rsi
call fcn.140010f1c
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, rsi
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.140014f98
cmp rax, rbx
je 0x140001ff5
lea rcx, str.Failed_to_read_file
call fcn.1400110f0
mov rcx, rsi
call fcn.140010f1c
mov rcx, qword [rdi]
call fcn.140014c2c
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140002060
Capabilities:
Enumerate pe sections

Disassembly:
push r12
push r14
sub rsp, 0x38
mov rax, qword [rcx]
mov r12, rcx
movsxd r14, dword [rax + 0x3c]
add r14, rax
jne 0x14000209b
mov ecx, 2
call fcn.140010d28
mov rcx, rax
lea rdx, str.Failed_to_get_NT_Headers_n
call fcn.140001150
xor eax, eax
add rsp, 0x38
pop r14
pop r12
ret
movzx edx, word [r14 + 0x14]
movzx r9d, word [r14 + 6]
add rdx, 0x18
mov qword [rsp + 0x50], rbx
add rdx, r14
mov qword [rsp + 0x30], rdi
xor edi, edi
mov r8d, edi
test r9d, r9d
je 0x1400021d1
lea rbx, str..reloc
nop dword [rax + rax]
mov rax, rdi
movzx ecx, byte [rdx + rax]
inc rax
cmp cl, byte [rbx + rax - 1]
jne 0x1400021c1
cmp rax, 7
jne 0x1400020d3
add dword [rdx + 8], 0x1000
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x28], r13
movsxd r13, dword [rdx + 0x10]
mov qword [rsp + 0x20], r15
lea eax, [r13 + 0x1000]
mov dword [rdx + 0x10], eax
add dword [r14 + 0x50], 0x1000
mov ecx, dword [r14 + 0x50]
call fcn.14001547c
mov r8d, dword [r14 + 0x54]
mov rcx, rax
mov rdx, qword [r12]
mov r15, rax
call fcn.14002bed0
movzx esi, word [r14 + 0x14]
mov ebp, edi
add rsi, 0x18
add rsi, r14
cmp di, word [r14 + 6]
jae 0x14000220f
mov rcx, rdi
movzx eax, byte [rsi + rcx]
inc rcx
cmp al, byte [rbx + rcx - 1]
jne 0x1400021e6
cmp rcx, 7
jne 0x140002153
mov ecx, 0x1000
call fcn.14001547c
mov edx, 0xcc
mov r8d, 0x1000
mov rcx, rax
mov rdi, rax
call fcn.14002c570
mov ecx, dword [rsi + 0x14]
mov r8, r13
mov rdx, qword [r12]
add rdx, rcx
add rcx, r15
call fcn.14002bed0
mov ecx, dword [rsi + 0x14]
mov r8d, 0x1000
add rcx, r13
mov rdx, rdi
add rcx, r15
call fcn.14002bed0
xor edi, edi
lea rbx, str..reloc
jmp 0x1400021fc
add rdx, 0x28
inc r8d
cmp r8d, r9d
jl 0x1400020d0
mov rbx, qword [rsp + 0x50]
xor eax, eax
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r14
pop r12
ret
mov ecx, dword [rsi + 0x14]
mov rdx, qword [r12]
mov r8d, dword [rsi + 0x10]
add rdx, rcx
add rcx, r15
call fcn.14002bed0
movzx ecx, word [r14 + 6]
add rsi, 0x28
inc ebp
cmp ebp, ecx
jl 0x140002150
mov rcx, qword [r12]
call fcn.140014c2c
mov rsi, qword [rsp + 0x60]
mov eax, r13d
mov r13, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x30]
mov qword [r12], r15
mov r15, qword [rsp + 0x20]
add rsp, 0x38
pop r14
pop r12
ret
Function at 0x140002250
Capabilities:
Encode data using xor

Disassembly:
push r12
push r15
sub rsp, 0x48
mov rax, qword [rcx]
mov r15d, r8d
movaps xmmword [rsp + 0x30], xmm6
mov r12, rcx
movd xmm6, r8d
pshufd xmm6, xmm6, 0
movsxd r9, dword [rax + 0x3c]
add r9, rax
jne 0x1400022a2
mov ecx, 2
call fcn.140010d28
mov rcx, rax
lea rdx, str.Failed_to_get_NT_Headers_n
call fcn.140001150
xor al, al
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop r15
pop r12
ret
movzx r8d, word [r9 + 6]
mov qword [rsp + 0x60], rbx
movzx ebx, word [r9 + 0x14]
add rbx, 0x18
mov qword [rsp + 0x78], rdi
xor edi, edi
add rbx, r9
mov edx, edi
test r8d, r8d
je 0x140002430
lea r9, [0x140039b88]
mov rax, rdi
movzx ecx, byte [rbx + rax]
inc rax
cmp cl, byte [r9 + rax - 1]
jne 0x140002421
cmp rax, 6
jne 0x1400022d4
mov qword [rsp + 0x68], rbp
movsxd rbp, dword [rbx + 0x10]
mov qword [rsp + 0x70], rsi
mov rcx, rbp
mov qword [rsp + 0x40], r14
mov r14, rbp
call fcn.14001547c
mov ebx, dword [rbx + 0x14]
mov r8, rbp
add rbx, qword [r12]
mov rcx, rax
mov rdx, rbx
mov rsi, rax
call fcn.14002bed0
mov ecx, edi
test ebp, ebp
jle 0x1400023cd
cmp ebp, 0x10
jb 0x1400023cd
mov eax, ebp
and eax, 0x8000000f
jge 0x140002345
dec eax
or eax, 0xfffffff0
inc eax
andps xmm6, xmmword [0x140039cb0]
sub ebp, eax
packuswb xmm6, xmm6
mov rdx, rsi
packuswb xmm6, xmm6
mov r8, rsi
movdqa xmmword [rsp + 0x20], xmm6
mov eax, dword [rsp + 0x20]
movsxd r9, ebp
nop dword [rax]
movd xmm1, dword [rsi + rdi]
lea rdx, [rdx + 0x10]
movd xmm0, eax
lea r8, [r8 + 0x10]
xorps xmm1, xmm0
add ecx, 0x10
movd dword [rsi + rdi], xmm1
movd xmm2, dword [rdx - 0xc]
movd xmm0, eax
xorps xmm2, xmm0
movd xmm0, eax
movd dword [r8 - 0xc], xmm2
movd xmm1, dword [rsi + rdi + 8]
xorps xmm1, xmm0
movd xmm2, eax
movd dword [rsi + rdi + 8], xmm1
movd xmm0, dword [rsi + rdi + 0xc]
xorps xmm2, xmm0
movd dword [rsi + rdi + 0xc], xmm2
add rdi, 0x10
cmp rdi, r9
jl 0x140002370
mov rbp, qword [rsp + 0x68]
movsxd r8, ecx
cmp r8, r14
jge 0x1400023fd
mov rdx, r14
lea rax, [r8 + rsi]
sub rdx, r8
nop dword [rax]
nop dword [rax + rax]
xor byte [rax], r15b
lea rax, [rax + 1]
sub rdx, 1
jne 0x1400023f0
mov r8, r14
mov rdx, rsi
mov rcx, rbx
call fcn.14002bed0
mov rcx, rsi
call fcn.140014c2c
mov r14, qword [rsp + 0x40]
mov al, 1
mov rsi, qword [rsp + 0x70]
jmp 0x140002432
add rbx, 0x28
inc edx
cmp edx, r8d
jl 0x1400022d1
xor al, al
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop r15
pop r12
ret
Function at 0x140002980
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x14003f040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
mov dword [rsp + 0x20], 0x130
mov ecx, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140002a09
nop dword [rax]
lea rcx, [rsp + 0x4c]
mov r8, rdi
sub r8, rcx
nop dword [rax + rax]
movzx edx, byte [rcx]
movzx eax, byte [rcx + r8]
sub edx, eax
jne 0x1400029f3
inc rcx
test eax, eax
jne 0x1400029e0
mov rcx, rbx
test edx, edx
je 0x140002a35
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1400029d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000a650
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
jmp 0x140002a14

Function at 0x140002a80
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push rbp
push rdi
sub rsp, 0x48
movsxd rax, dword [r8 + 0x3c]
mov rdi, r8
mov rbp, rdx
cmp dword [rax + r8 + 0x94], 0
je 0x140002bcc
mov qword [rsp + 0x78], r14
mov r14d, dword [rax + r8 + 0x90]
add r14, 0xc
add r14, r8
mov eax, dword [r14]
test eax, eax
je 0x140002bc7
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], r12
xor r12d, r12d
mov qword [rsp + 0x40], r15
nop word [rax + rax]
mov ebx, eax
lea rcx, [0x140039ba0]
add rbx, rdi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [0x140039b90]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rbx + r8], r12b
jne 0x140002b10
inc r8
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x3000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
mov r9, 0xffffffffffffffff
nop
inc r9
cmp byte [rbx + r9], r12b
jne 0x140002b40
inc r9
mov qword [rsp + 0x20], r12
mov r8, rbx
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], r12
mov r9, r15
mov dword [rsp + 0x28], r12d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, dword [r14 + 0x14]
add r14, 0x14
test eax, eax
jne 0x140002ae0
mov r15, qword [rsp + 0x40]
mov r12, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov r14, qword [rsp + 0x78]
add rsp, 0x48
pop rdi
pop rbp
ret
Function at 0x140003430
Capabilities:
Create process on windows
Create process suspended
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x210
mov rax, qword [0x14003f040]
xor rax, rsp
mov qword [rsp + 0x200], rax
mov r8d, 0x104
lea rdx, [rsp + 0xf0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x84], xmm0
movups xmmword [rsp + 0x94], xmm0
movups xmmword [rsp + 0xa4], xmm0
movups xmmword [rsp + 0xb4], xmm0
movups xmmword [rsp + 0xc4], xmm0
movups xmmword [rsp + 0xd4], xmm0
mov dword [rsp + 0xe4], eax
mov dword [rsp + 0x80], 0x68
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.C:Program_Files__x86_MicrosoftEdgeApplicationmsedge.exe
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x14000359d
call fcn.140006600
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
call fcn.140004600
mov rdi, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
mov rcx, qword [rcx + rax + 0x40]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x58], rcx
mov rdx, qword [rcx]
call qword [rdx + 8]
nop
lea rcx, [rsp + 0x50]
call fcn.1400064c0
mov rcx, qword [rax]
mov r8, qword [rcx + 0x40]
mov dl, 0xa
mov rcx, rax
call r8
movzx esi, al
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140003582
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test rax, rax
je 0x140003582
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
movzx edx, sil
mov rcx, rdi
call fcn.140007c20
mov rcx, rdi
call fcn.140006120
mov ebp, 1
jmp 0x1400035a1
mov ebp, dword [rsp + 0x70]
lea rdx, [0x140039ab8]
lea rcx, [rsp + 0xf0]
call fcn.140010bfc
mov rdi, rax
test rax, rax
jne 0x1400035cb
lea rcx, str.Failed_to_open_file
call fcn.1400110f0
jmp 0x140003615
xor edx, edx
mov r8d, 2
mov rcx, rdi
call fcn.140011484
mov rcx, rdi
call fcn.140010a5c
movsxd rbx, eax
mov rcx, rdi
call fcn.14001478c
mov rsi, rbx
mov rcx, rbx
call fcn.14001547c
mov rbx, rax
test rax, rax
jne 0x140003657
lea rcx, str.Failed_to_allocate_buffer
call fcn.1400110f0
mov rcx, rdi
call fcn.140010f1c
mov qword [rsp + 0x50], rbx
lea r8, [rsp + 0xf0]
mov edx, ebp
lea rcx, [rsp + 0x50]
call fcn.140002be0
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.14000a650
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov r9, rdi
mov r8, rsi
mov edx, 1
mov rcx, rbx
call fcn.140014f98
cmp rax, rsi
je 0x14000360d
lea rcx, str.Failed_to_read_file
call fcn.1400110f0
mov rcx, rdi
call fcn.140010f1c
mov rcx, rbx
call fcn.140014c2c
jmp 0x140003615
Function at 0x140009944
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 0x140009972
xor eax, eax
jmp 0x140009a58
cmp qword [rcx + 0x68], 0
je 0x140009983
call fcn.140009a74
jmp 0x140009a58
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000999a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000999c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400099ce
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14002bed0
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 0x140009a52
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140009a05
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 0x140009a2e
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140014f98
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140009a52
cmp rsi, rbx
ja 0x140009a0c
test rsi, rsi
je 0x140009a52
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140014f98
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 0x14000b4fc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000b546
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000b546
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000b546
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000b546
cmp dword [rcx + 0x84], 0xe
jbe 0x14000b546
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000b548
xor al, al
add rsp, 0x28
ret
Function at 0x1400101bc
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 0x14001022b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001022b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001022b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001022b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001022b
cmp dword [rcx + 0x84], 0xe
jbe 0x14001022b
cmp dword [rcx + 0xf8], 0
je 0x14001022b
mov ecx, ebx
call fcn.1400102dc
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.1400100b8
nop
cmp dword [rbp + 0x20], 0
je 0x140010279
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140010284
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400101bc

Function at 0x1400103c0
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 0x14001022b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001022b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001022b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001022b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001022b
cmp dword [rcx + 0x84], 0xe
jbe 0x14001022b
cmp dword [rcx + 0xf8], 0
je 0x14001022b
mov ecx, ebx
call fcn.1400102dc
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.1400100b8
nop
cmp dword [rbp + 0x20], 0
je 0x140010279
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140010284
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400101bc
Function at 0x140010774
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.14000aca0
sub rsp, rax
mov rax, qword [0x14003f040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001adf0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400107c3
mov rax, rbp
jmp 0x1400108cb
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 + 0x6c88e0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001b2a0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x6c88e0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400108c7
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 0x1400108c7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001b2a0
test rax, rax
js 0x1400108c7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400108c7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400108b9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400108b9
cmp byte [rcx], 0xd
jne 0x14001089f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400108ae
cmp byte [rcx + 1], 0xa
jne 0x1400108ae
inc rcx
jmp 0x1400108ae
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3f430]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140010881
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400108cb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000a650
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret