joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400593d4
Capabilities:
Parse pe header

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

Function at 0x14005e8a0
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.140059220
sub rsp, rax
mov rax, qword [0x1400b3100]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14006fd28
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14005e8ef
mov rax, rbp
jmp 0x14005e9fb
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 + 0xb5b90]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14006ffbc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xb5b90]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14005e9f7
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005e9f7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14006ffbc
test rax, rax
js 0x14005e9f7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14005e9f7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14005e9e9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14005e9e9
cmp byte [rcx], 0xd
jne 0x14005e9cf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14005e9de
cmp byte [rcx + 1], 0xa
jne 0x14005e9de
inc rcx
jmp 0x14005e9de
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xb34d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14005e9b1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14005e9fb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140058530
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 0x140068f0c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140068f2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14006a6c0
or eax, 0xffffffff
jmp 0x140068f2e
xor eax, eax
add rsp, 0x28
ret
Function at 0x14006a318
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 0x14006a34f
call fcn.14006a730
mov dword [rax], 0x16
call fcn.14006a150
xor eax, eax
jmp 0x14006a3e1
mov rdx, r9
mov rcx, r8
call fcn.14006a2b4
mov rbx, rax
test rax, rax
je 0x14006a3de
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x28], rax
lea r8, [0x14006a1e8]
mov eax, dword [rsp + 0x60]
mov rdx, rsi
mov r9, rbx
mov dword [rsp + 0x20], eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14006a3cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14006a6c0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14006a3b2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14006a3c1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140071400
jmp 0x14006a3de
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14006a3db
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 0x14006c5b0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14006c61f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14006c61f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14006c61f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14006c61f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006c61f
cmp dword [rcx + 0x84], 0xe
jbe 0x14006c61f
cmp dword [rcx + 0xf8], 0
je 0x14006c61f
mov ecx, ebx
call fcn.14006c6c4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14006c4b8
nop
cmp dword [rbp + 0x20], 0
jne 0x14006c680
call fcn.1400769b0
cmp eax, 1
jne 0x14006c670
xor dl, dl
jmp 0x14006c67a
call fcn.140077e1c
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14006c68b
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14006c694
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14006c5b0

Function at 0x14006c798
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14006c5b0
Function at 0x14007064c
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
xor edi, edi
mov rax, r15
lea rcx, [0x1400b5b90]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x1400706a2
cmp word [rdx], r9w
jne 0x1400706a2
or byte [rax + rbp*8 + 0x38], 4
jmp 0x1400706a7
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x140070826
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x1400707f1
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x1400706ef
cmp rcx, r8
jae 0x14007070f
cmp word [rcx], r9w
jne 0x1400706ef
add rax, 4
mov edx, r9d
jmp 0x1400706f2
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x1400706c4
jmp 0x140070826
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400707ea
cmp dword [rsp + 0x80], edi
je 0x1400707ea
lea r9, [0x1400b5b90]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x1400707c4
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x140070777
mov word [rbx], bp
jmp 0x140070823
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x140070792
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x140070823
cmp word [rsp + 0x70], bp
jne 0x1400707d0
cmp rbx, rsi
je 0x14007076f
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14006ffc4
cmp word [rsp + 0x70], bp
je 0x140070826
mov word [rbx], 0xd
jmp 0x140070823
mov rcx, r15
lea r9, [0x1400b5b90]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140070820
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140070826
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
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
Function at 0x14007194c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1400be050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x1400719b1
test rax, rax
jne 0x14007199f
lea r9, [0x14008d9c0]
lea r8, [0x14008d9b8]
lea rdx, [0x14008d9c0]
lea ecx, [rax + 0xa]
call fcn.140071500
test rax, rax
je 0x1400719b1
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.140084e30
jmp 0x1400719cb
xor edx, edx
mov rcx, rbp
call fcn.140071c3c
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140074f28
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140074f3e
mov al, 1
jmp 0x140074faa
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140074f4f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140074fa8
mov ecx, dword [rcx + 0x18]
nop
call fcn.14007a184
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140074fa8
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140074fa8
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140074fa8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140074faa
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140079430
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140079460
xor eax, eax
jmp 0x140079523
mov rbp, rbx
cmp word [rax], si
je 0x140079485
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14007946c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140079468
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140077cec
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x1400794c6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140079459
call fcn.1400732e0
mov rdi, rax
test rax, rax
jne 0x1400794dc
xor ecx, ecx
call fcn.140071400
jmp 0x1400794bb
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140077cec
test eax, eax
jne 0x14007950d
mov rcx, rdi
call fcn.140071400
jmp 0x140079517
xor ecx, ecx
call fcn.140071400
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14007c67c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x14007c6ef
cmp word [rcx], si
je 0x14007c6ef
lea rdx, [0x14008ef38]
call fcn.14007fee8
test eax, eax
je 0x14007c6ef
lea rdx, [0x14008ef50]
mov rcx, rbx
call fcn.14007fee8
test eax, eax
jne 0x14007c6e5
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14007c70c
mov eax, dword [rsp + 0x30]
jmp 0x14007c71e
mov rcx, rbx
call fcn.14006fc4c
jmp 0x14007c71e
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x14007c710
xor eax, eax
jmp 0x14007c71e
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x14007c71e
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14007c730
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.140070498
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14007c7d3
cmp edi, dword [rsp + 0x30]
je 0x14007c7cc
test ebp, ebp
je 0x14007c7cc
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x14007c7a8
sub dx, 0x61
cmp dx, 0x19
ja 0x14007c7b4
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x14007c795
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x14007c7b8
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x14007c7d5
mov eax, 1
jmp 0x14007c7d5
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 0x14007fba0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140065354
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14007fc2a
cmp byte [rbp - 0x21], r15b
je 0x14007fc25
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14007fc60
call fcn.14007176c
test eax, eax
jne 0x14007fc4c
cmp byte [rbp - 0x21], r15b
je 0x14007fc44
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14007fc60
cmp byte [rbp - 0x21], r15b
je 0x14007fc5d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14006c090
test eax, eax
jne 0x14007fd00
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140065354
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14007fc9f
cmp byte [rbp - 0x21], r15b
je 0x14007fcd4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14007fcd4
call fcn.14007176c
test eax, eax
jne 0x14007fcc0
cmp byte [rbp - 0x21], r15b
je 0x14007fcb9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14007fcd4
cmp byte [rbp - 0x21], r15b
je 0x14007fcd1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14006c090
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14007fd00
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14007fd03
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14007fd11
mov rcx, rdi
call fcn.140071400
cmp byte [rbp + 0x3f], r15b
je 0x14007fd20
mov rcx, qword [rbp + 0x27]
call fcn.140071400
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400808c4
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.14006ffc4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14006ffc4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140080a11
cmp rax, 0xffffffffffffffff
je 0x140080a11
xor edi, edi
test rbp, rbp
jle 0x1400809bf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140071380
mov rbx, rax
test rax, rax
jne 0x14008094c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400809b5
mov edx, 0x8000
mov ecx, r14d
call fcn.14006d6f8
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.140072ba4
cmp eax, 0xffffffff
je 0x140080995
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14008095c
mov edx, r15d
mov ecx, r14d
call fcn.14006d6f8
jmp 0x1400809b5
cmp byte [rsi + 0x38], dil
je 0x1400809ac
cmp dword [rsi + 0x34], 5
jne 0x1400809ac
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400809b5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140071400
jmp 0x140080a23
jns 0x140080a23
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14006ffc4
cmp rax, 0xffffffffffffffff
jne 0x1400809dd
cmp byte [rsi + 0x30], dil
je 0x140080a23
jmp 0x140080a19
mov ecx, r14d
call fcn.14007a184
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140080a23
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 0x140080a23
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140080a1e
mov edi, dword [rsi + 0x2c]
jmp 0x140080a23
mov edi, 0x16
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14006ffc4
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 0x140081760
Capabilities:
Parse pe header

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

Disassembly:
xchg ebp, eax
invalid
je 0x18003a87c
sbb dh, byte [rbp + 0x18]
jne 0x18003a87c
jno 0x18003a861
test dword [rax], esi
outsd dx, dword [rsi]
sbb eax, 0x107314c6
shr dword [rdx + riz*4], cl
je 0x18003a847
invalid
sub rsp, 0x28
jbe 0x18003a890
ja 0x18003a890
movabs eax, dword [0xc18fe4fbb07b824]
jmp qword [rbx + 0x25]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x20]
lea rdx, [0x18007dc20]
mov r8d, 0x40
call fcn.18007b6e0
add rsp, 0x28
nop
pop rcx
jmp rcx

Function at 0x18003b0f0
Capabilities:
Encode data using xor

Disassembly:
jle 0x18003b104
jg 0x18003b104
and cl, byte [rdx - 0x2ab8e5c5]
adc al, byte [rsi]
invalid
sub rsp, 0x48
jbe 0x18003b124
ja 0x18003b124
movabs dword [0x340c7942621a1ab6], eax
cli
add dword [rax], edx
fldcw word [rdx]
wait
xor al, 0x95
jge 0x18003b116
sbb byte [rbx + 0x2e], bh
mov edx, 0x4c894c0c
and al, 0x40
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rcx
mov r9, qword [rsp + 0x40]
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call fcn.18003b170
movzx eax, al
cmp eax, 0
setne al
and al, 1
movzx eax, al
add rsp, 0x48
nop
pop rcx
jmp rcx

Function at 0x18003cc20
Capabilities:
Encrypt data using curve25519

Disassembly:
jle 0x18003cc3c
jg 0x18003cc3c
add byte [rbp + 0x30], 0xc
and esp, edi
invalid
push rax
mov qword [rsp], rcx
mov rax, qword [rsp]
movzx ecx, byte [rax]
and ecx, 0xf8
mov byte [rax], cl
mov rax, qword [rsp]
movzx ecx, byte [rax + 0x1f]
and ecx, 0x7f
mov byte [rax + 0x1f], cl
mov rax, qword [rsp]
movzx ecx, byte [rax + 0x1f]
or ecx, 0x40
mov byte [rax + 0x1f], cl
pop rax
nop
pop rcx
jmp rcx
Function at 0x18003e1a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
je 0x18003e1b0
jne 0x18003e1b0
movabs eax, dword [0x3d217d80980eec7c]
lahf
sahf
invalid
sub rsp, 0x68
js 0x18003e1c4
jns 0x18003e1c4
xor bl, dl
pushfq
adc al, 0xcd
pop rdx
invalid
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x58], rcx
mov word [rsp + 0x2e], 0
mov dword [rsp + 0x28], 0
cmp dword [rsp + 0x28], 0x20
jge 0x18003e284
and al, 0x28
and byte [rdi], cl
lea ebx, [rax + rax + 0x16720000]
jb 0x18003e200
jae 0x18003e200
test byte [rcx + 0x6b61abf], ah
add byte [rbx], ah
ret
mov rax, qword [rsp + 0x58]
movsxd rcx, dword [rsp + 0x28]
movzx eax, byte [rax + rcx]
movzx eax, ax
mov rcx, qword [rsp + 0x60]
movsxd rdx, dword [rsp + 0x28]
movzx ecx, byte [rcx + rdx]
movzx ecx, cx
sub eax, ecx
movzx ecx, word [rsp + 0x2e]
sub eax, ecx
mov word [rsp + 0x2e], ax
mov ax, word [rsp + 0x2e]
mov cl, al
movsxd rax, dword [rsp + 0x28]
mov byte [rsp + rax + 0x30], cl
movzx eax, word [rsp + 0x2e]
sar eax, 8
and eax, 1
mov word [rsp + 0x2e], ax
jle 0x18003e268
jg 0x18003e268
ja 0x18003e1df
cwde
sbb ebp, dword [rsi - 0x3f]
jbe 0x18003e279
or al, 0x2a
mov cl, 0x25
int1
pop rbx
ret 0x6f34
mov eax, dword [rsp + 0x28]
add eax, 1
mov dword [rsp + 0x28], eax
push 0
push rax
lea rax, [0x18003e1dd]
mov qword [rsp + 8], rax
pop rax
ret
invalid
mov ax, word [rsp + 0x2e]
mov r9b, al
mov r8, qword [rsp + 0x58]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
call fcn.18003e2b0
add rsp, 0x68
nop
pop rcx
jmp rcx
Function at 0x1800737d8
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180073808
xor eax, eax
jmp 0x1800738cb
mov rbp, rbx
cmp word [rax], si
je 0x18007382d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180073814
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180073810
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1800736f8
movsxd r14, eax
test eax, eax
jne 0x18007386b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180073801
mov rcx, r14
call fcn.18006e67c
mov rdi, rax
test rax, rax
jne 0x180073884
xor ecx, ecx
call fcn.18006fde0
jmp 0x180073860
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1800736f8
test eax, eax
jne 0x1800738b5
mov rcx, rdi
call fcn.18006fde0
jmp 0x1800738bf
xor ecx, ecx
call fcn.18006fde0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x180077318
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18007732e
mov al, 1
jmp 0x18007738e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18007733f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18007738c
mov ecx, dword [rcx + 0x18]
nop
call fcn.180077c7c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18007738c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18007738c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18007738c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18007738e
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x18007ad70
Capabilities:
Parse pe header

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