joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4203b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov eax, dword [0x00450698]
test eax, eax
mov rbx, rcx
js 0x420430
test eax, eax
jne 0x4203e3
mov rax, qword [0x004bc978]
mov qword [0x004bc978], rbx
mov qword [rbx], rax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov edi, dword [0x004bc970]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rsi
mov ebp, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rbx], rdi
mov rdx, rbx
mov ecx, dword [0x004bc970]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x4203da
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
call dbg.fc_key_init_once
mov eax, dword [0x00450698]
jmp 0x4203c5

Function at 0x420440
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [0x00450698]
mov rbx, qword [rcx]
test eax, eax
js 0x420482
test eax, eax
jne 0x420463
mov qword [0x004bc978], rbx
add rsp, 0x20
pop rbx
ret
mov rdx, rbx
mov ecx, dword [0x004bc970]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x42045d
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
call dbg.fc_key_init_once
mov eax, dword [0x00450698]
jmp 0x420452

Function at 0x420550
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [0x00450698]
test eax, eax
mov rbx, rcx
js 0x4205d0
test eax, eax
mov rsi, qword [0x004bc978]
jne 0x4205e6
test rsi, rsi
mov qword [rsp + 0x38], rsi
je 0x4205c1
lea rdi, [rsp + 0x38]
mov rax, rsi
mov rax, qword [rax + 0x30]
test rax, rax
je 0x4205af
mov qword [rsp + 0x20], rdi
mov r9, rbx
mov r8, qword [rbx]
mov edx, 1
mov ecx, 1
call rax
cmp eax, 6
je 0x420610
cmp eax, 8
jne 0x420643
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
test rax, rax
mov qword [rsp + 0x38], rax
jne 0x420581
mov eax, 5
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
call dbg.fc_key_init_once
mov eax, dword [0x00450698]
mov rsi, qword [0x004bc978]
test eax, eax
je 0x42056f
mov esi, dword [0x004bc970]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x42056f
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x34]
mov rdx, rdi
mov rcx, rbx
mov qword [rbx + 0x10], 0
mov qword [rsp + 0x38], rsi
mov qword [rbx + 0x18], rax
call dbg._Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x4205c6
mov rcx, rdi
call sym.uw_install_context.isra.5
mov eax, 3
jmp 0x4205c6
Function at 0x420650
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbx, rcx
mov ecx, dword [0x00450698]
mov rbp, rdx
mov rdi, r8
test ecx, ecx
js 0x4206b0
test ecx, ecx
mov rsi, qword [0x004bc978]
jne 0x4206c6
mov qword [rsp + 0x28], rsi
lea rsi, [rsp + 0x28]
mov rcx, rbx
mov qword [rbx + 0x10], rbp
lea r8, [rsp + 0x24]
mov rdx, rsi
mov qword [rbx + 0x18], rdi
call dbg._Unwind_ForcedUnwind_Phase2
cmp eax, 7
je 0x4206eb
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call dbg.fc_key_init_once
mov ecx, dword [0x00450698]
mov rsi, qword [0x004bc978]
test ecx, ecx
je 0x420678
mov esi, dword [0x004bc970]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r12d
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x420678
mov rcx, rsi
call sym.uw_install_context.isra.5
nop
nop
nop word cs:[rax + rax]

Function at 0x420790
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x10], 0
mov rbx, rcx
je 0x4207e0
mov edx, dword [0x00450698]
test edx, edx
js 0x4207f0
test edx, edx
mov rsi, qword [0x004bc978]
jne 0x420806
mov qword [rsp + 0x28], rsi
lea rsi, [rsp + 0x28]
mov rcx, rbx
lea r8, [rsp + 0x24]
mov rdx, rsi
call dbg._Unwind_ForcedUnwind_Phase2
cmp eax, 7
jne 0x420829
mov rcx, rsi
call sym.uw_install_context.isra.5
nop dword [rax]
call dbg._Unwind_SjLj_RaiseException
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
call dbg.fc_key_init_once
mov edx, dword [0x00450698]
mov rsi, qword [0x004bc978]
test edx, edx
je 0x4207b6
mov esi, dword [0x004bc970]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4207b6
call sym.abort
nop
nop

Function at 0x420850
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov eax, dword [0x00450698]
test eax, eax
mov rsi, rcx
mov rbp, rdx
js 0x4208d0
test eax, eax
mov rbx, qword [0x004bc978]
jne 0x4208e6
mov qword [rsp + 0x28], rbx
lea rdi, [rsp + 0x28]
jmp 0x420899
mov rdx, rbp
mov rcx, rdi
call rsi
test eax, eax
jne 0x4208c0
mov rax, qword [rsp + 0x28]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
test rbx, rbx
jne 0x420880
mov rdx, rbp
mov rcx, rdi
call rsi
test eax, eax
jne 0x4208c0
mov eax, 5
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, 3
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
call dbg.fc_key_init_once
mov eax, dword [0x00450698]
mov rbx, qword [0x004bc978]
test eax, eax
je 0x420873
mov ebx, dword [0x004bc970]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x420873
Function at 0x4209f0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [global___mutex], 0xffffffff
mov r8d, 0xffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x004bc998], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x420a40
lea rdx, [dbg.emutls_destroy]
mov ecx, eax
mov dword [0x004bc988], eax
call sym.__mingwthr_key_dtor
test eax, eax
jne 0x420a4a
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x420a3b
call sym.abort
nop
Function at 0x420a50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x004b8020]
mov r11d, dword [rbx]
mov rdi, rcx
test r11d, r11d
jne 0x420a84
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x420ae0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rsi, qword [rcx + 0x10]
test rsi, rsi
je 0x420af0
mov ebx, dword [0x004bc988]
mov r12, qword [sym.imp.KERNEL32.dll_GetLastError]
call r12
mov ebp, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebp
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x420b61
mov rbp, qword [rbx]
cmp rbp, rsi
jb 0x420ba1
lea rbx, [rbx + rsi*8]
mov rax, qword [rbx]
test rax, rax
jne 0x420a77
mov rcx, rdi
call dbg.emutls_alloc
mov qword [rbx], rax
jmp 0x420a77
call dbg.emutls_alloc
mov qword [rdi + 0x10], rax
jmp 0x420a77
mov r10d, dword [rbx]
test r10d, r10d
je 0x420c02
mov r9d, dword [global_once]
test r9d, r9d
je 0x420c30
lock add dword [0x004bc990], 1
jne 0x420c60
mov rsi, qword [rdi + 0x10]
test rsi, rsi
je 0x420c0f
mov eax, dword [rbx]
test eax, eax
je 0x420a8d
mov eax, 0xffffffff
lock xadd dword [0x004bc990], eax
sub eax, 1
js 0x420a8d
xor r8d, r8d
mov edx, 1
mov rcx, qword [0x004bc998]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x420a8d
lea rcx, [rsi + 0x21]
mov edx, 8
call sym.calloc
lea rbp, [rsi + 0x20]
test rax, rax
mov rbx, rax
je 0x420c87
mov qword [rax], rbp
mov rdx, rbx
mov ecx, dword [0x004bc988]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x420ac7
call r12
jmp 0x420ac7
lea r13, [rbp + rbp]
mov rcx, rbx
lea rax, [rsi + 0x20]
cmp rsi, r13
cmova r13, rax
lea rdx, [r13*8 + 8]
call sym.realloc
test rax, rax
mov rbx, rax
je 0x420c87
mov qword [rax], r13
lea rcx, [rax + rbp*8 + 8]
sub r13, rbp
xor edx, edx
lea r8, [r13*8]
call sym.memset
jmp 0x420b82
call dbg.emutls_init
mov dword [global_once], 1
mov edx, dword [rbx]
test edx, edx
jne 0x420b0c
mov rsi, qword [rdi + 0x10]
test rsi, rsi
jne 0x420a8d
mov rax, qword [0x004bc980]
lea rsi, [rax + 1]
mov qword [0x004bc980], rsi
mov qword [rdi + 0x10], rsi
jmp 0x420b27
lock add dword [0x004506a4], 1
je 0x420be9
mov r8d, dword [global_once]
lea rsi, [0x004506a0]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
test r8d, r8d
jne 0x420bf8
xor ecx, ecx
call rbp
mov ecx, dword [rsi]
test ecx, ecx
je 0x420c54
jmp 0x420bf8
mov edx, 0xffffffff
mov rcx, qword [0x004bc998]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x420b1a
lock sub dword [0x004bc990], 1
jmp 0x420b1a
call sym.abort
nop
nop dword [rax]
Function at 0x4224a0
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0xb0
lea rax, [sym.__gxx_personality_sj0]
mov qword [rsp + 0x60], rax
lea rax, [0x004bb814]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x30]
lea rax, [0x0042267f]
mov qword [rsp + 0x80], rsp
mov qword [rsp + 0x78], rax
call dbg._Unwind_SjLj_Register
cmp byte [0x00450780], 0
jne 0x42264d
mov byte [0x00450780], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x422613
mov rdx, qword [rax + 8]
lea r9, [rsp + 0xac]
xor eax, eax
cmp byte [rdx], 0x2a
mov dword [rsp + 0x38], 0xffffffff
mov dword [rsp + 0xac], 0xffffffff
sete al
xor r8d, r8d
add rdx, rax
mov rcx, rdx
mov qword [rsp + 0x98], rdx
xor edx, edx
call sym.__cxa_demangle
mov rdx, qword [sym.__acrt_iob_func]
mov ecx, 2
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
call rdx
mov edx, 1
mov r8d, 0x30
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0xac]
mov ecx, 2
test edx, edx
je 0x4225fd
mov dword [rsp + 0x38], 0xffffffff
mov rax, qword [rsp + 0x20]
call rax
mov rcx, qword [rsp + 0x98]
mov rdx, rax
call sym.fputs
mov ecx, 2
mov dword [rsp + 0x38], 0xffffffff
mov rax, qword [rsp + 0x20]
call rax
mov r8d, 2
mov edx, 1
lea rcx, [0x004b5c31]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0xac]
test eax, eax
jne 0x4225f0
mov rcx, qword [rsp + 0x28]
call sym.free
mov dword [rsp + 0x38], 1
call sym.__cxa_rethrow
mov rdx, qword [rsp + 0x20]
call rdx
mov rcx, qword [rsp + 0x28]
mov rdx, rax
call sym.fputs
jmp 0x4225ad
mov ecx, 2
mov dword [rsp + 0x38], 0xffffffff
call qword [sym.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
mov dword [rsp + 0x38], 0xffffffff
call sym.abort
mov ecx, 2
mov dword [rsp + 0x38], 0xffffffff
call qword [sym.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
mov rax, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x38]
test eax, eax
jne 0x422726
sub rdx, 1
mov rcx, qword [rsp + 0x28]
jne 0x422742
call sym.__cxa_begin_catch
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov ecx, 2
mov dword [rsp + 0x38], 2
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x20]
call rax
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
mov rax, qword [rsp + 0x20]
call rax
mov rcx, qword [rsp + 0x28]
mov rdx, rax
call sym.fputs
mov ecx, 2
mov rax, qword [rsp + 0x20]
call rax
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x422640
sub eax, 1
jne 0x422759
call sym.__cxa_end_catch
mov rcx, qword [rsp + 0x28]
mov dword [rsp + 0x38], 0xffffffff
call dbg._Unwind_SjLj_Resume
call sym.__cxa_begin_catch
mov dword [rsp + 0x38], 0xffffffff
call sym.__cxa_end_catch
jmp 0x422640
ud2
Function at 0x42267f
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0xb0
lea rax, [sym.__gxx_personality_sj0]
mov qword [rsp + 0x60], rax
lea rax, [0x004bb814]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x30]
lea rax, [0x0042267f]
mov qword [rsp + 0x80], rsp
mov qword [rsp + 0x78], rax
call dbg._Unwind_SjLj_Register
cmp byte [0x00450780], 0
jne 0x42264d
mov byte [0x00450780], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x422613
mov rdx, qword [rax + 8]
lea r9, [rsp + 0xac]
xor eax, eax
cmp byte [rdx], 0x2a
mov dword [rsp + 0x38], 0xffffffff
mov dword [rsp + 0xac], 0xffffffff
sete al
xor r8d, r8d
add rdx, rax
mov rcx, rdx
mov qword [rsp + 0x98], rdx
xor edx, edx
call sym.__cxa_demangle
mov rdx, qword [sym.__acrt_iob_func]
mov ecx, 2
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
call rdx
mov edx, 1
mov r8d, 0x30
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0xac]
mov ecx, 2
test edx, edx
je 0x4225fd
mov dword [rsp + 0x38], 0xffffffff
mov rax, qword [rsp + 0x20]
call rax
mov rcx, qword [rsp + 0x98]
mov rdx, rax
call sym.fputs
mov ecx, 2
mov dword [rsp + 0x38], 0xffffffff
mov rax, qword [rsp + 0x20]
call rax
mov r8d, 2
mov edx, 1
lea rcx, [0x004b5c31]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0xac]
test eax, eax
jne 0x4225f0
mov rcx, qword [rsp + 0x28]
call sym.free
mov dword [rsp + 0x38], 1
call sym.__cxa_rethrow
mov rdx, qword [rsp + 0x20]
call rdx
mov rcx, qword [rsp + 0x28]
mov rdx, rax
call sym.fputs
jmp 0x4225ad
mov ecx, 2
mov dword [rsp + 0x38], 0xffffffff
call qword [sym.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
mov dword [rsp + 0x38], 0xffffffff
call sym.abort
mov ecx, 2
mov dword [rsp + 0x38], 0xffffffff
call qword [sym.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
mov rax, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x38]
test eax, eax
jne 0x422726
sub rdx, 1
mov rcx, qword [rsp + 0x28]
jne 0x422742
call sym.__cxa_begin_catch
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov ecx, 2
mov dword [rsp + 0x38], 2
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x20]
call rax
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
mov rax, qword [rsp + 0x20]
call rax
mov rcx, qword [rsp + 0x28]
mov rdx, rax
call sym.fputs
mov ecx, 2
mov rax, qword [rsp + 0x20]
call rax
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x422640
sub eax, 1
jne 0x422759
call sym.__cxa_end_catch
mov rcx, qword [rsp + 0x28]
mov dword [rsp + 0x38], 0xffffffff
call dbg._Unwind_SjLj_Resume
call sym.__cxa_begin_catch
mov dword [rsp + 0x38], 0xffffffff
call sym.__cxa_end_catch
jmp 0x422640
ud2

Function at 0x4232d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x004507a0]
jmp dbg.__emutls_get_address
Function at 0x140028a5c
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001bef8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001bef8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140028bac
cmp rax, 0xffffffffffffffff
je 0x140028bac
xor edi, edi
test rbp, rbp
jle 0x140028b57
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001eb84
mov rbx, rax
test rax, rax
jne 0x140028ae4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028b4d
mov edx, 0x8000
mov ecx, r14d
call fcn.1400197a0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001cbe0
cmp eax, 0xffffffff
je 0x140028b2d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028af4
mov edx, r15d
mov ecx, r14d
call fcn.1400197a0
jmp 0x140028b4d
cmp byte [rsi + 0x38], dil
je 0x140028b44
cmp dword [rsi + 0x34], 5
jne 0x140028b44
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028b4d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a0e4
jmp 0x140028bc0
jns 0x140028bc0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001bef8
cmp rax, 0xffffffffffffffff
jne 0x140028b78
cmp byte [rsi + 0x30], dil
je 0x140028bc0
mov edi, dword [rsi + 0x2c]
jmp 0x140028bc0
mov ecx, r14d
call fcn.1400182d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140028bc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140028bc0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140028bb9
mov eax, dword [rsi + 0x2c]
jmp 0x140028bbe
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001bef8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140029cb0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140029cd8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140029cd8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140021a80
Capabilities:
Parse pe header

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

Disassembly:
sub eax, 0x6b19bdb0
lea edi, [rsi + 5]
sbb dword [rax + 0x2933b244], ecx
and dword [rbx + 0x3773b41d], 0x6e44d379
test byte [rax + rcx*4], dh
lodsd eax, dword [rsi]
mov bh, 0xe9
sub dword [0xd185d39b], eax
test dword [rbx], ecx
mov dl, byte [rdx + rdx]
push 0x53
sub dh, byte [rax - 0x3d06a0dd]
mov ecx, 0xfc2ae782
movabs dword [0x77af6eac718c3af1], eax
lodsb al, byte [rsi]
outsb dx, byte [rsi]
scasd eax, dword [rdi]
ja 0x14002083e
invalid
jmp 0x10bf40cd0
ret 0x82b9
lodsb al, byte [rsi]
outsb dx, byte [rsi]
scasd eax, dword [rdi]
ja 0x14002083e
fdiv qword [rbp + rbp*8 + 0x40]
movabs al, byte [0x5648117e7157548d]
je 0x1400207b5
movabs al, byte [0x5648117e7157548d]
push rsi
sbb eax, 0x80f087b4
loop 0x14002083f
xor rax, 0xffffffffef7996d8
loop 0x140020784
or al, 0x74
test r14, r13
out dx, eax
mov r14d, 0xe9b0b6e5
loope 0x14002079d
sbb al, 0xc
or ebx, r10d
iretd
stc
or ch, byte [rax - 0x6866d32c]
invalid
adc ch, bh
adc ch, bh
out dx, eax
and al, 0xab
lodsb al, byte [rsi]
jae 0x1400207d0
fnstcw word [rbx + rsi]
jg 0x14002088c
push 0x62
in al, dx
invalid
adc esp, dword [rdx + 0x7fc974e0]
mov dh, 0xc4
cld
jne 0x140020840
jge 0x14002082e
xchg edx, eax
invalid
Function at 0x140023700
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x50
lea rax, [fcn.140023700]
mov dword [rsp + 0x38], 0x1ea3f597
mov qword [rsp + 0x30], 0x56448133
mov cl, byte [rsp + 0x4f]
mov dl, cl
and dl, 0x61
mov byte [rsp + 0x4f], dl
mov byte [rsp + 0x27], 0xf4
mov dword [rsp + 0x14], 0x15ec617
mov qword [rsp + 0x18], rax
mov byte [rsp + 7], cl
jmp 0x1400237ae
mov rax, qword [rsp + 8]
add rsp, 0x50
ret
mov eax, 0x56447133
mov ecx, eax
mov eax, dword [rsp + 0x14]
mov edx, dword [rsp + 0x38]
mov r8, qword [rsp + 0x30]
mov r9, qword [rsp + 8]
sub rcx, r8
add r9, rcx
and r9, 0xfffffffffffff000
add edx, 0x460ab0ea
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x40], 0xffffffffef17d6b5
cmp eax, edx
je 0x140023741
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x48]
xor ecx, 0xffffffff
mov dword [rsp + 0x48], ecx
mov qword [rsp + 0x18], rax
jmp 0x1400237ae
mov rax, qword [rsp + 8]
cmp word [rax], 0x5a4d
je 0x1400237d8
jmp 0x14002374b
mov rax, qword [rsp + 0x18]
mov qword [rsp + 8], rax
mov byte [rsp + 0x4f], 0x52
mov cl, byte [rsp + 0x27]
mov word [rsp + 0x3e], 0x8618
mov qword [rsp + 0x18], 0
cmp cl, 4
jae 0x1400237a0
jmp 0x1400237ae
mov al, byte [rsp + 7]
add al, 0xc3
mov rcx, qword [rsp + 8]
mov byte [rsp + 0x4f], al
movsxd rcx, dword [rcx + 0x3c]
mov rdx, qword [rsp + 8]
cmp dword [rdx + rcx], 0x4550
je 0x140023741
jmp 0x14002374b
Function at 0x1400029c4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x1400029ec
xor eax, eax
jmp 0x140002b0e
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140002a26
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x140002a26
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov eax, esi
mov byte [rdx], sil
jmp 0x140002b0e
cmp qword [rbx + 0x80], 0
je 0x140002b0c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002a61
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002a84
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call fcn.14011d340
cmp eax, edi
cmovne edi, esi
jmp 0x140002b0c
lea r8, [rbp + 0x30]
mov byte [rbp - 0x30], sil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rbp - 0x2f]
lea r8, [rbp - 8]
mov qword [rsp + 0x30], r8
lea r8, [rbp - 0x28]
mov qword [rsp + 0x28], r8
lea r8, [rbp + 0x38]
mov qword [rsp + 0x20], r8
lea r8, [rbp - 0x30]
call qword [rax + 0x38]
test eax, eax
js 0x140002b0c
cmp eax, 1
jle 0x140002ad2
cmp eax, 3
jne 0x140002b0c
movsx ecx, byte [rbp - 0x30]
jmp 0x140002a6e
mov r14, qword [rbp + 0x30]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x140002afc
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call fcn.14011ffd8
cmp r14, rax
jne 0x140002b0c
lea rax, [rbp - 0x30]
mov byte [rbx + 0x71], 1
cmp qword [rbp + 0x38], rax
mov eax, esi
jne 0x140002b0e
mov eax, edi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x1400031b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000324a
cmp byte [rcx + 0x71], 0
je 0x14000324a
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000320c
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x140003210
sub eax, 1
je 0x140003214
sub eax, 2
je 0x14000324a
xor al, al
jmp 0x14000324c
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x140003241
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call fcn.14011ffd8
cmp rdi, rax
jne 0x14000320c
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000324c
mov al, 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret