joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017ff0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
movzx ebx, byte [rdx + 0x38]
xor r15d, r15d
cmp bl, 1
setne dl
mov eax, 0
sbb eax, eax
mov r14, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x140018023
test ecx, ecx
jne 0x140018072
movzx r15d, byte [rdi + 0x3a]
cmp al, 0xff
je 0x140018030
test ecx, ecx
jne 0x140018072
mov rcx, rdi
call fcn.140017ed0
movzx r10d, al
test bl, bl
jne 0x140018079
lea rax, [rdi + 0x10]
xor esi, esi
cmp byte [rdi + 0x10], 6
cmove rax, rsi
je case.0x140018066.2
movzx ecx, byte [rax]
mov esi, 6
lea rdx, [0x1400181ec]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov rsi, qword [rax + 0x10]
add rsi, 4
jmp case.0x140018066.2
xor r10d, r10d
test bl, bl
je 0x140018040
xor esi, esi
movzx eax, r15b
lea rcx, [r10 + rax]
add rcx, rsi
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x1400181ce
mov r11, qword [rdi]
lea r9, [r11 + rcx]
movzx r8d, byte [rdi + 0x10]
cmp rdx, rcx
jne 0x1400180ab
xor edi, edi
jmp 0x140018128
add rsi, r10
add rsi, rax
sub rsi, rdx
inc rsi
lea rax, [rdx + r11]
dec rax
xor edi, edi
cmp r8b, 3
jae 0x1400180f0
nop word cs:[rax + rax]
cmp byte [rax], 0x5c
je 0x14001810b
inc rsi
dec rax
cmp rsi, 1
jne 0x1400180d0
jmp 0x140018128
movzx ebx, byte [rax]
cmp ebx, 0x2f
je 0x14001810b
cmp ebx, 0x5c
je 0x14001810b
inc rsi
dec rax
cmp rsi, 1
jne 0x1400180f0
jmp 0x140018128
neg rsi
add rcx, rsi
inc rcx
cmp rdx, rcx
jb 0x1400181dc
add r11, rcx
mov edi, 1
mov r9, r11
sub rdx, rcx
je 0x140018152
mov al, 9
cmp rdx, 2
je 0x140018156
cmp rdx, 1
jne 0x140018166
cmp byte [r9], 0x2e
jne 0x140018166
xor eax, eax
cmp r8b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140018166
mov al, 0xa
jmp 0x140018166
cmp byte [r9], 0x2e
jne 0x140018166
cmp byte [r9 + 1], 0x2e
sete al
xor al, 9
add rdi, rdx
mov qword [r14], rdi
mov qword [r14 + 8], r9
mov qword [r14 + 0x10], rdx
mov byte [r14 + 0x18], al
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 8
jmp case.0x140018066.2
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 2
jmp case.0x140018066.2
mov esi, 2
jmp case.0x140018066.2
lea r8, str.library_std_srcpath.rs
call fcn.140039fd0
ud2
lea r8, str.library_std_srcpath.rs
call fcn.140039fd0
ud2
Function at 0x14001b590
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, 0x10a8
call fcn.140037f70
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1010], xmm6
mov qword [rbp + 0x1008], 0xfffffffffffffffe
mov rsi, rdx
mov rbx, rcx
mov qword [rbp + 0xfc0], rcx
mov qword [rbp + 0xfc8], rdx
lea rdi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rdi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0xff8], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfd0], xmm6
mov qword [rbp + 0xfe0], 0
lea rax, [rbp + 0xff8]
mov qword [rbp + 0xfe8], rax
lea r14, [0x140022230]
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0xfd0]
mov rcx, rbx
mov rdx, rdi
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x14001b7b5
mov r15, qword [sym.imp.KERNEL32.dll_SleepEx]
mov r13d, 0xffffffff
lea r12, [rbp + 0xfd0]
mov qword [rbp + 0xff0], rbx
mov ecx, 0xffffffff
mov edx, 1
call r15
cmp dword [rbp + 0xff8], 1
jne 0x14001b660
cmp dword [rbp + 0xffc], 0
jne 0x14001b7ca
mov edi, dword [rbp + 0x1000]
mov qword [rbp + 0xfb0], 0
mov qword [rbp + 0xfb8], rdi
test rdi, rdi
je 0x14001b7ca
cmp edi, 0x1000
ja 0x14001b80a
xor ebx, ebx
nop word cs:[rax + rax]
cmp rbx, rdi
ja 0x14001b7f6
lea rdx, [rbx + rbp]
add rdx, 0xffffffffffffffb0
mov r8, rdi
sub r8, rbx
cmp r8, r13
cmovae r8, r13
mov dword [rbp + 0xff8], 0
movaps xmmword [rbp + 0xfd0], xmm6
mov qword [rbp + 0xfe0], 0
lea rax, [rbp + 0xff8]
mov qword [rbp + 0xfe8], rax
mov qword [rsp + 0x20], r14
mov rcx, rsi
mov r9, r12
call qword [sym.imp.KERNEL32.dll_WriteFileEx]
test eax, eax
je 0x14001b7bd
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r15
cmp dword [rbp + 0xff8], 1
jne 0x14001b730
cmp dword [rbp + 0xffc], 0
jne 0x14001b7c3
mov eax, dword [rbp + 0x1000]
add rbx, rax
cmp rbx, rdi
jne 0x14001b6c0
mov dword [rbp + 0xff8], 0
movaps xmmword [rbp + 0xfd0], xmm6
mov qword [rbp + 0xfe0], 0
lea rax, [rbp + 0xff8]
mov qword [rbp + 0xfe8], rax
mov qword [rsp + 0x20], r14
mov rbx, qword [rbp + 0xff0]
mov rcx, rbx
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, r12
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x14001b660
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14001b7ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rbp + 0xff0]
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call rdi
mov rcx, rsi
call rdi
movaps xmm6, xmmword [rbp + 0x1010]
add rsp, 0x10a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, str.Pa_v_
mov rcx, rbx
mov rdx, rdi
call fcn.140039ff0
jmp 0x14001b81d
mov ecx, edi
lea r8, str.Pa_v_
mov edx, 0x1000
call fcn.140039fe0
ud2
Function at 0x14001be40
Capabilities:
Get number of processors

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov rsi, rcx
mov qword [rbp + 0x20], rcx
mov eax, dword [0x1400c32b0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x60]
cmp eax, 1
je 0x14001becb
test eax, eax
jne 0x14001c002
mov byte [rbp + 0x2f], 1
mov eax, dword [0x1400c32b0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x50]
lea rdx, [0x140029900]
call fcn.140027d40
mov eax, dword [0x1400c32b0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov byte [rax + 0x60], 1
mov qword [rbp + 0x18], rsi
mov eax, dword [0x1400c32b0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0x50], 0
jne 0x14001bf43
mov eax, dword [0x1400c32b0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x50], 0xffffffffffffffff
cmp qword [rax + 0x58], 0
jne 0x14001bf6d
mov eax, dword [0x1400c32b0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x58], rsi
mov qword [rax + 0x50], 0
add rsp, 0xb8
pop rsi
pop rbp
ret
lea rax, str.fR_v_
mov qword [rsp + 0x20], rax
lea rcx, str.already_borrowedlibrary_std_srcio_stdio.rs
lea r9, fcn.140003900
lea r8, [rbp - 0x28]
mov edx, 0x10
call fcn.140039f30
ud2
mov byte [rbp + 0x2c], 0
mov dword [rbp + 0x28], 0
lea rax, str.assertion_failed:_thread_info.is_none__
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], 1
mov qword [rbp - 0x28], 0
lea rax, str._rustc_9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0librarycore_src_sliceiter.rs
mov qword [rbp - 8], rax
mov qword [rbp], 0
lea rax, [rbp - 0x28]
mov qword [rbp + 8], rax
lea rax, [0x140033440]
mov qword [rbp + 0x10], rax
lea rax, [0x1400b4408]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 2
mov qword [rbp - 0x58], 0
lea rax, [rbp + 8]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x58]
call fcn.140017480
mov rcx, rax
call fcn.14000ead0
mov ecx, 7
int 0x29
ud2
lock dec qword [rsi]
jne 0x14001c011
mov rcx, qword [rbp + 0x20]
call fcn.140013530
lea rax, [0x1400b45d8]
mov qword [rsp + 0x20], rax
lea rcx, [0x1400b4573]
lea r9, fcn.140003900
lea r8, [rbp - 0x28]
mov edx, 0x46
call fcn.140039f30
ud2

Function at 0x14001f400
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.1400212a0
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x14001f43c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14001f441
xor ebx, ebx
test rsi, rsi
jne 0x14001f456
jmp 0x14001f46a
mov rbx, rsi
jmp 0x14001f46a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x14001f46a
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.140009c80
mov rax, rbx
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
Function at 0x14001f840
Capabilities:
Copy file

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x70
lea rbp, [rsp + 0x70]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, r9
mov r12, rcx
lea rcx, [rbp - 0x20]
call fcn.1400212a0
mov rdi, qword [rbp - 0x20]
mov rbx, qword [rbp - 0x18]
test rbx, rbx
je 0x14001f8f0
mov r8, qword [rbp + 0x60]
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x20]
mov rdx, rsi
call fcn.1400212a0
mov r14, qword [rbp - 0x20]
mov r15, qword [rbp - 0x18]
test r15, r15
je 0x14001f8ff
mov qword [rbp - 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x14001f9a0]
lea r9, [rbp - 0x20]
mov rcx, rbx
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
je 0x14001f90e
mov rax, qword [rbp - 0x20]
mov qword [r12 + 8], rax
mov qword [r12], 0
test r14, r14
jne 0x14001f92e
jmp 0x14001f942
mov qword [r12 + 8], rdi
mov qword [r12], 1
jmp 0x14001f95b
mov qword [r12 + 8], r14
mov qword [r12], 1
jmp 0x14001f942
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [r12 + 8], rax
mov qword [r12], 1
test r14, r14
je 0x14001f942
add r14, r14
mov r8d, 2
mov rcx, r15
mov rdx, r14
call fcn.140009c80
test rdi, rdi
je 0x14001f95b
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call fcn.140009c80
mov rax, r12
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
Function at 0x1400265f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x30]
call fcn.1400212a0
mov rdi, qword [rbp - 0x28]
test rdi, rdi
je 0x14002663f
mov rbx, qword [rbp - 0x30]
mov r14, qword [rbp - 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400266aa
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r14
jmp 0x14002669f
mov rdx, qword [rbp - 0x30]
mov eax, edx
and eax, 3
cmp eax, 1
jne 0x140026697
lea rax, [rdx - 1]
mov qword [rbp - 0x18], rax
mov rcx, qword [rdx - 1]
mov qword [rbp - 0x10], rdx
mov rax, qword [rdx + 7]
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 7]
mov rdx, qword [rax + 8]
test rdx, rdx
mov rdi, qword [rbp - 0x18]
je 0x140026684
mov r8, qword [rax + 0x10]
mov rcx, qword [rdi]
call fcn.140009c80
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call fcn.140009c80
mov qword [rsi + 8], 0
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rsi + 8], 0
test rbx, rbx
je 0x14002669f
add rbx, rbx
mov r8d, 2
mov rcx, rdi
mov rdx, rbx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.140009c80

Function at 0x140027230
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 0x140027273
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, [0x140015cc0]
mov qword [rbp - 0x28], rax
lea rax, [0x1400b62d0]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
mov qword [rbp - 0x60], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.140039b50
ud2
Function at 0x140027950
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 rbx, rdx
mov r14, rcx
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], r8
mov ecx, 0x10
mov edx, 8
call fcn.140009c70
mov rsi, rax
test rax, rax
je 0x140027a2a
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140027ab0]
xor edi, edi
xor ecx, ecx
mov rdx, r14
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140027a1c
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov qword [rbp - 0x10], rsi
call qword [rax]
mov rsi, qword [rbp - 0x10]
mov rax, qword [rsi + 8]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400279f4
mov r8, qword [rax + 0x10]
mov rcx, qword [rsi]
call fcn.140009c80
mov edx, 0x10
mov r8d, 8
mov rcx, rsi
call fcn.140009c80
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], rsi
mov ecx, 0x10
mov edx, 8
call fcn.140039b30
ud2
Function at 0x1400367d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
je 0x14003684a
mov r11, rdx
mov rdx, qword [rsp + 0x70]
mov ebp, ecx
shr ebp, 8
lea r8, [r11 + r8*2]
xor eax, eax
mov rbx, r11
movzx edi, byte [r11 + 1]
add r11, 2
lea r10, [rax + rdi]
cmp byte [rbx], bpl
jne 0x140036840
cmp r10, rax
jb 0x1400368dd
cmp r10, rdx
ja 0x1400368f1
add rax, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140036842
lea rsi, [rbx + 1]
cmp byte [rax + rbx], cl
mov rbx, rsi
jne 0x140036820
jmp 0x1400368b2
ja 0x14003684a
mov rax, r10
cmp r11, r8
jne 0x1400367f0
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1400368b6
mov rsi, qword [rsp + 0x78]
add rdx, rsi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea rbx, [rsi + 1]
movzx edi, byte [rsi]
test dil, dil
js 0x140036890
mov rsi, rbx
sub ecx, edi
jns 0x1400368a9
jmp 0x1400368b8
cmp rbx, rdx
je 0x1400368c3
movzx ebp, byte [rsi + 1]
add rsi, 2
and edi, 0x7f
shl edi, 8
or edi, ebp
sub ecx, edi
js 0x1400368b8
xor al, 1
cmp rsi, rdx
jne 0x140036870
jmp 0x1400368b8
xor eax, eax
jmp 0x1400368b8
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140039bf0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, rax
mov rdx, r10
call fcn.140039ff0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140039fe0
ud2

Function at 0x140038480
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140004d80
xor r9d, r9d
movabs rax, 0xcbf29ce484222325
test rdx, rdx
je 0x140004db4
movabs r10, 0x100000001b3
nop dword [rax]
movzx r8d, byte [r9 + rcx]
inc r9
xor rax, r8
imul rax, r10
cmp r9, rdx
jb 0x140004da0
ret
Function at 0x1400016e5
Capabilities:
Terminate process

Disassembly:
jmp 0x140018240
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140018b04
Capabilities:
Parse pe header

Disassembly:
jmp 0x140018b04
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140018b4e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140018b4e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140018b4e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140018b4e
cmp dword [rcx + 0x84], 0xe
jbe 0x140018b4e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140018b50
xor al, al
add rsp, 0x28
ret
Function at 0x1400048b0
Capabilities:
Connect to http server
Create http request

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rdi, rdx
mov rsi, rcx
mov dword [rsp + 0x20], 0
lea rcx, [0x1402efc68]
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [rsi + 0xa0], rax
test rax, rax
je 0x140004944
cmp qword [rsi + 0x18], 0x10
mov rdx, rsi
jb 0x1400048f2
mov rdx, qword [rsi]
lea r9, [0x1402efce3]
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov rcx, rax
mov r8w, 0x1bb
call qword [sym.imp.WININET.dll_InternetConnectA]
mov qword [rsi + 0xa8], rax
test rax, rax
je 0x140004964
mov rcx, qword [rsi + 0xb8]
call fcn.14000f160
mov al, 1
jmp 0x1400049fe
cmp qword [rdi + 0x18], 0x2c
jae 0x140004981
lea r9, str.checkConnection:_error_initializing_Wininet_n
mov edx, 0x2c
mov rcx, rdi
call fcn.140004060
jmp 0x1400049fc
cmp qword [rdi + 0x18], 0x38
jae 0x1400049b2
lea r9, str.checkConnection:_Error_connecting_to_the_website_domain_n
mov edx, reloc.WS2_32.dll_getservbyport
mov rcx, rdi
call fcn.140004060
jmp 0x1400049ef
mov rax, qword [rdi]
mov qword [rdi + 0x10], gethostbyaddr
movups xmm0, xmmword [0x1402efcd2]
movups xmmword [rax + 0x1c], xmm0
movups xmm0, xmmword [0x1402efcc6]
movups xmmword [rax + 0x10], xmm0
movups xmm0, xmmword [str.checkConnection:_error_initializing_Wininet_n]
movups xmmword [rax], xmm0
mov byte [rax + 0x2c], 0
jmp 0x1400049fc
mov rax, qword [rdi]
mov qword [rdi + 0x10], reloc.WS2_32.dll_getservbyport
movups xmm0, xmmword [0x1402efd04]
movups xmmword [rax + 0x20], xmm0
movups xmm0, xmmword [0x1402efcf4]
movups xmmword [rax + 0x10], xmm0
movups xmm0, xmmword [str.checkConnection:_Error_connecting_to_the_website_domain_n]
movups xmmword [rax], xmm0
movabs rcx, 0xa6e69616d6f6420
mov qword [rax + 0x30], rcx
mov byte [rax + 0x38], 0
mov rcx, qword [rsi + 0xa0]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x140012ad0
Capabilities:
Create process on windows
Persist via run registry key
Schedule task via schtasks
Set registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x140
cmp dx, 1
je 0x140012b0c
mov rsi, rcx
movzx eax, dx
cmp eax, 2
jne 0x140012b3c
lea rdx, str.schtasks__create__tn_MyPersistentProgram__tr___s___sc_onstart
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8, rsi
call fcn.140012df0
mov rcx, rdi
call fcn.1402c5c40
jmp 0x140012b38
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea rdx, str.runas
lea r8, [0x1402f0d3a]
lea r9, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov bl, 1
jmp 0x140012bb0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
sete bl
jne 0x140012bb0
cmp qword [rsi + 0x120], 0x10
jb 0x140012b7d
mov rdx, qword [rsi + 0x108]
jmp 0x140012b84
lea rdx, [rsi + 0x108]
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x28], 0x104
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x140
pop rbx
pop rdi
pop rsi
ret

Function at 0x140012cd0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x150
mov rsi, rcx
lea rbx, [rsp + 0x38]
mov qword [rsp + 0x20], rbx
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
xor edi, edi
mov rcx, 0xffffffff80000001
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140012d9d
mov dword [rsp + 0x34], 0x104
mov dword [rsp + 0x30], 1
cmp qword [rsi + 0x120], 0x10
jb 0x140012d31
mov rsi, qword [rsi + 0x108]
jmp 0x140012d38
add rsi, 0x108
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor edi, edi
lea r9, [rsp + 0x30]
mov rdx, rsi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x140012d9d
mov qword [rsp + 0x20], rbx
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
sete dil
mov eax, edi
add rsp, 0x150
pop rbx
pop rdi
pop rsi
ret
Function at 0x140022330
Capabilities:
Encode data using xor

Disassembly:
endbr64
xor rax, rax
xor r10, r10
cmp r8, 0
je 0x14002238d
cmp r8, 0x10
jne 0x140022370
mov r10, qword [rcx]
mov r11, qword [rcx + 8]
mov r8d, 1
xor r10, qword [rdx]
xor r11, qword [rdx + 8]
or r10, r11
cmovne rax, r8
repz ret
mov r10b, byte [rcx]
lea rcx, [rcx + 1]
xor r10b, byte [rdx]
lea rdx, [rdx + 1]
or al, r10b
dec r8
jne 0x140022370
neg rax
shr rax, 0x3f
repz ret

Function at 0x140022580
Capabilities:
Encode data using xor

Disassembly:
xor eax, dword [r15]
xor ebx, dword [r15 + 4]
xor ecx, dword [r15 + 8]
xor edx, dword [r15 + 0xc]
mov r13d, dword [r15 + 0xf0]
sub r13d, 1
jmp 0x1400225a0
movzx esi, al
movzx edi, bl
movzx ebp, cl
mov r10d, dword [r14 + rsi*8]
mov r11d, dword [r14 + rdi*8]
mov r12d, dword [r14 + rbp*8]
movzx esi, bh
movzx edi, ch
movzx ebp, dl
xor r10d, dword [r14 + rsi*8 + 3]
xor r11d, dword [r14 + rdi*8 + 3]
mov r8d, dword [r14 + rbp*8]
movzx esi, dh
shr ecx, 0x10
movzx ebp, ah
xor r12d, dword [r14 + rsi*8 + 3]
shr edx, 0x10
xor r8d, dword [r14 + rbp*8 + 3]
shr ebx, 0x10
lea r15, [r15 + 0x10]
shr eax, 0x10
movzx esi, cl
movzx edi, dl
movzx ebp, al
xor r10d, dword [r14 + rsi*8 + 2]
xor r11d, dword [r14 + rdi*8 + 2]
xor r12d, dword [r14 + rbp*8 + 2]
movzx esi, dh
movzx edi, ah
movzx ebp, bl
xor r10d, dword [r14 + rsi*8 + 1]
xor r11d, dword [r14 + rdi*8 + 1]
xor r8d, dword [r14 + rbp*8 + 2]
mov edx, dword [r15 + 0xc]
movzx edi, bh
movzx ebp, ch
mov eax, dword [r15]
xor r12d, dword [r14 + rdi*8 + 1]
xor r8d, dword [r14 + rbp*8 + 1]
mov ebx, dword [r15 + 4]
mov ecx, dword [r15 + 8]
xor eax, r10d
xor ebx, r11d
xor ecx, r12d
xor edx, r8d
sub r13d, 1
jne 0x1400225a0
movzx esi, al
movzx edi, bl
movzx ebp, cl
movzx r10d, byte [r14 + rsi*8 + 2]
movzx r11d, byte [r14 + rdi*8 + 2]
movzx r12d, byte [r14 + rbp*8 + 2]
movzx esi, dl
movzx edi, bh
movzx ebp, ch
movzx r8d, byte [r14 + rsi*8 + 2]
mov edi, dword [r14 + rdi*8]
mov ebp, dword [r14 + rbp*8]
and edi, 0xff00
and ebp, 0xff00
xor r10d, edi
xor r11d, ebp
shr ecx, 0x10
movzx esi, dh
movzx edi, ah
shr edx, 0x10
mov esi, dword [r14 + rsi*8]
mov edi, dword [r14 + rdi*8]
and esi, 0xff00
and edi, 0xff00
shr ebx, 0x10
xor r12d, esi
xor r8d, edi
shr eax, 0x10
movzx esi, cl
movzx edi, dl
movzx ebp, al
mov esi, dword [r14 + rsi*8]
mov edi, dword [r14 + rdi*8]
mov ebp, dword [r14 + rbp*8]
and esi, 0xff0000
and edi, 0xff0000
and ebp, 0xff0000
xor r10d, esi
xor r11d, edi
xor r12d, ebp
movzx esi, bl
movzx edi, dh
movzx ebp, ah
mov esi, dword [r14 + rsi*8]
mov edi, dword [r14 + rdi*8 + 2]
mov ebp, dword [r14 + rbp*8 + 2]
and esi, 0xff0000
and edi, 0xff000000
and ebp, 0xff000000
xor r8d, esi
xor r10d, edi
xor r11d, ebp
movzx esi, bh
movzx edi, ch
mov edx, dword [r15 + 0x1c]
mov esi, dword [r14 + rsi*8 + 2]
mov edi, dword [r14 + rdi*8 + 2]
mov eax, dword [r15 + 0x10]
and esi, 0xff000000
and edi, 0xff000000
xor r12d, esi
xor r8d, edi
mov ebx, dword [r15 + 0x14]
mov ecx, dword [r15 + 0x18]
xor eax, r10d
xor ebx, r11d
xor ecx, r12d
xor edx, r8d
repz ret