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

Disassembly:
jmp 0x1400128e0
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rdi, rcx
mov rbx, qword [rcx + 0x20]
xor esi, esi
mov qword [rcx + 0x20], rsi
mov rcx, qword [rcx + 0x10]
call fcn.14002e9ac
nop
test eax, eax
je 0x14001291b
mov ecx, eax
call fcn.14002e468
nop
mov byte [rdi + 0x18], 1
mov rcx, qword [rdi + 8]
call fcn.14002ecc4
nop
test eax, eax
je 0x140012935
mov ecx, eax
call fcn.14002e468
nop
mov rcx, qword [rdi + 0x10]
call fcn.14002e9d0
nop
test eax, eax
je 0x14001294b
mov ecx, eax
call fcn.14002e468
nop
lea rcx, [0x1400a5c60]
call fcn.14002e9ac
nop
test eax, eax
je 0x140012964
mov ecx, eax
call fcn.14002e468
nop
mov rcx, qword [rbx + 0x28]
mov dword [rsp + 0x78], 6
mov dword [rsp + 0x70], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x70]
mov r8d, 4
lea rdx, [rsp + 0x78]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140001f30
nop
mov rdx, rax
mov rcx, qword [rbx + 0x28]
call fcn.14000b860
nop
mov eax, esi
cmp byte [rbx + 0x20], al
setne al
mov dword [rsp + 0x78], eax
mov rcx, qword [rbx + 0x28]
mov dword [rsp + 0x70], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x70]
mov r8d, 4
lea rdx, [rsp + 0x78]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
lea rcx, [0x1400a5c60]
call fcn.14002e9d0
nop
test eax, eax
je 0x1400129fc
mov ecx, eax
call fcn.14002e468
nop
call fcn.14002ece4
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140012a39
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140012a33
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140012a66
mov rcx, r8
call fcn.14002fdf4
nop
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rbx], 0
mov edx, 0x30
mov rcx, rbx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
jmp fcn.14002fdf4
call fcn.140051164
nop
int3
Function at 0x140012a70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1400a0088]
xor rax, rsp
mov qword [rbp - 8], rax
mov edi, ecx
mov rbx, r8
xor ecx, ecx
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx edx, di
mov r8, rsi
mov rcx, rax
mov r14, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x140012b9c
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rsi
mov rcx, r14
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test rdi, rdi
je 0x140012b9c
test eax, eax
je 0x140012b9c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x140012b9c
mov rax, qword [rbx]
mov qword [rbx + 8], rax
mov rax, qword [rbx + 0x10]
sub rax, qword [rbx]
mov dword [rbp - 0x28], 0xa7ed3fcb
mov dword [rbp - 0x24], 0x2990515d
mov dword [rbp - 0x20], 0xceb50b94
mov dword [rbp - 0x1c], 0xf8e78d65
mov dword [rbp - 0x18], 0x70cfd569
mov dword [rbp - 0x14], 0x993b8aca
mov dword [rbp - 0x10], 0xf64534fb
mov dword [rbp - 0xc], 0xf20e3c9d
cmp rsi, rax
jbe 0x140012b52
mov edx, esi
mov rcx, rbx
call fcn.140012be0
xor edi, edi
test rsi, rsi
je 0x140012b98
nop dword [rax]
mov rdx, qword [rbx + 8]
mov rax, rdi
and eax, 0x1f
movzx ecx, byte [rbp + rax - 0x28]
xor cl, byte [rdi + r14]
mov byte [rbp - 0x30], cl
cmp qword [rbx + 0x10], rdx
je 0x140012b84
mov byte [rdx], cl
inc qword [rbx + 8]
jmp 0x140012b90
lea r8, [rbp - 0x30]
mov rcx, rbx
call fcn.140012d20
inc rdi
cmp rdi, rsi
jb 0x140012b60
mov al, 1
jmp 0x140012b9e
xor al, al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14002fdd0
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140014200
Capabilities:
Get common file path
Get startup folder

Disassembly:
push rdi
sub rsp, 0x270
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x288], rbx
mov rax, qword [0x1400a0088]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor edi, edi
mov dword [rsp + 0x30], edi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x140014270
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140002010
mov dword [rsp + 0x30], 1
mov r8d, SafeArrayDestroy
lea rdx, [0x14008bf40]
mov rcx, rbx
call fcn.140002c80
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14002fdd0
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret
Function at 0x140016960
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
movabs rax, 0xcbf29ce484222325
sar r8, 1
mov r9d, 0
add r8, r8
je 0x1400169a4
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140016990
ret
Function at 0x14002c1a0
Capabilities:
Resume thread

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x90
mov qword [r11 - 0x58], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rax, qword [0x1400a0088]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor edi, edi
mov qword [r11 - 0x68], rdi
mov dword [rsp + 0x28], 4
mov qword [r11 - 0x78], r8
mov r9, rdx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x80]
call qword [0x1400a5608]
mov rbx, rax
test rax, rax
jne 0x14002c32c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.1400261a0
nop
lea r8, [0x1400a5a30]
cmp qword [0x1400a5a48], 8
cmovae r8, qword [0x1400a5a30]
mov r9, qword [0x1400a5a40]
mov rcx, rax
call fcn.1400072d0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
lea r8, [0x1400a5810]
cmp qword [0x1400a5828], 8
cmovae r8, qword [0x1400a5810]
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14002c2d4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002c2cf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002c375
call fcn.14002fdf4
movdqa xmm0, xmmword [0x14008daa0]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], di
mov rdx, qword [rsp + 0x80]
cmp rdx, 8
jb 0x14002c328
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002c323
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002c36f
call fcn.14002fdf4
xor al, al
jmp 0x14002c34e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14002fdd0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
call fcn.140051164
nop
call fcn.140051164
nop
int3
Function at 0x140033538
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14003354b
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.140033b58
lea rdx, [0x14009e458]
lea rcx, [rsp + 0x20]
call fcn.14004df78
int3

Function at 0x14003ddd4
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1400a44f0]
xor edx, edx
jmp fcn.140033538

Function at 0x14003e76c
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1400a44f0]
jmp fcn.140033538

Function at 0x14004a3bc
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x14004a478]
mov r9, qword [r9 + 8]
jmp fcn.14003b78c

Function at 0x14004a450
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x14004a488]
mov r9, qword [r9 + 8]
jmp fcn.14003b78c

Function at 0x1400552bc
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14005514f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005514f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005514f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005514f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005514f
cmp dword [rcx + 0x84], 0xe
jbe 0x14005514f
cmp dword [rcx + 0xf8], 0
je 0x14005514f
mov ecx, ebx
call fcn.1400551f0
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140054fe0
cmp dword [rbp + 0x20], 0
je 0x14005519c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400551a4
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400550e8
Function at 0x140162111
Capabilities:
Encode data using xor

Disassembly:
not r8b
pop r8
push 0x739bf099
not r10d
call fcn.14014d7f8
lea rsp, [rsp + 0x18]
je 0x140143f91
push r8
mov r8d, 0x98020528
movzx edx, r8b
not r8
lea r8, [0x140153188]
movzx edx, byte [rcx]
push 0x3504fabb
rol qword [rsp], 0x81
xor edx, r10d
and edx, 0xff
push 0x32a1eb0c
inc qword [rsp + 8]
mov edx, dword [r8 + rdx*4]
shr r10d, 8
shl dword [rsp + 1], 0xda
xor r10d, edx
inc rcx
xor r10d, 0x6ba7a8b8
sal word [rsp + 0xc], 0x8a
dec rax
lea rsp, [rsp + 0x10]
jne 0x140162132
mov r8d, 0x401bf4a4
jmp 0x140143f8c
Function at 0x4010e2
Capabilities:
Delete file
Delete registry key
Enumerate files on windows
Persist via run registry key
Set registry value

Disassembly:
mov dword [0x40231c], 0x9c
lea rdi, [0x40231c]
call sub.KERNEL32.dll_GetVersionExA
mov rax, 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
mov qword [0x4023ba], rax
lea rdi, [0x4022d8]
call fcn.00401239
mov eax, dword [0x402320]
call fcn.00401258
lea rdi, [0x402319]
call fcn.00401239
lea rdi, str.Minor_Version:
call fcn.00401239
mov eax, dword [0x402324]
call fcn.00401258
lea rdi, [0x402319]
call fcn.00401239
lea rdi, str.Build_Number:
call fcn.00401239
mov eax, dword [0x402328]
call fcn.00401258

Function at 0x401173
Capabilities:
Delete file
Delete registry key
Enumerate files on windows
Persist via run registry key
Set registry value

Disassembly:
mov edi, 0x80000001
lea rsi, str.ComputerHKEY_LOCAL_MACHINEWindows_version:
call sub.ADVAPI32.dll_RegDeleteKeyA
test rax, rax
je 0x4011ec
lea rdi, str.Startup_entry_was_created.
call fcn.0040129d
mov eax, 0x3c
xor rdi, rdi
syscall

Function at 0x40118a
Capabilities:
Delete file
Enumerate files on windows
Persist via run registry key
Set registry value

Disassembly:
xor rdi, rdi
lea rsi, [0x402188]
mov edx, 0x104
call sub.KERNEL32.dll_GetModuleFileNameA
mov edi, 0x80000001
lea rsi, str.SoftwareMicrosoftWindowsCurrentVersionRun
call sub.KERNEL32.dll_RegOpenKeyExA
test rax, rax
jne 0x4011dd
lea rdi, str.bomb
lea rsi, [0x402188]
call sub.KERNEL32.dll_RegSetValueExA
test rax, rax
je 0x4011ec
lea rdi, str.C:
call fcn.00401203
lea rdi, str.Startup_entry_failed.
call fcn.0040129d
jmp 0x4011f9

Function at 0x14027b000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.14027b0d6
push r9
push r8
push rdx
push rcx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
push rsi
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x14027b037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14027b02d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x14027b0cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x14027b0cb
add rax, rdx
push rax
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x14027b0ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x14027b081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x14027b072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x14027b021
Function at 0x180005080
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x130
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rbx, r9
mov rbp, r8
mov r14, rdx
mov rsi, rcx
mov rcx, qword [rcx]
xor edi, edi
test rcx, rcx
je 0x1800050c8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1800050c8
mov qword [rsi], rdi
mov rdx, r14
lea rcx, [rsp + 0x60]
call fcn.180002bb0
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x88]
call fcn.180005250
nop
mov r8d, 0x20
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.180005060
nop
mov r8, rbp
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.180002ed0
nop
mov rcx, qword [rsp + 0x78]
call fcn.180017964
nop
mov rcx, qword [rsp + 0x88]
call fcn.180017964
nop
mov rcx, qword [rsp + 0x60]
call fcn.180017964
mov dword [rsp + 0xc0], 0x68
mov qword [rsp + 0xc8], rdi
xorps xmm0, xmm0
movdqa xmmword [rsp + 0xd0], xmm0
mov dword [rsp + 0xfc], edi
mov word [rsp + 0x102], di
mov qword [rsp + 0x108], rdi
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x98]
call fcn.180005220
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
mov rcx, qword [rsp + 0x98]
call fcn.180017964
test ebx, ebx
jne 0x1800051d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1800051ee
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0xa8]
mov qword [rsi], rax
mov rcx, qword [rsp + 0x50]
call fcn.180017964
mov eax, edi
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x180005990
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rdi, rdx
mov dword [rsp + 0x20], 0x70
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x24]
lea r8d, [rdx + 0x6c]
call fcn.1800199d0
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x24], 0x200
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x40], rdi
call fcn.180005d10
test eax, eax
lea rcx, str.runas
cmovne rcx, qword [rsp + 0x30]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x180005a03
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 1
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
Function at 0x180005a20
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x8c0
mov rax, qword [0x180044360]
xor rax, rsp
mov qword [rsp + 0x8b0], rax
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.1800199d0
xor eax, eax
mov dword [rsp + 0x70], 0x68
mov r8, rbx
mov qword [rsp + 0x50], rax
lea rdx, [0x180032c88]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0xe0]
mov qword [rsp + 0x60], rax
call fcn.180006f50
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0xe0]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x180005ada
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x8b0]
xor rcx, rsp
call fcn.180017a50
add rsp, 0x8c0
pop rbx
ret
push rbx
sub rsp, 0x30
mov rbx, rcx
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x180005b10
test rax, rax
je 0x180005b57
mov dword [rsp + 0x28], 1
lea rdx, str.open
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov r8, rbx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x180005b57
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp 0x180005a20
add rsp, 0x30
pop rbx
ret

Function at 0x180005b00
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x8c0
mov rax, qword [0x180044360]
xor rax, rsp
mov qword [rsp + 0x8b0], rax
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.1800199d0
xor eax, eax
mov dword [rsp + 0x70], 0x68
mov r8, rbx
mov qword [rsp + 0x50], rax
lea rdx, [0x180032c88]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0xe0]
mov qword [rsp + 0x60], rax
call fcn.180006f50
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0xe0]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x180005ada
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x8b0]
xor rcx, rsp
call fcn.180017a50
add rsp, 0x8c0
pop rbx
ret
push rbx
sub rsp, 0x30
mov rbx, rcx
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x180005b10
test rax, rax
je 0x180005b57
mov dword [rsp + 0x28], 1
lea rdx, str.open
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov r8, rbx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x180005b57
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp 0x180005a20
add rsp, 0x30
pop rbx
ret
Function at 0x180005d10
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub rsp, 0x188
mov rax, qword [0x180044360]
xor rax, rsp
mov qword [rsp + 0x170], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x11c
call fcn.1800199d0
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x54], 5
jg 0x180005d84
cmp dword [rsp + 0x58], 2
jg 0x180005d84
mov eax, 1
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.180017a50
add rsp, 0x188
ret
xor eax, eax
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.180017a50
add rsp, 0x188
ret
Function at 0x180006fb0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
push rsi
lea rbp, [rsp - 0xba8]
sub rsp, 0xca8
mov rax, qword [0x180044360]
xor rax, rsp
mov qword [rbp + 0xb80], rax
xor edx, edx
lea rcx, [rbp + 0x370]
mov r8d, 0x208
call fcn.1800199d0
lea r8, str.C:log_
mov edx, 0x104
lea rcx, [rbp + 0x370]
call fcn.18001feac
xor edx, edx
lea rcx, [rbp + 0x790]
mov r8d, 0x3e8
call fcn.1800199d0
lea r8, [rbp + 0x370]
lea rdx, str._sgswb.log
lea rcx, [rbp + 0x160]
call fcn.180005830
xor edx, edx
lea rcx, [rbp + 0x580]
mov r8d, 0x208
call fcn.1800199d0
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.1800199d0
mov r8d, 0x104
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, 0x5c
lea rcx, [rsp + 0x50]
call fcn.18001b2b0
xor esi, esi
lea rcx, [rbp + 0x160]
mov word [rax], si
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18000723d
mov qword [rsp + 0xca0], rbx
lea rcx, [rsp + 0x50]
or rbx, 0xffffffffffffffff
mov qword [rsp + 0xc98], rdi
mov rax, rbx
mov qword [rsp + 0xc90], r14
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x1800070d0
lea r8, [rsp + 0x52]
mov edx, 0x104
lea r8, [r8 + rax*2]
lea rcx, [rbp + 0x580]
call fcn.18001feac
lea r9, [rbp + 0x580]
lea r8, [rbp + 0x370]
lea rdx, str._s_s.txt
lea rcx, [rbp + 0x160]
call fcn.180005830
lea rdi, [rbp + 0xbc8]
call fcn.180005330
mov rcx, qword [rbp + 0xbc0]
lea rdx, [rbp + 0x790]
mov r9d, 0x1f3
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rcx
mov rcx, qword [rax]
lea r8d, [r9 + 1]
call fcn.18001ddd4
lea rcx, [rbp + 0x160]
mov word [rbp + 0xb76], si
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov r14d, 1
lea rdx, [0x180032d30]
test eax, eax
lea rcx, [rbp + 0x160]
cmovne esi, r14d
call fcn.18001c2e4
mov rdi, rax
test rax, rax
je 0x180007225
test esi, esi
jne 0x1800071b2
mov eax, 0xfeff
lea r8d, [r14 + 1]
mov r9, rdi
mov word [rsp + 0x44], ax
mov edx, r14d
lea rcx, [rsp + 0x44]
call fcn.18001c530
lea rax, [rbp + 0x790]
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1800071c0
add ebx, ebx
lea rcx, [rbp + 0x790]
movsxd r8, ebx
mov r9, rdi
mov rdx, r14
call fcn.18001c530
mov eax, 0xd
lea rcx, [rsp + 0x40]
mov r9, rdi
mov word [rsp + 0x40], ax
mov rdx, r14
lea r8d, [rax - 0xb]
call fcn.18001c530
mov eax, 0xa
lea rcx, [rsp + 0x40]
mov r9, rdi
mov word [rsp + 0x40], ax
mov rdx, r14
lea r8d, [rax - 8]
call fcn.18001c530
mov rcx, rdi
call fcn.18001c194
mov rdi, qword [rsp + 0xc98]
mov rbx, qword [rsp + 0xca0]
mov r14, qword [rsp + 0xc90]
mov rcx, qword [rbp + 0xb80]
xor rcx, rsp
call fcn.180017a50
add rsp, 0xca8
pop rsi
pop rbp
ret
Function at 0x180007340
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rbx, r8
mov rcx, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsi]
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret