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

Disassembly:
mov r8, qword [0x1400eef50]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400be010
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400be018
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400be010
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400be060
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400be057
test rcx, rcx
je 0x1400be010
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1400be048
xor eax, eax
ret

Function at 0x1400be070
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400eef50]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400be08f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400be098
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400be0b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400eef50]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400be0d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400be0d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400be0d0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400be0d0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400be124
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400be130
add rdx, 0x28
cmp rdx, r9
jne 0x1400be110
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1400be140
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400eef50]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400be162
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400be170
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400be162
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400be162
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400be162
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400be1c5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400be1d8
add rdx, 0x28
cmp r10, rdx
jne 0x1400be1b0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400be1e7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400be1f7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400be1ce
test ecx, ecx
jg 0x1400be1e0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140003068
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x1400ecd0d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400ecd1d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400ecd05
lea eax, [rcx + 1]
jmp 0x1400ecd2b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400ecd3e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400ecd24
sub eax, 3
jb 0x1400ecd5e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400ecdad
sar eax, 1
movsxd rbp, eax
jb 0x1400ecd94
jmp 0x1400ecd6c
add ebx, ebx
jne 0x1400ecd6a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400ecd94
inc ecx
add ebx, ebx
jne 0x1400ecd7a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400ecd94
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400ecd8d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400ecd7c
add ecx, 2
jmp 0x1400ecd99
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400eccc2
jmp 0x1400ecd0d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x58c00
mov dl, 0xe
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400ecdf9
cmp rsi, rcx
jae 0x1400ece01
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400ecde0
cmp al, 0x8f
ja 0x1400ecde0
cmp byte [rsi - 2], 0xf
je 0x1400ecde6
sub al, 0xe8
cmp al, 1
ja 0x1400ecdca
cmp rsi, rcx
jae 0x1400ece01
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400ecdd0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400ece01
lodsb al, byte [rsi]
jmp 0x1400ecde0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xe8000]
mov eax, dword [rdi]
or eax, eax
je 0x1400ece5e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x151cd4]
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 0x1400ece0e
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 0x1400ece58
mov qword [rbx], rax
add rbx, 8
jmp 0x1400ece2e
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 0x1400ece98
cmp al, 0xef
ja 0x1400ece8a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400ece6a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400ece79
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 + 0x22f]
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.1400ecf17], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.1400ecf17
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400ecf07
sub rsp, 0xffffffffffffff80
jmp 0x140054658
Function at 0x140133590
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14013359d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1401335ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140133595
lea eax, [rcx + 1]
jmp 0x1401335bb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1401335ce
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1401335b4
sub eax, 3
jb 0x1401335ee
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14013363d
sar eax, 1
movsxd rbp, eax
jb 0x140133624
jmp 0x1401335fc
add ebx, ebx
jne 0x1401335fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140133624
inc ecx
add ebx, ebx
jne 0x14013360a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140133624
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14013361d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14013360c
add ecx, 2
jmp 0x140133629
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140133552
jmp 0x14013359d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x27800
mov dl, 0x12
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14013368d
cmp rsi, rcx
jae 0x140133695
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140133674
cmp al, 0x8f
ja 0x140133674
cmp byte [rsi - 2], 0xf
je 0x14013367a
sub al, 0xe8
cmp al, 1
ja 0x14013365e
cmp rsi, rcx
jae 0x140133695
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140133664
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140133695
lodsb al, byte [rsi]
jmp 0x140133674
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x11b000]
mov eax, dword [rdi]
or eax, eax
je 0x1401336f2
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x133b28]
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 0x1401336a2
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 0x1401336ec
mov qword [rbx], rax
add rbx, 8
jmp 0x1401336c2
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 0x14013372c
cmp al, 0xef
ja 0x14013371e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1401336fe
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14013370d
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 + 0x20f]
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
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140133780
sub rsp, 0xffffffffffffff80
jmp 0x140013b30
Function at 0x140018570
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140018600
cmp r10, r11
jb 0x140018676
cmp r10, rdx
ja 0x14001868a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140018602
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x1400185e0
jmp 0x140018664
ja 0x14001860a
mov r11, r10
cmp rax, r8
jne 0x1400185a4
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140018640
mov rdi, r8
sub ecx, edx
jns 0x14001865b
jmp 0x140018666
cmp r8, rsi
je 0x14001869b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140018666
xor al, 1
cmp rdi, rsi
jne 0x140018620
jmp 0x140018666
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, [0x1412c8590]
mov rcx, r11
mov rdx, r10
call fcn.140050b30
ud2
lea r8, [0x1412c8590]
mov rcx, r10
call fcn.1400508b0
ud2
lea rcx, [0x1412ccc30]
lea r8, [0x1412c85a8]
mov edx, 0x2b
call fcn.140050930
ud2
Function at 0x14001f5f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x14001f64b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14001f64b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x14001f666
cmp eax, 0x42
jne 0x14001f64b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x14001f716
cmp byte [r9 + r11], 0x5f
jne 0x14001f716
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14001f77e
mov rcx, rsi
xor edx, edx
call fcn.14001ac30
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.14001ac30
test al, al
jne 0x14001f811
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14001f6a2
lea rdx, [0x1412cc503]
mov r8d, 1
call fcn.140016650
test al, al
jne 0x14001f811
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14001f65a
xor r14d, r14d
lea rbx, [0x1412cc8e6]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14001f6d4
cmp byte [rax + rcx], 0x45
je 0x14001f83a
sub r14, 1
jb 0x14001f6f9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14001f6f9
mov r8d, 2
mov rdx, rbx
call fcn.140016650
test al, al
jne 0x14001f811
mov rcx, rsi
call fcn.14001f850
test al, al
jne 0x14001f811
mov rax, qword [rsi]
test rax, rax
jne 0x14001f6c0
jmp 0x14001f65a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x14001f7d8
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x14001f772
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14001f75c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14001f74b
add dl, 0xa9
jmp 0x14001f75a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14001f7d8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x14001f7d8
movzx edx, bl
add rax, rdx
jae 0x14001f720
jmp 0x14001f7d8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x14001f7d8
cmp rax, rcx
jae 0x14001f7d5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14001f819
cmp qword [rsi + 0x20], 0
je 0x14001f846
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.14001f5f0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14001f65c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14001f828
lea rax, [0x1412cc8b1]
lea rdx, [0x1412cc898]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.140016650
test al, al
je 0x14001f828
mov dil, 2
jmp 0x14001f65a
mov dil, 1
xor r8d, r8d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x14001f7e3
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14001f65a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14001f65a
xor edi, edi
jmp 0x14001f65a
Function at 0x140024040
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1412cf2f0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1400240b3
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400240ea
test eax, eax
js 0x1400240c4
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400240dd
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x1412cf350]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140022cf0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140022d90
mov ecx, 7
int 0x29
ud2
Function at 0x140027490
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x1400274c0
test ecx, ecx
jne 0x140027510
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x1400274cc
test ecx, ecx
jne 0x140027510
mov rcx, rdi
call fcn.140027370
movzx eax, al
test bpl, bpl
jne 0x140027517
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x140027503.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x140027688]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x140027503.2
xor eax, eax
test bpl, bpl
je 0x1400274dc
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140027669
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x14002754a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x1400275c9
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x140027590
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x1400275ab
inc rax
dec rdi
cmp rax, 1
jne 0x140027570
jmp 0x1400275c9
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x1400275ab
cmp ebx, 0x5c
je 0x1400275ab
inc rax
dec rdi
cmp rax, 1
jne 0x140027590
jmp 0x1400275c9
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x140027677
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x1400275f3
mov al, 9
cmp rdx, 2
je 0x1400275f7
cmp rdx, 1
jne 0x140027607
cmp byte [r8], 0x2e
jne 0x140027607
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140027607
mov al, 0xa
jmp 0x140027607
cmp byte [r8], 0x2e
jne 0x140027607
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x140027503.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x140027503.2
mov ecx, 2
jmp case.0x140027503.2
lea r8, [0x1412ce498]
call fcn.140050830
ud2
lea r8, [0x1412ce4b0]
call fcn.140050830
ud2
Function at 0x140027a80
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 - 0x58]
call fcn.140024b20
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x410], rax
test rax, rax
je 0x140027c07
mov qword [rbp + 0x3c8], rsi
mov rax, qword [rbp - 0x50]
mov qword [rbp + 0x408], rax
mov qword [rbp + 0x3f0], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3f8], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x418], rax
xor edi, edi
xor ebx, ebx
xor r13d, r13d
cmp r8, 0x201
jae 0x140027b40
jmp 0x140027b2f
jae 0x140027c19
cmp r8, 0x201
jae 0x140027b40
lea r12, [rbp - 0x58]
mov esi, 0x200
mov r15, r8
jmp 0x140027b98
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x140027b6f
lea rcx, [rbp + 0x3f0]
mov rdx, r13
call fcn.140051840
mov rax, qword [rbp + 0x3f0]
mov qword [rbp + 0x418], rax
mov rdi, qword [rbp + 0x3f8]
mov eax, 0xffffffff
cmp rdi, rax
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rbp + 0x400], r13
mov rbx, rdi
mov r12, qword [rbp + 0x418]
mov rsi, r13
mov r15, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x410]
mov rdx, r12
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r14d, eax
test eax, eax
jne 0x140027bc8
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140027cde
mov r8d, r14d
cmp r15, r8
jne 0x140027b20
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140027d0f
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x140027b2f
jmp 0x140027b40
lea rcx, [rbp - 0x50]
call fcn.1400220b0
mov byte [rsi + 0x18], 2
jmp 0x140027ca8
cmp rsi, r8
jb 0x140027d29
lea rcx, [rbp + 0x3a8]
mov rdx, r12
call fcn.140025ce0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
movaps xmmword [rbp + 0x3e0], xmm1
movaps xmmword [rbp + 0x3d0], xmm0
test rdi, rdi
mov rsi, qword [rbp + 0x3c8]
je 0x140027c6f
mov rcx, qword [0x1412e0bb8]
xor edx, edx
mov r8, qword [rbp + 0x418]
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp byte [rbp + 0x3e8], 2
jne 0x140027cbd
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3d0]
call fcn.1400220b0
cmp qword [rbp + 0x408], 0
je 0x140027ca8
mov rcx, qword [0x1412e0bb8]
xor edx, edx
mov r8, qword [rbp + 0x410]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3d0]
movaps xmm1, xmmword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
cmp qword [rbp + 0x408], 0
jne 0x140027c92
jmp 0x140027ca8
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3d0], rax
mov byte [rbp + 0x3e8], 2
test rdi, rdi
mov rsi, qword [rbp + 0x3c8]
jne 0x140027c59
jmp 0x140027c6f
lea rcx, [0x1412cd5e8]
lea r8, [0x1412cfbb0]
mov edx, 0x28
call fcn.140050930
jmp 0x140027d3e
lea rax, [0x1412cfbc8]
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.1400508b0
ud2
Function at 0x14002bca0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1412cf2f0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14002bd0c
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14002bd1b
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14002bd53
cmp eax, 0x103
je 0x14002bd5d
test eax, eax
js 0x14002bd38
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14002bd53
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x1412cf350]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140022cf0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140022d90
mov ecx, 7
int 0x29
ud2

Function at 0x14002d150
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.140024b20
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x14002d207
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.14002bdd0
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x14002d207
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14002d1d9
test rsi, rsi
je 0x14002d205
mov rcx, qword [0x1412e0bb8]
xor esi, esi
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14002d207
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x14002d200
mov rcx, qword [0x1412e0bb8]
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, rbx
jmp 0x14002d207
xor esi, esi
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x140037d70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm6
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.140024b20
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x140037de6
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.140037c60
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x140037df4
movdqu xmm6, xmmword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140037e14
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x140037e05
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x30]
call fcn.1400220b0
mov qword [rsi], 0
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
ret
mov qword [rsi], 0
movq rax, xmm6
test rax, rax
je 0x140037e05
mov rcx, qword [0x1412e0bb8]
xor edx, edx
mov r8, rdi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_HeapFree]