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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
xor r13d, r13d
mov qword [rsp + 0x38], 0x100
lea r8, [0x140000000]
nop dword [rax + rax]
movzx r15d, byte [r8 + r13 + 0x296330]
mov r10d, 8
movzx r14d, byte [r8 + r13 + 0x296430]
movzx ebp, r15b
sar bpl, 7
movzx eax, r15b
add al, al
and bpl, 0x1b
xor bpl, al
movzx r9d, r14b
movzx r12d, bpl
mov al, 0xe
xor r12b, r15b
xor sil, sil
nop dword [rax]
movzx ecx, sil
movzx r8d, r9b
xor cl, al
movzx edx, cl
and r8b, 1
movzx ecx, sil
cmove edx, ecx
movzx ecx, al
add cl, cl
shr r9b, 1
movzx esi, dl
movzx edx, cl
movzx ecx, al
movzx eax, dl
xor al, 0x1b
test cl, cl
movzx eax, al
cmovns eax, edx
sub r10d, 1
jne 0x1401d6750
movzx r9d, r14b
mov r8b, 9
xor dil, dil
mov r10d, 8
nop dword [rax]
movzx eax, dil
movzx edx, r9b
xor al, r8b
movzx ecx, al
and dl, 1
movzx eax, dil
cmove ecx, eax
movzx eax, r8b
add al, al
shr r9b, 1
movzx edx, al
movzx eax, dl
movzx edi, cl
xor al, 0x1b
movzx ecx, r8b
test cl, cl
movzx r8d, al
cmovns r8d, edx
sub r10d, 1
jne 0x1401d67a0
movzx r9d, r14b
mov r8b, 0xd
xor bl, bl
mov r10d, 8
nop
movzx eax, bl
movzx edx, r9b
xor al, r8b
movzx ecx, al
and dl, 1
movzx eax, bl
cmove ecx, eax
movzx eax, r8b
add al, al
shr r9b, 1
movzx edx, al
movzx eax, dl
movzx ebx, cl
xor al, 0x1b
movzx ecx, r8b
test cl, cl
movzx r8d, al
cmovns r8d, edx
sub r10d, 1
jne 0x1401d67f0
movzx r9d, r14b
mov r8b, 0xb
xor r11b, r11b
mov r10d, 8
nop
movzx eax, r11b
movzx edx, r9b
xor al, r8b
movzx ecx, al
and dl, 1
movzx eax, r11b
cmove ecx, eax
movzx eax, r8b
add al, al
shr r9b, 1
movzx edx, al
movzx eax, dl
movzx r11d, cl
xor al, 0x1b
movzx ecx, r8b
test cl, cl
movzx r8d, al
cmovns r8d, edx
sub r10d, 1
jne 0x1401d6840
lea r8, [0x140000000]
movzx eax, bpl
movzx ecx, r12b
mov edx, r15d
shl ecx, 8
or ecx, r15d
mov dword [r8 + r13*4 + 0x298620], edx
shl ecx, 8
or ecx, r15d
rol edx, 8
shl ecx, 8
or ecx, eax
mov dword [r8 + r13*4 + 0x298a20], edx
mov dword [r8 + r13*4 + 0x296620], ecx
mov eax, r14d
rol ecx, 8
mov dword [r8 + r13*4 + 0x296a20], ecx
rol ecx, 8
mov dword [r8 + r13*4 + 0x296e20], ecx
rol ecx, 8
mov dword [r8 + r13*4 + 0x297220], ecx
mov ecx, r11d
shl ecx, 8
or ecx, ebx
mov dword [r8 + r13*4 + 0x299620], eax
shl ecx, 8
or ecx, edi
rol eax, 8
shl ecx, 8
or ecx, esi
mov dword [r8 + r13*4 + 0x299a20], eax
mov dword [r8 + r13*4 + 0x297620], ecx
rol ecx, 8
mov dword [r8 + r13*4 + 0x297a20], ecx
rol ecx, 8
rol edx, 8
rol eax, 8
mov dword [r8 + r13*4 + 0x297e20], ecx
mov dword [r8 + r13*4 + 0x298e20], edx
mov dword [r8 + r13*4 + 0x299e20], eax
rol ecx, 8
rol edx, 8
rol eax, 8
mov dword [r8 + r13*4 + 0x298220], ecx
mov dword [r8 + r13*4 + 0x299220], edx
mov dword [r8 + r13*4 + 0x29a220], eax
inc r13
sub qword [rsp + 0x38], 1
jne 0x1401d6710
mov rbx, qword [rsp + 0x30]
mov al, 1
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400a8680]
mov dword [rax], 1
mov rax, qword [0x1400a8690]
mov dword [rax], 1
mov rax, qword [0x1400a86a0]
mov dword [rax], 1
mov rax, qword [0x1400a8620]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140025250
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.140086ba0
sub rsp, rax
xor eax, eax
xor edx, edx
xor esi, esi
mov r14d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x80], ax
mov r12, rcx
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x2e]
mov word [rsp + 0x30], dx
test dil, dil
je 0x1400252f9
nop dword [rax]
mov rax, r14
lea rbx, [rbp + rsi*2]
sub rax, rsi
cmp word [rbp + rsi*2], 0
je 0x1400252be
nop dword [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x1400252b0
test rax, rax
je 0x140097a20
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r13
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [r12 + rsi]
test dil, dil
jne 0x140025298
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, rbp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140025328
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10080
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
Function at 0x140025340
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
xor eax, eax
xor esi, esi
mov r13d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x30], ax
mov rbp, rcx
mov r14, rdx
lea r15, [rsp + 0x30]
lea r12, [rsp + 0x2e]
test dil, dil
je 0x1400253e1
nop word [rax + rax]
mov rax, r13
lea rbx, [r15 + rsi*2]
sub rax, rsi
cmp word [r15 + rsi*2], 0
je 0x1400253a6
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140025398
test rax, rax
je 0x140097a26
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r12
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [rbp + rsi]
test dil, dil
jne 0x140025380
mov rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14007bf40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp byte [0x1400b9799], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x14007bfc8
lea rdx, [0x1400a46ca]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14007c030
mov rbx, qword [0x1400b9658]
jmp 0x14007bf85
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x14007bf80
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.14006a6c0
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x1400b9658], rax
mov ebx, dword [rax]
mov qword [0x1400b9658], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400b9658], rdx
call fcn.14007b070
cmp eax, ebx
jne 0x14007c0ca
mov byte [0x1400b9799], 1
jmp 0x14007bf5e
cmp byte [0x1400b9798], 0
jne 0x14007bf75
mov rbx, qword [sym.imp.python38.dll_PyDict_New]
lea rsi, [0x1400b8e48]
call rbx
mov qword [0x1400ba0c8], rax
call rbx
mov qword [0x1400ba0c0], rax
call rbx
mov qword [0x1400ba0b8], rax
call rbx
mov qword [0x1400ba0b0], rax
call rbx
mov qword [0x1400ba0a8], rax
call rbx
mov qword [0x1400ba0a0], rax
call rbx
mov qword [0x1400ba098], rax
call rbx
mov r13, qword [sym.imp.python38.dll_PyLong_FromLong]
mov rbx, 0xfffffffffffffffb
mov qword [0x1400ba090], rax
nop dword [rax]
mov ecx, ebx
call r13
mov qword [rsi + rbx*8], rax
add rbx, 1
cmp rbx, 0x101
jne 0x14007c0a8
mov byte [0x1400b9798], 1
jmp 0x14007bf75
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140085880
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140096f60
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140096f60
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x140086552
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400ba528]
test eax, eax
je 0x1400865ea
lea rax, [0x1400ba500]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400ba530]
mov qword [rbp - 8], rax
jmp 0x1400865ce
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400865c2
cmp qword [rbp - 0x10], 0
je 0x1400865c2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140086588
lea rax, [0x1400ba500]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400865eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400866f0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140086718
mov eax, 0
jmp 0x140086766
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140086741
mov eax, 0
jmp 0x140086766
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140086761
mov eax, 0
jmp 0x140086766
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14008676c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400867ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400867e1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400867e1
mov rax, qword [rbp - 8]
jmp 0x1400867ff
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400867b4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1402ba27c
Capabilities:
Parse pe header

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

Function at 0x1402c05f0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1402c03ec
Function at 0x1402c5068
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 0x1402c5098
xor eax, eax
jmp 0x1402c515b
mov rbp, rbx
cmp word [rax], si
je 0x1402c50bd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1402c50a4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1402c50a0
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.1402c4f88
movsxd r14, eax
test eax, eax
jne 0x1402c50fb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1402c5091
mov rcx, r14
call fcn.1402c0ebc
mov rdi, rax
test rax, rax
jne 0x1402c5114
xor ecx, ecx
call fcn.1402c1d50
jmp 0x1402c50f0
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.1402c4f88
test eax, eax
jne 0x1402c5145
mov rcx, rdi
call fcn.1402c1d50
jmp 0x1402c514f
xor ecx, ecx
call fcn.1402c1d50
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 0x1401a2ad0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1401a2add
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1401a2aed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1401a2ad5
lea eax, [rcx + 1]
jmp 0x1401a2afb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1401a2b0e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1401a2af4
sub eax, 3
jb 0x1401a2b2e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1401a2b7d
sar eax, 1
movsxd rbp, eax
jb 0x1401a2b64
jmp 0x1401a2b3c
add ebx, ebx
jne 0x1401a2b3a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401a2b64
inc ecx
add ebx, ebx
jne 0x1401a2b4a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401a2b64
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1401a2b5d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1401a2b4c
add ecx, 2
jmp 0x1401a2b69
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1401a2a92
jmp 0x1401a2add
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xd5a00
mov dl, 0x1b
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1401a2bcd
cmp rsi, rcx
jae 0x1401a2bd5
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1401a2bb4
cmp al, 0x8f
ja 0x1401a2bb4
cmp byte [rsi - 2], 0xf
je 0x1401a2bba
sub al, 0xe8
cmp al, 1
ja 0x1401a2b9e
cmp rsi, rcx
jae 0x1401a2bd5
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1401a2ba4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1401a2bd5
lodsb al, byte [rsi]
jmp 0x1401a2bb4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x19f000]
mov eax, dword [rdi]
or eax, eax
je 0x1401a2c32
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1a257c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1401a2be2
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1401a2c2c
mov qword [rbx], rax
add rbx, 8
jmp 0x1401a2c02
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1401a2c76
cmp al, 0xef
ja 0x1401a2c5e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1401a2c3e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1401a2c4d
mov eax, dword [rdi]
add rdi, 4
jmp 0x1401a2c4d
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1401a2cca
sub rsp, 0xffffffffffffff80
jmp 0x140060370
Function at 0x14002924c
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.14001c844
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c844
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002939c
cmp rax, 0xffffffffffffffff
je 0x14002939c
xor edi, edi
test rbp, rbp
jle 0x140029347
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f158
mov rbx, rax
test rax, rax
jne 0x1400292d4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002933d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a178
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.14001d520
cmp eax, 0xffffffff
je 0x14002931d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400292e4
mov edx, r15d
mov ecx, r14d
call fcn.14001a178
jmp 0x14002933d
cmp byte [rsi + 0x38], dil
je 0x140029334
cmp dword [rsi + 0x34], 5
jne 0x140029334
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002933d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001af0c
jmp 0x1400293b0
jns 0x1400293b0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c844
cmp rax, 0xffffffffffffffff
jne 0x140029368
cmp byte [rsi + 0x30], dil
je 0x1400293b0
mov edi, dword [rsi + 0x2c]
jmp 0x1400293b0
mov ecx, r14d
call fcn.140018630
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400293b0
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 0x1400293b0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400293a9
mov eax, dword [rsi + 0x2c]
jmp 0x1400293ae
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c844
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 0x42a000
Capabilities:
Create process on windows
Get file size
Hide graphical window
Open clipboard
Read file on windows
Terminate process
Write and execute a file
Write clipboard data
Write file on windows

Disassembly:
sub rsp, 0x20
mov rcx, 0
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
add rsp, 0x20
sub rsp, 8
sub rsp, 0x30
mov rcx, rax
mov rdx, 0x25
mov r8, 0
mov r9, 0x42a05d
mov qword [rsp + 0x20], 0
call qword [sym.imp.USER32.DLL_DialogBoxParamA]
add rsp, 0x30
sub rsp, 0x20
mov rcx, 0
call qword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x140002c10
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x140002c6d
lea rbx, [0x14004e0e0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140002c54
cmp r10, 2
jb 0x140002c54
cmp byte [r9], r8b
jne 0x140002c54
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140002c30
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140002caf
lea rbx, [0x14004e0e0]
cmp r8b, 0x23
jne 0x140002c93
cmp byte [r9], r8b
jne 0x140002c93
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140002c80
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140002e70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rcx
test rcx, rcx
jne 0x140002e9f
mov r8d, 0x72f
lea rdx, str.C:UserswtfffDownloadsmenu_phobiamenu_phobiaimgui.cpp
lea rcx, str.filename__mode
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rdi, rdi
je 0x140002eab
mov qword [rdi], 0
lea rdx, [0x14004da18]
mov rcx, rbx
call fcn.140002cc0
mov rbx, rax
test rax, rax
jne 0x140002ecd
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x140002fa4
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002fa4
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x140002fa4
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002fa4
cmp rsi, 0xffffffffffffffff
je 0x140002fa4
mov rax, qword [0x1400c25e0]
test rax, rax
je 0x140002f41
inc dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rax, rax
je 0x140002fa4
mov r9, rbx
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rsi
je 0x140002f91
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400c25e0]
test rax, rax
je 0x140002f86
dec dword [rax + 0xec]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140002fad
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x140002f9f
mov qword [rdi], rsi
mov rax, rbp
jmp 0x140002faf
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret