joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b0680
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400b06ca
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400b06ca
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400b06ca
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400b06ca
cmp dword [rcx + 0x84], 0xe
jbe 0x1400b06ca
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400b06cc
xor al, al
add rsp, 0x28
ret

Function at 0x1400bfe5c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400bfe93
call fcn.1400c29fc
mov dword [rax], 0x16
call fcn.1400b67ac
xor eax, eax
jmp 0x1400bff21
mov rdx, r9
mov rcx, r8
call fcn.1400bfdf8
mov rbx, rax
test rax, rax
je 0x1400bff1e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400bfd24]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400bff0b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400c2970
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400bfef2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400bff01
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400c2a94
jmp 0x1400bff1e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400bff1b
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400c0450
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400c024c
Function at 0x1400c82f8
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400c8328
xor eax, eax
jmp 0x1400c83eb
mov rbp, rbx
cmp word [rax], si
je 0x1400c834d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400c8334
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400c8330
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400c8218
movsxd r14, eax
test eax, eax
jne 0x1400c838b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400c8321
mov rcx, r14
call fcn.1400c37f0
mov rdi, rax
test rax, rax
jne 0x1400c83a4
xor ecx, ecx
call fcn.1400c2a94
jmp 0x1400c8380
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400c8218
test eax, eax
jne 0x1400c83d5
mov rcx, rdi
call fcn.1400c2a94
jmp 0x1400c83df
xor ecx, ecx
call fcn.1400c2a94
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400c8408
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400c848f
mov rsi, rbx
cmp word [rax], bp
je 0x1400c844e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400c8438
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400c8434
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400c37f0
mov rdi, rax
test rax, rax
je 0x1400c847c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400d0320
mov rbp, rdi
xor ecx, ecx
call fcn.1400c2a94
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400cc630
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400cc646
mov al, 1
jmp 0x1400cc6a6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400cc657
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400cc6a4
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400c9578
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400cc6a4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400cc6a4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400cc6a4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400cc6a6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400cd964
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400bb43c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400cd9ee
cmp byte [rbp - 0x21], r15b
je 0x1400cd9e9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400cda24
call fcn.1400c2d3c
test eax, eax
jne 0x1400cda10
cmp byte [rbp - 0x21], r15b
je 0x1400cda08
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400cda24
cmp byte [rbp - 0x21], r15b
je 0x1400cda21
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400c68fc
test eax, eax
jne 0x1400cdac4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400bb43c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400cda63
cmp byte [rbp - 0x21], r15b
je 0x1400cda98
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400cda98
call fcn.1400c2d3c
test eax, eax
jne 0x1400cda84
cmp byte [rbp - 0x21], r15b
je 0x1400cda7d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400cda98
cmp byte [rbp - 0x21], r15b
je 0x1400cda95
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400c68fc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400cdac4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400cdac7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400cdad5
mov rcx, rdi
call fcn.1400c2a94
cmp byte [rbp + 0x3f], r15b
je 0x1400cdae4
mov rcx, qword [rbp + 0x27]
call fcn.1400c2a94
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1400cfda0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400cfdc8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400cfdc8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180001000
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov rdi, rcx
mov rcx, rdx
mov rbp, rdx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, rdi
mov esi, eax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x1800307d8]
lea r8d, [rax + rsi + 1]
xor edx, edx
mov r13d, eax
add r8, 5
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov r12, rax
je 0x18000122c
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [rsi + 1]
mov rdx, rdi
mov rcx, r12
mov byte [rsi + r12], 0x5c
mov byte [rax + r12], bl
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [0x180033e8f]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov rcx, qword [0x1800307d8]
lea r8d, [r13 + 1]
add r8, r8
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov rbp, rax
je 0x18000121a
movsx eax, byte [rdi]
cmp ax, bx
mov word [rbp], ax
je 0x1800010d3
mov rcx, rbp
add rdi, 1
add rcx, 2
movsx eax, byte [rdi]
cmp ax, bx
mov word [rcx], ax
jne 0x1800010c0
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.CRYPT32.dll_CertOpenSystemStoreW]
cmp rax, rbx
mov rdi, rax
je 0x180001208
xor edx, edx
mov rcx, rax
mov esi, ebx
call qword [sym.imp.CRYPT32.dll_CertEnumCertificatesInStore]
cmp rax, rbx
je 0x1800011fd
mov rdx, rax
mov rcx, rdi
add esi, 1
call qword [sym.imp.CRYPT32.dll_CertEnumCertificatesInStore]
cmp rax, rbx
jne 0x180001100
cmp esi, ebx
je 0x1800011fd
xor eax, eax
lea r8, [0x180033988]
lea rdx, [rsp + 0x40]
lea esi, [rax + 4]
xor r9d, r9d
mov rcx, rdi
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], esi
call qword [sym.imp.CRYPT32.dll_PFXExportCertStoreEx]
cmp eax, ebx
je 0x1800011fd
mov r8d, dword [rsp + 0x40]
mov rcx, qword [0x1800307d8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov qword [rsp + 0x48], rax
je 0x1800011fd
lea r8, [0x180033988]
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov rcx, rdi
mov dword [rsp + 0x20], esi
call qword [sym.imp.CRYPT32.dll_PFXExportCertStoreEx]
cmp eax, ebx
je 0x1800011e9
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x1800011e9
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
lea r9, [rsp + 0x80]
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [rsp + 0x48]
mov rcx, qword [0x1800307d8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov rcx, qword [0x1800307d8]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1800307d8]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x1800013e4
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x30
mov r12, rdx
mov rsi, rcx
xor r8d, r8d
mov edx, 0x400000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
test rax, rax
mov qword [0x1800307d8], rax
jne 0x180001426
lea ecx, [rax + 8]
jmp 0x1800015de
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor r9d, r9d
xor r8d, r8d
lea r14d, [r9 + 1]
xor ecx, ecx
mov dword [0x1800307b0], eax
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_CreateEventA]
test rax, rax
mov qword [0x1800309f0], rax
je 0x1800014b0
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jne 0x180001468
movzx ecx, ax
shr cx, 8
jne 0x18000146a
cmp al, al
jbe 0x1800014a9
mov dword [0x1800309d4], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x47a
mov r8d, eax
mov qword [0x1800309e0], rsi
mov dword [0x1800309d0], eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
or rcx, 0xffffffffffffffff
test rax, rax
cmove rax, rcx
xor ecx, ecx
mov qword [0x1800309c8], rax
jmp 0x1800014b8
mov ecx, 0x32
jmp 0x1800014b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
test ecx, ecx
jne 0x1800015de
xor eax, eax
lea r8d, [rcx + 8]
lea rdx, str..bss
lea rcx, [rsp + 0x60]
xor ebx, ebx
mov dword [rsp + 0x61], eax
mov word [rsp + 0x65], ax
mov byte [rsp + 0x67], al
mov byte [rsp + 0x60], bl
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.180018b28
test rax, rax
mov rdi, rax
je 0x18000158e
cmp dword [rax + 0xc], ebx
je 0x180001587
cmp dword [rax + 0x10], ebx
je 0x180001587
mov rcx, qword [str.Aug__2_2017]
mov eax, dword [0x18002a7b8]
lea rdx, [rsp + 0x20]
mov qword [rdx], rcx
mov ecx, dword [rdi + 0xc]
mov dword [rdx + 8], eax
mov edx, dword [rdi + 0x10]
mov r9d, r14d
lea ebp, [rcx + rdx]
add rcx, rsi
xor ebp, dword [rsp + 0x20]
xor ebp, dword [rsp + 0x24]
lea r8d, [rbp + 0xe]
call fcn.180023e84
mov r11d, dword [0x1800330b0]
xor r11d, dword [0x1800330b4]
xor r11d, dword [0x1800330bc]
cmp r11d, 0x73686c70
mov dword [0x1800309f8], r11d
je 0x180001593
mov ecx, dword [rdi + 0xc]
mov edx, dword [rdi + 0x10]
lea r8d, [rbp + 0xe]
add rcx, rsi
mov r9d, r14d
call fcn.180023e40
mov ebx, 0xc
jmp 0x180001593
mov ebx, 0xc0
jmp 0x180001593
mov ebx, 2
test ebx, ebx
mov ecx, ebx
jne 0x1800015de
lea rdx, [0x1800309e8]
xor r8d, r8d
xor ecx, ecx
call fcn.18001727c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x1800015de
mov ecx, dword [0x1800309d0]
xor edx, edx
call fcn.1800168c8
mov ecx, dword [0x1800309d8]
test eax, eax
cmovne ecx, r14d
mov dword [0x1800309d8], ecx
mov rcx, r12
call fcn.180012080
mov ecx, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
mov eax, ecx
add rsp, 0x30
pop r14
pop r12
pop rdi
ret
Function at 0x1800017c0
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
lea r9, [rsp + 0x30]
xor r8d, r8d
lea ecx, [rbx + 0x13]
mov dl, 1
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
cmp eax, ebx
jl 0x1800017f8
lea ecx, [rbx + 6]
xor edx, edx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
cmp eax, ebx
jne 0x1800017fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1800017fd
mov ebx, 0x522
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x180001808
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rcx, qword [0x1800307d8]
mov esi, 0x104
xor edx, edx
mov r8, rsi
mov ebx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x18000190e
mov edx, esi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1800018f4
mov dx, 0x3a
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrChrA]
lea rdx, [0x1800345c9]
mov r8, rdi
lea rcx, [rax + 2]
mov rbx, rax
mov byte [rax + 1], 0
call qword [sym.imp.USER32.dll_wsprintfA]
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov r8d, 3
lea rcx, [rbx + 2]
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x1800018f4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov rdx, rax
mov r8d, 0x10000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800018d8
xor ebx, ebx
jmp 0x1800018e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x1800018fc
call fcn.1800017c0
jmp 0x1800018fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x1800307d8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x180001920
Capabilities:
Access pe header
Get common file path
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov esi, r9d
mov r13d, edx
mov rbp, rcx
mov ebx, 8
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x180001a51
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov rcx, qword [0x1800307d8]
xor edx, edx
lea r8d, [rax + 0x11]
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x180001a56
lea ecx, [r12 + 1]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rdi + rbx]
lea rdx, [0x180033191]
mov r8d, eax
call qword [sym.imp.USER32.dll_wsprintfA]
xor r9d, r9d
mov r8d, r13d
mov rdx, rbp
mov rcx, rdi
mov dword [rsp + 0x20], 1
call fcn.18001737c
test eax, eax
mov ebx, eax
jne 0x180001a3d
test esi, esi
je 0x180001a3d
lea r8, [rsp + 0x30]
lea rdx, [0x1800332dc]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
mov ebx, eax
jne 0x180001a3d
movsx r8d, byte [0x180033285]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrRChrA]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [rsp + 0x30]
add eax, 1
lea rdx, [rbx + 1]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x1800307d8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180001a56
mov ebx, 0xb
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret

Function at 0x180001cbc
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, qword [0x180030930]
mov rdi, rcx
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
mov ebx, eax
jne 0x180001d19
mov rcx, qword [rsp + 0x38]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, rdi
mov ebx, eax
call fcn.1800167fc
mov rcx, qword [rsp + 0x38]
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180001e24
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x50
and qword [rsp + 0x70], 0
cmp edx, 0x20
mov ebp, r8d
mov rbx, rcx
jb 0x180001f92
mov r9d, dword [rcx + 0x1c]
mov eax, dword [rcx + 0x14]
add r9d, dword [rcx + 0x10]
lea r9d, [r9 + rax + 0x20]
cmp edx, r9d
jne 0x180001f92
add qword [rcx], rcx
add qword [rcx + 8], rcx
mov rcx, qword [rcx + 8]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x180001f8b
mov eax, dword [0x1800309d0]
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x44], eax
mov rax, qword [0x1800309c8]
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r9, [rsp + 0x88]
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x38], rax
call fcn.18001bec4
test eax, eax
mov edi, eax
jne 0x180001f97
cmp dword [rbx + 0x18], eax
je 0x180001f48
mov ecx, 0xd80
call fcn.18001567c
test rax, rax
mov rsi, rax
je 0x180001f48
mov r9d, dword [rbx + 0x10]
mov r8, qword [rbx]
and qword [rsp + 0x20], 0
lea rdx, [rbx + 0x20]
mov rcx, rax
call fcn.180001d28
test eax, eax
jne 0x180001f36
mov r9d, dword [rbx + 0x14]
mov r8, qword [rbx + 8]
lea rax, [rsp + 0x70]
lea rdx, [rbx + 0x20]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.180001d28
mov r8, qword [rsp + 0x70]
test r8, r8
je 0x180001f36
mov rcx, qword [0x1800307d8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1800307d8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
je 0x180001f97
mov rcx, qword [rsp + 0x88]
lea rdx, [0x180034185]
xor r9d, r9d
xor r8d, r8d
call fcn.1800189d0
test rax, rax
je 0x180001f84
mov eax, dword [rax]
add rax, qword [rsp + 0x88]
je 0x180001f84
lea rcx, [0x180030080]
xor edx, edx
call rax
jmp 0x180001f97
mov edi, 0x7f
jmp 0x180001f97
mov edi, 0xb
jmp 0x180001f97
mov edi, 0x57
mov rcx, qword [0x1800307d8]
xor edx, edx
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rdx, [0x1800341b8]
mov r8d, edi
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
xor r9d, r9d
mov rdx, rbx
mov r8d, eax
mov ecx, 0x10d
call fcn.18000f594
mov rcx, qword [0x1800307d8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x50]
mov eax, edi
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x1800023a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rcx, qword [0x1800307d8]
xor edx, edx
mov r8d, 0x105
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x180002440
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x22]
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov ebx, 1
test eax, eax
jne 0x1800023f4
mov r8d, ebx
mov edx, ebx
mov rcx, rdi
call fcn.18001562c
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x20]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x18000241c
mov r8d, ebx
mov edx, ebx
mov rcx, rdi
call fcn.18001562c
lea rcx, [0x1800334b0]
mov edx, ebx
call fcn.180002008
mov rcx, qword [0x1800307d8]
mov r8, rdi
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180002445
mov ebx, 8
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x180002bf8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x30
xor ebx, ebx
mov rsi, r8
mov r12, rdx
cmp r8, rbx
mov r13, rcx
mov ebp, ebx
je 0x180002c2d
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
mov rcx, qword [0x1800307d8]
lea r8d, [rbp + 1]
xor edx, edx
add r8, 0x10
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov rdi, rax
je 0x180002cb7
cmp ebp, ebx
mov qword [rax], r13
mov qword [rax + 8], r12
je 0x180002c66
lea rcx, [rax + 0x10]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x180002c69
mov byte [rax + 0x10], bl
lea rax, [rsp + 0x60]
lea r8, [0x180002b9c]
mov r9, rdi
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp rax, rbx
je 0x180002c9b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180002cbc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1800307d8]
mov r8, rdi
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180002cbc
mov ebx, 8
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret