joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400782f0
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x140462ab8]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x14045e49c]
test eax, eax
je 0x14007833b
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14045e49c]
test eax, eax
jne 0x140078344
call fcn.14000f23c
test eax, eax
je 0x140078360
lea rdx, [rsp + 0x48]
mov rcx, qword [0x140282360]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x140078368
xor eax, eax
jmp 0x1400783cd
test rbx, rbx
jne 0x140078388
lea rcx, str.ImageList_GetImageCount
call fcn.14001c5a0
mov rbx, rax
test rax, rax
je 0x14007839b
mov qword [0x140462ab8], rax
mov rcx, rbx
call fcn.1401b8904
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x1400783b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1400783b2
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1400783cb
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140102740
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x140102910
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea rax, [r11 + 8]
mov qword [r11 - 0x10], rax
lea r9, [r11 + 0x20]
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor edx, edx
test eax, eax
jne 0x140102952
mov ecx, dword [rsp + 0x58]
sub ecx, 4
neg ecx
sbb eax, eax
and eax, 0xd
test eax, eax
sete dl
mov eax, edx
add rsp, 0x38
ret
Function at 0x140102dbc
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x140102e8e
test rbx, rbx
je 0x140102e94
test r9, r9
je 0x140102e9a
and qword [r8], 0
xor r8d, r8d
and dword [r9], 0
mov rcx, qword [rcx + 8]
mov qword [rax - 0x10], r9
lea r9, [rax + 0x10]
and qword [rax - 0x18], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140102e77
cmp dword [rsp + 0x48], 3
jne 0x140102e77
test eax, eax
jne 0x140102e77
cmp dword [rdi], eax
je 0x140102e77
mov ecx, dword [rdi]
call fcn.140002a78
mov qword [rbx], rax
lea r9, [rsp + 0x48]
mov rcx, qword [rbp + 8]
xor r8d, r8d
mov qword [rsp + 0x28], rdi
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140102e6b
cmp dword [rsp + 0x48], 3
jne 0x140102e6b
test eax, eax
jne 0x140102e6b
mov eax, 1
jmp 0x140102e79
mov rcx, qword [rbx]
call fcn.1400058d0
and qword [rbx], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.140009604
int3
call fcn.140009604
int3
call fcn.140009604
int3

Function at 0x1401031c0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x1401031d1
xor eax, eax
jmp 0x1401031ff
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, 4
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x140103208
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x140103219
xor eax, eax
jmp 0x14010323d
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov r9d, 3
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140163adc
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x140466830]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x14045e49c]
test eax, eax
je 0x140163b27
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14045e49c]
test eax, eax
jne 0x140163b30
call fcn.14000f23c
test eax, eax
je 0x140163b4c
lea rdx, [rsp + 0x48]
mov rcx, qword [0x140282360]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x140163b54
xor eax, eax
jmp 0x140163bb9
test rbx, rbx
jne 0x140163b74
lea rcx, str.ChooseColorA
call fcn.14003a3e4
mov rbx, rax
test rax, rax
je 0x140163b87
mov qword [0x140466830], rax
mov rcx, rbx
call fcn.1401b8904
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x140163b9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140163b9e
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x140163bb7
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140168714
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x140466980]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x14045e49c]
test eax, eax
je 0x14016875f
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14045e49c]
test eax, eax
jne 0x140168768
call fcn.14000f23c
test eax, eax
je 0x140168784
lea rdx, [rsp + 0x48]
mov rcx, qword [0x140282360]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14016878c
xor eax, eax
jmp 0x1401687f1
test rbx, rbx
jne 0x1401687ac
lea rcx, str.PrintDlgA
call fcn.14003a3e4
mov rbx, rax
test rax, rax
je 0x1401687bf
mov qword [0x140466980], rax
mov rcx, rbx
call fcn.1401b8904
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x1401687d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1401687d6
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1401687ef
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x1401caea4
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1401cac78
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401cac78
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401cac78
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401cac78
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401cac78
cmp dword [rcx + 0x84], 0xe
jbe 0x1401cac78
cmp dword [rcx + 0xf8], esi
je 0x1401cac78
mov ecx, r14d
call fcn.1401cadc0
mov ecx, 2
call fcn.1401d1128
nop
cmp byte [0x1404687f8], 0
jne 0x1401cad42
mov r15d, 1
mov eax, r15d
xchg dword [0x1404687e8], eax
test ebx, ebx
jne 0x1401caceb
mov rdi, qword [0x140283768]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1404687f0]
cmp rcx, rax
je 0x1401cace2
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1400024bc]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140468928]
jmp 0x1401cacf7
cmp ebx, r15d
jne 0x1401cacfd
lea rcx, [0x140468940]
call fcn.1401cb958
nop
test ebx, ebx
jne 0x1401cad14
lea rdx, [0x1401e4a28]
lea rcx, [0x1401e4a08]
call fcn.1401cbc94
lea rdx, [0x1401e4a38]
lea rcx, [0x1401e4a30]
call fcn.1401cbc94
movzx eax, byte [0x1404687f8]
test esi, esi
cmove eax, r15d
mov byte [0x1404687f8], al
jmp 0x1401cad42
mov ecx, 2
call fcn.1401d117c
test esi, esi
jne 0x1401cad59
mov ecx, r14d
call fcn.1401cad74
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1401cac08
Function at 0x14000ce20
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 0x14000ceb0
jmp 0x14000ce9f
jae 0x14000cf70
cmp r8, 0x201
jae 0x14000ceb0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14000cf08
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14000cedf
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140031bb0
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 0x14000cf31
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000cfd8
mov r8d, r14d
cmp r15, r8
jne 0x14000ce90
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000cffb
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000ce9f
jmp 0x14000ceb0
cmp rsi, r8
jb 0x14000d015
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.1400100a0
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 0x14000cfc1
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140005320
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 0x14000cfa9
jmp 0x14000cfc1
lea rcx, str.internal_error:_entered_unreachable_codeX_
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140032740
jmp 0x14000d02a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140032b90
ud2
Function at 0x140010aa0
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 0x140010ad0
test ecx, ecx
jne 0x140010b20
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x140010adc
test ecx, ecx
jne 0x140010b20
mov rcx, rdi
call fcn.140010980
movzx eax, al
test bpl, bpl
jne 0x140010b27
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x140010b13.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x140010c98]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x140010b13.2
xor eax, eax
test bpl, bpl
je 0x140010aec
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140010c79
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x140010b5a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x140010bd9
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 0x140010ba0
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x140010bbb
inc rax
dec rdi
cmp rax, 1
jne 0x140010b80
jmp 0x140010bd9
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x140010bbb
cmp ebx, 0x5c
je 0x140010bbb
inc rax
dec rdi
cmp rax, 1
jne 0x140010ba0
jmp 0x140010bd9
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x140010c87
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x140010c03
mov al, 9
cmp rdx, 2
je 0x140010c07
cmp rdx, 1
jne 0x140010c17
cmp byte [r8], 0x2e
jne 0x140010c17
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140010c17
mov al, 0xa
jmp 0x140010c17
cmp byte [r8], 0x2e
jne 0x140010c17
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.0x140010b13.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.0x140010b13.2
mov ecx, 2
jmp case.0x140010b13.2
lea r8, str.library_std_srcpath.rs
call fcn.140032b10
ud2
lea r8, str.library_std_srcpath.rs
call fcn.140032b10
ud2
Function at 0x1400142f0
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.140030eb0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov qword [rbp + 0xfd8], rdx
mov r14, 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 r15, [rbp + 0xfe8]
mov qword [rbp + 0xfc8], r15
lea r12, [0x14001adf0]
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0xfb0]
mov rcx, r14
mov rdx, rsi
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x1400144de
mov r13, qword [sym.imp.KERNEL32.dll_SleepEx]
lea rsi, [rbp + 0xfb0]
mov rdi, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov qword [rbp + 0xfe0], r14
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfe8], 0
je 0x1400143b7
cmp dword [rbp + 0xfec], 0
jne 0x1400144f3
mov ebx, dword [rbp + 0xff0]
test rbx, rbx
je 0x1400144f3
cmp ebx, 0x1000
ja 0x14001453e
xor r14d, r14d
nop dword [rax + rax]
cmp r14, rbx
ja 0x140014523
lea rdx, [r14 + rbp]
add rdx, 0xffffffffffffffb0
mov r8d, ebx
sub r8d, r14d
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], r12
mov rcx, qword [rbp + 0xfd8]
mov r9, rsi
call rdi
test eax, eax
je 0x1400144e6
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfe8], 0
je 0x140014460
cmp dword [rbp + 0xfec], 0
jne 0x1400144ec
mov eax, dword [rbp + 0xff0]
add r14, rax
cmp r14, rbx
jne 0x140014400
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], r12
mov r14, qword [rbp + 0xfe0]
mov rcx, r14
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x1400143b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400144f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14, qword [rbp + 0xfe0]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
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
mov qword [rbp + 0xfd0], rbx
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r14
mov rdx, rbx
call fcn.140032c10
jmp 0x140014558
mov ecx, ebx
mov qword [rbp + 0xfd0], rcx
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
call fcn.140032b90
ud2
Function at 0x14001b2a0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14001b3af
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x14001b2d8
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14001b372
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x14001b391
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 0x14001b32e
mov eax, dword [rsp + 0x30]
mov ecx, 2
test rax, rax
jne 0x14001b34b
jmp 0x14001b340
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14001b346
cmp eax, 0x6d
jne 0x14001b362
mov byte [rsi + 1], 0
jmp 0x14001b356
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 0x14001b358
mov r8d, 0x10
mov rcx, rbx
call fcn.140031af0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x14001b2e5
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.140031af0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x14001b2e5
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140031950
ud2
Function at 0x14001ff10
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.140021f50
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x14001ff86
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.140017740
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x14001ff94
movdqu xmm6, xmmword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001ffb4
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x14001ffa5
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x28]
call fcn.140007570
mov qword [rsi], 0
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
ret
mov qword [rsi], 0
movq rdx, xmm6
test rdx, rdx
je 0x14001ffa5
add rdx, rdx
mov r8d, 2
mov rcx, rdi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
jmp fcn.140005320

Function at 0x140020b60
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 0x140020ba3
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
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, [0x14000dd90]
mov qword [rbp - 0x28], rax
lea rax, [0x140036550]
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.1400326a0
ud2
Function at 0x1400211e0
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 [0x140042181]
mov ecx, 0x10
mov edx, 8
call fcn.140005310
test rax, rax
je 0x1400212bf
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140021350]
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 0x1400212b1
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]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140021288
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.140005320
mov edx, 0x10
mov r8d, 8
mov rcx, qword [rbp - 0x18]
call fcn.140005320
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.140032620
ud2

Function at 0x14002f730
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14002f7aa
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14002f7a0
cmp r10, r11
jb 0x14002f843
cmp r10, rdx
ja 0x14002f857
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14002f7a2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14002f780
jmp 0x14002f817
ja 0x14002f7aa
mov r11, r10
cmp rax, r8
jne 0x14002f752
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14002f81b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14002f7f0
mov r8, r10
sub ecx, r9d
jns 0x14002f80e
jmp 0x14002f81d
cmp r10, rdx
je 0x14002f829
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14002f81d
xor al, 1
cmp r8, rdx
jne 0x14002f7d0
jmp 0x14002f81d
xor eax, eax
jmp 0x14002f81d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuelibrarycore_src_nummod.rsfrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140032740
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140032c10
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140032b90
ud2
Function at 0x1400313f8
Capabilities:
Parse pe header

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