joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003930
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x88
mov rax, qword [0x140056010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [0x140056c30]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x140056e28]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x140056ca8]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x140056e20]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [0x140048b40]
xor ecx, ecx
cmp dword [0x140056018], 2
movups xmm0, xmmword [str.r_nUtPO55]
mov dword [rsp + 0x40], eax
movzx eax, word [0x140048b44]
mov word [rsp + 0x44], ax
movzx eax, byte [0x140048b46]
mov byte [rsp + 0x46], al
movups xmmword [rsp + 0x30], xmm0
jl 0x140003b2e
movdqa xmm0, xmmword [0x14004e4f0]
lea rdx, [rsp + 0x34]
movdqa xmm5, xmmword [0x14004e3d0]
mov eax, 5
movdqa xmm4, xmmword [0x14004ea00]
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm7
movdqa xmm7, xmmword [0x14004e3f0]
movd xmm6, eax
mov eax, 0x1f
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, dword [rsp + 0x20]
movaps xmmword [rsp + 0x50], xmm8
movd xmm8, eax
nop dword [rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
pand xmm2, xmmword [0x14004e460]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
pxor xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x14004e460]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
pxor xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x10
jl 0x140003a10
movaps xmm8, xmmword [rsp + 0x50]
movaps xmm7, xmmword [rsp + 0x60]
movaps xmm6, xmmword [rsp + 0x70]
cmp ecx, 0x17
jge 0x140003b6f
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop dword [rax]
mov eax, 0x8fb823ef
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x39
movzx eax, cl
inc ecx
sub al, dl
add al, 0x37
xor byte [r8 - 1], al
cmp ecx, 0x17
jl 0x140003b40
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_UnregisterClassA]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140045ed0
add rsp, 0x88
ret
Function at 0x140006360
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub rsp, 0xa8
add rcx, 0x310
call fcn.14000d280
mov r8d, dword [0x140056e1c]
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.140001ef0
movups xmm0, xmmword [rsp + 0x20]
lea rdx, [rsp + 0x40]
movsd xmm1, qword [rsp + 0x30]
lea rcx, [rsp + 0x20]
movaps xmmword [rsp + 0x40], xmm0
movsd qword [rsp + 0x50], xmm1
call fcn.140003430
movsd xmm1, qword [rsp + 0x28]
xorps xmm0, xmm0
ucomisd xmm1, xmm0
jp 0x1400063c1
je 0x1400065b9
mov eax, dword [0x140056cec]
xorps xmm3, xmm3
cdq
mov qword [rsp + 0xa0], rbx
sub eax, edx
movaps xmmword [rsp + 0x90], xmm6
sar eax, 1
xorps xmm2, xmm2
movaps xmmword [rsp + 0x80], xmm7
xorps xmm7, xmm7
movaps xmmword [rsp + 0x70], xmm8
movsd xmm8, qword [rsp + 0x20]
movd xmm5, eax
mov eax, dword [0x140056cb8]
cdq
sub eax, edx
sar eax, 1
cvtpd2ps xmm8, xmm8
movd xmm4, eax
ucomiss xmm8, xmm3
cvtdq2ps xmm4, xmm4
cvtpd2ps xmm6, xmm1
cvtdq2ps xmm5, xmm5
jp 0x140006424
je 0x14000646c
comiss xmm8, xmm5
jbe 0x14000644f
movaps xmm2, xmm5
movaps xmm0, xmm5
subss xmm2, xmm8
addss xmm0, xmm5
xorps xmm2, xmmword [0x14004e9c0]
movaps xmm1, xmm2
addss xmm1, xmm5
comiss xmm1, xmm0
jbe 0x14000644f
xorps xmm2, xmm2
comiss xmm5, xmm8
jbe 0x14000646c
movaps xmm2, xmm8
subss xmm2, xmm5
movaps xmm0, xmm2
addss xmm0, xmm5
comiss xmm3, xmm0
jbe 0x14000646c
xorps xmm2, xmm2
ucomiss xmm6, xmm3
movaps xmm8, xmmword [rsp + 0x70]
jp 0x140006479
je 0x1400064bd
comiss xmm6, xmm4
jbe 0x1400064a2
movaps xmm7, xmm4
movaps xmm0, xmm4
subss xmm7, xmm6
addss xmm0, xmm4
xorps xmm7, xmmword [0x14004e9c0]
movaps xmm1, xmm7
addss xmm1, xmm4
comiss xmm1, xmm0
jbe 0x1400064a2
xorps xmm7, xmm7
comiss xmm4, xmm6
jbe 0x1400064bd
movaps xmm7, xmm6
subss xmm7, xmm4
movaps xmm1, xmm7
addss xmm1, xmm4
comiss xmm3, xmm1
jbe 0x1400064bd
xorps xmm7, xmm7
divss xmm2, dword [0x140056054]
xor eax, eax
mov qword [rsp + 0x54], 1
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x50], eax
movaps xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll_floorf
divss xmm7, dword [0x140056054]
cvttss2si eax, xmm0
movaps xmm0, xmm7
movd xmm1, eax
cvtdq2pd xmm1, xmm1
addsd xmm1, qword [0x140056c38]
cvttsd2si eax, xmm1
mov dword [rsp + 0x48], eax
call sub.api_ms_win_crt_math_l1_1_0.dll_floorf
cvttss2si eax, xmm0
xor ecx, ecx
mov edx, 0x1000
mov r8d, edx
lea r9d, [rcx + 0x40]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
subsd xmm1, qword [0x140056d38]
cvttsd2si eax, xmm1
mov dword [rsp + 0x4c], eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
movaps xmm7, xmmword [rsp + 0x80]
mov rbx, rax
movaps xmm6, xmmword [rsp + 0x90]
test rax, rax
je 0x1400065b1
movups xmm0, xmmword [0x140056e30]
mov r8d, 0x28
movups xmmword [rax], xmm0
movsd xmm1, qword [0x140056e40]
lea ecx, [r8 - 0x27]
movsd qword [rax + 0x10], xmm1
mov edx, dword [0x140056e48]
mov dword [rax + 0x18], edx
movzx edx, word [0x140056e4c]
mov word [rax + 0x1c], dx
lea rdx, [rsp + 0x40]
call rbx
xor edx, edx
mov r8d, 0x1000
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbx, qword [rsp + 0xa0]
add rsp, 0xa8
ret
Function at 0x14000f540
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000f59d
lea rbx, [0x140048f00]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x14000f584
cmp r10, 2
jb 0x14000f584
cmp byte [r9], r8b
jne 0x14000f584
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x14000f560
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000f5df
lea rbx, [0x140048f00]
cmp r8b, 0x23
jne 0x14000f5c3
cmp byte [r9], r8b
jne 0x14000f5c3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x14000f5b0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x14000f720
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14000f73a
mov qword [r8], 0
lea rdx, [0x14004dc64]
call fcn.14000f5f0
mov rbx, rax
test rax, rax
jne 0x14000f75a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x14000f831
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000f831
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14000f831
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000f831
cmp rdi, 0xffffffffffffffff
je 0x14000f831
mov rax, qword [0x140056d60]
test rax, rax
je 0x14000f7ce
inc dword [rax + 0xec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14000f831
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x14000f81e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140056d60]
test rax, rax
je 0x14000f813
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000f83a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14000f82c
mov qword [r14], rdi
mov rax, rsi
jmp 0x14000f83c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140011c70
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xd0]
mov rax, qword [rcx + 0xd8]
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x140048f00]
not ebx
movzx eax, dl
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x39]
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3a]
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3b]
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [r8 + rcx*4]
mov rcx, qword [0x140056d60]
not ebx
cmp dword [rcx + 0x3ebc], ebx
jne 0x140011cfb
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.140023af0
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x14001dda0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140056010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140056d60]
mov edi, ecx
cmp byte [rbx + 0x4235], 0
jne 0x14001de01
cmp byte [rbx + 0x4236], 0
jne 0x14001de01
movsx r9d, word [rbx + 0x531a]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.14000f400
test dil, 1
je 0x14001df28
jmp 0x14001de8a
movss xmm1, dword [rbx + 0x3890]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x531a]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x14004e288]
mulss xmm1, dword [0x14004e278]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xdf4]
addss xmm1, dword [rbx + 0xdf8]
mov qword [rbx + 0x3fa0], rax
mov dword [rbx + 0x3f8c], 1
movss dword [rbx + 0x3f98], xmm0
movss dword [rbx + 0x3f9c], xmm1
movss xmm0, dword [rbx + 0x38ec]
mulss xmm0, dword [0x14004e174]
or dword [rbx + 0x3f88], 0x41
movss dword [rbx + 0x3fe8], xmm0
call fcn.14000f400
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x14001dee0
lea r11, [0x140048f00]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x14001dec3
cmp byte [r8], r9b
jne 0x14001dec3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14001deb0
not ecx
call fcn.1400170c0
test rax, rax
je 0x14001df28
cmp byte [rax + 0x96], 0
je 0x14001df28
mov byte [rax + 0x9d], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xb8], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x531a]
mov edx, 0x10
movsx r9d, word [rbx + 0x531a]
call fcn.14000f400
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.140019780
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140045ed0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140022670
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x53c8], 0
lea rbx, [rcx + 0x53d0]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140022717
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x1400226ca
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140024730
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.14000fbb0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x53c8]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x53d8]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x140056d58]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14002271f
mov rcx, rbx
call fcn.14000fbb0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140022c90
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140056d60]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140022cf3
mov qword [rsp], rbx
lea rbx, [0x140048f00]
nop dword [rax]
cmp r9b, 0x23
jne 0x140022cd3
cmp byte [r8], r9b
jne 0x140022cd3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x140022cc0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5378]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x140022d27
mov r10, qword [r10 + 0x5380]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x140022d2e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x140022d14
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x140046b48
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140046b92
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140046b92
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140046b92
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140046b92
cmp dword [rcx + 0x84], 0xe
jbe 0x140046b92
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140046b94
xor al, al
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
lea rcx, str.ntdll.dll
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtDelayExecution
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], 0xffffffffc4653600
xor ecx, ecx
call rax
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
sub rax, rbx
cmp rax, 0x186a0
jb 0x140001087
mov rax, qword gs:[0x60]
lea rdx, str.Being_debugged__n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
cmp byte [rax + 2], 0
jne 0x140001082
lea rdx, str.Hello_World__n
call fcn.140001110
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400012f0
add rsp, 0x30
pop rbx
ret

Function at 0x140001bcc
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp], rdi
mov edi, 0xff2851a5
push rbx
mov ebx, edi
lea rdi, [0x140892890]
push 0xffffffff86162f0a
movzx ebx, byte [r9]
sar dword [rsp + 1], 0x68
xor ebx, eax
and ebx, 0xff
not byte [rsp + 7]
mov ebx, dword [rdi + rbx*4]
ror byte [rsp + 5], 0x25
shr eax, 8
xor eax, ebx
inc r9
shl qword [rsp], 0x1a
xor eax, 0x479f1507
dec rsi
lea rsp, [rsp + 8]
jne 0x1408a94b5
pop rbx
mov edi, 0x719ef914
call fcn.1408b6b3b
call fcn.14089190c
mov r9, qword [rbx]
mov cl, byte [rbx + 8]
push 0xffffffff9686f33d
add rbx, 2
call fcn.1408ab26e
Function at 0x180008ef0
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 0x180008f20
xor eax, eax
jmp 0x180008fe3
mov rbp, rbx
cmp word [rax], si
je 0x180008f45
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180008f2c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180008f28
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.180008e40
movsxd r14, eax
test eax, eax
jne 0x180008f83
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180008f19
mov rcx, r14
call fcn.18000a178
mov rdi, rax
test rax, rax
jne 0x180008f9c
xor ecx, ecx
call fcn.180007544
jmp 0x180008f78
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.180008e40
test eax, eax
jne 0x180008fcd
mov rcx, rdi
call fcn.180007544
jmp 0x180008fd7
xor ecx, ecx
call fcn.180007544
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 0x18000e6fc
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x18000003c]
lea rsi, [0x180000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x18000e774
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x18000e774
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x18000e774
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x18000e768
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x18000e786
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x18000e756
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x18000e776

Function at 0x18000ec40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18000ec68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18000ec68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x100003560
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x100005110]
jne 0x10000357b
rol rcx, 0x10
test cx, 0xffff
jne 0x100003577
ret 0
ror rcx, 0x10
jmp 0x10000386c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x100005640]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x100005738]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1000038f1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x100005640]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x100003913
mov rax, qword [rsp + 0x88]
mov qword [0x100005738], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1000056d8], rax
mov rax, qword [0x100005738]
mov qword [0x1000055b0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1000056c0], rax
mov dword [0x1000055a0], 0xc0000409
mov dword [0x1000055a4], 1
mov rax, qword [0x100005110]
mov qword [rsp + 0x68], rax
mov rax, qword [0x100005118]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1000012a0]
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, 0x88
ret

Function at 0x100003708
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100003755
cmp rcx, 0xffffffffffffffff
je 0x100003755
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10000374d
cmp dword [rcx + 0x3c], edx
jl 0x10000374d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10000374d
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100003755
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140002660
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400026aa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400026aa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400026aa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400026aa
cmp dword [rcx + 0x84], 0xe
jbe 0x1400026aa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400026ac
xor al, al
add rsp, 0x28
ret
Function at 0x140019250
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 0x1400192e0
jmp 0x1400192cf
jae 0x1400193a0
cmp r8, 0x201
jae 0x1400192e0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140019338
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14001930f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14003cb00
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 0x140019361
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140019408
mov r8d, r14d
cmp r15, r8
jne 0x1400192c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14001942b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400192cf
jmp 0x1400192e0
cmp rsi, r8
jb 0x140019445
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14001be10
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 0x1400193f1
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140001540
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 0x1400193d9
jmp 0x1400193f1
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14003d810
jmp 0x14001945a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14003dc60
ud2