joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18004dce0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x18006c3c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x18004ddb3
cmp byte [rcx + 0x71], 0
je 0x18004ddb3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18004ddaf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x18004dd74
sub eax, 1
je 0x18004dd78
cmp eax, 2
jne 0x18004ddaf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180054740
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x18004dda6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x18004ddaf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18004dd5c
xor al, al
jmp 0x18004dd5c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180054740
add rsp, 0x60
pop rbx
ret

Function at 0x180050210
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
add rax, 0x10000
mov qword [rsp + 0x30], rax
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll_memset
jmp 0x180050258
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov r8d, 0x30
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
ja 0x180050278
jmp 0x180050315
cmp dword [rsp + 0x68], 0x1000
jne 0x18005029d
mov eax, dword [rsp + 0x6c]
and eax, 0xff
cmp eax, 1
je 0x18005029d
mov eax, dword [rsp + 0x6c]
and eax, 0x100
test eax, eax
je 0x18005029f
jmp 0x180050243
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x1800502d5
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x60]
ja 0x1800502d5
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x1800502da
jmp 0x180050243
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
jne 0x180050243
mov rax, qword [rsp + 0x20]
jmp 0x180050317
xor eax, eax
add rsp, 0x88
ret
Function at 0x180051b20
Capabilities:
Suspend thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xc], 0
mov rcx, qword [rsp + 0x40]
call fcn.180051910
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x180051bf7
mov dword [rsp + 0x20], 0
jmp 0x180051b94
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x180051bf7
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180051bf5
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, dword [rsp + 0x50]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call fcn.1800516f0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180051b8a
add rsp, 0x30
pop rdi
ret

Function at 0x180051c10
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x180051cb4
mov dword [rsp + 0x20], 0
jmp 0x180051c4d
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x180051c9d
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180051c9b
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180051c43
mov rax, qword [rsp + 0x40]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x18006c7f8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x30
pop rdi
ret
Function at 0x180051cc0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x70
mov rdi, rsp
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x80]
mov eax, dword [rsp + 0x80]
imul rax, rax, 0x38
mov rcx, qword [0x18006ed80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], 5
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x180051d44
mov rax, qword [rsp + 0x50]
sub rax, 5
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x34]
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180051d6d
mov eax, 0xa
jmp 0x180051ea7
cmp dword [rsp + 0x88], 0
je 0x180051ddb
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov byte [rax], 0xe9
mov rax, qword [rsp + 0x50]
add rax, 5
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x58]
mov dword [rcx + 1], eax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x180051dd9
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov byte [rax], 0xeb
mov rax, qword [rsp + 0x60]
mov byte [rax + 1], 0xf9
jmp 0x180051e27
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x180051e0b
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 7
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x180051e27
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 5
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 1
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfd
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 2
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfb
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x180059e70]
call fcn.1800552f8
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x180053390
Capabilities:
Check for software breakpoints

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x10
mov rdi, rsp
mov ecx, 4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x20]
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
test eax, eax
je 0x1800533fe
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0x90
je 0x1800533fe
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0xcc
je 0x1800533fe
xor eax, eax
jmp 0x180053445
mov dword [rsp], 1
jmp 0x18005340f
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp], eax
jae 0x180053440
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x20]
movzx ecx, byte [rdx + rcx]
cmp eax, ecx
je 0x18005343e
xor eax, eax
jmp 0x180053445
jmp 0x180053407
mov eax, 1
add rsp, 0x10
pop rdi
ret
Function at 0x1400fb850
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400fb85d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400fb86d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400fb855
lea eax, [rcx + 1]
jmp 0x1400fb87b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400fb88e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400fb874
sub eax, 3
jb 0x1400fb8ae
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400fb8fd
sar eax, 1
movsxd rbp, eax
jb 0x1400fb8e4
jmp 0x1400fb8bc
add ebx, ebx
jne 0x1400fb8ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400fb8e4
inc ecx
add ebx, ebx
jne 0x1400fb8ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400fb8e4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400fb8dd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400fb8cc
add ecx, 2
jmp 0x1400fb8e9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400fb812
jmp 0x1400fb85d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xbbc00
mov dl, 0xe
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400fb94d
cmp rsi, rcx
jae 0x1400fb955
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400fb934
cmp al, 0x8f
ja 0x1400fb934
cmp byte [rsi - 2], 0xf
je 0x1400fb93a
sub al, 0xe8
cmp al, 1
ja 0x1400fb91e
cmp rsi, rcx
jae 0x1400fb955
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400fb924
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400fb955
lodsb al, byte [rsi]
jmp 0x1400fb934
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xf8000]
mov eax, dword [rdi]
or eax, eax
je 0x1400fb9b2
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xfb000]
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 0x1400fb962
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 0x1400fb9ac
mov qword [rbx], rax
add rbx, 8
jmp 0x1400fb982
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 0x1400fb9ec
cmp al, 0xef
ja 0x1400fb9de
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400fb9be
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400fb9cd
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 + 0x1af]
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
mov byte [fcn.1400fba6b], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.1400fba6b
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400fba5b
sub rsp, 0xffffffffffffff80
jmp 0x1400013d0
Function at 0x1401e9f70
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.1401ee5b0
sub rsp, rax
mov rax, qword [0x1402333c0]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x80], ax
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x1401ea032
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x1401e9fdd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x1401e9fd0
cmp rcx, 1
jb 0x1401ea08a
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x1401ea000
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1401fdeb4
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x1401e9fc0
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x1401ea063
lea rcx, [rsp + 0x80]
call fcn.140200bc0
jmp 0x1401ea065
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.1401ee610
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.1401f2c40
int3
Function at 0x1401ee130
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1402333c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x1401ee1d5
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x1401ee18d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x1401ee180
cmp rcx, 1
jb 0x1401ee206
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x1401ee1a3
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1401fdeb4
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x1401ee170
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401ee610
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.1401f2c40
int3

Function at 0x1401ee440
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1402333c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x1401ee4e5
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x1401ee49d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x1401ee490
cmp rcx, 1
jb 0x1401ee517
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x1401ee4b3
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1401fdeb4
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x1401ee480
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401ee610
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.1401f2c40
int3

Function at 0x1401ef014
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401ef05e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401ef05e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401ef05e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401ef05e
cmp dword [rcx + 0x84], 0xe
jbe 0x1401ef05e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401ef060
xor al, al
add rsp, 0x28
ret
Function at 0x1401f44b8
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 0x1401f4323
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401f4323
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401f4323
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401f4323
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401f4323
cmp dword [rcx + 0x84], 0xe
jbe 0x1401f4323
cmp dword [rcx + 0xf8], 0
je 0x1401f4323
mov ecx, ebx
call fcn.1401f43d4
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.1401f41b0
nop
cmp dword [rbp + 0x20], 0
je 0x1401f4371
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401f437c
int3
xor r8d, r8d
xor edx, edx
jmp 0x1401f42b4
Function at 0x140205d40
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140205dc7
mov rsi, rbx
cmp word [rax], bp
je 0x140205d86
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140205d70
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140205d6c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1402013ac
mov rdi, rax
test rax, rax
je 0x140205db4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14020ba00
mov rbp, rdi
xor ecx, ecx
call fcn.140201ef4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1402094e0
Capabilities:
Get file size

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

Function at 0x14020b850
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14020b878
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14020b878
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180001308
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x2a8]
sub rsp, 0x380
xor ebx, ebx
mov r13, rdx
mov rdx, qword gs:[0x60]
mov r14, rcx
mov edi, ebx
test rdx, rdx
je 0x18000151d
lea esi, [rbx + 8]
mov qword [rsp + 0x30], rbx
mov r9d, esi
mov qword [rsp + 0x20], rbx
add rdx, 0x18
lea r8, [rsp + 0x30]
call fcn.180002351
test eax, eax
js 0x18000151d
mov rdx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
add rdx, 0x10
mov qword [rsp + 0x38], rbx
mov r9d, esi
mov qword [rsp + 0x20], rbx
mov rcx, r14
call fcn.180002351
test eax, eax
js 0x18000151d
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x18000151d
mov esi, ebx
movzx r12d, bx
mov r15d, ebx
mov r9d, 0x128
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x40]
mov rdx, rax
mov rcx, r14
call fcn.180002351
test eax, eax
js 0x18000151d
xor edx, edx
lea rcx, [rbp + 0x70]
mov r8d, 0x104
call fcn.180004300
movzx r9d, word [rbp - 0x68]
lea r8, [rbp + 0x70]
mov rdx, qword [rbp - 0x60]
mov rcx, r14
mov qword [rsp + 0x20], rbx
call fcn.180002351
test eax, eax
js 0x18000151d
test rsi, rsi
cmove rsi, qword [rsp + 0x48]
mov rcx, qword [r13 + rbx*8]
lea rdx, [rbp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x180001436
inc rbx
mov ecx, 0xd
cmp rbx, rcx
jl 0x180001411
jmp 0x1800014f9
mov rcx, qword [r13 + rbx*8]
lea rdx, str.lsasrv.dll
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
mov eax, 1
cmove r15d, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x220
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x18000151d
and qword [rax], 0
mov rcx, qword [rsp + 0x70]
mov qword [rax + 8], rcx
mov ecx, dword [rbp - 0x80]
mov dword [rax + 0x10], ecx
mov ecx, dword [rbp - 0x40]
mov dword [rax + 0x218], ecx
mov ecx, dword [rbp + 0x60]
mov dword [rax + 0x21c], ecx
mov eax, 0x200
cmp word [rbp - 0x78], ax
ja 0x1800014ad
movzx eax, word [rbp - 0x78]
mov rdx, qword [rbp - 0x70]
lea r8, [rbx + 0x14]
and qword [rsp + 0x20], 0
mov rcx, r14
mov r9d, eax
call fcn.180002351
test eax, eax
js 0x18000151d
test rdi, rdi
jne 0x1800014d4
mov rdi, rbx
jmp 0x1800014f0
mov rcx, qword [rdi]
mov rdx, rdi
test rcx, rcx
je 0x1800014ed
mov rax, qword [rcx]
mov rdx, rcx
mov rcx, rax
test rax, rax
jne 0x1800014df
mov qword [rdx], rbx
inc r12w
mov ecx, 0xd
mov rax, qword [rsp + 0x40]
cmp rax, rsi
je 0x180001512
mov ebx, 0
cmp r12w, cx
jl 0x1800013b2
neg r15d
sbb rax, rax
and rax, rdi
jmp 0x18000151f
xor eax, eax
lea r11, [rsp + 0x380]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x180002351
Capabilities:
Execute syscall

Disassembly:
push rcx
pop r10
nop
mov eax, 0x3f
nop
add eax, 1
sub eax, 1
syscall
nop
ret

Function at 0x180002365
Capabilities:
Execute syscall

Disassembly:
push rcx
pop r10
nop
mov eax, 0xf
nop
add eax, 1
sub eax, 1
syscall
nop
ret

Function at 0x180002427
Capabilities:
Execute syscall

Disassembly:
push rcx
pop r10
nop
mov eax, 0x23
nop
add eax, 1
sub eax, 1
syscall
nop
ret

Function at 0x18000343c
Capabilities:
Execute syscall

Disassembly:
push rcx
pop r10
nop
mov eax, 0x55
nop
add eax, 1
sub eax, 1
syscall
nop
ret

Function at 0x180003450
Capabilities:
Execute syscall

Disassembly:
push rcx
pop r10
nop
mov eax, 8
nop
add eax, 1
sub eax, 1
syscall
nop
ret

Function at 0x180005490
Capabilities:
Parse pe header

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