joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff7c3b08260
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x7ff7c3bb6500]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rcx
mov qword [rcx], 0
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x7ff7c3b082f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x20], 8
mov r9d, 1
xor r8d, r8d
lea rdx, str.Crypto_RNG
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x7ff7c3b082f8
mov dword [rsp + 0x20], 0x28
mov r9d, 1
xor r8d, r8d
lea rdx, str.Crypto_RNG
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x7ff7c3b0831c
mov rax, rbx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.7ff7c3b40d30
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.CryptAcquireContext
lea rcx, [rsp + 0x30]
call fcn.7ff7c3aca6d0
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.7ff7c3b083d0
lea rdx, [0x7ff7c3bb4018]
lea rcx, [rsp + 0x50]
call fcn.7ff7c3b42f88
int3

Function at 0x7ff7c3b40590
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
call fcn.7ff7c3b5ba2c
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x7ff7c3b405e2
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov r9d, 2
lea edx, [r9 + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx ecx, word [rsp + 0x30]
sub ecx, 0x30
je 0x7ff7c3b405e2
sub ecx, 1
je 0x7ff7c3b405db
cmp ecx, 1
je 0x7ff7c3b405d4
xor eax, eax
jmp 0x7ff7c3b405e7
mov eax, 3
jmp 0x7ff7c3b405e7
mov eax, 1
jmp 0x7ff7c3b405e7
mov eax, 2
add rsp, 0x28
ret

Function at 0x7ff7c3b41d14
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x7ff7c3b41d5e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x7ff7c3b41d5e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x7ff7c3b41d5e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x7ff7c3b41d5e
cmp dword [rcx + 0x84], 0xe
jbe 0x7ff7c3b41d5e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x7ff7c3b41d60
xor al, al
add rsp, 0x28
ret
Function at 0x7ff7c3b51bdc
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 0x7ff7c3b51a47
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x7ff7c3b51a47
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x7ff7c3b51a47
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x7ff7c3b51a47
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x7ff7c3b51a47
cmp dword [rcx + 0x84], 0xe
jbe 0x7ff7c3b51a47
cmp dword [rcx + 0xf8], 0
je 0x7ff7c3b51a47
mov ecx, ebx
call fcn.7ff7c3b51af8
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.7ff7c3b518d4
nop
cmp dword [rbp + 0x20], 0
je 0x7ff7c3b51a95
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.7ff7c3b51aa0
int3
xor r8d, r8d
xor edx, edx
jmp 0x7ff7c3b519d8

Function at 0x7ff7c3b623e8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x7ff7c3b623fe
mov al, 1
jmp 0x7ff7c3b6245e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x7ff7c3b6240f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x7ff7c3b6245c
mov ecx, dword [rcx + 0x18]
nop
call fcn.7ff7c3b6e298
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x7ff7c3b6245c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x7ff7c3b6245c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x7ff7c3b6245c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x7ff7c3b6245e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x7ff7c3b65b48
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.7ff7c3b41b60
sub rsp, rax
mov rax, qword [0x7ff7c3bb6500]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.7ff7c3b621cc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x7ff7c3b65b97
mov rax, rbp
jmp 0x7ff7c3b65c9f
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, [0x7ff7c3ac0000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x100320]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.7ff7c3b66a28
mov r13, rax
lea rax, [0x7ff7c3ac0000]
mov rcx, qword [rax + rbx*8 + 0x100320]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x7ff7c3b65c9b
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 0x7ff7c3b65c9b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.7ff7c3b66a28
test rax, rax
js 0x7ff7c3b65c9b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x7ff7c3b65c9b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x7ff7c3b65c8d
lea r8, [0x7ff7c3ac0000]
cmp rcx, rdx
jae 0x7ff7c3b65c8d
cmp byte [rcx], 0xd
jne 0x7ff7c3b65c73
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x7ff7c3b65c82
cmp byte [rcx + 1], 0xa
jne 0x7ff7c3b65c82
inc rcx
jmp 0x7ff7c3b65c82
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xf6950]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x7ff7c3b65c55
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x7ff7c3b65c9f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.7ff7c3b40d30
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 0x7ff7c3b65dc8
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, [0x7ff7c3bc0320]
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 0x7ff7c3b65e1f
cmp word [rdx], r13w
jne 0x7ff7c3b65e1f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x7ff7c3b65e24
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x7ff7c3b65f49
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x7ff7c3b65f6a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x7ff7c3b65e5d
mov rdx, r9
mov word [rbx], cx
jmp 0x7ff7c3b65e84
cmp r9, r8
jae 0x7ff7c3b65e94
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 0x7ff7c3b65e3e
jmp 0x7ff7c3b65f49
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 0x7ff7c3b65f3e
cmp dword [rsp + 0x80], esi
je 0x7ff7c3b65f3e
lea r8, [0x7ff7c3bc0320]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x7ff7c3b65f16
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x7ff7c3b65ee6
mov word [rbx], r13w
jmp 0x7ff7c3b65f46
mov ecx, 0xd
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 0x7ff7c3b65ef3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x7ff7c3b65f46
cmp word [rsp + 0x70], r13w
jne 0x7ff7c3b65f23
cmp rbx, r14
je 0x7ff7c3b65ee0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.7ff7c3b66a30
cmp word [rsp + 0x70], r13w
je 0x7ff7c3b65f49
mov ecx, 0xd
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, [0x7ff7c3bc0320]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x7ff7c3b65f43
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x7ff7c3b65f49
Function at 0x7ff7c3b6d08c
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 0x7ff7c3b6d0bc
xor eax, eax
jmp 0x7ff7c3b6d17f
mov rbp, rbx
cmp word [rax], si
je 0x7ff7c3b6d0e1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x7ff7c3b6d0c8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x7ff7c3b6d0c4
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.7ff7c3b67ba8
movsxd r14, eax
test eax, eax
jne 0x7ff7c3b6d11f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x7ff7c3b6d0b5
mov rcx, r14
call fcn.7ff7c3b66ad4
mov rdi, rax
test rax, rax
jne 0x7ff7c3b6d138
xor ecx, ecx
call fcn.7ff7c3b63d30
jmp 0x7ff7c3b6d114
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.7ff7c3b67ba8
test eax, eax
jne 0x7ff7c3b6d169
mov rcx, rdi
call fcn.7ff7c3b63d30
jmp 0x7ff7c3b6d173
xor ecx, ecx
call fcn.7ff7c3b63d30
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 0x7ff7c3b707ec
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.7ff7c3b62974
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 0x7ff7c3b7088d
cmp ebx, dword [rsp + 0x30]
je 0x7ff7c3b70886
test esi, esi
je 0x7ff7c3b70886
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x7ff7c3b70861
sub r8w, 0x61
cmp r8w, 0x19
ja 0x7ff7c3b7086e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x7ff7c3b7084b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x7ff7c3b70872
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x7ff7c3b7088f
mov eax, 1
jmp 0x7ff7c3b7088f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x7ff7c3b7510c
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.7ff7c3b520bc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x7ff7c3b75196
cmp byte [rbp - 0x21], r15b
je 0x7ff7c3b75191
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x7ff7c3b751cc
call fcn.7ff7c3b64cd4
test eax, eax
jne 0x7ff7c3b751b8
cmp byte [rbp - 0x21], r15b
je 0x7ff7c3b751b0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x7ff7c3b751cc
cmp byte [rbp - 0x21], r15b
je 0x7ff7c3b751c9
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.7ff7c3b51e24
test eax, eax
jne 0x7ff7c3b7526c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.7ff7c3b520bc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x7ff7c3b7520b
cmp byte [rbp - 0x21], r15b
je 0x7ff7c3b75240
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x7ff7c3b75240
call fcn.7ff7c3b64cd4
test eax, eax
jne 0x7ff7c3b7522c
cmp byte [rbp - 0x21], r15b
je 0x7ff7c3b75225
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x7ff7c3b75240
cmp byte [rbp - 0x21], r15b
je 0x7ff7c3b7523d
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.7ff7c3b51e24
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x7ff7c3b7526c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x7ff7c3b7526f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x7ff7c3b7527d
mov rcx, rdi
call fcn.7ff7c3b63d30
cmp byte [rbp + 0x3f], r15b
je 0x7ff7c3b7528c
mov rcx, qword [rbp + 0x27]
call fcn.7ff7c3b63d30
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 0x7ff7c3b762a4
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.7ff7c3b66a30
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.7ff7c3b66a30
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x7ff7c3b763f4
cmp rax, 0xffffffffffffffff
je 0x7ff7c3b763f4
xor edi, edi
test rbp, rbp
jle 0x7ff7c3b7639f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.7ff7c3b64994
mov rbx, rax
test rax, rax
jne 0x7ff7c3b7632c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x7ff7c3b76395
mov edx, 0x8000
mov ecx, r14d
call fcn.7ff7c3b5fb10
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.7ff7c3b63a28
cmp eax, 0xffffffff
je 0x7ff7c3b76375
cdqe
sub rbp, rax
test rbp, rbp
jg 0x7ff7c3b7633c
mov edx, r15d
mov ecx, r14d
call fcn.7ff7c3b5fb10
jmp 0x7ff7c3b76395
cmp byte [rsi + 0x38], dil
je 0x7ff7c3b7638c
cmp dword [rsi + 0x34], 5
jne 0x7ff7c3b7638c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x7ff7c3b76395
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.7ff7c3b63d30
jmp 0x7ff7c3b76408
jns 0x7ff7c3b76408
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.7ff7c3b66a30
cmp rax, 0xffffffffffffffff
jne 0x7ff7c3b763c0
cmp byte [rsi + 0x30], dil
je 0x7ff7c3b76408
mov edi, dword [rsi + 0x2c]
jmp 0x7ff7c3b76408
mov ecx, r14d
call fcn.7ff7c3b6e298
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x7ff7c3b76408
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 0x7ff7c3b76408
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x7ff7c3b76401
mov eax, dword [rsi + 0x2c]
jmp 0x7ff7c3b76406
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.7ff7c3b66a30
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 0x1400155fc
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 0x14001567a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140015671
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 0x140015671
mov rax, qword [rbp - 8]
jmp 0x14001568f
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 0x140015644
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140f8339c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f833a6
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f833cf
pop rbp
sub rbp, 0x33
sub rbp, 0xf8339c
sub rsp, 0x20
jmp 0x140f833ee
mov rax, 0xf8339c
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffb0876b6d
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f8340d
jmp 0x140f83424
and eax, 0xe4e684e4
push rcx
insd dword [rdi], dx
insd dword [rdi], dx
insd dword [rdi], dx
and eax, 0x6c65acec
insd dword [rdi], dx
insd dword [rdi], dx
and eax, 0xaa25846c
lodsd eax, dword [rsi]
push 0x6d
insd dword [rdi], dx
insd dword [rdi], dx
and eax, 0x6d45afaa
insd dword [rdi], dx
insd dword [rdi], dx
and eax, 0x6c258f9a
lodsb al, byte [rsi]
out 0xec, al
invalid
Function at 0x14000a370
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x140017060]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov dword [rsp + 0x30], 0x114
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x14000a3b0
mov eax, 0xff
jmp 0x14000a55b
mov r8d, dword [rsp + 0x3c]
and r8d, 0x7fff
mov r9d, dword [rsp + 0x40]
cmp r9d, 2
je 0x14000a3cc
bts r8d, 0xf
mov edx, dword [rsp + 0x34]
mov ecx, edx
shl ecx, 8
mov eax, dword [rsp + 0x38]
add ecx, eax
mov dword [0x140018cc8], r9d
mov dword [0x140018cd0], ecx
mov dword [0x140018cd4], edx
mov dword [0x140018cd8], eax
mov dword [0x140018ccc], r8d
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14000a443
movsxd rax, dword [0x14000003c]
lea rcx, [0x140000000]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x14000a443
mov ecx, 0x20b
cmp word [rax + 0x18], cx
jne 0x14000a443
xor ebx, ebx
cmp dword [rax + 0x84], 0xe
jbe 0x14000a445
cmp dword [rax + 0xf8], ebx
setne bl
jmp 0x14000a445
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov edi, 1
mov ecx, edi
call fcn.14000c07c
test eax, eax
jne 0x14000a47b
cmp dword [0x14001871c], 2
je 0x14000a467
call fcn.14000be60
mov ecx, 0x1c
call fcn.14000beac
mov ecx, 0xff
call fcn.14000bab0
call fcn.14000b990
test eax, eax
jne 0x14000a4a7
cmp dword [0x14001871c], 2
je 0x14000a492
call fcn.14000be60
mov ecx, 0x10
call fcn.14000beac
mov ecx, 0xff
call fcn.14000bab0
nop
call fcn.14000c0f0
test eax, eax
jns 0x14000a4ba
mov ecx, 0x1b
call fcn.14000bacc
call sub.KERNEL32.dll_GetCommandLineW
mov qword [0x14001a8d0], rax
call fcn.14000c890
mov qword [0x140018720], rax
call fcn.14000c38c
test eax, eax
jns 0x14000a4e5
mov ecx, 8
call fcn.14000bacc
call fcn.14000c66c
test eax, eax
jns 0x14000a4f8
mov ecx, 9
call fcn.14000bacc
mov ecx, edi
call fcn.14000bb2c
test eax, eax
je 0x14000a50a
mov ecx, eax
call fcn.14000bacc
mov r8, qword [0x140018cb8]
mov qword [0x140018ce8], r8
mov rdx, qword [0x140018cb0]
mov ecx, dword [0x140018cac]
call fcn.140006490
mov edi, eax
mov dword [rsp + 0x24], eax
test ebx, ebx
jne 0x14000a53b
mov ecx, eax
call fcn.14000be50
call fcn.14000bb18
jmp 0x14000a559
mov eax, edi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400ac000
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
sub rsp, 0x28
call fcn.14000c7b8
add rsp, 0x28
jmp 0x14000a370

Function at 0x14000b06c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x14000ba44
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x14000bcc0
Function at 0x14000beac
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
lea r14, reloc.OLEAUT32.dll_SysReAllocString
mov edi, ecx
xor edx, edx
mov r8, r14
cmp ecx, dword [r8]
je 0x14000bee3
inc edx
add r8, 0x10
movsxd rax, edx
cmp rax, 0x17
jb 0x14000becf
movsxd rbx, edx
cmp rbx, 0x17
jae 0x14000c05d
mov ebp, 3
mov ecx, ebp
call fcn.14000f640
cmp eax, 1
je 0x14000c01e
mov ecx, ebp
call fcn.14000f640
test eax, eax
jne 0x14000bf1d
cmp dword [section..data], 1
je 0x14000c01e
cmp edi, 0xfc
je 0x14000c05d
lea rdi, [0x140018cf0]
mov ebp, 0x314
lea r8, [0x140001938]
mov rcx, rdi
mov edx, ebp
call fcn.14000c9c4
test eax, eax
je 0x14000bf5f
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.14000d8a4
lea rdx, [0x140018d09]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x140018e0d], 0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x14000bfb0
lea r8, [0x140001958]
lea rcx, [0x140018d09]
mov edx, 0x2fb
call fcn.14000c9c4
test eax, eax
je 0x14000bfb0
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.14000d8a4
lea r8, [0x140001970]
mov rdx, rbp
mov rcx, rdi
call fcn.14000f5b0
test eax, eax
je 0x14000bfdb
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.14000d8a4
add rbx, rbx
mov rdx, rbp
mov rcx, rdi
mov r8, qword [r14 + rbx*8 + 8]
call fcn.14000f5b0
test eax, eax
je 0x14000c007
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.14000d8a4
lea rdx, [0x140001978]
mov r8d, 0x12010
mov rcx, rdi
call fcn.14000f698
jmp 0x14000c05d
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14000c05d
add rbx, rbx
or r8, 0xffffffffffffffff
mov rdx, qword [r14 + rbx*8 + 8]
inc r8
cmp byte [rdx + r8], 0
jne 0x14000c03f
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret