joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009d00
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x80
lea rdx, [0x14000eff0]
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rbp + 0x18], 0
lea rax, [rbp - 0x40]
and dword [rbp - 0x2c], 0
lea r8, [rbp - 0x30]
and dword [rbp - 0x14], 0
lea rcx, [rbp + 0x18]
and qword [rbp - 0x28], 0
xorps xmm0, xmm0
mov edx, 0xf003f
mov qword [rbp - 0x20], rax
movdqu xmmword [rbp - 0x10], xmm0
mov dword [rbp - 0x30], 0x30
mov dword [rbp - 0x18], 0x40
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x140009db2
xorps xmm0, xmm0
lea rdx, [0x14000b950]
lea rcx, [rbp - 0x50]
movups xmmword [rbp - 0x50], xmm0
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov r9d, 4
mov dword [rbp + 0x10], 1
mov dword [rsp + 0x28], r9d
lea rdx, [rbp - 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
add rsp, 0x80
pop rbp
ret

Function at 0x140009dbc
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov edx, 0x100000
mov ecx, dword [0x140013060]
mov r8d, 0x564d52
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
mov rbx, rax
test rax, rax
jne 0x140009e05
lea rdx, [0x14000f2f0]
lea rcx, [0x14000f320]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140009e6e
xor r9d, r9d
mov r8d, 0x100000
mov rdx, rdi
lea ecx, [r9 + 5]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x140009e5d
lfence
lea rcx, [rdi + 0x38]
jmp 0x140009e35
mov eax, dword [rbx]
test eax, eax
je 0x140009e5d
add rbx, rax
lea rcx, [rbx + 0x38]
mov r8b, 1
mov rdx, rsi
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
je 0x140009e28
lfence
mov edx, dword [rbx + 0x50]
lea rcx, [0x14000f370]
call sub.ntoskrnl.exe_DbgPrint
mov rax, qword [rbx + 0x50]
jmp 0x140009e70
lfence
mov edx, 0x564d52
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140009e80
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r14, rdx
mov r13, rcx
call qword [sym.imp.ntoskrnl.exe_PsGetProcessId]
mov ecx, dword [0x140013060]
mov r12d, 0x564d52
mov ebx, 0x100000
mov r8d, r12d
mov edx, ebx
mov rbp, rax
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rsi, rax
mov rdi, rax
test r14, r14
jne 0x140009edc
mov eax, 0xc000000d
jmp 0x140009ff6
test rsi, rsi
jne 0x140009efe
lea rdx, [0x14000f380]
lea rcx, [0x14000f320]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000017
jmp 0x140009ff6
xor r9d, r9d
mov r8d, ebx
mov rdx, rsi
lea ecx, [r9 + 5]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov ebx, eax
lfence
test eax, eax
jns 0x140009f2b
mov edx, r12d
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x140009ff4
mov ebx, 0xc0000225
cmp qword [rsi + 0x50], rbp
je 0x140009f45
mov eax, dword [rdi]
test eax, eax
je 0x140009f47
add rdi, rax
cmp qword [rdi + 0x50], rbp
jne 0x140009f36
xor ebx, ebx
mov rcx, r13
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
test rax, rax
setne r12b
test ebx, ebx
js 0x140009fc7
lfence
xor ebp, ebp
mov ebx, 0xc0000225
cmp dword [rdi + 4], ebp
jbe 0x140009fda
lea rcx, [rbp*4]
add rcx, rbp
add rcx, rcx
mov r15, qword [rdi + rcx*8 + 0x130]
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
cmp r15, rax
je 0x140009fbe
mov rdx, r14
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_PsLookupThreadByThreadId]
cmp qword [r14], 0
mov ebx, eax
je 0x140009fda
test r12b, r12b
jne 0x140009fb1
mov rcx, r13
call qword [sym.imp.ntoskrnl.exe_PsIsProtectedProcess]
test al, al
je 0x140009fda
mov rcx, qword [r14]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
and qword [r14], 0
inc ebp
cmp ebp, dword [rdi + 4]
jb 0x140009f6a
jmp 0x140009fda
lea rdx, [0x14000f380]
lea rcx, [0x14000f3b0]
call sub.ntoskrnl.exe_DbgPrint
mov edx, 0x564d52
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp qword [r14], 0
mov eax, 0xc0000225
cmove ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000a014
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x40
mov ecx, ecx
lea rdx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x14000a033
lfence
jmp 0x14000a0f2
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x60]
call fcn.140009e80
test eax, eax
js 0x14000a02b
mov ecx, dword [0x140013060]
mov edx, 0x58
mov r8d, 0x564d52
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
jne 0x14000a06f
mov eax, 0xc000009a
jmp 0x14000a0f2
and qword [rsp + 0x38], 0
lea rax, [0x140001030]
mov rdx, qword [rsp + 0x60]
lea r9, section..text
mov byte [rsp + 0x30], 0
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rcx, rbx
lea rax, section..text
mov qword [rsp + 0x20], rax
call sub.ntoskrnl.exe_KeInitializeApc
lea rcx, [0x140013098]
call qword [sym.imp.ntoskrnl.exe_ExAcquireRundownProtection]
test al, al
je 0x14000a0f0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call sub.ntoskrnl.exe_KeInsertQueueApc
test al, al
jne 0x14000a0f0
mov edx, 0x564d52
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea rcx, [0x140013098]
call qword [sym.imp.ntoskrnl.exe_ExReleaseRundownProtection]
mov eax, 0xc00000e5
jmp 0x14000a0f2
xor eax, eax
add rsp, 0x40
pop rbx
ret
Function at 0x1400111fe
Capabilities:
Terminate process

Disassembly:
jmp 0x140012ff0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x14001127b
Capabilities:
Create thread

Disassembly:
jmp 0x140011930
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x1b8]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x158], rax
lea rcx, [0x1400220a2]
call fcn.14001137a
nop
mov dword [rbp + 8], 0xa
mov dword [rbp + 0xc], 0x14
mov dword [rbp + 0x10], 0x1e
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbp + 8]
lea r8, [0x1400111ea]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x38], rax
cmp qword [rbp + 0x38], 0
jne 0x1400119ca
mov eax, 1
jmp 0x140011a38
mov dword [rbp + 0x58], 0x28
mov dword [rbp + 0x5c], 0x32
mov dword [rbp + 0x60], 0x3c
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbp + 0x58]
lea r8, [0x1400111ea]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jne 0x140011a1d
mov eax, 1
jmp 0x140011a38
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
lea rcx, str.main____n
call fcn.14001119f
nop
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001acc0]
call fcn.140011316
mov rax, rdi
mov rcx, qword [rbp + 0x158]
xor rcx, rbp
call fcn.1400111b8
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret

Function at 0x140011285
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014340
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014360
xor al, al
jmp 0x1400143e1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014373
xor al, al
jmp 0x1400143e1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001439d
xor al, al
jmp 0x1400143e1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400143b1
xor al, al
jmp 0x1400143e1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400143c3
xor al, al
jmp 0x1400143e1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400143df
xor al, al
jmp 0x1400143e1
mov al, 1
add rsp, 0x38
ret
Function at 0x140012230
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113a2
movzx eax, al
test eax, eax
jne 0x140012250
mov ecx, 7
call fcn.140011320
nop
mov byte [rsp + 0x20], 0
call fcn.140011334
mov byte [rsp + 0x21], al
cmp dword [0x14001d868], 1
jne 0x140012274
mov ecx, 7
call fcn.140011320
nop
jmp 0x1400122cc
cmp dword [0x14001d868], 0
jne 0x1400122c7
mov dword [0x14001d868], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.1400111a4
test eax, eax
je 0x1400122a8
mov eax, 0xff
jmp 0x1400123d1
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.14001132a
mov dword [0x14001d868], 2
jmp 0x1400122cc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001130c
call fcn.1400112a8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012329
mov rcx, qword [rsp + 0x30]
call fcn.140011159
movzx eax, al
test eax, eax
je 0x140012329
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140023020]
nop
call fcn.1400112da
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001235d
mov rcx, qword [rsp + 0x38]
call fcn.140011159
movzx eax, al
test eax, eax
je 0x14001235d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011361
nop
call fcn.140012480
mov dword [rsp + 0x28], eax
call fcn.140011285
movzx eax, al
test eax, eax
jne 0x14001237c
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001238b
call fcn.14001136b
nop
xor edx, edx
mov cl, 1
call fcn.14001114a
mov eax, dword [rsp + 0x28]
jmp 0x1400123d1
add rsp, 0x68
ret
Function at 0x180001960
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x10108], 0
mov rdi, rcx
je 0x180001a24
xor r11d, r11d
cmp dword [rcx + 0xd4], r11d
jbe 0x180001a24
lea r10, [rcx + 0x100]
movzx eax, byte [r10]
mov r8, qword [rdi + 0x10138]
mov edx, dword [rdi + 0x10128]
mov r9d, dword [rdi + 0x10130]
xor rax, rdx
shr edx, 8
movzx ecx, al
and r9d, 0xfffd
inc r11d
mov eax, dword [r8 + rcx*4]
or r9d, 2
inc r10
xor eax, edx
mov edx, dword [rdi + 0x10130]
mov dword [rdi + 0x10128], eax
movzx eax, al
add eax, dword [rdi + 0x1012c]
imul eax, eax, 0x8088405
inc eax
mov ecx, eax
mov dword [rdi + 0x1012c], eax
shr ecx, 0x18
xor rcx, rdx
shr edx, 8
movzx eax, cl
mov eax, dword [r8 + rax*4]
xor eax, edx
mov dword [rdi + 0x10130], eax
mov eax, r9d
xor eax, 1
imul eax, r9d
shr eax, 8
xor byte [r10 - 1], al
cmp r11d, dword [rdi + 0xd4]
jb 0x180001991
mov r9d, dword [rdi + 0xd4]
mov rdx, qword [rdi + 0x58]
mov rcx, qword [rdi + 0x38]
mov ebx, dword [rdi + 0xd4]
lea r8, [rdi + 0x100]
call qword [rdi + 0x10]
or ecx, 0xffffffff
xor edx, edx
cmp eax, ebx
mov dword [rdi + 0xd4], 0
cmovne edx, ecx
mov ecx, dword [rdi + 0x84]
add qword [rdi + 0x10118], rbx
mov rbx, qword [rsp + 0x30]
add qword [rdi + 0x10120], rcx
mov dword [rdi + 0x84], 0
mov eax, edx
add rsp, 0x20
pop rdi
ret

Function at 0x180009810
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x20
mov qword [rcx + 0x18], rdx
mov rbx, rcx
mov r8, rcx
lea rcx, [0x180009850]
xor edx, edx
call fcn.1800c05b8
mov ecx, 0xc8
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rbx + 0x20]
add rsp, 0x20
pop rbx
ret
Function at 0x180009c40
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0xe48]
sub rsp, 0xf40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x1801150d0]
xor rax, rsp
mov qword [rbp + 0xe30], rax
cmp dword [0x1801310e4], 0
jne 0x180009e46
mov dword [0x1801310e4], 1
xor ebx, ebx
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x58], ebx
mov byte [rsp + 0x38], bl
mov qword [rsp + 0x40], rbx
lea rdi, [0x1801024b8]
mov qword [rsp + 0x30], rdi
lea rcx, [rbp + 0xc20]
call fcn.1800b9880
nop
mov dword [rbp + 0xe00], ebx
mov ecx, 0x53a79f2b
call fcn.1800b85d0
mov qword [rbp + 0xdb0], rax
mov ecx, 0x53a49f01
call fcn.1800b85d0
mov qword [rbp + 0xdb8], rax
mov ecx, 0x53a79fcb
call fcn.1800b85d0
mov qword [rbp + 0xdc0], rax
mov ecx, 0x53a79fd4
call fcn.1800b85d0
mov qword [rbp + 0xdc8], rax
mov ecx, 0x53a79f25
call fcn.1800b85d0
mov qword [rbp + 0xdd0], rax
mov ecx, 0x53a89fcb
call fcn.1800b4250
mov qword [rbp + 0xdd8], rax
mov ecx, 0x53a49f04
call fcn.1800b85d0
mov qword [rbp + 0xde0], rax
mov ecx, 0x53a49f08
call fcn.1800b85d0
mov qword [rbp + 0xde8], rax
mov ecx, 0x53a49f06
call fcn.1800b85d0
mov qword [rbp + 0xdf0], rax
mov ecx, 0x53a49f09
call fcn.1800b85d0
mov qword [rbp + 0xdf8], rax
mov dword [rbp + 0xe0c], 0x10
mov dword [rbp + 0xe08], ebx
mov dword [rsp + 0x60], 0xcc0020
mov qword [rsp + 0x68], 1
mov qword [rbp + 0xd58], rbx
mov qword [rsp + 0x48], 1
lea r8, [rsp + 0x30]
xor edx, edx
lea rcx, [0x180009850]
call fcn.1800c05b8
mov qword [rsp + 0x50], rax
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov ecx, 0x53a89ffd
call fcn.1800b4250
mov ecx, 0xc8
call rax
mov ecx, 0x53a89f87
call fcn.1800b4250
call rax
call fcn.1800ba050
nop
mov qword [rsp + 0x30], rdi
mov dword [rbp + 0xe08], 1
mov ecx, 0x53a89f02
call fcn.1800b4250
mov edx, 0x1f4
mov rcx, qword [rsp + 0x50]
call rax
mov ecx, 0x53a89f02
call fcn.1800b4250
mov edx, 0x3e8
mov rcx, qword [rbp + 0xe20]
call rax
mov ecx, 0x53a89ffd
call fcn.1800b4250
mov ecx, 0xc8
call rax
lea rcx, [rsp + 0x30]
call fcn.1800e6c90
nop
lea rcx, [rbp + 0xc20]
call fcn.1800b99f0
nop
mov rcx, qword [rbp + 0xe30]
xor rcx, rsp
call fcn.1800bf350
lea r11, [rsp + 0xf40]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x18000fe50
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x18011cfa0]
cmp qword [rbx + 0xa0], 0
je 0x18000fe6f
xor al, al
add rsp, 0x20
pop rbx
ret
mov r9d, 1
lea r8, [0x1800fabf8]
xor edx, edx
mov ecx, r9d
mov qword [rsp + 0x30], rdi
call fcn.1800b0e20
mov rdi, rax
test rax, rax
je 0x18000feb5
mov ecx, 0x53a89fb9
call fcn.1800b4250
call rax
cmp eax, 0xb7
jne 0x18000fec2
mov ecx, 0x53a89f88
call fcn.1800b4250
mov rcx, rdi
call rax
xor al, al
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
mov qword [rbx + 0xa0], rdi
call fcn.18000c3b0
lea rcx, [0x180009850]
mov r8, rbx
xor edx, edx
mov qword [rbx + 0x18], 1
call fcn.1800c05b8
mov ecx, 0xc8
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdi, qword [rsp + 0x30]
mov al, 1
add rsp, 0x20
pop rbx
ret
Function at 0x180022080
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x18011cf98]
test rax, rax
jne 0x1800220b6
mov ecx, 0xf00
call fcn.1800bfab0
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1800220b6
mov rcx, rax
call fcn.1800098d0
nop
mov r8, rax
xor edx, edx
lea rcx, [0x180009c30]
call fcn.1800c05b8
mov ecx, 0x53a89ffd
call fcn.1800b4250
or ecx, 0xffffffff
add rsp, 0x38
jmp rax

Function at 0x180024e30
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xe0
mov rdi, rdx
xor edx, edx
mov ebx, r8d
mov rsi, rcx
lea rcx, [rsp + 0x78]
lea r8d, [rdx + 0x60]
call fcn.1800c5900
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor eax, eax
mov rdx, rdi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov rcx, rsi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x70], 0x68
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test eax, eax
je 0x180024ec7
mov ecx, 0x53a89f88
call fcn.1800b4250
mov rcx, qword [rsp + 0x58]
call rax
mov ecx, 0x53a89f88
call fcn.1800b4250
mov rcx, qword [rsp + 0x50]
call rax
mov eax, ebx
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x180025110
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x248
mov rax, qword [0x1801150d0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
xor edi, edi
mov ecx, 0x53a89f9a
mov ebp, r9d
mov r13d, r8d
mov r12, rdx
mov esi, edi
call fcn.1800b4250
lea rdx, [rsp + 0x20]
mov r8d, 0x103
mov rcx, rbx
call rax
lea rax, [rsp + 0x20]
mov rcx, rbx
sub rcx, rax
lea r11, [rsp + 0x20]
nop dword [rax]
movzx eax, word [r11]
add r11, 2
mov word [rcx + r11 - 2], ax
test ax, ax
jne 0x180025170
mov ecx, 0x53ab9fa7
call fcn.1800b85d0
lea rcx, [rsp + 0x20]
call rax
mov ecx, 0x53ab9fa4
call fcn.1800b85d0
lea rcx, [rsp + 0x20]
call rax
test eax, eax
jne 0x1800251bf
mov ecx, 0x53a19ff7
call fcn.1800b85d0
lea rdx, [rsp + 0x20]
xor r8d, r8d
xor ecx, ecx
call rax
lea rax, [0x1800fad1c]
lea rdx, [0x1800fad24]
test ebp, ebp
cmovne rdx, rax
mov rcx, rbx
call fcn.1800c1cf0
mov rbx, rax
test rax, rax
je 0x180025202
mov rdx, r13
mov r9, rax
mov r8d, 1
mov rcx, r12
call fcn.1800c2a88
mov rcx, rbx
mov rsi, rax
call fcn.1800c1d78
cmp esi, 1
sete dil
mov eax, edi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1800bf350
add rsp, 0x248
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18002b38c
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rdx
mov edi, ecx
call sym.WWStartupCtrl64.dll_sqlite3_initialize
test eax, eax
jne 0x18002b505
cmp byte [0x1801171c4], al
jne 0x18002b3be
xor ebx, ebx
jmp 0x18002b3da
mov ecx, 5
call qword [0x180117230]
mov rbx, rax
test rax, rax
je 0x18002b3da
mov rcx, rax
call qword [0x180117240]
test edi, edi
jle 0x18002b4f0
test rbp, rbp
je 0x18002b4f0
cmp dword [0x18011cb60], 0
jne 0x18002b47a
xor ecx, ecx
call sym.WWStartupCtrl64.dll_sqlite3_vfs_find
movups xmm0, xmmword [str.expand_32_byte_k]
movdqu xmmword [0x18011cb60], xmm0
test rax, rax
jne 0x18002b427
lea r8d, [rax + 0x2c]
lea rcx, [0x18011cb70]
xor edx, edx
call fcn.1800c5900
jmp 0x18002b45d
mov esi, dword [0x180117370]
test esi, esi
je 0x18002b44b
xor edx, edx
lea rcx, [0x18011cb70]
lea r8d, [rdx + 0x2c]
call fcn.1800c5900
mov dword [0x18011cb70], esi
jmp 0x18002b45d
lea r8, [0x18011cb70]
mov edx, 0x2c
mov rcx, rax
call qword [rax + 0x68]
mov eax, dword [0x18011cb90]
and dword [0x18011cb90], 0
xor cl, cl
mov dword [0x18011cb9c], eax
mov byte [0x18011cbe0], cl
jmp 0x18002b480
mov cl, byte [0x18011cbe0]
movzx eax, cl
lea rsi, [0x18011cba0]
cmp edi, eax
jle 0x18002b4d1
test cl, cl
je 0x18002b4af
movzx r8d, cl
mov rdx, rsi
mov rcx, rbp
call fcn.1800bf720
movzx r11d, byte [0x18011cbe0]
sub edi, r11d
add rbp, r11
inc dword [0x18011cb90]
lea rdx, [0x18011cb60]
mov rcx, rsi
call fcn.18002b0e8
mov cl, 0x40
mov byte [0x18011cbe0], cl
cmp edi, 0x40
jg 0x18002b48e
movzx eax, cl
movsxd r8, edi
mov rcx, rbp
sub eax, edi
movsxd rdx, eax
add rdx, rsi
call fcn.1800bf720
sub byte [0x18011cbe0], dil
jmp 0x18002b4f7
and dword [0x18011cb60], 0
test rbx, rbx
je 0x18002b505
mov rcx, rbx
call qword [0x180117250]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180035890
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor esi, esi
xor r12d, r12d
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
je 0x1800358da
mov ebp, dword [rdx + 0x18]
mov ecx, 0x200
call fcn.180029168
mov r12, rax
test rax, rax
je 0x1800358d0
mov dword [rax], ebp
mov eax, dword [rdi + 0x18]
jmp 0x1800358dd
mov eax, 7
jmp 0x180035aa8
mov eax, dword [rcx + 0x24]
mov dword [rbx + 0x20], eax
mov al, byte [rbx + 0x10]
mov byte [rbx + 0x17], al
test rdi, rdi
jne 0x180035901
cmp qword [rbx + 0x128], rsi
je 0x180035901
mov rcx, rbx
call fcn.180035620
jmp 0x180035aa8
mov r14, qword [rbx + 0x60]
test rdi, rdi
je 0x180035958
cmp qword [rbx + 0x128], rsi
jne 0x180035958
cmp qword [rdi + 8], rsi
mov rax, qword [rdi]
mov r13, r14
cmovne r13, qword [rdi + 8]
mov qword [rbx + 0x60], rax
cmp qword [rbx + 0x60], r13
jge 0x1800359fd
lea rdx, [rbx + 0x60]
mov r9d, 1
mov r8, r12
mov rcx, rbx
mov dword [rsp + 0x20], 1
call fcn.180034b7c
mov esi, eax
test eax, eax
je 0x180035926
jmp 0x1800359fd
and qword [rbx + 0x60], rsi
jmp 0x1800359fd
cmp qword [rbx + 0x60], r14
jge 0x180035a05
and dword [rsp + 0x78], 0
lea rax, [rsp + 0x80]
lea r9, [rsp + 0x78]
mov r8, r14
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.1800342c8
mov r15d, dword [rsp + 0x78]
mov esi, eax
test r15d, r15d
jne 0x1800359c5
mov eax, dword [rbx + 0xb8]
add rax, qword [rbx + 0x68]
cmp rax, qword [rbx + 0x60]
jne 0x1800359c5
mov rcx, qword [rbx + 0xc8]
mov rax, r14
sub rax, qword [rbx + 0x60]
add rcx, 8
cqo
idiv rcx
mov r15, rax
xor r13d, r13d
test esi, esi
jne 0x180035a05
cmp r13d, r15d
jae 0x1800359fd
cmp qword [rbx + 0x60], r14
jge 0x1800359fd
lea rdx, [rbx + 0x60]
mov r9d, 1
mov r8, r12
mov rcx, rbx
mov dword [rsp + 0x20], 1
call fcn.180034b7c
inc r13d
mov esi, eax
test eax, eax
je 0x1800359cc
test esi, esi
je 0x180035961
test rdi, rdi
je 0x180035a96
mov rcx, qword [rbx + 0xc8]
mov eax, dword [rdi + 0x1c]
add rcx, 4
imul rcx, rax
mov qword [rsp + 0x78], rcx
mov rcx, qword [rbx + 0x128]
test rcx, rcx
je 0x180035a67
mov eax, dword [rcx + 0x88]
cmp dword [rdi + 0x30], eax
je 0x180035a49
and dword [rdi + 0x24], 0
mov eax, dword [rcx + 0x88]
mov dword [rdi + 0x30], eax
mov eax, dword [rdi + 0x24]
cmp eax, dword [rcx + 0x58]
jae 0x180035a65
mov dword [rcx + 0x58], eax
mov eax, dword [rdi + 0x28]
mov dword [rcx + 0x60], eax
mov eax, dword [rdi + 0x2c]
mov dword [rcx + 0x64], eax
call fcn.180038aac
xor esi, esi
mov edi, dword [rdi + 0x1c]
test esi, esi
jne 0x180035a96
cmp edi, dword [rbx + 0x3c]
jae 0x180035a96
lea rdx, [rsp + 0x78]
xor r9d, r9d
mov r8, r12
mov rcx, rbx
mov dword [rsp + 0x20], 1
call fcn.180034b7c
inc edi
mov esi, eax
test eax, eax
je 0x180035a6e
mov rcx, r12
call fcn.1800326ec
test esi, esi
jne 0x180035aa6
mov qword [rbx + 0x60], r14
mov eax, esi
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret