joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007271b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140157068
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x14018bd18]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor r10d, r10d
lea r11, [0x14018f2b0]
test r9, r9
lea rdi, [0x14016c7bc]
mov rax, rdx
mov r15, rdx
cmovne r11, r9
test rdx, rdx
lea ebp, [r10 + 1]
cmovne rdi, rdx
mov r14d, ebp
cmovne r14, r8
neg rax
sbb rsi, rsi
and rsi, rcx
test r14, r14
jne 0x1401570d1
mov rax, 0xfffffffffffffffe
jmp 0x14015721f
cmp word [r11 + 6], r10w
jne 0x140157140
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x1401570fb
test rsi, rsi
je 0x1401570ec
mov dword [rsi], r9d
test r9b, r9b
setne r10b
mov rax, r10
jmp 0x14015721f
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x140157109
mov r8b, 2
jmp 0x140157127
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x140157117
mov r8b, 3
jmp 0x140157127
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x14015720d
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x140157169
mov r8b, byte [r11 + 4]
mov edx, dword [r11]
mov bl, byte [r11 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x14015720d
cmp bl, bpl
jb 0x14015720d
cmp bl, r8b
jae 0x14015720d
movzx ebp, bl
cmp rbp, r14
mov r9d, ebp
cmovae r9, r14
jmp 0x140157196
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x14015720d
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r15
cmp rax, r9
jb 0x140157178
cmp r9, rbp
jae 0x1401571c2
movzx eax, r8b
sub bl, r9b
mov word [r11 + 4], ax
movzx eax, bl
mov word [r11 + 6], ax
mov dword [r11], edx
jmp 0x1401570c5
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x14015720d
cmp edx, 0x110000
jae 0x14015720d
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x14015720d
test rsi, rsi
je 0x140157200
mov dword [rsi], edx
neg edx
mov qword [r11], r10
sbb rax, rax
and rax, rbp
jmp 0x14015721f
mov qword [r11], r10
call fcn.140072bcb
mov dword [rax], 0x2a
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140073490
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140072856
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
jmp 0x14008a2a0
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x14019f0a3]
call fcn.140075c1d
mov eax, 4
imul rax, rax, 0
mov ecx, 4
imul rcx, rcx, 4
mov rdx, qword [rbp + 0x100]
mov r8, qword [rbp + 0x108]
mov eax, dword [r8 + rax]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 0
mov ecx, 4
imul rcx, rcx, 5
mov rdx, qword [rbp + 0x100]
mov r8, qword [rbp + 0x108]
mov eax, dword [r8 + rax + 4]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 0
mov ecx, 4
imul rcx, rcx, 6
mov rdx, qword [rbp + 0x100]
mov r8, qword [rbp + 0x108]
mov eax, dword [r8 + rax + 8]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 0
mov ecx, 4
imul rcx, rcx, 7
mov rdx, qword [rbp + 0x100]
mov r8, qword [rbp + 0x108]
mov eax, dword [r8 + rax + 0xc]
mov dword [rdx + rcx], eax
cmp dword [rbp + 0x110], 0x100
jne 0x14008a398
mov rax, qword [rbp + 0x108]
add rax, 0x10
mov qword [rbp + 0x108], rax
lea rax, str.expand_32_byte_k
mov qword [rbp + 8], rax
jmp 0x14008a3a3
lea rax, str.expand_16_byte_k
mov qword [rbp + 8], rax
mov eax, 4
imul rax, rax, 0
mov ecx, 4
imul rcx, rcx, 8
mov rdx, qword [rbp + 0x100]
mov r8, qword [rbp + 0x108]
mov eax, dword [r8 + rax]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 0
mov ecx, 4
imul rcx, rcx, 9
mov rdx, qword [rbp + 0x100]
mov r8, qword [rbp + 0x108]
mov eax, dword [r8 + rax + 4]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 0
mov ecx, 4
imul rcx, rcx, 0xa
mov rdx, qword [rbp + 0x100]
mov r8, qword [rbp + 0x108]
mov eax, dword [r8 + rax + 8]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 0
mov ecx, 4
imul rcx, rcx, 0xb
mov rdx, qword [rbp + 0x100]
mov r8, qword [rbp + 0x108]
mov eax, dword [r8 + rax + 0xc]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 0
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x100]
mov r8, qword [rbp + 8]
mov eax, dword [r8 + rax]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 0
mov ecx, 4
imul rcx, rcx, 1
mov rdx, qword [rbp + 0x100]
mov r8, qword [rbp + 8]
mov eax, dword [r8 + rax + 4]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 0
mov ecx, 4
imul rcx, rcx, 2
mov rdx, qword [rbp + 0x100]
mov r8, qword [rbp + 8]
mov eax, dword [r8 + rax + 8]
mov dword [rdx + rcx], eax
mov eax, 4
imul rax, rax, 0
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rbp + 0x100]
mov r8, qword [rbp + 8]
mov eax, dword [r8 + rax + 0xc]
mov dword [rdx + rcx], eax
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x140072da1
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x1400feda0
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x1400fee2d
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x1400fee2d
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400fee2d
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x1400fee14
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1400fee0e
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1400fee16
add rdx, 0x28
jmp 0x1400fedf3
xor edx, edx
test rdx, rdx
jne 0x1400fee1f
xor al, al
jmp 0x1400fee33
cmp dword [rdx + 0x24], 0
jge 0x1400fee29
xor al, al
jmp 0x1400fee33
mov al, 1
jmp 0x1400fee33
xor al, al
jmp 0x1400fee33
add rsp, 0x18
ret
Function at 0x1400731ca
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x140081820
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x20]
lea rcx, [0x14019f02c]
call fcn.140075c1d
xor eax, eax
mov word [rbp + 4], ax
xor eax, eax
mov word [rbp + 0x24], ax
mov qword [rbp + 0x48], 0
mov rax, qword [rbp + 0x1a8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x1a8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x1400818b9
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
movzx eax, word [rax + 0x14]
mov rcx, qword [rbp + 0x88]
lea rax, [rcx + rax + 0x18]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x88]
movzx eax, word [rax + 6]
mov word [rbp + 0x24], ax
jmp 0x140081906
mov rax, qword [rbp + 0x68]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x1400818ff
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
movzx eax, word [rax + 0x14]
mov rcx, qword [rbp + 0xa8]
lea rax, [rcx + rax + 0x18]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0xa8]
movzx eax, word [rax + 6]
mov word [rbp + 0x24], ax
jmp 0x140081906
xor eax, eax
jmp 0x1400819bc
mov eax, 0x28
imul rax, rax, 0
mov rcx, qword [rbp + 0x48]
mov eax, dword [rcx + rax + 0x14]
cmp dword [rbp + 0x1a0], eax
jae 0x14008192a
mov eax, dword [rbp + 0x1a0]
jmp 0x1400819bc
xor eax, eax
mov word [rbp + 4], ax
jmp 0x14008193d
movzx eax, word [rbp + 4]
inc ax
mov word [rbp + 4], ax
movzx eax, word [rbp + 4]
movzx ecx, word [rbp + 0x24]
cmp eax, ecx
jge 0x1400819ba
movzx eax, word [rbp + 4]
imul rax, rax, 0x28
mov rcx, qword [rbp + 0x48]
mov eax, dword [rcx + rax + 0xc]
cmp dword [rbp + 0x1a0], eax
jb 0x1400819b5
movzx eax, word [rbp + 4]
imul rax, rax, 0x28
movzx ecx, word [rbp + 4]
imul rcx, rcx, 0x28
mov rdx, qword [rbp + 0x48]
mov eax, dword [rdx + rax + 0xc]
mov rdx, qword [rbp + 0x48]
add eax, dword [rdx + rcx + 0x10]
cmp dword [rbp + 0x1a0], eax
jae 0x1400819b5
movzx eax, word [rbp + 4]
imul rax, rax, 0x28
mov rcx, qword [rbp + 0x48]
mov eax, dword [rcx + rax + 0xc]
mov ecx, dword [rbp + 0x1a0]
sub ecx, eax
mov eax, ecx
movzx ecx, word [rbp + 4]
imul rcx, rcx, 0x28
mov rdx, qword [rbp + 0x48]
add eax, dword [rdx + rcx + 0x14]
jmp 0x1400819bc
jmp 0x140081932
xor eax, eax
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret

Function at 0x1400736b6
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14010d954
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x14016d778]
mov ecx, 2
lea r8, [0x14016d770]
lea rdx, str.FlsGetValue
call fcn.14010d424
mov ecx, ebx
test rax, rax
je 0x14010d98e
add rsp, 0x20
pop rbx
jmp qword [0x1401a0020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1400738f5
Capabilities:
Query environment variable

Disassembly:
jmp 0x1401432e0
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 r14d, r14d
mov rbx, rax
test rax, rax
je 0x1401433b2
mov rsi, rax
cmp word [rax], r14w
je 0x140143333
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x14014331b
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x140143317
mov qword [rsp + 0x38], r14
sub rsi, rbx
mov qword [rsp + 0x30], r14
add rsi, 2
sar rsi, 1
mov r8, rbx
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call fcn.140074967
movsxd rbp, eax
test eax, eax
je 0x1401433b2
mov rcx, rbp
call fcn.140071032
mov rdi, rax
test rax, rax
je 0x1401433a5
mov qword [rsp + 0x38], r14
mov r9d, esi
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.140074967
test eax, eax
je 0x1401433a5
mov rsi, rdi
mov rdi, r14
jmp 0x1401433a8
mov rsi, r14
mov rcx, rdi
call fcn.140071203
jmp 0x1401433b5
mov rsi, r14
test rbx, rbx
je 0x1401433c3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140073909
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14010d8a4
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x14016d738]
xor ecx, ecx
lea r8, [0x14016d730]
lea rdx, str.FlsAlloc
call fcn.14010d424
test rax, rax
je 0x14010d8dd
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1401a0020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x1400739a9
Capabilities:
Get geographical location

Disassembly:
jmp 0x140145834
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov esi, edx
lea r9, [0x14016fbe8]
mov rbp, rcx
lea r8, [0x14016fbe0]
lea rdx, str.GetLocaleInfoEx
mov ecx, 0xb
call fcn.140144c40
mov rcx, rbp
test rax, rax
je 0x14014588a
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [0x1401a0020]
jmp 0x1401458a1
xor edx, edx
call fcn.140072e05
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 0x1400739cc
Capabilities:
Terminate process

Disassembly:
jmp 0x1400fda0c
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 rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x140073c3d
Capabilities:
Parse pe header

Disassembly:
jmp 0x140132268
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x140131fbc
Function at 0x140074412
Capabilities:
Parse pe header

Disassembly:
jmp 0x140100200
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14010024b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14010024b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14010024b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14010024b
cmp dword [rcx + 0x84], 0xe
jbe 0x14010024b
cmp dword [rcx + 0xf8], 0
je 0x14010024b
mov al, 1
jmp 0x14010024d
xor al, al
add rsp, 0x28
ret
Function at 0x140074bbf
Capabilities:
Terminate process

Disassembly:
jmp 0x140113960
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14011397a
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.1400756aa
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x140074cd2
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140145648
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x14016fb20]
mov ecx, 5
lea r8, [0x14016fb18]
lea rdx, str.FlsGetValue
call fcn.140144c40
mov ecx, ebx
test rax, rax
je 0x140145682
add rsp, 0x20
pop rbx
jmp qword [0x1401a0020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1400752f4
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1401456a0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x14016fb30]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 6
lea r8, [0x14016fb28]
call fcn.140144c40
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x1401456e0
call qword [0x1401a0020]
jmp 0x1401456e6
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140075817
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14010d9ac
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x14016d798]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x14016d790]
call fcn.14010d424
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x14010d9ec
call qword [0x1401a0020]
jmp 0x14010d9f2
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140075ab0
Capabilities:
Parse pe header

Disassembly:
jmp 0x140132258
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140132023
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140132023
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140132023
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140132023
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140132023
cmp dword [rcx + 0x84], 0xe
jbe 0x140132023
cmp dword [rcx + 0xf8], 0
je 0x140132023
mov ecx, ebx
call fcn.1401321b4
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140131d34
cmp dword [rbp + 0x20], 0
je 0x140132070
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401320a8
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140131fbc
Function at 0x1400281bd
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
jmp 0x14005c9c0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x218
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x4e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x238]
mov rax, qword [0x1400a1040]
xor rax, rbp
mov qword [rbp + 0x1e8], rax
lea rcx, [0x1400ae6e6]
call fcn.140029789
mov qword [rbp + 8], 0
mov dword [rbp + 0x24], 0
lea r9, [rbp + 0x24]
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 8]
mov ecx, 0xb
call fcn.14002916c
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0xc0000004
jne 0x14005ca8b
cmp qword [rbp + 8], 0
je 0x14005ca53
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rbp + 0x24]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 8], rax
lea r9, [rbp + 0x24]
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 8]
mov ecx, 0xb
call fcn.14002916c
mov dword [rbp + 0x44], eax
jmp 0x14005ca31
cmp dword [rbp + 0x44], 0
jge 0x14005cab1
cmp qword [rbp + 8], 0
je 0x14005caaa
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14005cbe8
mov rax, qword [rbp + 8]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x14005cac7
xor eax, eax
jmp 0x14005cbe8
mov dword [rbp + 0x84], 0
jmp 0x14005cae1
mov eax, dword [rbp + 0x84]
inc eax
mov dword [rbp + 0x84], eax
mov rax, qword [rbp + 0x68]
mov eax, dword [rax]
cmp dword [rbp + 0x84], eax
jae 0x14005cbd4
mov eax, dword [rbp + 0x84]
imul rax, rax, 0x128
mov rcx, qword [rbp + 0x68]
lea rax, [rcx + rax + 8]
mov ecx, dword [rbp + 0x84]
imul rcx, rcx, 0x128
mov rdx, qword [rbp + 0x68]
movzx ecx, word [rdx + rcx + 0x2e]
lea rax, [rax + rcx + 0x28]
mov rdx, rax
lea rcx, [rbp + 0xa8]
call fcn.140028ad2
mov rcx, qword [rbp + 0x210]
call fcn.14002828f
mov qword [rbp + 0x1d8], rax
lea rcx, [rbp + 0xa8]
call fcn.14002828f
mov qword [rbp + 0x1e0], rax
mov rdx, qword [rbp + 0x1d8]
mov rcx, qword [rbp + 0x1e0]
call qword [sym.imp.ucrtbased.dll__stricmp]
test eax, eax
jne 0x14005cbc3
mov eax, dword [rbp + 0x84]
imul rax, rax, 0x128
mov rcx, qword [rbp + 0x68]
mov rax, qword [rcx + rax + 0x18]
mov qword [rbp + 0xe8], rax
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, qword [rbp + 0xe8]
mov qword [rbp + 0x1c8], rax
lea rcx, [rbp + 0xa8]
call fcn.1400284a1
mov rax, qword [rbp + 0x1c8]
jmp 0x14005cbe8
lea rcx, [rbp + 0xa8]
call fcn.1400284a1
jmp 0x14005cad3
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140095930]
call fcn.14002935b
mov rax, rdi
mov rcx, qword [rbp + 0x1e8]
xor rcx, rbp
call fcn.140028b9a
lea rsp, [rbp + 0x1f8]
pop rdi
pop rbp
ret
Function at 0x1400286c7
Capabilities:
Get common file path

Disassembly:
jmp 0x14005c7d0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x448
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xaa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x468]
mov rax, qword [0x1400a1040]
xor rax, rbp
mov qword [rbp + 0x410], rax
mov dword [rbp + 0x3f4], 0
lea rcx, [0x1400ae6e6]
call fcn.140029789
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rdx, [rbp + 0x10]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [rbp + 0x234], eax
cmp dword [rbp + 0x234], 0
je 0x14005c85d
cmp dword [rbp + 0x234], 0x105
jbe 0x14005c8b6
lea rdx, str.____Failed_to_get_temp_path
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140028c44
mov qword [rbp + 0x408], rax
lea rdx, [0x140028bae]
mov rcx, qword [rbp + 0x408]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rdx, [0x14008e4ec]
mov rcx, qword [rbp + 0x440]
call fcn.140028802
mov eax, dword [rbp + 0x3f4]
or eax, 1
mov dword [rbp + 0x3f4], eax
mov rax, qword [rbp + 0x440]
jmp 0x14005c928
lea rcx, [rbp + 0x10]
call qword [sym.imp.ucrtbased.dll_wcslen]
movzx eax, word [rbp + rax*2 + 0xe]
cmp eax, 0x5c
jne 0x14005c902
lea rcx, [rbp + 0x10]
call qword [sym.imp.ucrtbased.dll_wcslen]
lea rax, [rax + rax - 2]
mov qword [rbp + 0x3d8], rax
cmp qword [rbp + 0x3d8], 0x20a
jae 0x14005c8ef
jmp 0x14005c8f4
call fcn.1400290f9
xor eax, eax
mov rcx, qword [rbp + 0x3d8]
mov word [rbp + rcx + 0x10], ax
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x440]
call fcn.140028802
mov eax, dword [rbp + 0x3f4]
or eax, 1
mov dword [rbp + 0x3f4], eax
mov rax, qword [rbp + 0x440]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140095750]
call fcn.14002935b
mov rax, rdi
mov rcx, qword [rbp + 0x410]
xor rcx, rbp
call fcn.140028b9a
lea rsp, [rbp + 0x428]
pop rdi
pop rbp
ret
Function at 0x14016bf2c
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 0x14016bd97
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14016bd97
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14016bd97
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14016bd97
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14016bd97
cmp dword [rcx + 0x84], 0xe
jbe 0x14016bd97
cmp dword [rcx + 0xf8], 0
je 0x14016bd97
mov ecx, ebx
call fcn.14016be48
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.14016bc24
nop
cmp dword [rbp + 0x20], 0
je 0x14016bde5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14016bdf0
int3
xor r8d, r8d
xor edx, edx
jmp 0x14016bd28
Function at 0x140170464
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14017047a
mov al, 1
jmp 0x1401704da
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14017048b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1401704d8
mov ecx, dword [rcx + 0x18]
nop
call fcn.140173364
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401704d8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401704d8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401704d8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1401704da
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1401721e8
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 0x140172218
xor eax, eax
jmp 0x1401722db
mov rbp, rbx
cmp word [rax], si
je 0x14017223d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140172224
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140172220
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.140172108
movsxd r14, eax
test eax, eax
jne 0x14017227b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140172211
mov rcx, r14
call fcn.14016e020
mov rdi, rax
test rax, rax
jne 0x140172294
xor ecx, ecx
call fcn.14016e080
jmp 0x140172270
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.140172108
test eax, eax
jne 0x1401722c5
mov rcx, rdi
call fcn.14016e080
jmp 0x1401722cf
xor ecx, ecx
call fcn.14016e080
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