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

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14004aaaf
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14004aaaf
mov r8d, dword [rax + rcx + 0xd8]
test r8d, r8d
je 0x14004aaa2
mov rdi, qword [r8 + rcx + 0x58]
test rdi, rdi
je 0x14004aaa2
sub rcx, rdx
movabs rsi, 0x2b992ddfa232
add rdi, rcx
cmp qword [rdi], rsi
jne 0x14004aaaf
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
movabs rax, 0x2b992ddfa233
xor rcx, rbx
mov rbx, qword [rsp + 0x30]
xor rcx, rsi
cmp rcx, rsi
cmove rcx, rax
mov al, 1
mov qword [rdi], rcx
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov al, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x38]
xor al, al
add rsp, 0x20
pop rdi
ret

Function at 0x14004b630
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140068040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14004b747
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14004b747
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
mov qword [rsp + 0x58], r8
mov ecx, dword [rax + rdx + 0xb0]
test ecx, ecx
jne 0x14004b6a9
mov qword [rdi], r8
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r8
jmp 0x14004b752
lea rbx, [rdx + rcx]
mov ebp, dword [rax + rdx + 0xb4]
add rbp, rbx
mov rcx, qword [rsp + 0x50]
cmp rbx, rbp
jae 0x14004b735
mov edx, dword [rbx + 4]
test edx, edx
je 0x14004b735
mov eax, dword [rbx]
add rax, rsi
mov qword [rsp + 0x28], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x30], rax
lea rax, [rdx - 8]
shr rax, 1
mov dword [rsp + 0x38], eax
cmp rcx, r8
je 0x14004b70e
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x38]
movsd qword [rcx + 0x10], xmm1
mov rcx, qword [rsp + 0x50]
add rcx, 0x18
mov qword [rsp + 0x50], rcx
jmp 0x14004b725
lea r8, [rsp + 0x28]
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.14004bee0
mov rcx, qword [rsp + 0x50]
mov eax, dword [rbx + 4]
add rbx, rax
mov r8, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x14004b6c1
mov rax, qword [rsp + 0x48]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], r8
jmp 0x14004b752
mov qword [rcx], r8
mov qword [rcx + 8], r8
mov qword [rcx + 0x10], r8
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14004ce30
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14004cc20
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140068040]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edi, edi
lea r9, [rsp + 0x20]
mov rsi, rcx
mov dword [rsp + 0x20], edi
xor r8d, r8d
xor edx, edx
mov ebx, edi
lea ecx, [rdi + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14004ccb1
test rbx, rbx
je 0x14004cc79
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14004cc63
test eax, eax
jns 0x14004ccd2
test rbx, rbx
je 0x14004ccd7
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14004cd9d
test rbx, rbx
jne 0x14004ccde
xor eax, eax
jmp 0x14004cd9d
mov qword [rsp + 0x68], rbp
cmp dword [rbx], edi
jbe 0x14004cd85
nop dword [rax + rax]
mov eax, edi
imul rcx, rax, 0x128
movzx edx, word [rcx + rbx + 0x2e]
lea rbp, [rcx + rbx]
add rcx, 0x30
add rdx, rcx
lea rcx, [rsp + 0x28]
add rdx, rbx
call fcn.140042240
cmp qword [rsi + 0x18], 0xf
mov rdx, rsi
jbe 0x14004cd23
mov rdx, qword [rsi]
cmp qword [rsp + 0x40], 0xf
lea rcx, [rsp + 0x28]
cmova rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14004cdba
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14004cd7b
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004cd76
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004ce03
call fcn.14004d0ec
inc edi
cmp edi, dword [rbx]
jb 0x14004ccf0
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004ce30
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov rdi, qword [rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14004ce0f
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004ce0a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004ce0a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004d0ec
mov rax, rdi
jmp 0x14004cd98
Function at 0x14004da5c
Capabilities:
Parse pe header

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

Function at 0x140bb7058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140bb71df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140bb7089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bb706f
add dl, dl
jne 0x140bb7096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bb70f6
xor eax, eax
add dl, dl
jne 0x140bb70a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bb71ad
add dl, dl
jne 0x140bb70b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bb70c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bb70d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bb70dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140bb70ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140bb707e
mov eax, 1
add dl, dl
jne 0x140bb7106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bb7113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bb70fb
sub eax, ebx
mov ebx, 1
jne 0x140bb714c
mov ecx, 1
add dl, dl
jne 0x140bb712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140bb713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bb7123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bb707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140bb7168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140bb7175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bb715d
cmp eax, 0x7d00
jae 0x140bb719b
cmp eax, 0x500
jb 0x140bb7196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bb707e
cmp eax, 0x7f
ja 0x140bb719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bb707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140bb71d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140bb707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140005400
Capabilities:
Check processdebugport

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0xbd0]
sub rsp, 0xcd0
mov rax, qword [0x140030040]
xor rax, rsp
mov qword [rbp + 0xbc0], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
mov dword [rbp + 0xbb0], r14d
mov qword [rbp + 0xbb8], r14
xor edx, edx
mov r8d, 0x7d0
lea rcx, [rbp + 0x3e0]
call fcn.14001fdd0
xor edx, edx
mov r8d, 0x448
lea rcx, [rbp - 0x70]
call fcn.14001fdd0
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 7
mov word [rdi], r14w
mov dword [rsp + 0x30], 1
lea rax, [rbp + 0xbb0]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
jne 0x14000563f
lea rax, [rbp + 0xbb8]
mov qword [rsp + 0x20], rax
mov r9d, 0x7d0
lea r8, [rbp + 0x3e0]
mov rdx, qword [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14000563f
lea rax, [rbp + 0xbb8]
mov qword [rsp + 0x20], rax
mov r9d, 0x448
lea r8, [rbp - 0x70]
mov rdx, qword [rbp + 0x400]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14000563f
movzx eax, word [rbp]
lea rbx, [rax*2 + 2]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x14000563f
movzx r9d, word [rbp]
lea rax, [rbp + 0xbb8]
mov qword [rsp + 0x20], rax
mov r8, rbx
mov rdx, qword [rbp + 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14000563f
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140005950
mov rbx, rax
cmp rdi, rax
je 0x140005601
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x1400055d3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400055ce
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005669
mov rcx, r8
call fcn.14000769c
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 7
mov word [rdi], r14w
movups xmm0, xmmword [rbx]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x14000563f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000563a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005669
call fcn.14000769c
mov rax, rdi
mov rcx, qword [rbp + 0xbc0]
xor rcx, rsp
call fcn.140007640
lea r11, [rsp + 0xcd0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140011ad4
int3
Function at 0x140007280
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
push rbp
push rdi
push r13
sub rsp, 0x68
mov rax, qword [0x140030040]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor edi, edi
mov rbp, r9
mov r13, rcx
mov dword [rsp + 0x44], edi
lea r9, [rsp + 0x44]
mov qword [rsp + 0x48], rdi
mov ecx, 0x10
xor r8d, r8d
xor edx, edx
mov ebx, edi
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x140007477
mov qword [rsp + 0xa0], r14
cmp eax, 0xc0000004
jne 0x14000746d
test rbx, rbx
je 0x1400072ea
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [rsp + 0x44]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x14000744c
mov r8d, dword [rsp + 0x44]
lea r9, [rsp + 0x44]
mov rdx, rax
mov ecx, 0x10
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x1400072d1
mov edx, 0xd0
mov qword [rsp + 0x60], r15
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r15, rax
mov r14, rbx
test rax, rax
je 0x14000743e
mov qword [rsp + 0x98], rsi
mov esi, edi
cmp dword [rbx], edi
jbe 0x140007428
nop word [rax + rax]
mov eax, esi
lea rcx, [rax + rax*2]
movzx eax, word [rbx + rcx*8 + 8]
cmp dword [r13 + 0x40], eax
jne 0x14000741e
movzx edx, word [rbx + rcx*8 + 0xe]
lea r9, [rsp + 0x48]
mov rcx, qword [r13 + 0x48]
mov r8, 0xffffffffffffffff
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 0xf003f
call qword [sym.imp.ntdll.dll_NtDuplicateObject]
test eax, eax
jne 0x14000741e
xor edx, edx
mov r8d, 0xd0
mov rcx, r15
call fcn.14001fdd0
mov rcx, qword [rsp + 0x48]
mov r9d, 0xd0
mov r8, r15
mov qword [rsp + 0x20], rdi
mov edx, 2
call qword [sym.imp.ntdll.dll_NtQueryObject]
test eax, eax
jne 0x14000741e
mov rcx, qword [r15 + 8]
lea rdx, str.TpWorkerFactory
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x140007413
mov rdx, qword [rbp + 8]
cmp rdx, qword [rbp + 0x10]
je 0x140007404
mov rax, qword [rsp + 0x48]
mov qword [rdx], rax
add qword [rbp + 8], 8
jmp 0x14000741e
lea r8, [rsp + 0x48]
mov rcx, rbp
call fcn.140004fa0
jmp 0x14000741e
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx]
jb 0x140007360
mov edi, 1
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rsi, qword [rsp + 0x98]
mov r15, qword [rsp + 0x60]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rsp + 0xa0]
mov eax, edi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140007640
add rsp, 0x68
pop r13
pop rdi
pop rbp
pop rbx
ret
mov r14, rbx
test rbx, rbx
je 0x14000744c
jmp 0x140007443
mov eax, edi
jmp 0x140007456
Function at 0x14000835c
Capabilities:
Parse pe header

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

Function at 0x140011c50
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 0x140011cbf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140011cbf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140011cbf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140011cbf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140011cbf
cmp dword [rcx + 0x84], 0xe
jbe 0x140011cbf
cmp dword [rcx + 0xf8], 0
je 0x140011cbf
mov ecx, ebx
call fcn.140011d70
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.140011b4c
nop
cmp dword [rbp + 0x20], 0
je 0x140011d0d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140011d18
int3
xor r8d, r8d
xor edx, edx
jmp 0x140011c50

Function at 0x140011e54
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 0x140011cbf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140011cbf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140011cbf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140011cbf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140011cbf
cmp dword [rcx + 0x84], 0xe
jbe 0x140011cbf
cmp dword [rcx + 0xf8], 0
je 0x140011cbf
mov ecx, ebx
call fcn.140011d70
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.140011b4c
nop
cmp dword [rbp + 0x20], 0
je 0x140011d0d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140011d18
int3
xor r8d, r8d
xor edx, edx
jmp 0x140011c50
Function at 0x140017e14
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 0x140017e44
xor eax, eax
jmp 0x140017f07
mov rbp, rbx
cmp word [rax], si
je 0x140017e69
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140017e50
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140017e4c
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.140017d34
movsxd r14, eax
test eax, eax
jne 0x140017ea7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140017e3d
mov rcx, r14
call fcn.140014410
mov rdi, rax
test rax, rax
jne 0x140017ec0
xor ecx, ecx
call fcn.140013798
jmp 0x140017e9c
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.140017d34
test eax, eax
jne 0x140017ef1
mov rcx, rdi
call fcn.140013798
jmp 0x140017efb
xor ecx, ecx
call fcn.140013798
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 0x14001c08c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001c0a2
mov al, 1
jmp 0x14001c102
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001c0b3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001c100
mov ecx, dword [rcx + 0x18]
nop
call fcn.140018ac8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001c100
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001c100
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001c100
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001c102
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001d140
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.140011588
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001d1ca
cmp byte [rbp - 0x21], r15b
je 0x14001d1c5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001d200
call fcn.1400139e8
test eax, eax
jne 0x14001d1ec
cmp byte [rbp - 0x21], r15b
je 0x14001d1e4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001d200
cmp byte [rbp - 0x21], r15b
je 0x14001d1fd
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.140016480
test eax, eax
jne 0x14001d2a0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140011588
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001d23f
cmp byte [rbp - 0x21], r15b
je 0x14001d274
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001d274
call fcn.1400139e8
test eax, eax
jne 0x14001d260
cmp byte [rbp - 0x21], r15b
je 0x14001d259
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001d274
cmp byte [rbp - 0x21], r15b
je 0x14001d271
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.140016480
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001d2a0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001d2a3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001d2b1
mov rcx, rdi
call fcn.140013798
cmp byte [rbp + 0x3f], r15b
je 0x14001d2c0
mov rcx, qword [rbp + 0x27]
call fcn.140013798
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 0x14001f8b0
Capabilities:
Parse pe header

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