joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001ad50
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xa0
xor edi, edi
mov r8d, 0x66747032
lea rbp, [0x140000000]
mov edx, edi
cmp rdx, 0x10
jae 0x14001add9
movzx eax, byte [rdx + rbp + 0x40320]
mov ecx, r8d
add rdx, 4
xor al, r8b
shr ecx, 8
mov byte [rsp + rdx + 0x1c], al
movzx eax, byte [rdx + rbp + 0x4031d]
xor al, cl
mov ecx, r8d
mov byte [rsp + rdx + 0x1d], al
movzx eax, byte [rdx + rbp + 0x4031e]
shr ecx, 0x10
xor al, cl
mov ecx, r8d
mov byte [rsp + rdx + 0x1e], al
movzx eax, byte [rdx + rbp + 0x4031f]
shr ecx, 0x18
xor al, cl
rol r8d, 1
mov byte [rsp + rdx + 0x1f], al
cmp rdx, 0x80
jb 0x14001ad78
movzx eax, byte [rsp + 0x22]
movzx ebx, byte [rsp + 0x23]
lea r9, [rsp + 0x21]
shl ebx, 8
or ebx, eax
movzx eax, byte [rsp + 0x21]
shl ebx, 8
or ebx, eax
movzx eax, byte [rsp + 0x20]
shl ebx, 8
or ebx, eax
xor eax, eax
or esi, 0xffffffff
lea r10d, [rax + 4]
mov dword [rsp + 0x20], eax
nop
movzx ecx, byte [r9 - 1]
mov eax, esi
shr esi, 8
xor rcx, rax
add r9, 4
movzx eax, cl
movzx ecx, byte [r9 - 4]
mov edx, dword [rbp + rax*4 + 0x3ff20]
xor edx, esi
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 - 3]
mov r8d, dword [rbp + rax*4 + 0x3ff20]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 - 2]
mov edx, dword [rbp + rax*4 + 0x3ff20]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov esi, dword [rbp + rax*4 + 0x3ff20]
xor esi, edx
dec r10
jne 0x14001ae10
lea rcx, [rsp + 0x20]
not esi
call fcn.14001a8e0
lea r11, [rsp + 0x20]
mov rcx, qword [r11]
cmp rcx, qword [rbp + 0x40320]
jne 0x14001aeb0
mov rcx, qword [r11 + 8]
cmp rcx, qword [rbp + 0x40328]
jne 0x14001aeb0
mov eax, edi
jmp 0x14001aeb5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x14001aec0
mov eax, 1
jmp 0x14001aec8
cmp ebx, esi
setne dil
mov eax, edi
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14001bfe0
Capabilities:
Encode data using xor

Disassembly:
push rbx
add r8d, 0xf
add r9, 0x3b9aca00
mov rbx, rcx
lea r10d, [rdx + rdx + 0xf]
jns 0x14001c00c
nop word [rax + rax]
movsxd rax, r10d
add r10d, 0x1e
add r9, rax
js 0x14001c000
lea edx, [r9 - 0x3b9aca00]
cmp edx, 0x1f480
jge 0x14001c02f
nop dword [rax + rax]
add edx, r10d
add r10d, 0x1e
cmp edx, 0x1f480
jl 0x14001c020
sub r10d, 0x1e
cmp r10d, 0xf
jle 0x14001c0a4
mov qword [rsp + 0x10], rdi
lea rdi, [0x14003f450]
sub edx, r10d
jns 0x14001c05b
nop word [rax + rax]
add edx, r8d
add r8d, 0x1e
test edx, edx
js 0x14001c050
mov r9d, edx
mov r11d, r8d
cmp edx, 0x1f480
jge 0x14001c08f
nop dword [rax]
mov eax, edx
mov ecx, edx
add edx, r8d
and eax, 0x1f
shr ecx, 5
add r8d, 0x1e
mov eax, dword [rdi + rax*4]
xor dword [rbx + rcx*4], eax
cmp edx, 0x1f480
jl 0x14001c070
sub r10d, 0x1e
mov edx, r9d
mov r8d, r11d
cmp r10d, 0xf
jg 0x14001c045
mov rdi, qword [rsp + 0x10]
pop rbx
ret
Function at 0x14001c0b0
Capabilities:
Encode data using xor

Disassembly:
push rbx
add r8d, 0xf
add r9, 0x3b9aca00
mov rbx, rcx
lea r10d, [rdx + 5]
jns 0x14001c0dc
nop word [rax + rax]
movsxd rax, r10d
add r10d, 0xa
add r9, rax
js 0x14001c0d0
lea edx, [r9 - 0x3b9aca00]
cmp edx, 0x1f480
jge 0x14001c0ff
nop dword [rax + rax]
add edx, r10d
add r10d, 0xa
cmp edx, 0x1f480
jl 0x14001c0f0
sub r10d, 0xa
cmp r10d, 5
jle 0x14001c174
mov qword [rsp + 0x10], rdi
lea rdi, [0x14003f450]
sub edx, r10d
jns 0x14001c12b
nop word [rax + rax]
add edx, r8d
add r8d, 0x1e
test edx, edx
js 0x14001c120
mov r9d, edx
mov r11d, r8d
cmp edx, 0x1f480
jge 0x14001c15f
nop dword [rax]
mov eax, edx
mov ecx, edx
add edx, r8d
and eax, 0x1f
shr ecx, 5
add r8d, 0x1e
mov eax, dword [rdi + rax*4]
xor dword [rbx + rcx*4], eax
cmp edx, 0x1f480
jl 0x14001c140
sub r10d, 0xa
mov edx, r9d
mov r8d, r11d
cmp r10d, 5
jg 0x14001c115
mov rdi, qword [rsp + 0x10]
pop rbx
ret

Function at 0x14001f470
Capabilities:
Get mac address on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movzx eax, byte [rcx]
mov rbp, rdx
mov rsi, rcx
mov dword [rsp + 0x30], 0x2c0
mov r9d, 1
test al, al
je 0x14001f4cf
mov r8, rcx
nop dword [rax]
cmp al, 0x30
jl 0x14001f4a8
cmp al, 0x39
jle 0x14001f4ab
xor r9d, r9d
movzx eax, byte [r8 + 1]
inc r8
test al, al
jne 0x14001f4a0
test r9d, r9d
je 0x14001f4cf
call fcn.14002c7f4
mov ecx, eax
call fcn.140020a40
test rax, rax
cmovne rsi, rax
mov ecx, 0x2c0
call fcn.140026dd0
mov rdi, rax
test rax, rax
jne 0x14001f509
call fcn.1400269ec
lea rdx, str.Error_allocating_memory_needed_to_call_GetAdaptersinfo_n
lea rcx, [rax + 0x60]
call fcn.140026c00
lea eax, [rdi + 0xe]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
lea rdx, [rsp + 0x30]
mov rcx, rax
mov qword [rsp + 0x38], rbx
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov ebx, eax
cmp eax, 0x6f
jne 0x14001f551
mov rcx, rdi
call fcn.140026d90
mov ecx, dword [rsp + 0x30]
call fcn.140026dd0
mov rdi, rax
test rax, rax
je 0x14001f574
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov ebx, eax
cmp eax, 0x6f
je 0x14001f523
test ebx, ebx
je 0x14001f590
call fcn.1400269ec
lea rdx, str.GetAdaptersInfo_failed_with_error:__u_n
mov r8d, ebx
lea rcx, [rax + 0x60]
call fcn.140026c00
mov eax, select
jmp 0x14001f5d9
call fcn.1400269ec
lea rdx, str.Error_allocating_memory_needed_to_call_GetAdaptersinfo_n
lea rcx, [rax + 0x60]
call fcn.140026c00
mov eax, select
jmp 0x14001f5d9
mov rbx, rdi
lea rcx, [rbx + 0xc]
mov rdx, rsi
call fcn.140021260
test eax, eax
jne 0x14001f5ad
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14001f593
jmp 0x14001f5cf
test rbx, rbx
je 0x14001f5cf
cmp dword [rbx + 0x194], 6
jne 0x14001f56d
mov eax, dword [rbx + 0x198]
mov dword [rbp], eax
movzx eax, word [rbx + 0x19c]
mov word [rbp + 4], ax
mov rcx, rdi
call fcn.140026d90
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140020330
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14004f890]
lea rdx, [0x14004f8ac]
mov rdi, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [0x14004f898]
mov qword [rsp + 0x28], rax
mov rax, qword [0x14004f8a0]
mov qword [rsp + 0x30], rax
movzx eax, byte [0x14004f8a8]
mov word [rsp + 0x34], 1
mov byte [rsp + 0x38], al
call fcn.140027538
mov rsi, rax
test rax, rax
jne 0x1400203b1
call fcn.1400269ec
lea rdx, str.Could_not_open_capture_file_n
lea rcx, [rax + 0x60]
call fcn.140026c00
mov rcx, rdi
call fcn.1400273b0
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov edx, 1
lea rcx, [rsp + 0x20]
mov r9, rax
lea r8d, [rdx + 0x17]
call fcn.140027e7c
cmp rax, 0x18
je 0x1400203ff
call fcn.1400269ec
lea rdx, str.Could_not_write_capture_file_header_n
lea rcx, [rax + 0x60]
call fcn.140026c00
mov rcx, rdi
call fcn.1400273b0
mov rcx, rsi
call fcn.140027c88
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov ecx, 0x150
mov qword [rsp + 0x50], rbx
call fcn.140026dd0
mov rbx, rax
test rax, rax
jne 0x14002041f
lea ecx, [rax + 1]
call fcn.1400272ac
int3
xor edx, edx
mov r8d, 0x150
mov rcx, rax
call fcn.14002ee50
lea rcx, [rbx + 0x1c]
lea r8, [0x14004bec0]
mov r9, rdi
mov edx, 0x100
call fcn.14002bf00
mov qword [rbx], rsi
mov rsi, qword [rsp + 0x58]
mov dword [rbx + 0x11c], 2
mov dword [rbx + 0x120], 1
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140020480
Capabilities:
Write file on windows

Disassembly:
test rcx, rcx
je 0x140020665
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
mov rbp, rsp
sub rsp, 0x30
mov r10d, r9d
mov r9, qword [rcx]
mov esi, r8d
mov r12, rdx
mov rdi, rcx
test r9, r9
je 0x140020651
cmp dword [rcx + 0x11c], 1
mov qword [rsp + 0x40], rbx
jne 0x14002053a
mov r8d, dword [rbp + 0x30]
mov ecx, dword [rbp + 0x38]
mov byte [rbp - 5], sil
mov eax, r8d
mov byte [rbp - 0xd], r8b
shr eax, 0x18
mov byte [rbp - 0x10], al
mov eax, r8d
shr eax, 0x10
mov byte [rbp - 0xf], al
mov eax, r8d
shr eax, 8
mov byte [rbp - 0xe], al
mov eax, ecx
shr eax, 0x18
mov byte [rbp - 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [rbp - 0xb], al
mov eax, ecx
shr eax, 8
mov byte [rbp - 0xa], al
mov eax, esi
shr eax, 0x18
mov byte [rbp - 8], al
mov eax, esi
shr eax, 0x10
mov byte [rbp - 7], al
mov eax, esi
shr eax, 8
mov byte [rbp - 6], al
mov eax, r10d
shr eax, 0x18
mov byte [rbp - 4], al
mov eax, r10d
shr eax, 0x10
mov byte [rbp - 3], al
mov eax, r10d
shr eax, 8
jmp 0x1400205a2
mov ecx, dword [rbp + 0x30]
mov byte [rbp - 4], r10b
mov byte [rbp - 8], sil
mov eax, ecx
mov byte [rbp - 0x10], cl
shr eax, 8
mov byte [rbp - 0xf], al
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
mov byte [rbp - 0xd], cl
mov ecx, dword [rbp + 0x38]
mov byte [rbp - 0xe], al
mov eax, ecx
mov byte [rbp - 0xc], cl
shr eax, 8
mov byte [rbp - 0xb], al
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
mov byte [rbp - 0xa], al
mov eax, esi
shr eax, 8
mov byte [rbp - 7], al
mov eax, esi
shr eax, 0x10
mov byte [rbp - 6], al
mov eax, esi
shr eax, 0x18
mov byte [rbp - 5], al
mov eax, r10d
shr eax, 8
mov byte [rbp - 3], al
mov eax, r10d
shr eax, 0x10
shr r10d, 0x18
mov edx, 1
mov byte [rbp - 9], cl
lea rcx, [rbp - 0x10]
lea r8d, [rdx + 0xf]
mov byte [rbp - 1], r10b
mov byte [rbp - 2], al
call fcn.140027e7c
cmp rax, 0x10
je 0x1400205fc
call fcn.1400269ec
mov r9, qword [rdi + 0x128]
lea r8, [rdi + 0x1c]
lea rcx, [rax + 0x60]
lea rdx, str._s:_could_write_packet_header__frame__I64d_n
call fcn.140026c00
lea rcx, [rdi + 0x1c]
call fcn.1400273b0
mov rcx, qword [rdi]
call fcn.140027c88
mov qword [rdi], 0
mov r9, qword [rdi]
mov r8, rsi
mov edx, 1
mov rcx, r12
call fcn.140027e7c
cmp rax, rsi
je 0x14002064c
call fcn.1400269ec
mov r9, qword [rdi + 0x128]
lea r8, [rdi + 0x1c]
lea rcx, [rax + 0x60]
lea rdx, str._s:_could_write_packet_contents__frame__I64d_n
call fcn.140026c00
lea rcx, [rdi + 0x1c]
call fcn.1400273b0
mov rcx, qword [rdi]
call fcn.140027c88
mov qword [rdi], 0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
repz ret
Function at 0x1400272ac
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14002711c

Function at 0x14002b714
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x14002b72a
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14002b72c
xor eax, eax
test eax, eax
je 0x14002b73c
mov ecx, eax
call fcn.14002b860
or eax, 0xffffffff
jmp 0x14002b73e
xor eax, eax
add rsp, 0x28
ret

Function at 0x14002b744
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
test rcx, rcx
jne 0x14002b76e
call fcn.14002b840
and dword [rax], 0
call fcn.14002b820
mov ebx, socket
mov dword [rax], ebx
call fcn.14002e244
mov eax, ebx
jmp 0x14002b7be
test edx, 0xfffffff9
jne 0x14002b751
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14002b797
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14002b860
call fcn.14002b820
mov eax, dword [rax]
jmp 0x14002b7be
test al, 0x10
jne 0x14002b7bc
test al, 1
je 0x14002b7bc
test bl, 2
je 0x14002b7bc
call fcn.14002b840
mov dword [rax], 5
call fcn.14002b820
mov dword [rax], select
jmp 0x14002b78e
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140035714
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1400557f0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14002e61c
xor ebx, ebx
cmp qword [0x14005a648], rbx
mov rdi, rax
jne 0x140035827
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1400358fe
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400358fe
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14005a648], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14005a650], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x14005a658], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x14005a668], rax
test rax, rax
je 0x14003581e
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x14005a660], rax
jmp 0x14003582e
mov rax, qword [0x14005a660]
jmp 0x140035835
mov rax, qword [0x14005a660]
mov r11, qword [0x14005a668]
cmp rax, rdi
je 0x14003589c
cmp r11, rdi
je 0x14003589c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x14005a668]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x14003589c
test rax, rax
je 0x14003589c
call rsi
test rax, rax
je 0x140035896
lea rcx, [rsp + 0x30]
mov r9d, recv
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140035896
test byte [rsp + 0x40], 1
jne 0x14003589c
bts ebp, 0x15
jmp 0x1400358dc
mov rcx, qword [0x14005a650]
cmp rcx, rdi
je 0x1400358dc
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400358dc
call rax
mov rbx, rax
test rax, rax
je 0x1400358dc
mov rcx, qword [0x14005a658]
cmp rcx, rdi
je 0x1400358dc
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400358dc
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14005a648]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400358fe
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140035900
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140032410
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140036d1f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400557f0]
jne 0x14003242a
rol rcx, 0x10
test cx, 0xffff
jne 0x140032426
repz ret
ror rcx, 0x10
jmp 0x140036c78
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14005a720]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14005a818]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140036cfd
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14005a720]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140036d1f
mov rax, qword [rsp + 0x88]
mov qword [0x14005a818], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14005a7b8], rax
mov rax, qword [0x14005a818]
mov qword [0x14005a690], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14005a7a0], rax
mov dword [0x14005a680], 0xc0000409
mov dword [0x14005a684], 1
mov rax, qword [0x1400557f0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400557f8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14005a718], eax
mov ecx, 1
call fcn.14003570c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14003f280]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14005a718], 0
jne 0x140036da6
mov ecx, 1
call fcn.14003570c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1400110af
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x140011900
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x20]
lea rcx, [0x14001c0d4]
call fcn.140011109
nop
mov rax, qword gs:[0x60]
mov qword [rbp], rax
mov rax, qword [rbp]
mov rax, qword [rax + 0x18]
add rax, 0x20
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov rax, qword [rax]
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 8]
cmp qword [rbp + 0x10], rax
je 0x140011994
mov rax, qword [rbp + 0x10]
sub rax, 0x10
mov qword [rbp + 0x18], rax
mov rax, qword [rbp + 0x18]
cmp qword [rax + 0x60], 0
je 0x140011987
mov rdx, qword [rbp + 0x70]
mov rax, qword [rbp + 0x18]
mov rcx, qword [rax + 0x60]
call fcn.140011064
test eax, eax
jne 0x140011987
mov rax, qword [rbp + 0x18]
mov rax, qword [rax + 0x30]
jmp 0x140011996
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov qword [rbp + 0x10], rax
jmp 0x140011947
xor eax, eax
lea rsp, [rbp + 0x60]
pop rbp
ret
Function at 0x140001558
Capabilities:
Check for foreground window switch
Get graphical window text
Set console window title

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x230
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rsi, rdx
mov ebx, ecx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x200
call sub.VCRUNTIME140.dll_memset
xor r14d, r14d
mov edi, r14d
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rbp, rax
cmp ebx, 1
jle 0x1400015b0
mov rax, qword [rsi + 8]
jmp 0x1400015ba
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll_setlocale]
mov rcx, rax
call fcn.140001398
mov ebx, 0xfde9
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetConsoleCP]
lea rcx, str.ShowFocusC_1.0_by_Daniel_Wein._n
call fcn.140001008
lea rcx, str.Started_August_31__2018__Released_July_20__2024._n
call fcn.140001008
lea rcx, str.If_you_run_into_any_trouble_or_are_just_curious__check_help.txt._n
call fcn.140001008
lea rcx, str.ShowFocusC
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
lea rdx, str.ShowFocusC
mov rcx, rbp
call qword [sym.imp.USER32.dll_SetWindowTextW]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rbx, rax
cmp rax, rdi
je 0x140001679
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x200
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rax, [rsp + 0x20]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], r14w
jne 0x140001655
cmp rcx, 1
jb 0x140001676
lea rdx, [rsp + 0x20]
lea rcx, [0x1400035b0]
call fcn.14000105c
mov rdi, rbx
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001618

Function at 0x1400021b8
Capabilities:
Parse pe header

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

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x1400082a1
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400082ce
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400082d0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140008329
test ecx, ecx
jle 0x140008309
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140008329
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140008329
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
push rbp
push 0xffffffffffffffc7
invalid
Function at 0x140008350
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140008372
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140008381
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400083a4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400083a6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400083e2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000847e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000841d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000845e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000847e
cmp rbx, rax
ja 0x140008430
test rbx, rbx
je 0x14000847e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
xchg ebx, eax
rol dword [rbx - 0x7b], cl
cmp al, 0xe1
fst st(7)
xor dword [rbp - 0x51], ebx
invalid