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

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
movzx eax, byte [rcx]
mov ecx, dword [rdx + 0x34]
test cl, 0x10
jne 0x140097fe1
test cl, 0x20
jne 0x140098024
movzx r8d, al
cmp r8b, 0x64
jb 0x140098091
lea ecx, [r8 + r8*4]
lea r8d, [r8 + rcx*8]
shr r8d, 0xc
imul ecx, r8d, 0x64
sub al, cl
movzx eax, al
lea rcx, [0x140105e9e]
movzx eax, word [rcx + rax*2]
mov word [rbp - 0x47], ax
xor ecx, ecx
mov eax, r8d
jmp 0x14009809a
lea r9, [rbp + 0x38]
xor r8d, r8d
mov ecx, eax
nop word [rax + rax]
mov r10d, eax
and r10b, 0xf
shr cl, 4
lea r11d, [r10 + 0x30]
lea esi, [r10 + 0x57]
cmp r10b, 0xa
movzx r10d, r11b
movzx r11d, sil
cmovb r11d, r10d
mov byte [r9 - 1], r11b
dec r9
inc r8
cmp al, 0x10
mov eax, ecx
jae 0x140097ff0
jmp 0x140098062
lea r9, [rbp + 0x38]
xor r8d, r8d
mov ecx, eax
nop dword [rax]
mov r10d, eax
and r10b, 0xf
shr cl, 4
lea r11d, [r10 + 0x30]
lea esi, [r10 + 0x37]
cmp r10b, 0xa
movzx r10d, r11b
movzx r11d, sil
cmovb r11d, r10d
mov byte [r9 - 1], r11b
dec r9
inc r8
cmp al, 0x10
mov eax, ecx
jae 0x140098030
mov ecx, pe_nt_image_headers64
sub rcx, r8
cmp rcx, 0x81
jae 0x1400980eb
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r9
lea r8, str.0x0o0b00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899assertion_failed:_curr___19
mov r9d, 2
mov rcx, rdx
mov dl, 1
jmp 0x1400980db
mov ecx, 2
cmp al, 0xa
jae 0x1400980a2
or al, 0x30
mov byte [rbp + rcx - 0x48], al
jmp 0x1400980b7
lea rax, [0x140105e9e]
movzx eax, word [rax + r8*2]
mov word [rbp - 0x47], ax
mov ecx, 1
lea rax, [rcx + rbp]
add rax, 0xffffffffffffffb8
xor rcx, 3
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r8d, 1
mov rcx, rdx
mov dl, 1
xor r9d, r9d
call sym.core::fmt::Formatter::pad_integral::h2234512cecf63568
nop
add rsp, 0xb8
pop rsi
pop rbp
ret
lea r8, str.core_src_fmt_num.rs
mov edx, pe_nt_image_headers64
call sym.core::slice::index::slice_start_index_len_fail::h3c7122655f763a6e
int3
Function at 0x14009ef50
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rbx, rcx
lea rax, [rbp + 0x28]
mov ecx, 2
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
mov qword [rbp - 8], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x14009efc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
movsxd rsi, dword [0x140125244]
mov rbx, rcx
test esi, esi
jle 0x14009f0f0
mov rax, qword [0x140125248]
xor r9d, r9d
add rax, 0x18
nop dword [rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14009f00b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14009f093
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14009eff0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14009f112
mov rax, qword [0x140125248]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140125248]
lea rdx, [rbp - 0x30]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14009f0f7
mov eax, dword [rbp - 0xc]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14009f08c
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14009f0a0
add dword [0x140125244], 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 2
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140125248]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x14009f08c
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop word [rax + rax]
xor esi, esi
jmp 0x14009f018
mov rax, qword [0x140125248]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x14009f6a0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
lea r13, [0x1401252a0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140125280]
test rbx, rbx
je 0x14009f705
mov r12, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [rbx]
call r12
mov rsi, rax
call rdi
test rsi, rsi
je 0x14009f6fc
test eax, eax
jne 0x14009f6fc
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14009f6e0
mov rcx, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14009f940
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14009f958
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14009f960
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14009f970
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14009f9bd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x14009f9b4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14009f9bf
add rax, 0x28
cmp rax, r9
jne 0x14009f9a0
xor eax, eax
ret

Function at 0x14009f9c0
Capabilities:
Parse pe header

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x14009fa58
mov rdx, qword [0x140111f70]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14009fa46
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14009fa46
cmp word [rax + 0x18], 0x20b
jne 0x14009fa46
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x14009fa58
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x14009fa31
add rbx, 0x28
cmp rbx, rdi
je 0x14009fa58
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x14009fa28
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x14009fa70
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140111f70]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14009fa90
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14009fa98
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14009fa90
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14009faed
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14009fae4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14009fa90
add rax, 0x28
cmp rax, r9
jne 0x14009fad0
xor eax, eax
ret
Function at 0x14009faf0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140111f70]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14009fb0f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14009fb18
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14009fb0f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14009fb30
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140111f70]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14009fb50
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14009fb58
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14009fb50
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14009fba0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14009fb97
test rcx, rcx
je 0x14009fb50
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x14009fb88
xor eax, eax
ret

Function at 0x14009fbb0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140111f70]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14009fbcf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14009fbd8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x14009fbf0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140111f70]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14009fc10
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14009fc18
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14009fc10
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x14009fc10
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x14009fc64
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14009fc70
add rdx, 0x28
cmp rdx, r9
jne 0x14009fc50
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x14009fc80
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140111f70]
xor r8d, r8d
cmp word [r11], 0x5a4d
mov r10d, ecx
jne 0x14009fca4
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
cmp dword [rcx], 0x4550
je 0x14009fcb0
mov rax, r8
ret
cmp word [rcx + 0x18], 0x20b
jne 0x14009fca4
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x14009fca4
movzx edx, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rdx, [rcx + rdx + 0x18]
test r9w, r9w
je 0x14009fca4
lea ecx, [r9 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rdx + 0xc]
mov rcx, r8
cmp rax, r8
jb 0x14009fcfc
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x14009fd10
add rdx, 0x28
cmp r9, rdx
jne 0x14009fce8
xor r8d, r8d
mov rax, r8
ret
add rax, r11
jmp 0x14009fd20
sub r10d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x14009fd2e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14009fd05
test r10d, r10d
jg 0x14009fd18
mov r8d, dword [rax + 0xc]
add r8, r11
mov rax, r8
ret
Function at 0x180009720
Capabilities:
Terminate process

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
xor eax, eax
mov dword [rsp + 0x38], 0x1d9
mov dword [r11 + 8], eax
lea r9, [r11 + 0x10]
mov qword [r11 + 0x10], rax
lea r8, [r11 + 0x18]
mov qword [r11 + 0x18], rax
lea rdx, [r11 + 0x20]
mov qword [r11 + 0x20], rax
lea rcx, [r11 - 0x48]
lea rax, [0x180007e00]
add rax, 0x1d9
mov qword [rsp + 0x30], rax
lea rax, [r11 + 8]
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
mov qword [r11 - 0x58], rax
call fcn.180016200
mov ecx, 0x129e
mov byte [0x1800db961], 1
inc ecx
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea edx, [rdx + rdx*2]
cmp ecx, edx
jne 0x180009791
mov eax, 0x1cf9
mov ebx, 0xffff8edc
sub eax, ecx
sub ebx, ecx
mov edx, 0xffffde21
add ecx, 0x967
sub edx, eax
test cl, 1
je 0x1800097d4
inc ecx
test cl, 1
jne 0x1800097c8
lea ebp, [rax + rcx]
jmp 0x1800097d9
mov ebp, 0x2660
lea edi, [rax - 0x1060]
mov r11d, 0xffffd72e
lea esi, [rdx - 0x15aa]
mov eax, 0xffffe3fb
sub eax, r11d
lea edx, [rbp - 0x2f04]
sub edi, edx
lea r15d, [rsi*2 + 0x3c77]
mov r14d, esi
lea r12d, [rbp - 0x5ca2]
mov ecx, 0xffffd40b
mov r8d, 0x9ef0
add r8d, eax
add ecx, 0x1218
add ecx, r8d
add r12d, r8d
sub r14d, ecx
mov eax, 0x55555556
add r12d, edi
lea r9d, [r8 - 0x103b]
add r8d, 0xffffcc35
lea r10d, [r9 + 0x16cc]
add ebx, r9d
lea esi, [r11 + r14]
add esi, r8d
lea ebp, [r15 + rcx]
lea r8d, [rdx - 0x1161]
imul r10d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*2]
cmp r10d, ecx
je 0x18000988a
nop
inc r10d
mov eax, 0x55555556
imul r10d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*2]
cmp r10d, ecx
jne 0x180009870
sub r8d, esi
test r9b, 1
je 0x18000989c
inc r9d
test r9b, 1
jne 0x180009893
cmp esi, 0xffff7b5d
jne 0x1800098fb
cmp edi, 0x29e
jne 0x1800098fb
cmp r15d, 0xffffb8b1
jne 0x1800098fb
cmp r10d, 0xb250
jne 0x1800098fb
cmp r9d, 0x9b82
jne 0x1800098fb
cmp r11d, 0xffffd72e
jne 0x1800098fb
cmp r14d, 0xffff2c3d
jne 0x1800098fb
cmp r12d, 0x7819
jne 0x1800098fb
cmp ebp, 0x4a91
jne 0x1800098fb
cmp ebx, 0x17bf
jne 0x1800098fb
cmp r8d, 0x6a9e
je 0x180009907
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800194c0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x18001964f
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.180010730
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x180019614
mov qword [rsp + 0x38], rbp
movabs rdi, 0xcbf29ce484222325
movabs rbp, 0x100000001b3
nop dword [rax]
nop dword [rax + rax]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
mov edx, r9d
mov rcx, qword [rcx]
xor rdx, rdi
imul rdx, rbp
and r11, rdx
shl r11, 4
add r11, qword [rsi + 0x18]
mov r8, qword [r11]
cmp r8, rbx
jne 0x180019592
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x180019603
mov rdx, qword [r11 + 8]
cmp r9b, byte [rdx + 0x10]
jne 0x1800195cb
mov r10, qword [rdx]
cmp r10, rax
je 0x1800195c5
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x180019603
cmp r8, rdx
je 0x1800195df
mov rdx, qword [rdx + 8]
cmp r9b, byte [rdx + 0x10]
je 0x180019629
cmp r8, rdx
jne 0x1800195d0
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x180019560
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x180019603
lea rcx, [0x18013cd58]
call fcn.180079840
int3
Function at 0x1800813a0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1800813d7
call fcn.180086a2c
mov dword [rax], 0x16
call fcn.18008bcc0
xor eax, eax
jmp 0x180081465
mov rdx, r9
mov rcx, r8
call fcn.18008133c
mov rbx, rax
test rax, rax
je 0x180081462
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x180081268]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x18008144f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1800869a0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x180081436
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x180081445
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1800938d4
jmp 0x180081462
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x18008145f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x18008ec14
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 0x18008ec83
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18008ec83
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18008ec83
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18008ec83
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18008ec83
cmp dword [rcx + 0x84], 0xe
jbe 0x18008ec83
cmp dword [rcx + 0xf8], 0
je 0x18008ec83
mov ecx, ebx
call fcn.18008ed34
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.18008eb10
nop
cmp dword [rbp + 0x20], 0
je 0x18008ecd1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18008ecdc
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18008ec14
Function at 0x18009071c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180090732
mov al, 1
jmp 0x180090792
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180090743
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180090790
mov ecx, dword [rcx + 0x18]
nop
call fcn.18009d1c4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180090790
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180090790
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180090790
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180090792
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180096660
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.18007b610
sub rsp, rax
mov rax, qword [0x1800a8140]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800905fc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800966af
mov rax, rbp
jmp 0x1800967b7
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x122020]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180099044
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x122020]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800967b3
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 0x1800967b3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180099044
test rax, rax
js 0x1800967b3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800967b3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800967a5
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800967a5
cmp byte [rcx], 0xd
jne 0x18009678b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18009679a
cmp byte [rcx + 1], 0xa
jne 0x18009679a
inc rcx
jmp 0x18009679a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xa8730]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18009676d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800967b7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18007b560
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 0x1800983e4
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, [0x180122020]
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 0x18009843b
cmp word [rdx], r13w
jne 0x18009843b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180098440
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180098565
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180098586
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180098479
mov rdx, r9
mov word [rbx], cx
jmp 0x1800984a0
cmp r9, r8
jae 0x1800984b0
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 0x18009845a
jmp 0x180098565
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 0x18009855a
cmp dword [rsp + 0x80], esi
je 0x18009855a
lea r8, [0x180122020]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180098532
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180098502
mov word [rbx], r13w
jmp 0x180098562
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 0x18009850f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180098562
cmp word [rsp + 0x70], r13w
jne 0x18009853f
cmp rbx, r14
je 0x1800984fc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18009904c
cmp word [rsp + 0x70], r13w
je 0x180098565
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, [0x180122020]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18009855f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180098565