joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1149c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x140
lea rbx, [rcx + 0x10]
mov rdi, rcx
mov dword [rcx], 0xa
mov qword [rcx + 8], rbx
lea rcx, [rsp + 0x20]
mov r8d, 0x80
call fcn.000111dc
test eax, eax
jne 0x115c1
mov eax, dword [rsp + 0x20]
mov esi, 4
shl eax, 2
movsxd rcx, eax
mov rax, qword [rsp + 0x28]
lea r9, [rax + rcx*4]
mov eax, dword [r9]
add r9, rsi
mov dword [rbx], eax
mov eax, dword [r9]
add rbx, rsi
mov dword [rbx], eax
add r9, rsi
add rbx, rsi
mov eax, dword [r9]
add r9, rsi
mov dword [rbx], eax
mov eax, dword [r9]
add rbx, rsi
mov dword [rbx], eax
mov r10d, dword [rdi]
add rbx, rsi
dec r10d
sub r9, 0x1c
test r10d, r10d
jle 0x1159f
lea rdi, [0x00010000]
mov r11, rsi
movzx eax, byte [r9]
movzx edx, byte [rax + rdi + 0x35c0]
movzx eax, byte [r9 + 3]
movzx ecx, byte [rax + rdi + 0x35c0]
movzx eax, byte [r9 + 2]
mov r8d, dword [rdi + rdx*4 + 0x42f0]
xor r8d, dword [rdi + rcx*4 + 0x36c0]
movzx ecx, byte [rax + rdi + 0x35c0]
movzx eax, byte [r9 + 1]
xor r8d, dword [rdi + rcx*4 + 0x3ac0]
movzx ecx, byte [rax + rdi + 0x35c0]
add r9, rsi
xor r8d, dword [rdi + rcx*4 + 0x3ef0]
mov dword [rbx], r8d
add rbx, rsi
sub r11, 1
jne 0x11531
dec r10d
sub r9, 0x20
test r10d, r10d
jg 0x1152e
mov eax, dword [r9]
add r9, rsi
mov dword [rbx], eax
mov eax, dword [r9]
add rbx, rsi
mov dword [rbx], eax
mov eax, dword [r9 + rsi]
mov dword [rbx + rsi], eax
mov eax, dword [r9 + rsi + 4]
mov dword [rbx + rsi + 4], eax
xor eax, eax
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x166c4
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x4b0
mov rax, qword [0x00013200]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov rbx, rcx
mov ecx, dword [0x000157f4]
mov rbp, r8
mov esi, edx
cmp ecx, 0x10
jae 0x1688a
xor r13d, r13d
lea r12, [0x00013580]
lea edi, [r13 + 1]
mov edx, r13d
cmp ecx, r13d
jbe 0x16730
mov r8d, dword [rbx + 8]
mov rax, r12
cmp r8d, dword [rax]
je 0x1688a
add edx, edi
add rax, 4
cmp edx, ecx
jb 0x1671d
mov ecx, dword [rbx + 8]
lea rdx, [rsp + 0x50]
call fcn.00017db4
cmp eax, r13d
jl 0x1688f
mov edx, dword [0x000157f4]
mov eax, dword [rbx + 4]
lea r8, [0x00013540]
mov dword [r8 + rdx*4], eax
mov eax, dword [rbx + 8]
mov dword [r12 + rdx*4], eax
add edx, edi
lea r12, [rsi - 0xc]
shr r12, 1
mov dword [0x000157f4], edx
lea eax, [r12 - 1]
cmp r13w, word [rbx + rax*2 + 0xc]
jne 0x1688a
lea eax, [r12 - 2]
cmp r13w, word [rbx + rax*2 + 0xc]
jne 0x1688a
call qword [sym.imp.ntoskrnl.exe_KeEnterCriticalRegion]
lea rcx, [rbp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExAcquireFastMutex]
lea r11, [rbp + 0x30]
mov rax, qword [r11]
cmp rax, r11
je 0x167c3
mov ecx, dword [rbx + 4]
cmp ecx, dword [rax - 8]
je 0x167c0
mov rax, qword [rax]
cmp rax, r11
jne 0x167b1
jmp 0x167c3
mov dil, r13b
lea rcx, [rbp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ExReleaseFastMutex]
call qword [sym.imp.ntoskrnl.exe_KeLeaveCriticalRegion]
cmp dil, r13b
je 0x1688a
mov rcx, qword [rbp]
lea rax, [rsp + 0x40]
mov r9d, 0x2a
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov edx, 0x4a0
mov byte [rsp + 0x28], r13b
add r12d, r12d
mov dword [rsp + 0x20], 0x180
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
cmp eax, r13d
mov edi, eax
jl 0x1688f
mov rax, qword [rsp + 0x40]
mov r8d, 0x62735556
mov rdx, r12
mov rsi, qword [rax + 0x40]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsi + 0x28], rax
cmp rax, r13
jne 0x1684e
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, 0xc000009a
jmp 0x1688f
lea rdx, [rbx + 0xc]
mov r8, r12
mov rcx, rax
call fcn.000127a0
mov r11d, dword [rbx + 4]
mov rdx, rbp
mov dword [rsi + 0x30], r11d
mov rcx, qword [rsp + 0x40]
call fcn.00016610
lea rcx, [rsi + 0x50]
lea rdx, [rsp + 0x50]
mov r8d, 0x44d
call fcn.000127a0
mov eax, edi
jmp 0x1688f
mov eax, 0xc000000d
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.000125a0
mov rbx, qword [rsp + 0x4f8]
add rsp, 0x4b0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001070
Capabilities:
Create process on windows
Create process suspended
Create thread
Inject thread
Resume thread
Use process replacement

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xf0
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor esi, esi
lea r8, [0x140001290]
mov qword [rsp + 0x28], rsi
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.cracked_in_4_seconds__stop_buying_skidded_clients._n
xorps xmm0, xmm0
mov dword [rsp + 0x70], WSAGetLastError
xor eax, eax
movups xmmword [rsp + 0x74], xmm0
mov dword [rsp + 0xd4], eax
movups xmmword [rsp + 0x84], xmm0
mov qword [rsp + 0x60], rax
movups xmmword [rsp + 0x94], xmm0
movups xmmword [rsp + 0xa4], xmm0
movups xmmword [rsp + 0xb4], xmm0
movups xmmword [rsp + 0xc4], xmm0
movups xmmword [rsp + 0x50], xmm0
call fcn.140001570
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rcx, str.undisputed.exe
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor edx, edx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x14000125d
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140001206
cmp rax, 0xffffffffffffffff
je 0x1400011fd
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
lea r9d, [rsi + 8]
mov qword [rsp + 0x20], rsi
mov rdx, rax
lea r8, str.dll.dll
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor r8d, r8d
mov qword [rsp + 0x30], rsi
xor edx, edx
mov dword [rsp + 0x28], esi
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
je 0x1400011fd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x30
lea r8, str.cracked
lea rdx, str.cracked_w__3_by_restartfu
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001250
xor eax, eax
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140001790
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140002064
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14000719c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021170]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400205b8]
jmp 0x140007248
cmp qword [rbx + 0x18], rdi
je 0x14000724f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000723f
jmp 0x140007269
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400205b8]
call fcn.140011c68
lea rcx, [0x140021170]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
and al, 0xad
fdivr st(7)
sub ah, cl
cli
jmp qword [rax]
invalid
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add eax, 0xe4c1107
adc al, 0x31
fst dword [0x160035133]
test dword [rsi - 0x103dd901], ebp
jmp [rax]
Function at 0x18009a50c
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 0x18009a53c
xor eax, eax
jmp 0x18009a5ff
mov rbp, rbx
cmp word [rax], si
je 0x18009a561
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18009a548
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18009a544
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.18009a42c
movsxd r14, eax
test eax, eax
jne 0x18009a59f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18009a535
mov rcx, r14
call fcn.180094b58
mov rdi, rax
test rax, rax
jne 0x18009a5b8
xor ecx, ecx
call fcn.180094b1c
jmp 0x18009a594
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.18009a42c
test eax, eax
jne 0x18009a5e9
mov rcx, rdi
call fcn.180094b1c
jmp 0x18009a5f3
xor ecx, ecx
call fcn.180094b1c
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 0x18009c980
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.180081b30
sub rsp, rax
mov rax, qword [0x1800bb380]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180098968
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18009c9cf
mov rax, rbp
jmp 0x18009cad7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xbd480]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18009daa0
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xbd480]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18009cad3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18009cad3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18009daa0
test rax, rax
js 0x18009cad3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18009cad3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18009cac5
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18009cac5
cmp byte [rcx], 0xd
jne 0x18009caab
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18009caba
cmp byte [rcx + 1], 0xa
jne 0x18009caba
inc rcx
jmp 0x18009caba
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xbbce0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18009ca8d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18009cad7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180081b90
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x18009ccf8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18009cd0e
mov al, 1
jmp 0x18009cd6e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18009cd1f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18009cd6c
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800a38b8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18009cd6c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18009cd6c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18009cd6c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18009cd6e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18009ce40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1800bd480]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x18009ce97
cmp word [rdx], r13w
jne 0x18009ce97
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18009ce9c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18009cfc1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18009cfe2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18009ced5
mov rdx, r9
mov word [rbx], cx
jmp 0x18009cefc
cmp r9, r8
jae 0x18009cf0c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x18009ceb6
jmp 0x18009cfc1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18009cfb6
cmp dword [rsp + 0x80], esi
je 0x18009cfb6
lea r8, [0x1800bd480]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18009cf8e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18009cf5e
mov word [rbx], r13w
jmp 0x18009cfbe
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x18009cf6b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18009cfbe
cmp word [rsp + 0x70], r13w
jne 0x18009cf9b
cmp rbx, r14
je 0x18009cf58
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18009daa8
cmp word [rsp + 0x70], r13w
je 0x18009cfc1
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1800bd480]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18009cfbb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18009cfc1
Function at 0x1800a1a98
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.180094ffc
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1800a1b39
cmp ebx, dword [rsp + 0x30]
je 0x1800a1b32
test esi, esi
je 0x1800a1b32
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1800a1b0d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1800a1b1a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1800a1af7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1800a1b1e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1800a1b3b
mov eax, 1
jmp 0x1800a1b3b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140001000
Capabilities:
Create process on windows
Self delete
Terminate process

Disassembly:
push rbx
sub rsp, 0x460
mov rax, qword [0x140043468]
xor rax, rsp
mov qword [rsp + 0x450], rax
lea rcx, [rsp + 0x32]
xor ebx, ebx
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], bx
call fcn.14001dd20
lea rcx, [rsp + 0x242]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x240], bx
call fcn.14001dd20
lea rcx, str.DeleteAthService_Enter___n
call fcn.14000f070
lea rdx, [rsp + 0x240]
mov r8d, 0x102
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea r8, [0x140030ed8]
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.14001af54
lea r8, [rsp + 0x240]
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.14001aecc
lea r8, [0x140030ed8]
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.14001aecc
lea rdx, [rsp + 0x30]
lea rcx, str.DeleteAthService__The_szFilename_is:__s_n
call fcn.14000f070
lea r9, str.uninstall
lea r8, [rsp + 0x30]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1400020a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x140043468]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor eax, eax
xor ebx, ebx
lea rcx, str.Enter_NeedStoreAddr____n
mov dword [rbp - 0x29], ebx
mov word [rbp - 0x19], bx
mov qword [rbp - 0x17], rax
mov qword [rbp - 0xf], rax
mov qword [rbp - 7], rax
mov word [rbp + 7], bx
mov qword [rbp + 9], rax
mov qword [rbp + 0x11], rax
mov qword [rbp + 0x19], rax
mov qword [rbp + 0x21], rax
mov qword [rbp + 0x29], rax
mov qword [rbp + 0x31], rax
mov qword [rbp + 0x39], rax
mov word [rbp + 0x41], ax
call fcn.14000f070
lea r11, [0x1400460e8]
test r11, r11
jne 0x140002124
lea rcx, str.NeedStoreAddr__invalid_parameter_n
call fcn.14000f070
jmp 0x1400022a8
movzx ecx, byte [0x1400460ec]
movzx eax, byte [0x1400460ed]
movzx r10d, byte [0x1400460eb]
movzx r9d, byte [0x1400460ea]
movzx r8d, byte [0x1400460e9]
movzx edx, byte [0x1400460e8]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
lea rcx, str.NeedStoreAddr_UEFI_Addr_is__x___x___x___x___x___x_n
mov dword [rsp + 0x20], r10d
call fcn.14000f070
lea r11, [rbp - 0x21]
lea rdx, str.SystemCurrentControlSetSERVICESBtFilterParameters
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000229a
mov rcx, qword [rbp - 0x21]
lea rax, [rbp - 0x29]
lea rdx, str.BtAddress
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x140002264
mov rcx, qword [rbp - 0x21]
lea rax, [rbp - 0x29]
lea rdx, str.BtAddress
mov qword [rsp + 0x28], rax
lea rax, [rbp + 7]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp - 0x21]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, dword [rbp - 0x29]
lea rdx, [rbp + 7]
lea rcx, str.NeedStoreAddr__get_registry_addr_is__s__len_is__d_n
call fcn.14000f070
lea rcx, [rbp - 0x19]
call fcn.140001eb0
test al, al
je 0x140002256
lea rax, [rbp + 7]
lea r8, [rbp - 0x19]
sub r8, rax
nop dword [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140002244
add rax, 2
test ecx, ecx
jne 0x140002230
test edx, edx
jne 0x14000227c
lea rcx, str.NeedStoreAddr__same_addr__dont_store_n
call fcn.14000f070
jmp 0x1400022a8
lea rcx, str.NeedStoreAddr__failed_to_conver_addr__dont_store_n
call fcn.14000f070
jmp 0x1400022a8
lea rcx, str.NeedStoreAddr__failed_to_get_value__d___store_n
mov edx, eax
call fcn.14000f070
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.NeedStoreAddr__store_BD_addr_n
mov edx, ebx
call fcn.14000f070
lea rcx, str.Leave_NeedStoreAddr____n
call fcn.14000f070
mov al, 1
jmp 0x1400022aa
lea rcx, str.NeedStoreAddr__failed_to_open_key__d___dont_store_n
mov edx, eax
call fcn.14000f070
xor al, al
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14001a650
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rbp
ret
Function at 0x1400022d0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140043468]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor eax, eax
lea rcx, str.SetRegVal_AddrStr__Enter___n
mov word [rsp + 0x48], ax
mov qword [rsp + 0x4a], rax
mov qword [rsp + 0x52], rax
mov qword [rsp + 0x5a], rax
call fcn.14000f070
movzx ecx, byte [0x1400460eb]
movzx r11d, byte [0x1400460ed]
movzx eax, byte [0x1400460ec]
movzx r9d, byte [0x1400460ea]
movzx r8d, byte [0x1400460e9]
movzx edx, byte [0x1400460e8]
lea rbx, str.BtAddress
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rcx, str.SetRegVal_AddrStr__addr_value__x__x__x__x__x__x___name__s__n
call fcn.14000f070
lea rcx, [rsp + 0x48]
call fcn.140001eb0
test al, al
jne 0x140002378
lea rcx, str.SetRegVal_AddrStr__UEFIAddr2RegStr_fail_n
call fcn.14000f070
jmp 0x140002423
lea rax, [rsp + 0x40]
lea rdx, str.SystemCurrentControlSetSERVICESBtFilterParameters
mov r9d, 2
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002415
lea rcx, str.SetRegVal_AddrStr__open__n
call fcn.14000f070
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov r9d, 1
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x28], 0x34
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x1400023f4
mov edx, ebx
lea rcx, str.SetRegVal_AddrStr__set_value_error__d__n
jmp 0x14000241e
lea rcx, str.SetRegVal_AddrStr__Leave___n
call fcn.14000f070
mov al, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14001a650
add rsp, 0x70
pop rbx
ret
mov edx, eax
lea rcx, str.SetRegVal_AddrStr__open_error__d__n
call fcn.14000f070
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14001a650
add rsp, 0x70
pop rbx
ret