joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001c040
Capabilities:
Write file on windows

Disassembly:
movsxd rax, dword [rcx - 4]
sub rcx, rax
jmp 0x14001c040
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov r15, r8
mov rsi, rcx
lea rax, [rcx - 0x28]
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x48], 0
lea rcx, [rsp + 0x40]
call fcn.14001bb00
nop
mov r14b, 1
xor r12d, r12d
mov dword [rsp + 0x90], r12d
mov ebx, r12d
nop dword [rax]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x90]
mov r8d, 8
lea rdx, [rsp + 0x98]
mov rcx, qword [rsi - 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
inc ebx
cmp ebx, 0x3e8
jg 0x14001c0f4
mov eax, 0x66666667
imul ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*4]
add ecx, ecx
cmp ebx, ecx
jne 0x14001c0e6
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rsp + 0x90]
cmp eax, 8
jne 0x14001c090
jmp 0x14001c0fb
mov eax, dword [rsp + 0x90]
test edi, edi
je 0x14001c1b5
cmp eax, 8
jne 0x14001c1b5
mov edi, dword [rsp + 0x98]
mov dword [rsp + 0xa8], r12d
mov ebx, r12d
nop
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0xa8]
mov r8d, edi
mov rdx, r15
mov rcx, qword [rsi - 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebp, eax
inc ebx
cmp ebx, 0x3e8
jg 0x14001c17b
mov eax, 0x66666667
imul ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*4]
add ecx, ecx
cmp ebx, ecx
jne 0x14001c16e
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rsp + 0xa8]
cmp edi, eax
jne 0x14001c120
jmp 0x14001c182
mov eax, dword [rsp + 0xa8]
test ebp, ebp
je 0x14001c1a6
cmp edi, eax
jne 0x14001c1a6
lea rdx, [0x14001ba90]
lea rcx, [rsp + 0x30]
call fcn.14001b6b0
mov rax, qword [rsp + 0x30]
mov qword [rsi - 0x48], rax
jmp 0x14001c1cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Blob_WriteFile_failed__GLE_d._n
jmp 0x14001c1c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Header_WriteFile_failed__GLE_d._n
mov edx, eax
call fcn.14001a8e0
xor r14b, r14b
cmp byte [rsp + 0x48], 0
je 0x14001c1dd
mov rcx, qword [rsp + 0x40]
call fcn.14001c660
movzx eax, r14b
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001c710
Capabilities:
Read file on windows

Disassembly:
movsxd rax, dword [rcx - 4]
sub rcx, rax
jmp 0x14001c710
push rbx
push rsi
push r12
sub rsp, 0x40
lea rsi, [rcx - 0xe4]
xor r12d, r12d
mov rbx, rcx
mov dword [rsi + 4], 0xffffffff
mov dword [rsi], r12d
lea r9, [rsp + 0x68]
mov rcx, qword [rcx - 0x38]
mov rdx, rsi
lea r8d, [r12 + 8]
mov dword [rsp + 0x68], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001c876
cmp dword [rsp + 0x68], r12d
je 0x14001c876
mov qword [rsp + 0x70], rbp
lea rcx, [rbx - 0xf8]
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x38], r14
mov r14d, dword [rsi]
mov edx, r14d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x60], r12d
call fcn.14001a550
movzx ebp, al
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rbx - 0xf0]
lea r9, [rsp + 0x60]
mov rcx, qword [rbx - 0x38]
mov r8d, r14d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test eax, eax
je 0x14001c7cb
cmp dword [rsp + 0x60], r12d
jne 0x14001c7d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x14001c84e
test edi, edi
jne 0x14001c7f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14001c7f4
mov eax, dword [rsp + 0x60]
add qword [rbx - 0xf0], rax
jmp 0x14001c7a0
test bpl, bpl
je 0x14001c848
lea rdx, [0x14001ba90]
lea rcx, [rsp + 0x60]
call fcn.14001b6b0
mov rax, qword [rsp + 0x60]
lea rcx, [rbx - 0xf8]
mov r8, qword [rbx - 0xf0]
mov r9, rsi
mov edx, dword [rsi]
mov qword [rbx - 0x40], rax
call fcn.140019f70
mov r14, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
mov r15, qword [rsp + 0x30]
add rsp, 0x40
pop r12
pop rsi
pop rbx
ret
movzx eax, bpl
jmp 0x14001c82b
lea rcx, str.Pipe_Broke._n
call fcn.14001a8e0
test edi, edi
jne 0x14001c872
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Read_header_failed._GLE_d_n
call fcn.14001a8e0
xor al, al
jmp 0x14001c82b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x14001c898
lea rcx, str.Pipe_Broke._n
call fcn.14001a8e0
xor al, al
add rsp, 0x40
pop r12
pop rsi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ReadFile_failed__GLE_d._n
call fcn.14001a8e0
xor al, al
add rsp, 0x40
pop r12
pop rsi
pop rbx
ret

Function at 0x14002e650
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x14002e6af
mov rax, qword [rcx + 8]
add rcx, 8
movsxd r8, dword [rax + 4]
add rcx, r8
mov rax, qword [rcx]
call qword [rax + 0x20]
test al, al
je 0x14002e6af
lea rcx, [rbx + 0x48]
call fcn.140045790
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rdx, qword [rbx + 0x40]
mov rax, qword [rdx + 8]
add rdx, 8
movsxd rcx, dword [rax + 4]
add rcx, rdx
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rdx, rdi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.Qt5Widgets.dll_protected_virtual:_void___cdecl_QWidget::closeEvent_class_QCloseEvent____ptr64____ptr64]
Function at 0x1400346f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x50
lea rbp, [rsp + 0x20]
mov qword [rbp], 0xfffffffffffffffe
mov qword [rbp + 0x58], rbx
mov qword [rbp + 0x60], rsi
mov rax, qword [0x140131a90]
xor rax, rbp
mov qword [rbp + 0x28], rax
mov r14, rcx
add rcx, 0x180
cmp qword [rcx + 0x18], 0x10
jb 0x140034730
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
lea r8, str.IOM_VERSION
mov edx, 0x3e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
je 0x140034875
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x140034875
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r9, rax
lea ecx, [rbx + 1]
mov edx, ecx
lea rax, [rcx + 0xf]
cmp rax, rdx
ja 0x1400347a4
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400615f0
sub rsp, rax
lea rdi, [rsp + 0x20]
mov r8, rbx
mov rdx, r9
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rdi], 0
mov qword [rbp + 0x20], 0xf
xor r8d, r8d
mov qword [rbp + 0x18], r8
mov byte [rbp + 8], r8b
cmp byte [rdi], r8b
je 0x1400347ed
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdi + r8], 0
jne 0x1400347e3
mov rdx, rdi
lea rcx, [rbp + 8]
call fcn.140008200
nop
lea rcx, [r14 + 0x160]
lea rax, [rbp + 8]
cmp rcx, rax
je 0x14003481b
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 8]
call fcn.1400080d0
nop
mov rax, qword [rbp + 0x20]
cmp rax, 0x10
jb 0x140034875
inc rax
mov rcx, qword [rbp + 8]
cmp rax, 0x1000
jb 0x140034870
test cl, 0x1f
je 0x140034840
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140034850
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140034860
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x14003486d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140060e74
mov rcx, qword [rbp + 0x28]
xor rcx, rbp
call fcn.1400614f0
mov rbx, qword [rbp + 0x58]
mov rsi, qword [rbp + 0x60]
lea rsp, [rbp + 0x30]
pop r14
pop rdi
pop rbp
ret
Function at 0x14003faa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
movzx ebx, r8b
mov rdi, rdx
mov rsi, rcx
mov r11, qword [rcx]
mov r10, qword [r11 + 8]
mov r8b, 1
nop dword [rax]
cmp byte [r10 + 0x19], 0
jne 0x14003fb40
mov r11, r10
test bl, bl
je 0x14003fb0a
mov rax, qword [r10 + 0x20]
mov rcx, qword [r9]
cmp rax, rcx
jae 0x14003faef
mov r8b, 1
jmp 0x14003fb04
jbe 0x14003faf6
xor r8b, r8b
jmp 0x14003fb04
movzx eax, word [r9 + 8]
cmp word [r10 + 0x28], ax
setl r8b
xor r8b, 1
jmp 0x14003fb30
mov rax, qword [r9]
mov rcx, qword [r10 + 0x20]
cmp rax, rcx
jae 0x14003fb1b
mov r8b, 1
jmp 0x14003fb30
jbe 0x14003fb22
xor r8b, r8b
jmp 0x14003fb30
movzx eax, word [r10 + 0x28]
cmp word [r9 + 8], ax
setl r8b
test r8b, r8b
je 0x14003fb3a
mov r10, qword [r10]
jmp 0x14003fb3e
mov r10, qword [r10 + 0x10]
jmp 0x14003fad0
mov rax, r11
mov qword [rsp + 0x30], rax
test r8b, r8b
je 0x14003fbe6
mov rcx, qword [rsi]
cmp r11, qword [rcx]
jne 0x14003fb8f
movzx eax, byte [rsp + 0x80]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], r9
mov r9, r11
mov r8b, 1
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14003f500
mov rcx, qword [rax]
mov qword [rdi], rcx
mov byte [rdi + 8], 1
mov rax, rdi
jmp 0x14003fc3e
cmp byte [r11 + 0x19], 0
je 0x14003fb9c
mov rax, qword [r11 + 0x10]
jmp 0x14003fbe1
mov rcx, qword [r11]
cmp byte [rcx + 0x19], 0
jne 0x14003fbc0
mov rax, rcx
nop dword [rax + rax]
mov rcx, qword [rax + 0x10]
cmp byte [rcx + 0x19], 0
jne 0x14003fbe1
mov rax, rcx
jmp 0x14003fbb0
mov rcx, qword [rax + 8]
cmp byte [rcx + 0x19], 0
jne 0x14003fbd9
cmp rax, qword [rcx]
jne 0x14003fbd9
mov rax, rcx
mov qword [rsp + 0x30], rcx
jmp 0x14003fbc0
cmp byte [rax + 0x19], 0
cmove rax, rcx
mov qword [rsp + 0x30], rax
mov rcx, qword [rax + 0x20]
mov rdx, qword [r9]
cmp rcx, rdx
jb 0x14003fc10
ja 0x14003fc04
movzx ecx, word [r9 + 8]
cmp word [rax + 0x28], cx
setl cl
test cl, cl
jne 0x14003fc10
mov qword [rdi], rax
mov byte [rdi + 8], 0
mov rax, rdi
jmp 0x14003fc3e
movzx eax, byte [rsp + 0x80]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], r9
mov r9, r11
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14003f500
mov rcx, qword [rax]
mov qword [rdi], rcx
mov byte [rdi + 8], 1
mov rax, rdi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140040ec0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
movzx ebx, r8b
mov rsi, rdx
mov rdi, rcx
mov r11, qword [rcx]
mov r10, qword [r11 + 8]
mov r8b, 1
nop dword [rax]
cmp byte [r10 + 0x19], 0
jne 0x140040f9f
mov r11, r10
test bl, bl
je 0x140040f4f
mov r8, qword [r9]
mov rax, qword [r10 + 0x20]
cmp rax, r8
jne 0x140040f13
xor r8b, r8b
jmp 0x140040f49
mov rax, qword [rax + 0x10]
mov r8, qword [r8 + 0x10]
cmp rax, r8
jne 0x140040f25
xor r8b, r8b
jmp 0x140040f49
sub r8, rax
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140040f43
inc rax
test ecx, ecx
jne 0x140040f30
test edx, edx
sets r8b
xor r8b, 1
jmp 0x140040f89
mov r8, qword [r10 + 0x20]
mov rcx, qword [r9]
cmp rcx, r8
je 0x140040f93
mov rcx, qword [rcx + 0x10]
mov r8, qword [r8 + 0x10]
cmp rcx, r8
je 0x140040f93
sub r8, rcx
nop dword [rax + rax]
movzx edx, byte [rcx]
movzx eax, byte [rcx + r8]
sub edx, eax
jne 0x140040f83
inc rcx
test eax, eax
jne 0x140040f70
test edx, edx
sets r8b
test r8b, r8b
je 0x140040f96
mov r10, qword [r10]
jmp 0x140040f9a
xor r8b, r8b
mov r10, qword [r10 + 0x10]
jmp 0x140040ef0
movzx eax, byte [rsp + 0x70]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], r9
mov r9, r11
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140040bf0
mov rcx, qword [rax]
mov qword [rsi], rcx
mov byte [rsi + 8], 1
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140045930
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov ecx, dword [0x140131760]
cmp ecx, 0xffffffff
jne 0x140045958
xor esi, esi
jmp 0x140045961
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov qword [rsp + 0x40], rsi
test rsi, rsi
je 0x140045a53
nop
mov rbx, qword [rsi + 0x18]
cmp qword [rsi + 0x30], 0
jne 0x140045986
test rbx, rbx
je 0x140045a2c
jmp 0x140045990
test rbx, rbx
je 0x1400459e4
nop dword [rax + rax]
mov rax, qword [rbx + 8]
mov qword [rsi + 0x18], rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400459c7
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rbx]
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsi + 0x18]
test rbx, rbx
jne 0x140045990
cmp qword [rsi + 0x30], 0
je 0x140045970
nop dword [rax + rax]
mov rbx, qword [rsi + 0x28]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x140045a0f
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x140045a0f
mov rax, qword [rcx]
call qword [rax + 8]
mov r8, rbx
lea rdx, [rsp + 0x48]
lea rcx, [rsi + 0x28]
call fcn.14002eeb0
cmp qword [rsi + 0x30], 0
jne 0x1400459f0
jmp 0x140045970
lea rdx, [0x1400452c0]
lea rcx, [0x140141090]
call fcn.1400450a0
mov ecx, dword [0x140131760]
cmp ecx, 0xffffffff
je 0x140045a53
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rsi, rsi
je 0x140045a83
or eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x140045a83
mov rax, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140045aa0
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r9, qword [rcx]
lea r8, [0x140045b30]
mov rdi, rcx
xor edx, edx
xor ecx, ecx
lea rax, [r9 + 0x20]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rsi, rax
test rax, rax
jne 0x140045ae5
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x40], rbx
mov rax, qword [rdi]
lock inc dword [rax + 8]
mov rbx, qword [rdi]
mov rcx, qword [rbx + 0x10]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140045b08
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], rsi
mov rcx, qword [rdi]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbx, qword [rsp + 0x40]
mov al, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140062190
Capabilities:
Accept command line arguments

Disassembly:
push rdi
push r15
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x50], rax
mov rdi, rax
test rax, rax
jne 0x1400621c5
or rax, 0xffffffffffffffff
add rsp, 0x78
pop r15
pop rdi
ret
mov eax, dword [rsp + 0x40]
mov r15, 0xffffffffffffffff
inc eax
mov qword [rsp + 0x90], rbx
movsxd rcx, eax
mov eax, 8
mul rcx
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0x60], r14
cmovo rax, r15
mov rcx, rax
call fcn.1400615cc
mov r14, rax
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x40]
xor ebx, ebx
test eax, eax
jle 0x1400622c9
mov qword [rsp + 0x98], rbp
mov qword [rsp + 0x70], r12
mov r12, r14
mov qword [rsp + 0x68], r13
mov r13, rdi
sub r13, r14
mov r14d, ebx
nop dword [rax]
nop word [rax + rax]
mov rbp, qword [r12 + r13]
mov r9d, r15d
mov qword [rsp + 0x38], rbx
mov r8, rbp
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], ebx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.1400615cc
mov qword [rsp + 0x38], rbx
mov r9d, r15d
mov qword [rsp + 0x30], rbx
mov r8, rbp
mov dword [rsp + 0x28], edi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [r12], rsi
lea r12, [r12 + 8]
mov eax, dword [rsp + 0x40]
inc r14d
cmp r14d, eax
jl 0x140062240
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x98]
cdqe
mov rcx, rdi
mov qword [r14 + rax*8], rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x40]
mov rdx, r14
call fcn.14000a220
mov esi, eax
cmp dword [rsp + 0x40], ebx
jle 0x140062309
mov rdi, r14
nop
mov rcx, qword [rdi]
test rcx, rcx
je 0x140062309
call fcn.1400615d4
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x40]
jl 0x1400622f0
mov rcx, r14
call fcn.1400615d4
mov r14, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x90]
add rsp, 0x78
pop r15
pop rdi
ret
Function at 0x140008000
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0x30
cmp byte [rcx + 0x73], 0
mov rbp, rcx
je 0x1400081ca
mov qword [rsp + 0x58], rbx
lea rax, [rcx + 2]
mov qword [rsp + 0x28], rsi
mov rdx, 0xfffffffffffffffb
mov qword [rsp + 0x20], rdi
sub rdx, rcx
mov qword [rsp + 0x18], r12
mov r8, 0xfffffffffffffffc
mov qword [rsp + 0x10], r13
sub r8, rcx
mov qword [rsp + 8], r14
mov r13, 0xfffffffffffffffa
sub r13, rcx
mov qword [rsp], r15
mov r15, rcx
mov qword [rsp + 0x48], rdx
mov r12d, 1
mov qword [rsp + 0x50], r8
sub r12, rcx
mov r14, 0xfffffffffffffffe
mov rcx, 0xfffffffffffffffd
not r15
sub rcx, rbp
movabs r9, 0xc9771b45f9913b87
mov qword [rsp + 0x40], rcx
sub r14, rbp
nop dword [rax]
nop word [rax + rax]
lea ecx, [r14 + rax]
mov rsi, r9
and cl, 7
mov rdi, r9
shl cl, 3
mov rbx, r9
shr rsi, cl
mov r11, r9
xor byte [rax - 2], sil
lea ecx, [r15 + rax]
xor byte [rax + 6], sil
and cl, 7
xor byte [rax + 0xe], sil
mov r10, r9
shl cl, 3
shr rdi, cl
movzx ecx, al
xor byte [rax - 1], dil
sub cl, bpl
xor byte [rax + 7], dil
and cl, 7
xor byte [rax + 0xf], dil
shl cl, 3
shr rbx, cl
lea ecx, [r12 + rax]
xor byte [rax], bl
and cl, 7
xor byte [rax + 8], bl
xor byte [rax + 0x10], bl
shl cl, 3
shr r11, cl
lea ecx, [rax + r13]
xor byte [rax + 1], r11b
and cl, 7
xor byte [rax + 9], r11b
xor byte [rax + 0x11], r11b
shl cl, 3
shr r10, cl
lea ecx, [rdx + rax]
xor byte [rax + 2], r10b
and cl, 7
xor byte [rax + 0xa], r10b
movabs rdx, 0xc9771b45f9913b87
xor byte [rax + 0x12], r10b
shl cl, 3
shr r9, cl
lea ecx, [r8 + rax]
xor byte [rax + 3], r9b
and cl, 7
xor byte [rax + 0xb], r9b
mov r8, rdx
xor byte [rax + 0x13], r9b
movabs r9, 0xc9771b45f9913b87
shl cl, 3
shr r8, cl
movzx ecx, al
add cl, byte [rsp + 0x40]
xor byte [rax + 4], r8b
and cl, 7
xor byte [rax + 0xc], r8b
xor byte [rax + 0x14], r8b
mov r8, qword [rsp + 0x50]
shl cl, 3
shr rdx, cl
xor byte [rax + 5], dl
xor byte [rax + 0xd], dl
add rax, 0x17
mov rdx, qword [rsp + 0x48]
lea rcx, [rax + r14]
cmp rcx, 0x73
jb 0x1400080a0
mov r15, qword [rsp]
mov r14, qword [rsp + 8]
mov r13, qword [rsp + 0x10]
mov r12, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x58]
mov byte [rbp + 0x73], 0
add rsp, 0x30
pop rbp
ret
Function at 0x14001fb90
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x1400da190]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001fc22
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x14001fc19
lea rax, [rsp + 0x4c]
mov r8, rdi
sub r8, rax
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x14001fc03
inc rax
test ecx, ecx
jne 0x14001fbf0
mov rcx, rbx
test edx, edx
je 0x14001fc45
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x14001fbe0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140093980
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x14001fc24

Function at 0x14001fc50
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x1400da190]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov rsi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14001fd1e
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x14001fd1e
mov qword [rsp + 0x170], rbx
nop dword [rax]
lea rax, [rsp + 0x4c]
mov r8, rsi
sub r8, rax
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x14001fcd3
inc rax
test ecx, ecx
jne 0x14001fcc0
test edx, edx
jne 0x14001fd04
mov r8d, dword [rsp + 0x28]
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14001fd04
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x14001fcb0
mov rbx, qword [rsp + 0x170]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140093980
mov rsi, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret
Function at 0x140020870
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
mov r8d, ecx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x1400209ac
mov qword [rsp + 0x50], rbx
lea rcx, str.kernel32.dll
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r14
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [0x1400b7820]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, 0xffffffffffffffff
mov r14, rax
mov r8, rbx
inc r8
cmp byte [rdi + r8], 0
jne 0x1400208d2
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, rax
mov r9, rbx
nop dword [rax + rax]
inc r9
cmp byte [rdi + r9], 0
jne 0x140020900
mov r8, rdi
mov qword [rsp + 0x20], 0
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], 0
mov r9, r14
mov dword [rsp + 0x28], 0
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rax
mov edx, 0xffffffff
mov r14, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop word [rax + rax]
inc rbx
cmp byte [rdi + rbx], 0
jne 0x140020960
mov r8, rbx
mov r9d, 0x8000
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x60]
mov al, 1
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret