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

Disassembly:
mov r8, qword [0x14000a7c0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002840
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002848
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002840
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002888
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000287f
test rcx, rcx
je 0x140002840
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002870
xor eax, eax
ret

Function at 0x140002890
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a7c0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400028b0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1400028b8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x1400028d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000a7c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400028f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400028f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400028f0
sub rcx, rdx
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x1400028f0
lea eax, [r8 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop dword [rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x14000293c
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002950
add rdx, 0x28
cmp rdx, r9
jne 0x140002928
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002960
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14000a7c0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002982
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002990
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002982
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002982
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002982
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400029dd
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400029f0
add rdx, 0x28
cmp r10, rdx
jne 0x1400029c8
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400029ff
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002a0f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400029e6
test ecx, ecx
jg 0x1400029f8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000bd50]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000bd60]
mov dword [rax], 1
mov rax, qword [0x14000bd70]
mov dword [rax], 1
mov rax, qword [0x14000bd00]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000bd40]
mov dword [0x14001100c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14000be20]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000be00]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000bcb0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001558
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0xffffffff
je 0x14000158e
mov eax, dword [rbp - 4]
and eax, 0x10
test eax, eax
jne 0x14000158e
mov eax, 1
jmp 0x140001593
mov eax, 0
and eax, 1
add rsp, 0x30
pop rbp
ret

Function at 0x14000159c
Capabilities:
Create process on windows

Disassembly:
push rbp
sub rsp, 0x2f0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x280], rcx
lea rdx, [rbp + 0x60]
mov rax, qword [rbp + 0x280]
mov rcx, rax
call sym.StringToWideString
lea rax, [rbp + 0x60]
mov rcx, rax
call sym.FileExists
test al, al
je 0x1400016ab
lea rax, [rbp - 0x30]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x30], 0x68
lea rax, [rbp + 0x40]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sym.memset
lea rax, [rbp + 0x60]
lea rdx, [rbp + 0x40]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessW]
call rax
test eax, eax
jne 0x14000166f
mov eax, 0
jmp 0x1400016b0
mov rax, qword [rbp + 0x40]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp + 0x40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x48]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
jmp 0x1400016b0
mov eax, 0
add rsp, 0x2f0
pop rbp
ret
Function at 0x140002160
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], rcx
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0xd8], rax
cmp qword [rbp + 0xd8], 0xffffffffffffffff
jne 0x1400021a1
mov eax, 0
jmp 0x140002223
mov dword [rbp - 0x60], 0x130
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call sym.Process32First
test eax, eax
je 0x14000220b
mov rax, qword [rbp + 0xf0]
lea rdx, [rbp - 0x60]
lea rcx, [rdx + 0x2c]
mov rdx, rax
call sym.strcmp
test eax, eax
jne 0x1400021f4
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
jmp 0x140002223
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call sym.Process32Next
test eax, eax
jne 0x1400021bf
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x160
pop rbp
ret

Function at 0x1400025d3
Capabilities:
Create directory

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call rax
nop
add rsp, 0x20
pop rbp
ret
Function at 0x1400025fb
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push rbp
mov eax, 0x1050
call fcn.1400038e0
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xfe0], rcx
mov qword [rbp + 0xfe8], rdx
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.WININET.dll_InternetOpenA]
call rax
mov qword [rbp + 0xfc8], rax
cmp qword [rbp + 0xfc8], 0
jne 0x14000267c
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rcx, rax
lea rax, str.InternetOpen_failed_n
mov rdx, rax
call sym.fprintf_1
jmp 0x140002809
mov rdx, qword [rbp + 0xfe0]
mov rax, qword [rbp + 0xfc8]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
mov r9d, 0
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenUrlA]
call rax
mov qword [rbp + 0xfc0], rax
cmp qword [rbp + 0xfc0], 0
jne 0x1400026fc
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rcx, rax
lea rax, str.InternetOpenUrl_failed_n
mov rdx, rax
call sym.fprintf_1
mov rax, qword [rbp + 0xfc8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
jmp 0x140002809
mov rax, qword [rbp + 0xfe8]
lea rdx, [0x14000b59d]
mov rcx, rax
call sym.fopen
mov qword [rbp + 0xfb8], rax
cmp qword [rbp + 0xfb8], 0
jne 0x14000279e
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov rcx, rax
mov rax, qword [rbp + 0xfe8]
mov r8, rax
lea rax, str.Unable_to_open_file__s_n
mov rdx, rax
call sym.fprintf_1
mov rax, qword [rbp + 0xfc0]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0xfc8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
jmp 0x140002809
mov eax, dword [rbp + 0xfb4]
mov ecx, eax
mov rdx, qword [rbp + 0xfb8]
lea rax, [rbp - 0x50]
mov r9, rdx
mov r8, rcx
mov edx, 1
mov rcx, rax
call sym.fwrite
lea rcx, [rbp + 0xfb4]
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0xfc0]
mov r9, rcx
mov r8d, 0x1000
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
call rax
test eax, eax
je 0x1400027d3
mov eax, dword [rbp + 0xfb4]
test eax, eax
jne 0x140002778
mov rax, qword [rbp + 0xfb8]
mov rcx, rax
call sym.fclose
mov rax, qword [rbp + 0xfc0]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0xfc8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
nop
add rsp, 0x1050
pop rbp
ret

Function at 0x140002b40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140002bb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400111e4]
mov rbx, rcx
test esi, esi
jle 0x140002ce0
mov rax, qword [0x1400111e8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002bfb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002c85
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002be0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140002d02
mov rax, qword [0x1400111e8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400111e8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002ce7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002c7e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002c90
add dword [0x1400111e4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400111e8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002c7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140002c08
mov rax, qword [0x1400111e8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003270
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140011240]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140011220]
test rbx, rbx
je 0x1400032cc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400032c3
test rsi, rsi
je 0x1400032c3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400032a8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400034e0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400034f8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140003500
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140003510
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000355d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140003554
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000355f
add rax, 0x28
cmp rax, r9
jne 0x140003540
xor eax, eax
ret

Function at 0x140003560
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400035f0
mov rdx, qword [0x14000bd00]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400035de
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400035de
cmp word [rax + 0x18], 0x20b
jne 0x1400035de
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400035f0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400035c9
add rbx, 0x28
cmp rbx, rdi
je 0x1400035f0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400035c0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140003600
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000bd00]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003620
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003628
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003620
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000367d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003674
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003620
add rax, 0x28
cmp rax, r9
jne 0x140003660
xor eax, eax
ret

Function at 0x140003680
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000bd00]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000369f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400036a8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000369f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400036c0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000bd00]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400036e0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400036e8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400036e0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140003730
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140003727
test rcx, rcx
je 0x1400036e0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140003718
xor eax, eax
ret
Function at 0x140003740
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000bd00]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000375f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003768
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140003780
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000bd00]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400037a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400037a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400037a0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400037a0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400037f4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140003800
add rdx, 0x28
cmp r9, rdx
jne 0x1400037e0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140003810
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14000bd00]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140003832
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140003840
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003832
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140003832
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140003832
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140003895
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400038a8
add rdx, 0x28
cmp rdx, r10
jne 0x140003880
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400038b7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400038c7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000389e
test ecx, ecx
jg 0x1400038b0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140009a40
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov rax, qword [0x140066558]
mov edx, 0x105
cmp rax, rdx
jb 0x140009a8e
mov qword [0x140066558], rdx
lea rax, [0x140066548]
cmp qword [0x140066560], 8
cmovae rax, qword [0x140066548]
xor ecx, ecx
mov word [rax + 0x20a], cx
jmp 0x140009aa0
xor r8d, r8d
sub rdx, rax
lea rcx, [0x140066548]
call fcn.14002bda0
lea rax, [0x140066548]
cmp qword [0x140066560], 8
cmovae rax, qword [0x140066548]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x23]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov rax, qword [0x140066560]
cmp rax, 8
jb 0x140009b6c
mov rbx, qword [0x140066558]
cmp rbx, 8
jae 0x140009b01
lea rcx, [0x140066548]
call fcn.14002bba0
mov rax, qword [0x140066560]
jmp 0x140009b6c
movabs rcx, 0x7ffffffffffffffe
or rbx, 7
cmp rcx, rbx
cmovb rbx, rcx
cmp rbx, rax
jae 0x140009b6c
lea rdx, [rbx + 1]
call fcn.140005640
mov rdi, rax
mov r8, qword [0x140066558]
lea r8, [r8*2 + 2]
mov rdx, qword [0x140066548]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov r8, qword [0x140066560]
inc r8
mov rdx, qword [0x140066548]
call fcn.1400056b0
mov qword [0x140066548], rdi
mov rax, rbx
mov qword [0x140066560], rbx
lea rdx, [0x140066548]
cmp rax, 8
cmovae rdx, qword [0x140066548]
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x140009b83
lea rcx, [0x140066548]
call fcn.140005500
nop
jmp 0x140009ba4
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14000dbd0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x140063010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, r9
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
xor r14d, r14d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x48], r14d
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x14000dc30
mov rdx, qword [r8]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor r8d, r8d
mov edx, dword [rsp + 0x48]
shr rdx, 1
mov rcx, rbx
call fcn.1400051f0
mov dword [rsp + 0x30], 1
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x14000dc75
mov rax, qword [rbx]
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x14000dc82
mov rdx, qword [rsi]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14000dced
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x14000dcb8
mov rax, qword [rbx]
cmp word [rax + rcx*2 - 2], 0
jne 0x14000dced
lea rax, [rcx - 1]
cmp rax, rcx
mov rcx, rbx
ja 0x14000dce1
mov qword [rbx + 0x10], rax
cmp qword [rbx + 0x18], 8
jb 0x14000dcda
mov rcx, qword [rbx]
mov word [rcx + rax*2], r14w
jmp 0x14000dced
xor r8d, r8d
or rdx, 0xffffffffffffffff
call fcn.14002bda0
cmp qword [rbx + 0x10], 0
jne 0x14000dd13
cmp rbx, rdi
je 0x14000dd13
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14000dd06
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rbx
call fcn.140005500
nop
mov rcx, rsi
call fcn.140005440
nop
mov rcx, rdi
call fcn.140005440
mov rax, rbx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14003e0b0
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000dd40
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x68
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x140063010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, r9
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x48], r9
cmp qword [r8 + 0x10], 0
jne 0x14000dda5
cmp r8, r9
je 0x14000dda5
mov rdx, r9
cmp qword [r9 + 0x18], 8
jb 0x14000dd99
mov rdx, qword [r9]
mov r8, qword [r9 + 0x10]
mov rcx, rdi
call fcn.140005500
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x14000de17
xor r15b, r15b
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14000ddbe
mov rcx, qword [rdi]
mov rdx, r14
cmp qword [r14 + 0x18], 8
jb 0x14000ddcb
mov rdx, qword [r14]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov ebp, 1
mov r9d, ebp
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, r15b
test eax, eax
cmove ebx, ebp
mov rcx, r14
call fcn.140005440
nop
mov rcx, rdi
call fcn.140005440
nop
mov rcx, rsi
call fcn.140005440
movzx eax, bl
jmp 0x14000de33
mov rcx, r14
call fcn.140005440
nop
mov rcx, rdi
call fcn.140005440
nop
mov rcx, rsi
call fcn.140005440
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14003e0b0
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14000f960
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x140063010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, r8
mov rdi, rdx
test rdx, rdx
je 0x14000fa25
mov qword [rsp + 0x70], rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rbp
lea rdx, str.SoftwareAMDDUTrack
mov ebp, 1
mov dword [rsp + 0x40], 0x10
mov r9d, ebp
mov dword [rsp + 0x38], 3
xor r8d, r8d
mov qword [rsp + 0x30], 0
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000fa16
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000fa0b
cmp dword [rsp + 0x38], 3
movzx ebx, bl
cmove ebx, ebp
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x50]
movzx eax, bl
mov rbx, qword [rsp + 0x70]
jmp 0x14000fa27
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14003e0b0
add rsp, 0x58
pop rdi
pop rsi
ret