joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005d760
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140091080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x14005d7f5
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x14005d856
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140037e90
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140071040
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x14005d911
sub ecx, 1
je 0x14005d984
sub ecx, 1
je 0x14005d8c0
cmp ecx, 1
je 0x14005d8a3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x14007d950]
call fcn.140037e90
jmp 0x14005d984
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.14005d490
test eax, eax
je 0x14005d984
jmp 0x14005d82a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x14005d984
sub rax, rsi
cmp rax, rbp
jae 0x14005d984
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140038010
jmp 0x14005d984
cmp r8d, 4
jle 0x14005d984
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x14005d984
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140037db0
mov esi, eax
test eax, eax
je 0x14005d963
mov edx, 5
mov rcx, rbx
call fcn.14005e450
mov eax, esi
jmp 0x14005d82a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140046880
mov rcx, r14
call fcn.140046b60
test eax, eax
je 0x14005d828
mov edx, 5
mov rcx, rbx
call fcn.14005e450
mov eax, Ordinal_46
jmp 0x14005d82a
Function at 0x140070720
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140070762
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400707a9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140070802
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400707c0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140070843
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400830ca]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400830cb]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140070810
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x140070860
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14007089a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14007089f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400708e8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400708e8
dec r8
sub rdx, 1
jne 0x1400708ce
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140071f78
Capabilities:
Parse pe header

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

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

Function at 0x1400066c0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400064bc
Function at 0x14000978c
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 0x1400097bc
xor eax, eax
jmp 0x14000987f
mov rbp, rbx
cmp word [rax], si
je 0x1400097e1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400097c8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400097c4
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.1400096ac
movsxd r14, eax
test eax, eax
jne 0x14000981f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400097b5
mov rcx, r14
call fcn.14000a668
mov rdi, rax
test rax, rax
jne 0x140009838
xor ecx, ecx
call fcn.140007d0c
jmp 0x140009814
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.1400096ac
test eax, eax
jne 0x140009869
mov rcx, rdi
call fcn.140007d0c
jmp 0x140009873
xor ecx, ecx
call fcn.140007d0c
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 0x14000cd70
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.14000877c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000cdfa
cmp byte [rbp - 0x21], r15b
je 0x14000cdf5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000ce30
call fcn.14000ae78
test eax, eax
jne 0x14000ce1c
cmp byte [rbp - 0x21], r15b
je 0x14000ce14
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000ce30
cmp byte [rbp - 0x21], r15b
je 0x14000ce2d
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.140007d5c
test eax, eax
jne 0x14000ced0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000877c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000ce6f
cmp byte [rbp - 0x21], r15b
je 0x14000cea4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000cea4
call fcn.14000ae78
test eax, eax
jne 0x14000ce90
cmp byte [rbp - 0x21], r15b
je 0x14000ce89
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000cea4
cmp byte [rbp - 0x21], r15b
je 0x14000cea1
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.140007d5c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000ced0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000ced3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000cee1
mov rcx, rdi
call fcn.140007d0c
cmp byte [rbp + 0x3f], r15b
je 0x14000cef0
mov rcx, qword [rbp + 0x27]
call fcn.140007d0c
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 0x14000fd20
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000fd48
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000fd48
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001130
Capabilities:
Enumerate process modules
Find taskbar
Get process image filename

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r14
mov eax, 0x2280
call fcn.14001d640
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2270], rax
mov r14, rcx
xor edx, edx
lea rcx, [0x140027a78]
call qword [sym.imp.USER32.dll_FindWindowW]
xor ebx, ebx
lea rdx, [rsp + 0x30]
mov rcx, rax
mov dword [rsp + 0x30], ebx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea r8, [rsp + 0x34]
mov dword [r14], ebx
mov edx, 0x2000
mov qword [r14 + 4], 0xffffffffffffffff
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
mov ebp, dword [rsp + 0x34]
shr rbp, 2
test rbp, rbp
je 0x140001250
mov qword [rsp + 0x2298], rdi
mov qword [rsp + 0x2290], rsi
mov edi, dword [rsp + rbx*4 + 0x60]
cmp edi, dword [rsp + 0x30]
jne 0x140001238
mov r8d, edi
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x140001238
mov r8d, 0x104
lea rdx, [rsp + 0x2060]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
lea rax, [rsp + 0x40]
mov rcx, rsi
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcessTimes]
mov rax, qword [rsp + 0x38]
cmp eax, dword [r14 + 4]
jae 0x14000122f
mov dword [r14], edi
mov qword [r14 + 4], rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc rbx
cmp rbx, rbp
jl 0x1400011c2
mov rdi, qword [rsp + 0x2298]
mov rsi, qword [rsp + 0x2290]
mov rax, r14
mov rcx, qword [rsp + 0x2270]
xor rcx, rsp
call fcn.140005530
lea r11, [rsp + 0x2280]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x140001280
Capabilities:
Create restart manager session
Enumerate processes that use resource

Disassembly:
mov eax, 0x2a48
call fcn.14001d640
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2a30], rax
lea r8, [0x14002ede0]
xor edx, edx
lea rcx, [0x14002da80]
call qword [sym.imp.RstrtMgr.DLL_RmStartSession]
test eax, eax
jne 0x14000134c
lea rcx, [rsp + 0x40]
call fcn.140001130
mov ecx, dword [0x14002da80]
mov r9d, 1
xor r8d, r8d
xor edx, edx
movsd xmm0, qword [rax]
movsd qword [rsp + 0x60], xmm0
mov eax, dword [rax + 8]
mov dword [rsp + 0x68], eax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
mov ecx, dword [0x14002da80]
lea rax, [rsp + 0x54]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], 0x10
lea rdx, [rsp + 0x58]
call qword [sym.imp.RstrtMgr.DLL_RmGetList]
cmp dword [rsp + 0x54], 0
jne 0x14000134c
mov ecx, dword [0x14002da80]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.RstrtMgr.DLL_RmShutdown]
xor eax, eax
mov rcx, qword [rsp + 0x2a30]
xor rcx, rsp
call fcn.140005530
add rsp, 0x2a48
ret
Function at 0x140001660
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
sub rsp, 0x308
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edx, 0x105
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, [0x140027ab0]
mov edx, 0x105
lea rcx, [rsp + 0xe0]
call fcn.140010e88
xorps xmm0, xmm0
mov dword [rsp + 0x50], 0x68
lea rax, [rsp + 0xc0]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0xe0]
lea rax, [rsp + 0x50]
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], 0x400
mov dword [rsp + 0x20], 1
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rsp + 0x88], xmm0
movups xmmword [rsp + 0x98], xmm0
movups xmmword [rsp + 0xa8], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
call qword [sym.imp.KERNEL32.dll_FreeConsole]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 1
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.140005530
add rsp, 0x308
ret
Function at 0x140001d90
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
lea rcx, [0x140028180]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001e8c
lea rdx, [0x140028198]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140001e8c
mov rcx, rbx
mov dword [rbx], 0x114
call rax
test eax, eax
jne 0x140001e8c
mov ebx, 0x5c
mov dword [rsp + 0x38], eax
mov edx, ebx
mov dword [rsp + 0x3c], 4
lea rcx, [0x1400281b0]
call fcn.140006350
movzx edx, bx
lea rcx, [rax + 2]
call fcn.140006350
movzx edx, bx
lea rcx, [rax + 2]
call fcn.140006350
lea rcx, [rsp + 0x30]
mov r9d, 0x20019
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, 0xffffffff80000002
lea rdx, [rax + 2]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001e75
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rdx, [0x140028230]
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140005530
add rsp, 0x50
pop rbx
ret
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140005530
add rsp, 0x50
pop rbx
ret
Function at 0x140002a60
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push rbx
sub rsp, 0x450
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rdx
mov r8, rcx
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.140010e20
lea r8, [0x140027a70]
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.140010e88
mov r8, rbx
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.140010e88
lea r8, [rsp + 0x20]
mov edx, 0x104
lea rcx, [rsp + 0x230]
call fcn.140010e20
lea rcx, [rsp + 0x230]
call qword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea r8, str..prev
mov edx, 0x104
lea rcx, [rsp + 0x230]
call fcn.140010e88
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea rcx, [rsp + 0x230]
mov ebx, eax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test ebx, ebx
jne 0x140002b37
test eax, eax
jne 0x140002b3b
mov eax, 1
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140005530
add rsp, 0x450
pop rbx
ret
test eax, eax
je 0x140002b5c
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140002b58
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140002b82
test ebx, ebx
je 0x140002b19
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140002b19
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x140002b19
xor eax, eax
jmp 0x140002b1e
Function at 0x140005f3c
Capabilities:
Parse pe header

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

Function at 0x140008c54
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140008cc3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140008cc3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140008cc3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140008cc3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140008cc3
cmp dword [rcx + 0x84], 0xe
jbe 0x140008cc3
cmp dword [rcx + 0xf8], 0
je 0x140008cc3
mov ecx, ebx
call fcn.140008d74
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140008b50
nop
cmp dword [rbp + 0x20], 0
je 0x140008d11
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140008d1c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140008c54

Function at 0x140008e58
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140008cc3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140008cc3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140008cc3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140008cc3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140008cc3
cmp dword [rcx + 0x84], 0xe
jbe 0x140008cc3
cmp dword [rcx + 0xf8], 0
je 0x140008cc3
mov ecx, ebx
call fcn.140008d74
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140008b50
nop
cmp dword [rbp + 0x20], 0
je 0x140008d11
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140008d1c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140008c54
Function at 0x140016928
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001693e
mov al, 1
jmp 0x14001699e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001694f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001699c
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400183c0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001699c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001699c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001699c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001699e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140018078
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 0x1400180ff
mov rsi, rbx
cmp word [rax], bp
je 0x1400180be
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400180a8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400180a4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140012e3c
mov rdi, rax
test rax, rax
je 0x1400180ec
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14001dc60
mov rbp, rdi
xor ecx, ecx
call fcn.140012e00
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 0x14001d4d0
Capabilities:
Parse pe header

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