joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140028974
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001c284
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c284
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140028ac4
cmp rax, 0xffffffffffffffff
je 0x140028ac4
xor edi, edi
test rbp, rbp
jle 0x140028a6f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001eb98
mov rbx, rax
test rax, rax
jne 0x1400289fc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028a65
mov edx, 0x8000
mov ecx, r14d
call fcn.140019be8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001cf60
cmp eax, 0xffffffff
je 0x140028a45
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028a0c
mov edx, r15d
mov ecx, r14d
call fcn.140019be8
jmp 0x140028a65
cmp byte [rsi + 0x38], dil
je 0x140028a5c
cmp dword [rsi + 0x34], 5
jne 0x140028a5c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028a65
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a948
jmp 0x140028ad8
jns 0x140028ad8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c284
cmp rax, 0xffffffffffffffff
jne 0x140028a90
cmp byte [rsi + 0x30], dil
je 0x140028ad8
mov edi, dword [rsi + 0x2c]
jmp 0x140028ad8
mov ecx, r14d
call fcn.14001871c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140028ad8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140028ad8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140028ad1
mov eax, dword [rsi + 0x2c]
jmp 0x140028ad6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c284
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140029bd0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140029bf8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140029bf8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x14000203c
Capabilities:
Parse pe header

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

Disassembly:
aeskeygenassist xmm0, xmmword [rdx], 2
movdqa xmmword [rcx], xmm0
ret

Function at 0x1400058d0
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rcx
mov qword [rbp - 8], 0
lea r9, [rbp - 8]
mov rcx, rdx
xor edx, edx
xor r8d, r8d
call qword [sym.imp.shell32.dll_SHGetKnownFolderPath]
mov rcx, qword [rbp - 8]
test eax, eax
je 0x14000591d
call qword [sym.imp.ole32.dll_CoTaskMemFree]
movabs rax, 0x8000000000000000
mov qword [rsi], rax
jmp 0x14000594c
call qword [sym.imp.kernel32.dll_lstrlenW]
movsxd r8, eax
mov rdx, qword [rbp - 8]
lea rcx, [rbp - 0x28]
call fcn.140017a30
mov rcx, qword [rbp - 8]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
movups xmm0, xmmword [rbp - 0x28]
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rax, rsi
add rsp, 0x58
pop rsi
pop rbp
ret

Function at 0x14000b840
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
test rdx, rdx
je 0x14000b8b2
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
mov r15, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov r12, qword [sym.imp.advapi32.dll_SystemFunction036]
jmp 0x14000b878
add rdi, rbx
sub rsi, rbx
je 0x14000b8b2
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
xor ecx, ecx
mov rdx, rdi
mov r8d, ebx
mov r9d, 2
call r15
cmp eax, 0xbfffffff
jbe 0x14000b870
mov ebp, eax
mov rcx, rdi
mov edx, ebx
call r12
test al, al
jne 0x14000b870
and ebp, 0x7fffffff
jmp 0x14000b8b4
xor ebp, ebp
mov eax, ebp
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140014a30
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 + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x140014ad0
jmp 0x140014abf
jae 0x140014b8f
cmp r8, 0x201
jae 0x140014ad0
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x140014b27
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x140014aff
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.1400385d0
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x140014b50
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140014bfb
mov r8d, r13d
cmp r12, r8
jne 0x140014ab0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140014c2f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x140014abf
jmp 0x140014ad0
cmp r14, r8
jb 0x140014c49
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.140017a30
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x140014be4
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140005850
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 + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x140014bcf
jmp 0x140014be4
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140039550
jmp 0x140014c5e
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.140039900
ud2
Function at 0x14001b350
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.1400377e0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r15, rcx
lea r12, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r12
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xorps xmm6, xmm6
lea r13, [rbp + 0xffc]
lea rbx, [0x140021e10]
lea r14, [rbp + 0xfb0]
mov rsi, qword [sym.imp.kernel32.dll_WriteFileEx]
mov rdi, qword [sym.imp.kernel32.dll_SleepEx]
mov qword [rbp + 0x1010], r15
mov r8d, 0x1000
mov rcx, r15
mov rdx, r12
call fcn.140021be0
mov r15, rdx
mov qword [rbp + 0xfd8], rax
mov qword [rbp + 0xfe0], rdx
test rax, rax
jne 0x14001b540
test r15, r15
je 0x14001b50c
cmp r15, 0x1000
ja 0x14001b562
xor r12d, r12d
nop word cs:[rax + rax]
mov r8d, r15d
sub r8d, r12d
lea rdx, [r12 + rbp]
add rdx, 0xffffffffffffffb0
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r13
mov qword [rsp + 0x20], rbx
mov rcx, qword [rbp + 0x1008]
mov r9, r14
call rsi
test eax, eax
je 0x14001b4e0
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x14001b470
mov ecx, dword [rbp + 0x1000]
mov eax, dword [rbp + 0x1004]
mov rdx, rcx
shl rdx, 0x20
or rdx, 2
xor r8d, r8d
test ecx, ecx
setne r8b
cmove rdx, rax
mov qword [rbp + 0xfe8], r8
mov qword [rbp + 0xff0], rdx
jne 0x14001b500
add r12, rax
cmp r12, r15
je 0x14001b4d0
jbe 0x14001b420
jmp 0x14001b54e
mov r15, qword [rbp + 0x1010]
lea r12, [rbp - 0x50]
jmp 0x14001b3ce
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe8], 1
mov qword [rbp + 0xff0], rax
lea rcx, [rbp + 0xff0]
call fcn.14000f040
mov rsi, qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xfe0]
call fcn.14000f040
jmp 0x14001b50c
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r12
mov rdx, r15
call fcn.140039970
jmp 0x14001b576
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.140039900
ud2
Function at 0x14001fbc0
Capabilities:
Move file

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, r9
mov rdi, r8
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x30]
call fcn.140028220
mov rax, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x14001fc36
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rdx
mov qword [rbp - 0x38], rcx
lea rcx, [rbp - 0x60]
lea rdx, [rbp - 0x48]
mov r8b, 1
call fcn.140029cb0
mov rax, qword [rbp - 0x60]
mov rdx, qword [rbp - 0x58]
cmp rax, rbx
jne 0x14001fc47
mov rax, rdx
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x18], rdx
lea rcx, [rbp - 0x30]
mov rdx, rdi
mov r8, rsi
call fcn.140028220
mov rax, qword [rbp - 0x30]
mov rsi, qword [rbp - 0x28]
cmp rax, rbx
je 0x14001fc98
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rcx
lea rcx, [rbp - 0x60]
lea rdx, [rbp - 0x48]
mov r8b, 1
call fcn.140029cb0
mov rdi, qword [rbp - 0x60]
mov rsi, qword [rbp - 0x58]
cmp rdi, rbx
jne 0x14001fcc1
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x10]
mov rax, rsi
test rdx, rdx
je 0x14001fc39
add rdx, rdx
mov r8d, 2
mov rsi, rax
call fcn.140005850
mov rax, rsi
jmp 0x14001fc39
mov rcx, qword [rbp - 0x18]
mov rbx, rcx
mov rdx, rsi
mov r8d, 1
call qword [sym.imp.kernel32.dll_MoveFileExW]
test eax, eax
mov rdx, qword [rbp - 0x10]
je 0x14001fd1b
test rdi, rdi
je 0x14001fcfe
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rsi, rdx
mov rdx, rdi
call fcn.140005850
mov rdx, rsi
test rdx, rdx
je 0x14001fd14
add rdx, rdx
mov r8d, 2
mov rcx, rbx
call fcn.140005850
xor eax, eax
jmp 0x14001fc39
mov r14, rdx
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
test rdi, rdi
je 0x14001fd4b
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
mov rsi, rax
call fcn.140005850
mov rax, rsi
mov rcx, rbx
mov rdx, r14
test rdx, rdx
jne 0x14001fca8
jmp 0x14001fc39
Function at 0x1400204e0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14003ee00]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x140020518
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14002056f
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x14002057c
xor edx, edx
xor eax, eax
jmp 0x1400205a6
cmp eax, 0x103
je 0x1400205b0
test eax, eax
js 0x14002058f
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x1400205a6
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x14003ee60]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.140017720
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.14000f630
mov ecx, 7
int 0x29
ud2

Function at 0x140020600
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14003ee00]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x140020638
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140020696
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x1400206c3
test eax, eax
js 0x1400206a2
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x1400206b9
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x14003ee60]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.140017720
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.14000f630
mov ecx, 7
int 0x29
ud2
Function at 0x140021210
Capabilities:
Create pipe

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x148
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xb0], xmm6
mov qword [rbp + 0xa8], 0xfffffffffffffffe
mov qword [rbp + 0x60], rcx
mov byte [rbp + 0xa5], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x5c], ecx
mov r15d, 8
mov sil, 1
xorps xmm6, xmm6
lea r14, [rbp + 0x20]
mov r12, qword [sym.imp.bcryptprimitives.dll_ProcessPrng]
xor edi, edi
xor eax, eax
mov qword [rbp - 8], rax
nop word cs:[rax + rax]
Function at 0x140027a60
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
invalid
dec dword [rcx + rcx*4 - 0x39]
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x14004f181]
add byte [rcx + 0x10], bh
mov edx, 8
call fcn.140005840
test rax, rax
je 0x140027b4b
invalid
lodsb al, byte [rsi]
add byte [rax], al
invalid
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
or byte [rax - 0x39], cl
and al, 0x28
and al, 0x28
add byte [rax], al
add byte [rax], al
mov dword [rsp + 0x20], 0x10000
lea r8, case.0x140018264.478
add byte [rcx], dh
push qword [rcx]
leave
mov rdx, rsi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
adc eax, 0x1281f
add byte [rax - 0x77], cl
invalid
test rax, rax
jne 0x140027b3d
invalid
mov rax, qword [rbx]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x20], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x10], rax
mov rax, qword [rax]
test rax, rax
test eax, eax
je 0x140027afa
mov rcx, qword [rbp - 0x18]
call rax
mov rcx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
invalid
invalid
mov rdx, qword [rax + 8]
test rdx, rdx
invalid
je 0x140027b14
invalid
mov r8, qword [rax + 0x10]
call fcn.140005850
mov edx, 0x10
mov r8d, 8
mov rcx, qword [rbp - 0x20]
call fcn.140005850
sub ch, bl
std
invalid
call qword [sym.imp.kernel32.dll_GetLastError]
adc eax, 0x1281a
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
call 0x140028410
invalid
mov edx, 0x10
call fcn.140039380
ud2
Function at 0x140035fb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x14003603a
mov rax, rdx
mov rdx, qword [rbp + 0x50]
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 0x140036030
cmp r11, r10
ja 0x1400360b6
cmp r10, rdx
ja 0x1400360c8
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x140036032
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140036010
jmp 0x140036097
ja 0x14003603a
mov r11, r10
cmp rax, r8
jne 0x140035fd7
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14003609b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140036070
mov r8, r10
sub ecx, r9d
jns 0x14003608e
jmp 0x14003609d
cmp r10, rdx
je 0x1400360aa
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14003609d
xor al, 1
cmp r8, rdx
jne 0x140036050
jmp 0x14003609d
xor eax, eax
jmp 0x14003609d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140039410
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140039970
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140039900
int3

Function at 0x140037d14
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x140037d5e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140037d5e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140037d5e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140037d5e
cmp dword [rcx + 0x84], 0xe
jbe 0x140037d5e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140037d60
xor al, al
add rsp, 0x28
ret
Function at 0x140006ab1
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
lea rcx, [0x140008fad]
call sub.msvcrt.dll_getenv
jmp 0x140006c54
lea rcx, [0x140008fb1]
lea rdx, [0x140008fa9]
mov r8, rax
mov rax, qword [0x140009a3e]
call rax
mov rsi, rax
lea rdi, [0x140008fb1]
lea r12, [0x140007004]
push r12
push rdi
push r14
push rsi
push rbx
push r12
push r15
push r13
push rbp
mov rbp, rsp
sub rsp, 0x20
mov eax, dword [rbp - 0x1d]
mov edi, 0xcbbb
xor rax, qword [rbp - 0x1c]
mov esi, dword [rbp - 0x1c]
mov qword [rbp - 0x11], rax
mov edx, dword [rbp - 0x1b]
mov dword [rbp - 0xf], ebx
mov qword [rbp - 8], rdi
xor ecx, edx
mov rdx, qword [rbp - 0x1e]
mov r12, r11
xor edx, edi
mov edi, dword [rbp - 0x1d]
mov edi, 0xf0f6
movzx ecx, word [0x140008008]
movzx edx, dh
mov r13, r14
mov edi, dword [rbp - 0xc]
mov ecx, ebx
mov word [rbp - 0xc], cx
and rdx, r9
cmp eax, dword [0x14000800d]
jno 0x140006cff
sub qword [rbp - 0xf], rdi
add edx, 0x53f5
mov dword [rbp - 0xc], edi
movzx esi, al
mov r15, rsi
or r11, qword [str.UDTANGYJlHTLEdN]
mov esi, ebx
mov r14, qword [rbp - 0xe]
mov ecx, dword [rbp - 5]
movzx esi, dl
mov edi, dword [rbp - 0x1d]
and edx, dword [0x14000800d]
mov qword [rbp - 0x11], r12
mov eax, 0x9dbb
mov rsi, qword [rbp - 9]
mov ebx, dword [rbp - 0x12]
add esi, 0x1966
mov qword [rbp - 0x15], r9
mov r12, qword [rbp - 0xc]
mov ecx, ecx
add ebx, 0x2256
mov r9, r13
mov ecx, ebx
mov qword [rbp - 0x1c], r11
mov rbx, qword [rbp - 0xf]
mov r13, qword [rbp - 5]
movzx edi, dl
movzx edi, dh
and rdi, qword [rbp - 5]
mov qword [rbp - 0x1b], r12
xor esi, ecx
test esi, edx
je 0x140006d62
mov dword [rbp - 0x19], edi
mov word [rbp - 0x1a], si
lea edx, [rbp - 0x18]
add esi, 0x4eb8
mov edx, dword [rbp - 1]
mov rbx, r9
mov ebx, dword [rbp - 0x16]
and qword [rbp - 0x17], r12
mov rdx, qword [rbp - 0x10]
mov r14, qword [0x14000800b]
lea rdi, [rbp - 6]
mov qword [rbp - 0x13], r11
lea rsi, [rbp - 0x18]
add qword [0x140008004], r10
mov qword [rbp - 0x13], r11
or rax, qword [rbp]
or rsi, qword [rbp - 0x12]
mov r11, qword [rbp - 0x16]
mov esi, dword [rbp - 0x11]
xor edx, dword [rbp - 7]
mov ecx, esi
sub edx, 0x3c64
mov dword [0x14000800b], edx
mov word [rbp - 3], si
mov esi, dword [rbp - 0x1b]
mov qword [rbp - 0x17], r10
or r11, r11
mov r8, r9
and r10, qword [rbp - 7]
mov r9, r8
cmp edi, edi
jb 0x140006e07
cmp r14, r14
jmp 0x140006de3
xor r14, rax
mov qword [rbp - 9], r11
call fcn.140006e14
mov edi, 0xdb41
add r14, 0xf541
mov dword [rbp - 0x12], esi
mov edi, dword [rbp - 0xf]
mov dword [0x140008001], edi
leave
pop r13
pop r15
pop r12
pop rbx
pop rsi
pop r14
pop rdi
ret
Function at 0x140020320
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14002032d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14002033d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140020325
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140020355
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140020342
sub eax, 3
jb 0x14002036f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400203a6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140020396
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140020394
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140020383
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.1400202e2
jmp 0x14002032d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2c00
mov dl, 2
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400203f2
cmp rsi, rcx
jae 0x1400203fa
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400203d9
cmp al, 0x8f
ja 0x1400203d9
cmp byte [rsi - 2], 0xf
je 0x1400203df
sub al, 0xe8
cmp al, 1
ja 0x1400203c3
cmp rsi, rcx
jae 0x1400203fa
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400203c9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400203fa
lodsb al, byte [rsi]
jmp 0x1400203d9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1e000]
mov eax, dword [rdi]
or eax, eax
je 0x140020457
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x35530]
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 0x140020407
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 0x140020451
mov qword [rbx], rax
add rbx, 8
jmp 0x140020427
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 0x140020491
cmp al, 0xef
ja 0x140020483
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140020463
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140020472
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 + 0x227]
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 0x1400204e5
sub rsp, 0xffffffffffffff80
jmp 0x140002e10