joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011a30
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x140011ab5
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x140011af6
cmp dword [rsp + 0x2c], 0
je 0x140011ada
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140011b10
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1400470f0]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1400470f0], rsi
jne 0x140011a90
mov byte [0x1400470e8], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x140011aec
call sub.kernel32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x140011b5c
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x140011adf
mov edi, dword [rsp + 0x28]
jmp 0x140011aec
mov edi, dword [rsi + 0x18]
jmp 0x140011aea
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.kernel32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.140011bc0
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.called__Option::unwrap____on_a__None__value_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_alloc_srccollections_btree_navigate.rsinvalid_args
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.140003120
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.called__Option::unwrap____on_a__None__value_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_alloc_srccollections_btree_navigate.rsinvalid_args
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.140011c10
ud2
Function at 0x140011ec0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x50
mov rax, qword [rcx]
cmp byte [rax], 0
mov byte [rax], 0
je 0x1400120e6
mov byte [rsp + 0x2e], 0
mov rax, qword [0x140047080]
cmp rax, 3
jne 0x140012092
cmp byte [rsp + 0x2e], 0
jne 0x1400120a7
mov ecx, dword [0x140037088]
test ecx, ecx
je 0x1400120ad
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140011f1d
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x140011fb9
mov ecx, dword [0x140037088]
test ecx, ecx
je 0x1400120c0
dec ecx
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x140011f6b
mov rsi, rax
cmp rax, 1
jne 0x140011fb3
lea rax, [0x14003fc68]
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destructionlibrary_std_src_threadlocal.rs
lea r9, [0x14003f438]
lea r8, [rsp + 0x2f]
mov edx, 0x46
call fcn.1400049d0
ud2
movzx eax, byte [0x140047030]
mov ecx, 0x10
mov edx, 8
call fcn.140002620
test rax, rax
je 0x14001212b
mov rsi, rax
lea rax, [0x140037070]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x140037088]
test ecx, ecx
je 0x1400120d3
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
mov rax, qword [0x140047048]
cmp rax, rsi
jne 0x140011fed
mov eax, dword [0x140047078]
inc eax
jne 0x14001200d
lea rcx, str.lock_count_overflow_in_reentrant_mutexlibrary_std_src_sync_remutex.rs
lea r8, [0x14003ffa0]
mov edx, 0x26
call fcn.140004c40
ud2
lea rcx, [0x140047040]
call sub.kernel32.dll_TryAcquireSRWLockExclusive
test al, al
je 0x1400120a7
mov qword [0x140047048], rsi
mov eax, 1
mov dword [0x140047078], eax
mov qword [rsp + 0x30], 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x46], 0
cmp qword [0x140047050], 0
jne 0x140012100
mov qword [0x140047050], 0xffffffffffffffff
lea rcx, [0x140047058]
call fcn.140012220
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [0x140047068], xmm1
movups xmmword [0x140047058], xmm0
inc qword [0x140047050]
dec dword [0x140047078]
jne 0x1400120a7
mov qword [0x140047048], 0
lea rcx, [0x140047040]
call sub.kernel32.dll_ReleaseSRWLockExclusive
jmp 0x1400120a7
lea rcx, [rsp + 0x2e]
call fcn.140012190
cmp byte [rsp + 0x2e], 0
je 0x140011ef5
add rsp, 0x50
pop rsi
ret
lea rcx, [0x140037070]
call fcn.140011a30
mov ecx, eax
jmp 0x140011f05
lea rcx, [0x140037070]
call fcn.140011a30
mov ecx, eax
jmp 0x140011f2d
lea rcx, [0x140037070]
call fcn.140011a30
mov ecx, eax
jmp 0x140011fab
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_alloc_srccollections_btree_navigate.rsinvalid_args
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call fcn.140003fc0
ud2
lea rax, [0x14003fbe8]
mov qword [rsp + 0x20], rax
lea rcx, str.already_borrowedlibrary_std_srcio_stdio.rs
lea r9, [0x14003f458]
lea r8, [rsp + 0x2f]
mov edx, 0x10
call fcn.1400049d0
ud2
mov ecx, 8
mov edx, 0x10
call fcn.140002a80
ud2
Function at 0x140013000
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x140037048]
test ecx, ecx
je 0x1400130bd
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x140013030
cmp qword [rax + 8], 0
je 0x140013030
add rax, 0x10
jmp 0x1400130b7
mov ecx, dword [0x140037048]
test ecx, ecx
je 0x1400130d0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400130b5
mov rsi, rax
test rax, rax
jne 0x14001309b
movzx eax, byte [0x140047030]
mov ecx, 0x20
mov edx, 8
call fcn.140002620
test rax, rax
je 0x1400130f3
mov rsi, rax
lea rax, [0x140037030]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140037048]
test ecx, ecx
je 0x1400130e3
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x1400130b7
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140037030]
call fcn.140011a30
mov ecx, eax
jmp 0x140013015
lea rcx, [0x140037030]
call fcn.140011a30
mov ecx, eax
jmp 0x140013040
lea rcx, [0x140037030]
call fcn.140011a30
mov ecx, eax
jmp 0x140013093
mov ecx, 8
mov edx, 0x20
call fcn.140002a80
ud2

Function at 0x140015c50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
movzx r11d, byte [rdx + 0x38]
cmp r11b, 1
ja 0x140015cb8
movzx r10d, byte [rdx + 0x10]
movzx r8d, byte [rdx + 0x3a]
xor eax, eax
movzx r9d, r10b
test r8b, r8b
jne 0x140015e06
cmp r10b, 5
jb 0x140015e06
mov r10, qword [rdx]
mov rax, qword [rdx + 8]
xor esi, esi
test r11b, r11b
jne 0x140015ca8
cmp r9b, 6
je 0x140015ca8
mov esi, 2
cmp rax, 2
jb 0x140015ead
cmp rsi, rax
jne 0x140015dc9
xor eax, eax
jmp 0x140015e06
xor eax, eax
xor r8d, r8d
xor r10d, r10d
add rax, r10
lea rdi, [r10 + rsi]
inc rdi
cmp rdi, rax
invalid
sete al
movzx r10d, byte [r10 + rsi]
invalid
test al, 1
jne 0x140015dfb
cmp r10b, 0x2e
jne 0x140015dfb
lea r8, [0x14003fdb0]
mov ecx, 2
jmp 0x140015ea3
Function at 0x140035570
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140036310
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140036310
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400355e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400471f4]
mov rbx, rcx
test esi, esi
jle 0x140035710
mov rax, qword [0x1400471f8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14003562b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400356b5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140035610
mov rcx, rbx
call fcn.140036030
mov rdi, rax
test rax, rax
je 0x140035732
mov rax, qword [0x1400471f8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140036170
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400471f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140035717
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400356ae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400356c0
add dword [0x1400471f4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400471f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400356ae
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140035570
nop dword [rax]
xor esi, esi
jmp 0x140035638
mov rax, qword [0x1400471f8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140035570
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140035570
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140035ca0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140047260]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140047240]
test rbx, rbx
je 0x140035cfc
mov rbp, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140035cf3
test rsi, rsi
je 0x140035cf3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140035cd8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140036030
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140041590]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140036050
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140036058
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140036050
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400360ad
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 0x1400360a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140036050
add rax, 0x28
cmp rax, r9
jne 0x140036090
xor eax, eax
ret

Function at 0x1400360b0
Capabilities:
Parse pe header

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

Function at 0x140036170
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140041590]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14003618f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140036198
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x180db0058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x180db01df
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 0x180db0089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180db006f
add dl, dl
jne 0x180db0096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180db00f6
xor eax, eax
add dl, dl
jne 0x180db00a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180db01ad
add dl, dl
jne 0x180db00b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180db00c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180db00d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180db00dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x180db00ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x180db007e
mov eax, 1
add dl, dl
jne 0x180db0106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180db0113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180db00fb
sub eax, ebx
mov ebx, 1
jne 0x180db014c
mov ecx, 1
add dl, dl
jne 0x180db012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180db013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180db0123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180db007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180db0168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180db0175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180db015d
cmp eax, 0x7d00
jae 0x180db019b
cmp eax, 0x500
jb 0x180db0196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180db007e
cmp eax, 0x7f
ja 0x180db019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180db007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x180db01d2
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 0x180db007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001fa0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov dword [rsp + 0x20], 0
mov r8b, 0x58
mov edx, 0x400
call fcn.140003af0
mov dword [rsp + 0x20], 1
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140001fdf
mov rdx, qword [rbx]
mov r8d, dword [rbx + 0x10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edx, eax
xor r8d, r8d
mov rcx, rbx
call fcn.1400039f0
mov rax, rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140006c14
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 0x140006c42
xor eax, eax
jmp 0x140006d28
cmp qword [rcx + 0x68], 0
je 0x140006c53
call fcn.140006d44
jmp 0x140006d28
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140006c6a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140006c6c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140006c9e
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140022440
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 0x140006d22
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140006cd5
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 0x140006cfe
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14000fb78
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140006d22
cmp rsi, rbx
ja 0x140006cdc
test rsi, rsi
je 0x140006d22
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14000fb78
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 0x1400089b4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400089fe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400089fe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400089fe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400089fe
cmp dword [rcx + 0x84], 0xe
jbe 0x1400089fe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140008a00
xor al, al
add rsp, 0x28
ret
Function at 0x14000e864
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 0x14000e6c3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000e6c3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000e6c3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000e6c3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000e6c3
cmp dword [rcx + 0x84], 0xe
jbe 0x14000e6c3
cmp dword [rcx + 0xf8], 0
je 0x14000e6c3
mov ecx, ebx
call fcn.14000e780
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.14000e550
nop
cmp dword [rbp + 0x20], 0
je 0x14000e711
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000e71c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000e654
Function at 0x1400172bc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1400172ee
call fcn.140011478
mov dword [rax], 0x16
call fcn.14000ec74
jmp 0x14001740d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14001740d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14001740d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14001731d
lock or dword [rcx + 0x14], 0x10
jmp 0x14001740d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140017331
call fcn.140018a6c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400162f8
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14001809c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400173fb
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400173c6
mov rcx, rsi
call fcn.1400162f8
cmp eax, edi
je 0x1400173b1
mov rcx, rsi
call fcn.1400162f8
cmp eax, 0xfffffffe
je 0x1400173b1
mov rcx, rsi
call fcn.1400162f8
movsxd rbx, eax
lea r14, [0x1400353e0]
mov rcx, rsi
sar rbx, 6
call fcn.1400162f8
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400173b8
lea rdx, [0x140033420]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400173c6
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400173ea
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400173ea
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400173ea
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x140017410
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140017738
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.1400082a0
sub rsp, rax
mov rax, qword [0x140033040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400162f8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140017787
mov rax, rbp
jmp 0x14001788f
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 + 0x353e0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140018874
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x353e0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001788b
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 0x14001788b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140018874
test rax, rax
js 0x14001788b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001788b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001787d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001787d
cmp byte [rcx], 0xd
jne 0x140017863
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140017872
cmp byte [rcx + 1], 0xa
jne 0x140017872
inc rcx
jmp 0x140017872
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x33470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140017845
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001788f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140007c40
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 0x140017bf0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1400353e0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140017c4e
cmp word [rdx], r12w
jne 0x140017c4e
or byte [rax + r8*8 + 0x38], cl
jmp 0x140017c54
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140017daf
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140017d8a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140017c8d
mov rcx, r9
jmp 0x140017cb0
cmp r9, rdx
jae 0x140017cc7
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140017c71
jmp 0x140017daf
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140017d84
cmp dword [rsp + 0x80], edi
je 0x140017d84
mov rdx, r14
lea r11, [0x1400353e0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140017d5d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140017d30
mov word [rbx], r12w
jmp 0x140017dab
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140017d39
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140017dab
cmp word [rsp + 0x70], r12w
jne 0x140017d6a
cmp rbx, rsi
je 0x140017d2a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14001887c
cmp word [rsp + 0x70], r12w
je 0x140017daf
mov word [rbx], r13w
jmp 0x140017dab
lea r11, [0x1400353e0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140017da7
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140017daf
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret