joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140062434
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.140061e54
mov ebx, eax
test eax, eax
jne 0x140062464
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1400624c0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400624b7
test al, 0x10
je 0x1400624b7
bt eax, 0xa
jae 0x1400624b0
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.1400624d8
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1400624ac
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1400624d0
test edi, edi
jne 0x1400624b7
and dword [rsp + 0x3c], 0
jmp 0x1400624bc
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.140099fb0
int3

Function at 0x14007a588
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x1400666c6
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x1400666a9
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140066694

Function at 0x140085610
Capabilities:
Parse pe header

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

Function at 0x140095ec8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140095eff
call fcn.14008ee90
mov dword [rax], socket
call fcn.14008ed24
xor eax, eax
jmp 0x140095f8d
mov rdx, r9
mov rcx, r8
call fcn.140095e64
mov rbx, rax
test rax, rax
je 0x140095f8a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140095d90]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140095f77
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14008ee04
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140095f5e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140095f6d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14009ff5c
jmp 0x140095f8a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140095f87
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140096358
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.140085420
sub rsp, rax
mov rax, qword [0x1400e4080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400a22a8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400963a7
mov rax, rbp
jmp 0x1400964af
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 + 0xe81b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400a59fc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xe81b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400964ab
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 0x1400964ab
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400a59fc
test rax, rax
js 0x1400964ab
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400964ab
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14009649d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14009649d
cmp byte [rcx], 0xd
jne 0x140096483
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140096492
cmp byte [rcx + 1], 0xa
jne 0x140096492
inc rcx
jmp 0x140096492
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xe44c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140096465
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400964af
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140084720
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 0x14009d5dc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14009d3d8

Function at 0x1400a2d80
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400a2d96
mov al, 1
jmp 0x1400a2df6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400a2da7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400a2df4
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400aa0b4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400a2df4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400a2df4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400a2df4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400a2df6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400a4d9c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400e81b0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400a4df3
cmp word [rdx], r13w
jne 0x1400a4df3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400a4df8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400a4f1d
mov r11d, recvfrom
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400a4f3e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400a4e31
mov rdx, r9
mov word [rbx], cx
jmp 0x1400a4e58
cmp r9, r8
jae 0x1400a4e68
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400a4e12
jmp 0x1400a4f1d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400a4f12
cmp dword [rsp + 0x80], esi
je 0x1400a4f12
lea r8, [0x1400e81b0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400a4eea
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400a4eba
mov word [rbx], r13w
jmp 0x1400a4f1a
mov ecx, recvfrom
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400a4ec7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400a4f1a
cmp word [rsp + 0x70], r13w
jne 0x1400a4ef7
cmp rbx, r14
je 0x1400a4eb4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400a5a04
cmp word [rsp + 0x70], r13w
je 0x1400a4f1d
mov ecx, recvfrom
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400e81b0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400a4f17
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400a4f1d
Function at 0x1400a9400
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400a9487
mov rsi, rbx
cmp word [rax], bp
je 0x1400a9446
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400a9430
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400a942c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400a0fa8
mov rdi, rax
test rax, rax
je 0x1400a9474
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400b6e90
mov rbp, rdi
xor ecx, ecx
call fcn.14009ff5c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ac608
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400a27b4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400ac6a9
cmp ebx, dword [rsp + 0x30]
je 0x1400ac6a2
test esi, esi
je 0x1400ac6a2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400ac67d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400ac68a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400ac667
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400ac68e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400ac6ab
mov eax, 1
jmp 0x1400ac6ab
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400b092c
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.1400a5a04
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400a5a04
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400b0a7c
cmp rax, 0xffffffffffffffff
je 0x1400b0a7c
xor edi, edi
test rbp, rbp
jle 0x1400b0a27
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14009fee4
mov rbx, rax
test rax, rax
jne 0x1400b09b4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400b0a1d
mov edx, 0x8000
mov ecx, r14d
call fcn.14009e4ac
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.1400a39bc
cmp eax, 0xffffffff
je 0x1400b09fd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400b09c4
mov edx, r15d
mov ecx, r14d
call fcn.14009e4ac
jmp 0x1400b0a1d
cmp byte [rsi + 0x38], dil
je 0x1400b0a14
cmp dword [rsi + 0x34], 5
jne 0x1400b0a14
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recvfrom
cmp byte [rsi + 0x30], dil
je 0x1400b0a1d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14009ff5c
jmp 0x1400b0a90
jns 0x1400b0a90
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400a5a04
cmp rax, 0xffffffffffffffff
jne 0x1400b0a48
cmp byte [rsi + 0x30], dil
je 0x1400b0a90
mov edi, dword [rsi + 0x2c]
jmp 0x1400b0a90
mov ecx, r14d
call fcn.1400aa0b4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400b0a90
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recvfrom
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recvfrom
jmp 0x1400b0a90
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400b0a89
mov eax, dword [rsi + 0x2c]
jmp 0x1400b0a8e
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400a5a04
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 0x1400b1620
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400b1648
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400b1648
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1407f6058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1407f61df
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 0x1407f6089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407f606f
add dl, dl
jne 0x1407f6096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407f60f6
xor eax, eax
add dl, dl
jne 0x1407f60a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407f61ad
add dl, dl
jne 0x1407f60b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407f60c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407f60d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407f60dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407f60ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407f607e
mov eax, 1
add dl, dl
jne 0x1407f6106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407f6113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407f60fb
sub eax, ebx
mov ebx, 1
jne 0x1407f614c
mov ecx, 1
add dl, dl
jne 0x1407f612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407f613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407f6123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407f607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407f6168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407f6175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407f615d
cmp eax, 0x7d00
jae 0x1407f619b
cmp eax, 0x500
jb 0x1407f6196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407f607e
cmp eax, 0x7f
ja 0x1407f619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407f607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407f61d2
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 0x1407f607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x140001b58
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001ba2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001ba2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001ba2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001ba2
cmp dword [rcx + 0x84], 0xe
jbe 0x140001ba2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001ba4
xor al, al
add rsp, 0x28
ret
Function at 0x140002dd0
Capabilities:
Check for debugger via api
Create process on windows
Get token membership

Disassembly:
push rbp
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x1400c77b0]
xor rax, rsp
mov qword [rbp + 0x200], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x140002ff0
mov qword [rsp + 0x320], rbx
xor ebx, ebx
mov dword [rbp - 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp dword [rbp - 0x20], ebx
jne 0x140002fca
lea rax, [rsp + 0x60]
mov dword [rbp - 0x20], ebx
mov qword [rsp + 0x50], rax
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x48], ebx
lea rcx, [rbp - 0x1c]
mov dword [rsp + 0x40], ebx
mov r9d, 0x220
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x60], rbx
mov dword [rbp - 0x1c], ebx
mov word [rbp - 0x18], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140002e99
mov rdx, qword [rsp + 0x60]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x140002e8e
mov dword [rbp - 0x20], ebx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rbp - 0x20], 1
je 0x140002f72
mov r8d, 0x104
lea rdx, [rbp - 0x10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140002f72
xorps xmm0, xmm0
mov dword [rsp + reloc.WS2_32.dll_WSASetLastError], 0x70
xor eax, eax
lea rcx, [rsp + 0x70]
mov qword [rbp - 0x2c], rax
mov dword [rbp - 0x24], eax
lea rax, str.runas
movups xmmword [rsp + 0x74], xmm0
mov qword [rsp + 0x78], rbx
movups xmmword [rbp - 0x7c], xmm0
mov qword [rbp - 0x80], rax
lea rax, [rbp - 0x10]
movups xmmword [rbp - 0x6c], xmm0
mov qword [rbp - 0x78], rax
movups xmmword [rbp - 0x5c], xmm0
mov dword [rbp - 0x60], 1
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x140002fa8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x1400c8cd0]
mov ebx, eax
cmp eax, 0x4c7
jne 0x140002f4d
lea rdx, str.The_user_refused_to_allow_privileges_elevation.
call fcn.1400059c0
mov rcx, rax
call fcn.140005c70
mov eax, 1
jmp 0x140002faa
lea rdx, str.ShellExecuteEx_failed_with_error_code
call fcn.1400059c0
mov rcx, rax
mov edx, ebx
call fcn.140003090
mov rcx, rax
call fcn.140005c70
mov eax, 1
jmp 0x140002faa
call fcn.1400025f0
cmp qword [0x1400ca300], 8
lea r8, [0x1400ca2e8]
mov dword [rsp + 0x28], 1
cmovae r8, qword [0x1400ca2e8]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rbx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov rbx, qword [rsp + 0x320]
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.14006ce30
add rsp, 0x310
pop rbp
ret
lea rdx, str.Remote_debugger_detected_
lea rcx, [0x1400c8cd0]
call fcn.1400059c0
mov rcx, rax
call fcn.1400033d0
mov ecx, 1
call fcn.140073984
int3
lea rdx, str.Debugger_detected_
lea rcx, [0x1400c8cd0]
call fcn.1400059c0
mov rcx, rax
call fcn.1400033d0
mov ecx, 1
call fcn.140073984
int3
Function at 0x140011a30
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140011b12
call fcn.14002add0
test al, al
jne 0x140011b12
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x140011a62
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.140034830
test rax, rax
je 0x140011aa7
sub rax, rbx
mov edx, 0x2e
mov r8, rax
mov rcx, rbx
call fcn.140034830
mov rsi, rax
test rax, rax
je 0x140011aa7
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rbx + rdi]
mov edi, 0x1505
cmp rbx, rsi
jae 0x140011adb
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.1400277a0
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x140011ac0
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
movabs rax, 0x410410410410411
mul rdi
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub rdi, rcx
mov rax, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14001fb80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xa4e], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x14001fc49
cmp qword [rcx + 0x278], 0
je 0x14001fbfe
mov qword [rsp + 0x40], rbx
call fcn.14000bd60
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.14000c390
mov rcx, qword [rdi + 0x1f0]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x278]
movzx edx, bl
mov rcx, rdi
call fcn.14000c390
mov rbx, qword [rsp + 0x40]
jmp 0x14001fc49
mov ecx, esi
test edx, edx
je 0x14001fc0e
sub ecx, 1
je 0x14001fc0e
cmp ecx, 1
jne 0x14001fc49
mov r9, qword [rdi + 0x1e8]
lea rax, [0x14009f6c0]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call fcn.140077be0
mov r9, qword [rdi + 0x1e8]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call fcn.140077be0
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x1400239d0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.140087f4c
cdqe
add rsp, 0x28
ret
Function at 0x140023cc0
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x140023cea
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, [0x1400a0188]
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400a0198]
mov rcx, rbx
mov r14, rax
call fcn.14007996c
test rax, rax
je 0x140023d49
mov rcx, rbx
test r14, r14
je 0x140023d36
xor edx, edx
lea r8d, [rdx + 8]
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test r14, r14
je 0x140023d80
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140023d80
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r15d, eax
test eax, eax
je 0x140023e4a
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop dword [rax]
inc rdx
cmp word [rbx + rdx*2], bp
jne 0x140023db0
lea ecx, [rax + 1]
add rcx, rdx
add rcx, rcx
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x140023e3c
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140023e3c
mov rax, rdi
cmp word [rsi + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x140023de3
mov dword [rsi + rax*2], 0x5c
cmp word [rsi + rdi*2 + 2], bp
lea rdi, [rdi + 1]
jne 0x140023df5
lea rcx, [rdi + rdi]
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x140023e10
mov rcx, rsi
test r14, r14
je 0x140023e33
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x140023e39
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
mov rcx, rsi
call qword [fcn.140076af8]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret