joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180038f94
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x18008a090]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, rdx
mov r8d, ecx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor edi, edi
mov rbx, rax
cmp rax, rdi
je 0x180039028
cmp rax, 0xffffffffffffffff
je 0x18003903c
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], di
call fcn.18004a190
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rbx
call sub.PSAPI.DLL_GetProcessImageFileNameW
cmp eax, edi
jbe 0x18003901b
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.180037e68
mov edi, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x18003903e
cmp rax, 0xffffffffffffffff
je 0x18003903c
cmp rax, rdi
je 0x18003903c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180047b20
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1800391e0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rsi, rdx
cmp rcx, rbx
je 0x180039245
mov eax, 0x5a4d
cmp ax, word [rcx]
jne 0x180039245
cmp dword [rcx + 0x3c], 0x400
jge 0x180039245
movsxd rdi, dword [rcx + 0x3c]
lea edx, [rbx + 8]
add rdi, rcx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp eax, ebx
jne 0x180039245
cmp dword [rdi], 0x4550
jne 0x180039245
cmp rsi, rbx
je 0x18003923e
mov eax, 0xf0
cmp word [rdi + 0x14], ax
sete bl
mov dword [rsi], ebx
mov eax, 1
jmp 0x180039247
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180039258
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
and qword [rsp + 0x30], 0
mov rax, rdx
xor r9d, r9d
mov rbx, rcx
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov rcx, rax
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x18003930a
lea rdx, [rbx + 0x18]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18003930a
cmp qword [rbx + 0x18], 0
je 0x18003930a
mov eax, 0x400000
cmp qword [rbx + 0x18], rax
jg 0x1800392c2
mov eax, dword [rbx + 0x18]
mov rcx, qword [rbx]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
mov dword [rbx + 0x20], eax
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbx + 8], rax
test rax, rax
je 0x18003930a
mov ecx, dword [rbx + 0x20]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rcx
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x10], rax
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x180039318
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x50
or qword [rax - 0x38], 0xffffffffffffffff
and qword [rax - 0x30], 0
and qword [rax - 0x28], 0
mov rdi, rdx
mov rbx, rcx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180039350
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.180039258
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x180039381
cmp qword [rsp + 0x38], 0x138
jbe 0x180039374
mov rdx, rdi
call fcn.1800391e0
mov rcx, qword [rsp + 0x30]
jmp 0x180039376
xor eax, eax
test eax, eax
je 0x180039381
mov ebx, 1
jmp 0x180039383
xor ebx, ebx
test rcx, rcx
je 0x18003938e
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x18003939e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x1800393af
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x1800393bc
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x50
xor ebx, ebx
mov r12, rdx
mov rsi, rcx
cmp rcx, rbx
je 0x180039499
cmp rdx, rbx
je 0x180039499
lea rdx, [rax + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
cmp eax, ebx
je 0x180039499
lea rcx, [rbp + rbp]
call fcn.180048868
mov rdi, rax
cmp rax, rbx
je 0x180039499
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.18004a190
mov r9, rdi
mov r8d, ebp
xor edx, edx
mov rcx, rsi
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, ebx
je 0x180039491
lea r9, [rsp + 0x98]
lea r8, [rsp + 0x40]
lea rdx, [0x180071824]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
cmp eax, ebx
je 0x180039491
mov r8, qword [rsp + 0x40]
movzx ecx, word [r8 + 0xe]
movzx edx, word [r8 + 8]
movzx eax, word [r8 + 0xc]
movzx r9d, word [r8 + 0xa]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
lea r8, str._d._d._d._d
mov rcx, r12
mov edx, 0x104
call qword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov ebx, 1
mov rcx, rdi
call fcn.180048828
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x180039e90
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
sub rsp, 0x38
lea rax, [r11 + 0x20]
mov r9d, 4
mov rcx, 0xffffffff80000002
mov dword [r11 - 0x10], r9d
mov qword [r11 - 0x18], rax
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
xor ecx, ecx
cmp eax, ecx
sete cl
mov eax, ecx
add rsp, 0x38
ret
Function at 0x180039ec8
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov rax, qword [0x18008a090]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor ebx, ebx
mov rdi, r9
mov r12, r8
mov rbp, rdx
mov rsi, rcx
cmp r9, rbx
je 0x180039f00
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x180039f02
mov eax, ebx
lea r9d, [rax + rax + 2]
mov r8, r12
mov rdx, rbp
mov dword [rsp + 0x28], r9d
mov r9d, 1
mov rcx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp eax, ebx
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180047b20
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x180039f48
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x18008a090]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor ebx, ebx
mov rdi, r9
mov rsi, r8
cmp r9, rbx
je 0x180039f7e
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x180039f80
mov eax, ebx
lea ecx, [rax + 1]
lea rdx, str.SoftwareWOW6432Nodeprojonepodlp_
mov r9d, 1
mov dword [rsp + 0x28], ecx
mov rcx, 0xffffffff80000002
mov r8, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHLWAPI.dll_SHSetValueA]
cmp eax, ebx
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180047b20
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x180039fd0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x868
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x18008a090]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov r12, r9
mov rdi, r8
mov rbp, rdx
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor r13d, r13d
mov dword [rsp + 0x38], r13d
mov qword [rcx + 0x20], 7
mov qword [rcx + 0x18], r13
mov word [rcx + 8], r13w
mov dword [rsp + 0x38], 1
mov rsi, r13
cmp r8, r13
je 0x18003a140
mov word [rsp + 0x50], r13w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rsp + 0x52]
call fcn.18004a190
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x34], r13d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x34]
mov r8, r12
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [rsp + 0x34], 1
je 0x18003a090
cmp dword [rsp + 0x34], 2
jne 0x18003a140
mov eax, dword [rsp + 0x30]
cmp eax, r13d
je 0x18003a140
cmp eax, 0x800
jbe 0x18003a0e6
lea rcx, [rax + 2]
call fcn.180048868
mov rsi, rax
mov r8d, dword [rsp + 0x30]
add r8, 2
xor edx, edx
mov rcx, rax
call fcn.18004a190
lea r11, [rsp + 0x30]
mov qword [rsp + 0x28], r11
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8, r12
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
jmp 0x18003a10c
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, r12
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea rdx, [rsp + 0x50]
cmp rsi, r13
cmovne rdx, rsi
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.180003158
cmp rsi, r13
je 0x18003a140
mov rcx, rsi
call fcn.180048828
mov rax, rbx
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.180047b20
add rsp, 0x868
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18003a164
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push r12
mov eax, 0x20a0
call fcn.18005d3b0
sub rsp, rax
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov qword [rsp + 0x20c8], rbx
mov qword [rsp + 0x20d8], rbp
mov rax, qword [0x18008a090]
xor rax, rsp
mov qword [rsp + 0x2090], rax
mov rdi, r8
mov rbx, rcx
mov qword [rsp + 0x80], rcx
xor ebp, ebp
mov dword [rsp + 0x44], ebp
lea ecx, [rbp + 8]
call fcn.180048210
cmp rax, rbp
je 0x18003a1ca
mov qword [rax], rbx
jmp 0x18003a1cd
mov rax, rbp
mov qword [rbx], rax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], rbp
mov qword [rbx + 0x28], rbp
mov dword [rsp + 0x44], 1
lea r12, vtable.RegHandleHolder.0
mov qword [rsp + 0x48], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop
mov rdi, qword [rsp + 0x50]
cmp rdi, rbp
je 0x18003a327
mov esi, ebp
mov word [rsp + 0x90], bp
xor edx, edx
mov r8d, 0x1ffe
lea rcx, [rsp + 0x92]
call fcn.18004a190
mov dword [rsp + 0x40], 0x1000
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x90]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, ebp
jne 0x18003a322
inc esi
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rbp
mov word [rsp + 0x60], bp
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x90]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x58]
call fcn.180003158
nop
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.180012808
nop
cmp qword [rsp + 0x78], 8
jb 0x18003a2dd
mov rcx, qword [rsp + 0x60]
call fcn.180048114
mov dword [rsp + 0x40], 0x1000
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x90]
mov edx, esi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, ebp
je 0x18003a27d
mov rdi, qword [rsp + 0x50]
jmp 0x18003a327
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x48], r12
cmp rdi, rbp
je 0x18003a33a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rsp + 0x2090]
xor rcx, rsp
call fcn.180047b20
lea r11, [rsp + 0x20a0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x18003a368
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x60
and qword [r11 - 0x28], 0
and qword [r11 - 0x18], 0
lea rax, [r11 - 0x18]
mov qword [r11 - 0x30], rax
and qword [r11 - 0x38], 0
mov edi, r9d
mov rsi, r8
xor r9d, r9d
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x18003a3f7
mov eax, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x50]
mov r9d, edi
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret

Function at 0x18003a440
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
push rbx
sub rsp, 0x30
xor ebx, ebx
lea rax, [r11 + 0x10]
lea r9, [r11 + 0x20]
mov qword [r11 - 0x10], rax
lea r8, str.6B335AF6_D799_4236_83F6_35CBFC841448
lea rdx, str.SoftwareWOW6432Nodeprojonepodlp_smpcache_
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x18], rbx
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x48], ebx
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp eax, ebx
sete al
add rsp, 0x30
pop rbx
ret

Function at 0x18003a48c
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x18003a521
lea r8d, [rdi + 0x10]
lea rdx, str.gxdte
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x18003a4dc
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
test rbx, rbx
je 0x18003a505
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x18003a500
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x18003a505
mov edi, 1
test rsi, rsi
je 0x18003a513
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x18003a521
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x18003a5e4
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor esi, esi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x18003a662
lea rdx, str.gxdte
mov r8d, 0x10000
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x18003a636
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
test rbx, rbx
je 0x18003a646
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov esi, eax
test rdi, rdi
je 0x18003a654
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x18003a662
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18003a674
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor edi, edi
xor edx, edx
xor ecx, ecx
lea r8d, [rdi + 4]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x18003a716
lea r8d, [rdi + 4]
lea rdx, str.gxdte
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x18003a6c2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
test rbx, rbx
je 0x18003a6fa
and dword [rsp + 0x20], edi
xor edx, edx
lea rcx, [rsp + 0x24]
lea r8d, [rdx + 0x18]
call fcn.18004a190
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x18003a6fa
cmp dword [rsp + 0x24], 4
mov eax, 1
cmove edi, eax
test rsi, rsi
je 0x18003a708
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x18003a716
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov eax, edi
add rsp, 0x40
pop rdi
ret
Function at 0x18003ae28
Capabilities:
Resolve dns

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbx
push rbp
push rdi
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rdi, rdx
mov rbx, rcx
and dword [rax + 0x18], 0
mov ecx, 8
call fcn.180048210
test rax, rax
je 0x18003ae5d
mov qword [rax], rbx
jmp 0x18003ae5f
xor eax, eax
mov qword [rbx], rax
and qword [rbx + 0x18], 0
and qword [rbx + 0x20], 0
and qword [rbx + 0x28], 0
mov ebp, 1
mov dword [rsp + 0x90], ebp
test rdi, rdi
je 0x18003af1c
and qword [rsp + 0x98], 0
mov edx, ebp
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [rbp + 7]
mov rcx, rdi
call sub.DNSAPI.dll_DnsQuery_A
test eax, eax
jne 0x18003af1c
mov rcx, qword [rsp + 0x98]
mov rax, rcx
test rcx, rcx
je 0x18003af15
cmp word [rax + 0x10], bp
je 0x18003aed7
mov rax, qword [rax]
test rax, rax
jne 0x18003aec7
jmp 0x18003af15
mov edx, dword [rax + 0x20]
lea rcx, [rsp + 0x38]
call fcn.1800387a8
nop
mov rdx, rax
mov rcx, rbx
call fcn.1800028e8
nop
cmp qword [rsp + 0x58], 0x10
jb 0x18003af0d
mov rcx, qword [rsp + 0x40]
call fcn.180048114
mov rcx, qword [rsp + 0x98]
jmp 0x18003af15
mov rcx, qword [rsp + 0x98]
mov edx, ebp
call sub.DNSAPI.dll_DnsFree
mov rax, rbx
add rsp, 0x60
pop rdi
pop rbp
pop rbx
ret

Function at 0x18003af28
Capabilities:
Send icmp echo request

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x4a0
mov rax, qword [0x18008a090]
xor rax, rsp
mov qword [rsp + 0x490], rax
xor ebx, ebx
mov ebp, r8d
mov rsi, rdx
mov rdi, rcx
cmp rcx, rbx
jne 0x18003af60
xor eax, eax
jmp 0x18003b078
cmp rdx, rbx
jne 0x18003af71
lea rsi, str.abcdefghijklmnopqrstuvwabcdefghi
mov ebp, 0x20
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], ebx
call fcn.18003804c
cmp eax, ebx
jne 0x18003afe9
lea rcx, [rsp + 0x68]
mov rdx, rdi
call fcn.18003ad1c
cmp qword [rsp + 0x80], rbx
jne 0x18003afb1
cmp qword [rsp + 0x88], 0x10
jb 0x18003af59
mov rcx, qword [rsp + 0x70]
call fcn.180048114
jmp 0x18003af59
cmp qword [rsp + 0x88], 0x10
lea rcx, [rsp + 0x70]
cmovae rcx, qword [rsp + 0x70]
cmp rcx, rbx
je 0x18003afd4
lea rdx, [rsp + 0x60]
call fcn.18003804c
cmp qword [rsp + 0x88], 0x10
jb 0x18003afe9
mov rcx, qword [rsp + 0x70]
call fcn.180048114
call sub.IPHLPAPI.DLL_IcmpCreateFile
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18003af59
lea rcx, [rsp + 0x91]
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x90], bl
call fcn.18004a190
mov dword [rsp + 0x50], 0x7d0
mov dword [rsp + 0x48], 0x400
lea rax, [rsp + 0x90]
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x60]
mov qword [rsp + 0x38], rbx
mov word [rsp + 0x30], bp
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
call sub.IPHLPAPI.DLL_IcmpSendEcho2
cmp eax, ebx
je 0x18003b06e
cmp dword [rsp + 0x94], ebx
mov eax, 1
cmove ebx, eax
mov rcx, rdi
call sub.IPHLPAPI.DLL_IcmpCloseHandle
mov eax, ebx
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.180047b20
mov rbx, qword [rsp + 0x4d8]
add rsp, 0x4a0
pop rdi
pop rsi
pop rbp
ret
Function at 0x18003d970
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
mov eax, 0x1038
call fcn.18005d3b0
sub rsp, rax
mov rax, qword [0x18008a090]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov r8, rcx
lea r9, [rsp + 0x1048]
lea rcx, [rsp + 0x20]
mov edx, 0x800
call qword [sym.imp.SHLWAPI.dll_wvnsprintfW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.180047b20
add rsp, 0x1038
ret

Function at 0x18003d9e0
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
mov eax, 0x1880
call fcn.18005d3b0
sub rsp, rax
mov rax, qword [0x18008a090]
xor rax, rsp
mov qword [rsp + 0x1870], rax
lea rax, [rsp + 0x38]
mov rbx, rcx
mov r8, rcx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
lea rdx, str.SoftwareWOW6432Nodeprojonepodlp_smpcache_
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x38], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x18003da5b
cmp dword [rsp + 0x34], 4
jne 0x18003da5b
mov eax, dword [rsp + 0x30]
jmp 0x18003da5d
xor eax, eax
test eax, eax
je 0x18003db3f
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x7fe
call fcn.18004a190
mov r11d, 0x5b
lea rcx, [rsp + 0x70]
mov r8d, 0x400
mov rdx, rbx
mov word [rsp + 0x70], r11w
call qword [sym.imp.SHLWAPI.dll_StrNCatW]
lea rdx, [0x180071e28]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x40]
mov edx, 1
call fcn.1800383c8
cmp qword [rax + 0x20], 8
jb 0x18003dac5
mov rdx, qword [rax + 8]
jmp 0x18003dac9
lea rdx, [rax + 8]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
cmp qword [rsp + 0x60], 8
jb 0x18003dae6
mov rcx, qword [rsp + 0x48]
call fcn.180048114
lea rdx, [0x180071e30]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, qword [rsp + 0x1898]
lea rcx, [rsp + 0x70]
mov r8d, 0x400
call qword [sym.imp.SHLWAPI.dll_StrNCatW]
lea r9, [rsp + 0x18a0]
lea r8, [rsp + 0x70]
lea rcx, [rsp + 0x870]
mov edx, 0x800
call qword [sym.imp.SHLWAPI.dll_wvnsprintfW]
lea rcx, [rsp + 0x870]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x1870]
xor rcx, rsp
call fcn.180047b20
add rsp, 0x1880
pop rbx
ret
Function at 0x18003e980
Capabilities:
Check if file exists
Check os version

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x380
mov rax, qword [0x18008a090]
xor rax, rsp
mov qword [rsp + 0x370], rax
xor edi, edi
lea rcx, str..gxdte_cd
xor r9d, r9d
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 3]
mov edx, 0xc0000000
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x18003eb0f
lea rcx, [rsp + 0x162]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x160], di
call fcn.18004a190
mov ebx, 0x11c
lea rcx, [rsp + 0x40]
mov r8, rbx
xor edx, edx
call fcn.18004a190
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, edi
je 0x18003ea35
lea rcx, [rsp + 0x40]
call fcn.180037a58
cmp eax, edi
je 0x18003ea35
cmp dword [rsp + 0x44], 6
lea rbx, str.gxdte64_win7.sys
je 0x18003ea3c
lea rbx, str.gxdte64.sys
lea r8, [rsp + 0x160]
mov r9d, 0x104
mov rdx, rbx
xor ecx, ecx
call fcn.180037814
lea rcx, [rsp + 0x160]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, edi
jne 0x18003ea95
cmp word [0x180095590], di
je 0x18003ea95
lea rdx, [0x180095590]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0x160]
mov rdx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rbx, str.gxdte
mov rcx, rbx
call fcn.18003a534
lea r9, str.gxdte_driver
lea r8, str.gxdte64.sys
cmp eax, edi
mov eax, 1
lea rdx, [rsp + 0x160]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov rcx, rbx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 0x22343
call fcn.180045ee4
mov rcx, rbx
call fcn.18003a48c
xor r9d, r9d
mov qword [rsp + 0x30], rdi
lea rcx, str..gxdte_cd
lea r8d, [r9 + 3]
mov edx, 0xc0000000
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.180047b20
mov rbx, qword [rsp + 0x390]
add rsp, 0x380
pop rdi
ret

Function at 0x18003edcc
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
cmp qword [rcx + 0x20], 0x10
jb 0x18003eddd
mov r8, qword [rcx + 8]
jmp 0x18003ede1
lea r8, [rcx + 8]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x48]
lea rdx, str.SoftwareWOW6432Nodeprojonepodlpkeyrule_secClass_
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], 4
call qword [sym.imp.SHLWAPI.dll_SHGetValueA]
xor ecx, ecx
cmp eax, ecx
jne 0x18003ee27
cmp dword [rsp + 0x48], 4
jne 0x18003ee27
mov ecx, dword [rsp + 0x50]
mov eax, ecx
add rsp, 0x38
ret

Function at 0x1800415b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
or r11d, 0xffffffff
mov r9d, edx
mov r10, rcx
mov eax, r11d
test edx, edx
je 0x1800415e8
movzx r8d, byte [r10]
mov edx, eax
mov ecx, eax
xor r8, rdx
shr ecx, 8
inc r10
movzx edx, r8b
lea r8, [0x18008ba40]
mov eax, dword [r8 + rdx*4]
xor eax, ecx
add r9d, r11d
jne 0x1800415c1
not eax
ret