joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017d80
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 0x140017ddb
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x140017ddb
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x140017df6
cmp eax, 0x42
jne 0x140017ddb
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140017ea6
cmp byte [r9 + r11], 0x5f
jne 0x140017ea6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x140017f0e
mov rcx, rsi
xor edx, edx
call fcn.1400134c0
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.1400134c0
test al, al
jne 0x140017fa1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140017e32
lea rdx, [0x1400634db]
mov r8d, 1
call fcn.14000bf10
test al, al
jne 0x140017fa1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x140017dea
xor r14d, r14d
lea rbx, [0x140063890]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140017e64
cmp byte [rax + rcx], 0x45
je 0x140017fc3
sub r14, 1
jb 0x140017e89
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140017e89
mov r8d, 2
mov rdx, rbx
call fcn.14000bf10
test al, al
jne 0x140017fa1
mov rcx, rsi
call fcn.140014d90
test al, al
jne 0x140017fa1
mov rax, qword [rsi]
test rax, rax
jne 0x140017e50
jmp 0x140017dea
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x140017f68
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x140017f02
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x140017eec
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x140017edb
add dl, 0xa9
jmp 0x140017eea
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x140017f68
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x140017f68
movzx edx, bl
add rax, rdx
jae 0x140017eb0
jmp 0x140017f68
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x140017f68
cmp rax, rcx
jae 0x140017f65
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x140017fbb
cmp qword [rsi + 0x20], 0
je 0x140017fb4
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.140017d80
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x140017dec
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140017fa9
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x140063850]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.14000bf10
test al, al
je 0x140017fa9
mov dil, 2
jmp 0x140017dea
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x140017dea
mov dil, 1
xor r8d, r8d
jmp 0x140017f6a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x140017dea
Function at 0x14001b0fe
Capabilities:
Hash data using murmur3

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, dword [rdx]
movdqa xmm0, xmmword [rdx]
mov r10, qword [rsp + 0x68]
pshufd xmm1, xmm0, 0x55
movd edx, xmm1
mov esi, r8d
rol esi, 0x19
pshufd xmm1, xmm0, 0xee
mov edi, eax
rol edi, 0x19
movd r11d, xmm1
mov ebx, edx
rol ebx, 0x19
mov ebp, r11d
rol ebp, 0x19
mov r14d, r8d
rol r14d, 0xe
xor r14d, esi
mov esi, eax
rol esi, 0xe
xor esi, edi
mov r15d, edx
rol r15d, 0xe
xor r15d, ebx
mov r12d, r11d
rol r12d, 0xe
xor r12d, ebp
shr r8d, 3
xor r8d, r14d
mov edi, eax
shr edi, 3
xor edi, esi
mov ebx, edx
shr ebx, 3
xor ebx, r15d
mov ebp, r11d
shr ebp, 3
xor ebp, r12d
pshufd xmm0, xmm0, 0xff
movd esi, xmm0
mov r14d, dword [r10 + 4]
mov r15d, r14d
rol r15d, 0xf
mov r12d, dword [r10]
mov r13d, r14d
rol r13d, 0xd
xor r13d, r15d
shr r14d, 0xa
add esi, dword [r9 + 8]
xor r14d, r13d
mov r15d, r12d
rol r15d, 0xf
add esi, ebp
mov ebp, r12d
rol ebp, 0xd
add esi, r14d
xor ebp, r15d
shr r12d, 0xa
xor r12d, ebp
add r11d, dword [r9 + 4]
add r11d, ebx
add r11d, r12d
mov ebx, esi
rol ebx, 0xf
mov ebp, esi
rol ebp, 0xd
xor ebp, ebx
mov ebx, esi
shr ebx, 0xa
xor ebx, ebp
add edx, dword [r9]
add edx, edi
mov r9d, r11d
rol r9d, 0xf
add edx, ebx
mov edi, r11d
rol edi, 0xd
xor edi, r9d
mov r9d, r11d
shr r9d, 0xa
xor r9d, edi
add eax, dword [r10 + 0xc]
add eax, r8d
add eax, r9d
mov dword [rcx], eax
mov dword [rcx + 4], edx
mov dword [rcx + 8], r11d
mov dword [rcx + 0xc], esi
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14001ba60
Capabilities:
Hash data using sha256 via x86 extensions

Disassembly:
movaps xmm0, xmmword [rdx]
sha256msg1 xmm0, xmmword [r8]
movaps xmmword [rcx], xmm0
ret

Function at 0x14001ba7c
Capabilities:
Hash data using sha256 via x86 extensions

Disassembly:
movaps xmm0, xmmword [rdx]
sha256msg2 xmm0, xmmword [r8]
movaps xmmword [rcx], xmm0
ret

Function at 0x14001bb2f
Capabilities:
Hash data using sha256

Disassembly:
mov rcx, qword [rcx]
mov r8d, 1
jmp 0x14001a032
Function at 0x14001e3d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1400660a8]
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 0x14001e443
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14001e47a
test eax, eax
js 0x14001e454
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14001e46d
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, [0x140066108]
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.14001c470
mov rcx, rax
call fcn.14001c5b0
mov ecx, 7
int 0x29
ud2
Function at 0x1400218c0
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 0x1400218f0
test ecx, ecx
jne 0x140021940
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x1400218fc
test ecx, ecx
jne 0x140021940
mov rcx, rdi
call fcn.1400217a0
movzx eax, al
test bpl, bpl
jne 0x140021947
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x140021933.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x140021ab8]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x140021933.2
xor eax, eax
test bpl, bpl
je 0x14002190c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140021a99
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x14002197a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x1400219f9
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 0x1400219c0
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x1400219db
inc rax
dec rdi
cmp rax, 1
jne 0x1400219a0
jmp 0x1400219f9
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x1400219db
cmp ebx, 0x5c
je 0x1400219db
inc rax
dec rdi
cmp rax, 1
jne 0x1400219c0
jmp 0x1400219f9
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x140021aa7
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x140021a23
mov al, 9
cmp rdx, 2
je 0x140021a27
cmp rdx, 1
jne 0x140021a37
cmp byte [r8], 0x2e
jne 0x140021a37
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140021a37
mov al, 0xa
jmp 0x140021a37
cmp byte [r8], 0x2e
jne 0x140021a37
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.0x140021933.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.0x140021933.2
mov ecx, 2
jmp case.0x140021933.2
lea r8, str.library_std_srcpath.rs
call fcn.14003da10
ud2
lea r8, str.library_std_srcpath.rs
call fcn.14003da10
ud2
Function at 0x140025810
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1400660a8]
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 0x14002587c
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14002588b
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400258c3
cmp eax, 0x103
je 0x1400258cd
test eax, eax
js 0x1400258a8
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400258c3
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, [0x140066108]
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.14001c470
mov rcx, rax
call fcn.14001c5b0
mov ecx, 7
int 0x29
ud2
Function at 0x140026100
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4f0
mov rbx, rdx
mov rsi, rcx
mov eax, dword [rdx + 0x10]
movzx ebp, word [rdx + 0x40]
movzx r15d, word [rdx + 0x42]
movzx r12d, word [rdx + 0x44]
mov dword [rdx + 0x10], 0
cmp eax, 1
jne 0x14002615c
mov r14, qword [rbx]
cmp bp, 0x2e
jne 0x140026250
test r15w, r15w
je 0x14002615c
cmp r15w, 0x2e
jne 0x140026250
test r12w, r12w
jne 0x140026250
lea r14, [rsp + 0x80]
mov r8d, 0x250
mov rcx, r14
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rdi, qword [rbx + 8]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140026235
mov r14, qword [rbx]
lea rbx, [rsp + 0x80]
mov r15, qword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x1400261b1
mov rcx, rdi
mov rdx, rbx
call r15
test eax, eax
je 0x140026235
cmp word [rsp + 0xac], 0x2e
jne 0x1400261da
movzx eax, word [rsp + 0xae]
test ax, ax
je 0x1400261a0
cmp ax, 0x2e
jne 0x1400261da
cmp word [rsp + 0xb0], 0
je 0x1400261a0
lock inc qword [r14]
jle 0x140026339
mov rdi, qword [rsp + 0x80]
movups xmm0, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x30], xmm0
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x40], eax
movzx ebp, word [rsp + 0xac]
movzx r15d, word [rsp + 0xae]
movzx r12d, word [rsp + 0xb0]
lea rdx, [rsp + 0xb2]
jmp 0x14002627b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x1400262c7
mov qword [rsi], 0
jmp 0x140026327
lock inc qword [r14]
jle 0x140026339
lea rdx, [rbx + 0x46]
mov rdi, qword [rbx + 0x14]
mov eax, dword [rbx + 0x3c]
mov dword [rsp + 0x40], eax
movups xmm0, xmmword [rbx + 0x2c]
movaps xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rbx + 0x1c]
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x2d2]
mov r8d, 0x21e
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x70], eax
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x2d2]
mov r8d, 0x21e
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1400262da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
xor r14d, r14d
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], rdi
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x18], xmm0
movups xmmword [rsi + 0x28], xmm1
mov eax, dword [rsp + 0x70]
mov dword [rsi + 0x38], eax
mov word [rsi + 0x3c], bp
mov word [rsi + 0x3e], r15w
mov word [rsi + 0x40], r12w
lea rcx, [rsi + 0x42]
lea rdx, [rsp + 0x80]
mov r8d, 0x21e
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsi], 1
add rsp, 0x4f0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
ud2
Function at 0x140030b00
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.14001f000
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x140030b76
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.140030cb0
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x140030b84
movdqu xmm6, xmmword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140030ba4
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x140030b95
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x28]
call fcn.14001f1f0
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 0x140030b95
mov edx, 2
mov rcx, rdi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
jmp fcn.14000a1a0
Function at 0x140032930
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x14006e270]
mov ecx, 0x10
mov edx, 8
call fcn.14000a110
test rax, rax
je 0x140032a07
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140032de0]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400329f9
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
cmp qword [rax + 8], 0
je 0x1400329d6
mov rdx, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.14000a1a0
mov edx, 8
mov rcx, qword [rbp - 0x18]
call fcn.14000a1a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.14003d880
ud2
Function at 0x140033270
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.14003cb10
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov qword [rbp + 0xfd8], rdx
mov rbx, rcx
lea rsi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0xfe8], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
lea r14, [rbp + 0xfe8]
mov qword [rbp + 0xfc8], r14
lea r15, [0x140029ce0]
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0xfb0]
mov rcx, rbx
mov rdx, rsi
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x140033461
mov r12, qword [sym.imp.KERNEL32.dll_SleepEx]
lea rsi, [rbp + 0xfb0]
mov r13, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov qword [rbp + 0xfe0], rbx
mov ecx, 0xffffffff
mov edx, 1
call r12
cmp dword [rbp + 0xfe8], 0
je 0x140033337
cmp dword [rbp + 0xfec], 0
jne 0x140033476
mov eax, dword [rbp + 0xff0]
test rax, rax
je 0x140033476
cmp eax, 0x1000
ja 0x1400334c1
xor ebx, ebx
nop word cs:[rax + rax]
cmp rbx, rax
ja 0x1400334a6
lea rdx, [rbx + rbp]
add rdx, 0xffffffffffffffb0
mov rdi, rax
mov r8d, eax
sub r8d, ebx
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r14
mov qword [rsp + 0x20], r15
mov rcx, qword [rbp + 0xfd8]
mov r9, rsi
call r13
test eax, eax
je 0x140033469
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r12
cmp dword [rbp + 0xfe8], 0
je 0x1400333e0
cmp dword [rbp + 0xfec], 0
jne 0x14003346f
mov eax, dword [rbp + 0xff0]
add rbx, rax
mov rax, rdi
cmp rbx, rdi
jne 0x140033380
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r14
mov qword [rsp + 0x20], r15
mov rbx, qword [rbp + 0xfe0]
mov rcx, rbx
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x140033337
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140033476
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rbp + 0xfe0]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call rsi
mov rcx, qword [rbp + 0xfd8]
call rsi
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, rbx
mov qword [rbp + 0xfd0], rax
mov rdx, rax
call fcn.14003dd00
jmp 0x1400334dc
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov qword [rbp + 0xfd0], rax
mov rcx, rax
call fcn.14003da90
ud2
Function at 0x140033570
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x1400335af
mov rax, qword [rbp - 0x20]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x140022e10]
mov qword [rbp - 0x28], rax
lea rax, [0x140066570]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.14003d950
ud2

Function at 0x140035380
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx], 0
jne 0x140035487
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x1400353b8
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x140035470
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x140035452
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x30], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x30]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003540e
mov eax, dword [rsp + 0x30]
mov ecx, 2
test rax, rax
jne 0x14003542b
jmp 0x140035420
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x140035426
cmp eax, 0x6d
jne 0x140035442
mov byte [rsi + 1], 0
jmp 0x140035436
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
xor eax, eax
mov byte [rsi], al
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x140035438
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.14003f2c0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x1400353c5
mov r8d, 0x10
mov rcx, rbx
call fcn.14003f2c0
mov rax, qword [rbx + 8]
jmp 0x1400353b8
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14003f4b0
ud2
Function at 0x140039040
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x16
call fcn.14001f000
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x1400390e6
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.140025930
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x1400390e6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1400390c1
test rsi, rsi
je 0x1400390bd
mov edx, 2
mov rcx, rdi
call fcn.14000a1a0
xor esi, esi
jmp 0x1400390e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x1400390e3
mov edx, 2
mov rcx, rdi
call fcn.14000a1a0
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003c650
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push rbx
sub rsp, 0x30
xor edx, edx
mov qword [rsp + 0x20], rcx
lea r9, [0x1400678a8]
lea rcx, [0x140067898]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
jns 0x14003c689
mov edx, eax
lea rcx, str.CoCreateInstance_for_INetFwPolicy2_failed:_0x_08lx_n
call fcn.14003caa8
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x14003d300
Capabilities:
Parse pe header

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

Function at 0x140a56058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140a561df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140a56089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a5606f
add dl, dl
jne 0x140a56096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a560f6
xor eax, eax
add dl, dl
jne 0x140a560a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a561ad
add dl, dl
jne 0x140a560b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a560c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a560d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a560dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140a560ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140a5607e
mov eax, 1
add dl, dl
jne 0x140a56106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a56113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a560fb
sub eax, ebx
mov ebx, 1
jne 0x140a5614c
mov ecx, 1
add dl, dl
jne 0x140a5612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a5613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a56123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a5607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140a56168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a56175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a5615d
cmp eax, 0x7d00
jae 0x140a5619b
cmp eax, 0x500
jb 0x140a56196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a5607e
cmp eax, 0x7f
ja 0x140a5619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a5607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140a561d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140a5607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20