joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180083ef0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x70
mov rdi, rsp
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x80]
mov eax, dword [rsp + 0x80]
imul rax, rax, 0x38
mov rcx, qword [0x18019f210]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], 5
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x180083f74
mov rax, qword [rsp + 0x50]
sub rax, 5
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x34]
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180083f9d
mov eax, 0xa
jmp 0x1800840d7
cmp dword [rsp + 0x88], 0
je 0x18008400b
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov byte [rax], 0xe9
mov rax, qword [rsp + 0x50]
add rax, 5
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x58]
mov dword [rcx + 1], eax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x180084009
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov byte [rax], 0xeb
mov rax, qword [rsp + 0x60]
mov byte [rax + 1], 0xf9
jmp 0x180084057
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x18008403b
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 7
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call fcn.1800b8620
jmp 0x180084057
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 5
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call fcn.1800b8620
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 1
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfd
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 2
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfb
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1800c1c70]
call fcn.1800875a4
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x1800855c0
Capabilities:
Check for software breakpoints

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x10
mov rdi, rsp
mov ecx, 4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x20]
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
test eax, eax
je 0x18008562e
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0x90
je 0x18008562e
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0xcc
je 0x18008562e
xor eax, eax
jmp 0x180085675
mov dword [rsp], 1
jmp 0x18008563f
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp], eax
jae 0x180085670
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x20]
movzx ecx, byte [rdx + rcx]
cmp eax, ecx
je 0x18008566e
xor eax, eax
jmp 0x180085675
jmp 0x180085637
mov eax, 1
add rsp, 0x10
pop rdi
ret
Function at 0x18009a7ac
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.180089a30
sub rsp, rax
mov rax, qword [0x18013b3c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800a2ddc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18009a7fb
mov rax, rbp
jmp 0x18009a903
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 + 0x19d410]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800a8a60
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x19d410]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18009a8ff
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 0x18009a8ff
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800a8a60
test rax, rax
js 0x18009a8ff
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18009a8ff
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18009a8f1
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18009a8f1
cmp byte [rcx], 0xd
jne 0x18009a8d7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18009a8e6
cmp byte [rcx + 1], 0xa
jne 0x18009a8e6
inc rcx
jmp 0x18009a8e6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x13b820]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18009a8b9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18009a903
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180086980
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 0x1800a5a54
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800a5a6a
mov al, 1
jmp 0x1800a5aca
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800a5a7b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800a5ac8
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800b0ee8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800a5ac8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800a5ac8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800a5ac8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800a5aca
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800a7e00
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, [0x18019d410]
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 0x1800a7e57
cmp word [rdx], r13w
jne 0x1800a7e57
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1800a7e5c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1800a7f81
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800a7fa2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800a7e95
mov rdx, r9
mov word [rbx], cx
jmp 0x1800a7ebc
cmp r9, r8
jae 0x1800a7ecc
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 0x1800a7e76
jmp 0x1800a7f81
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 0x1800a7f76
cmp dword [rsp + 0x80], esi
je 0x1800a7f76
lea r8, [0x18019d410]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1800a7f4e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1800a7f1e
mov word [rbx], r13w
jmp 0x1800a7f7e
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 0x1800a7f2b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800a7f7e
cmp word [rsp + 0x70], r13w
jne 0x1800a7f5b
cmp rbx, r14
je 0x1800a7f18
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800a8a68
cmp word [rsp + 0x70], r13w
je 0x1800a7f81
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, [0x18019d410]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800a7f7b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1800a7f81
Function at 0x1800ab6dc
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 0x1800ab70c
xor eax, eax
jmp 0x1800ab7cf
mov rbp, rbx
cmp word [rax], si
je 0x1800ab731
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800ab718
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800ab714
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.1800a9410
movsxd r14, eax
test eax, eax
jne 0x1800ab76f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800ab705
mov rcx, r14
call fcn.1800a1adc
mov rdi, rax
test rax, rax
jne 0x1800ab788
xor ecx, ecx
call fcn.1800a1aa0
jmp 0x1800ab764
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.1800a9410
test eax, eax
jne 0x1800ab7b9
mov rcx, rdi
call fcn.1800a1aa0
jmp 0x1800ab7c3
xor ecx, ecx
call fcn.1800a1aa0
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 0x1800b0688
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.1800a34b8
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 0x1800b0729
cmp ebx, dword [rsp + 0x30]
je 0x1800b0722
test esi, esi
je 0x1800b0722
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1800b06fd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1800b070a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1800b06e7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1800b070e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1800b072b
mov eax, 1
jmp 0x1800b072b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800b34f8
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1800a8a68
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800a8a68
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800b3648
cmp rax, 0xffffffffffffffff
je 0x1800b3648
xor edi, edi
test rbp, rbp
jle 0x1800b35f3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800a5c68
mov rbx, rax
test rax, rax
jne 0x1800b3580
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800b35e9
mov edx, 0x8000
mov ecx, r14d
call fcn.1800b337c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1800a67c0
cmp eax, 0xffffffff
je 0x1800b35c9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800b3590
mov edx, r15d
mov ecx, r14d
call fcn.1800b337c
jmp 0x1800b35e9
cmp byte [rsi + 0x38], dil
je 0x1800b35e0
cmp dword [rsi + 0x34], 5
jne 0x1800b35e0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800b35e9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800a1aa0
jmp 0x1800b365c
jns 0x1800b365c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800a8a68
cmp rax, 0xffffffffffffffff
jne 0x1800b3614
cmp byte [rsi + 0x30], dil
je 0x1800b365c
mov edi, dword [rsi + 0x2c]
jmp 0x1800b365c
mov ecx, r14d
call fcn.1800b0ee8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800b365c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1800b365c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800b3655
mov eax, dword [rsi + 0x2c]
jmp 0x1800b365a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800a8a68
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1800b3d70
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800b3d98
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800b3d98
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14004b3a0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14004b3ad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14004b3bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14004b3a5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14004b3d5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14004b3c2
sub eax, 3
jb 0x14004b3ef
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14004b426
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14004b416
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14004b414
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14004b403
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14004b362
jmp 0x14004b3ad
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x29000
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14004b472
cmp rsi, rcx
jae 0x14004b47a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14004b459
cmp al, 0x8f
ja 0x14004b459
cmp byte [rsi - 2], 0xf
je 0x14004b45f
sub al, 0xe8
cmp al, 1
ja 0x14004b443
cmp rsi, rcx
jae 0x14004b47a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14004b449
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14004b47a
lodsb al, byte [rsi]
jmp 0x14004b459
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x49000]
mov eax, dword [rdi]
or eax, eax
je 0x14004b4e3
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x4b56c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14004b487
jns 0x14004b4bc
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14004b4c6
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14004b4dd
mov qword [rbx], rax
add rbx, 8
jmp 0x14004b4a7
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14004b51d
cmp al, 0xef
ja 0x14004b50f
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14004b4ef
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14004b4fe
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14004b571
sub rsp, 0xffffffffffffff80
jmp 0x14000be20
Function at 0x140081e9c
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x290
mov rax, qword [0x18003e090]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, rcx
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x70], 0
call fcn.1800157f0
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x1800029ca
call qword [sym.imp.GDI32.dll_DeleteObject]
lea rax, [0x18002fd18]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x68], rax
xor eax, eax
xor edx, edx
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], eax
lea ecx, [rax + 0xc]
mov dword [rsp + 0x20], 0x190
call qword [sym.imp.GDI32.dll_CreateFontW]
lea rcx, str.Shell_TrayWnd
xor edx, edx
mov qword [rbx + 0x28], rax
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
mov rsi, rax
je 0x180002b53
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x2a8], rdi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
mov edi, eax
je 0x180002b4b
call fcn.180007eb4
lea rdx, [0x1800028e0]
mov r9d, edi
mov r8, qword [rax + 0x10]
mov ecx, 4
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
test rax, rax
mov qword [rbx + 8], rax
je 0x180002b4b
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
lea edx, [r9 + 5]
call qword [sym.imp.USER32.dll_PostMessageW]
mov edx, 5
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindow]
test rax, rax
mov rbx, rax
je 0x180002b4b
nop
nop
nop
lea rdx, [rsp + 0x70]
mov r8d, 0x104
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetClassNameW]
lea rsi, [rsp + 0x70]
lea rdi, str.TrayNotifyWnd
mov ecx, 0xe
repe cmpsw word [rsi], word [rdi]
je 0x180002af2
mov edx, 2
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindow]
test rax, rax
mov rbx, rax
jne 0x180002ab0
jmp 0x180002b4b
mov edx, 5
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindow]
test rax, rax
mov rbx, rax
je 0x180002b4b
nop
nop
lea rdx, [rsp + 0x70]
mov r8d, 0x104
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetClassNameW]
lea rsi, [rsp + 0x70]
lea rdi, str.TrayClockWClass
mov ecx, 0x10
repe cmpsw word [rsi], word [rdi]
jne 0x180002b10
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdi, qword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1800157c0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x290
pop rsi
ret
Function at 0x180002b80
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x850
mov rax, qword [0x18003e090]
xor rax, rsp
mov qword [rsp + 0x840], rax
lea rcx, [rsp + 0x452]
xor edx, edx
mov r8d, 0x3e6
mov word [rsp + 0x450], 0
call fcn.1800157f0
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], 0
call fcn.1800157f0
lea rcx, [rsp + 0x242]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x240], 0
call fcn.1800157f0
lea rdx, [rsp + 0x240]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r8, [rsp + 0x240]
lea rdx, str._s_service_log.txt
lea rcx, [rsp + 0x30]
call fcn.180015960
mov r8, qword [rsp + 0x870]
lea r9, [rsp + 0x878]
lea rcx, [rsp + 0x450]
mov edx, 0x1f3
call fcn.1800160e0
lea rcx, [rsp + 0x30]
mov word [rsp + 0x836], 0
xor edi, edi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea rdx, [0x18002feb0]
test eax, eax
lea rcx, [rsp + 0x30]
mov esi, 1
cmovne edi, esi
call fcn.180015fd0
test rax, rax
mov rbx, rax
je 0x180002d23
test edi, edi
jne 0x180002cb2
lea r8d, [rsi + 1]
lea rcx, [rsp + 0x24]
mov r9, rax
mov rdx, rsi
mov word [rsp + 0x24], 0xfeff
call fcn.180015da0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x450]
repne scasw ax, word [rdi]
mov r9, rbx
mov rdx, rsi
not rcx
sub rcx, rsi
add ecx, ecx
movsxd r8, ecx
lea rcx, [rsp + 0x450]
call fcn.180015da0
lea rcx, [rsp + 0x20]
mov r9, rbx
mov r8d, 2
mov rdx, rsi
mov word [rsp + 0x20], 0xd
call fcn.180015da0
lea rcx, [rsp + 0x20]
mov r9, rbx
mov r8d, 2
mov rdx, rsi
mov word [rsp + 0x20], 0xa
call fcn.180015da0
mov rcx, rbx
call fcn.180015b40
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.1800157c0
add rsp, 0x850
pop rdi
pop rsi
pop rbx
ret
Function at 0x180006604
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x280
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x18003e090]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rdx
lea r8, [rsp + 0x30]
mov rdx, qword [rdx]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ebx, eax
test eax, eax
jne 0x180006703
mov r9d, 0x104
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, eax
test eax, eax
jne 0x1800066da
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x28]
call fcn.18000653c
nop
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call fcn.180006604
mov ebx, eax
test eax, eax
setne byte [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1800066c1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp byte [rsp + 0x20], 0
je 0x1800066ca
jmp 0x1800066da
jmp 0x18000665a
cmp ebx, 0x103
je 0x1800066ea
cmp ebx, 0x3f2
jne 0x1800066f8
mov rdx, qword [rsi]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1800157c0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1800086a4
Capabilities:
Set thread local storage value

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 r12
push r13
push r14
sub rsp, 0x20
mov esi, 1
mov r14, r8
mov rdi, rdx
cmp dword [rdx + 0x10], esi
mov r12, rcx
mov ebp, esi
jle 0x180008731
lea ebx, [rsi + 7]
lea r13d, [rsi + 0xf]
test r14, r14
je 0x1800086fd
mov rax, qword [r12 + 0x10]
cmp qword [rax + r13 + 8], r14
je 0x1800086fd
mov rax, qword [rdi + 0x18]
cmp qword [rbx + rax], 0
je 0x18000871d
xor esi, esi
jmp 0x18000871d
mov rax, qword [rdi + 0x18]
mov rcx, qword [rbx + rax]
test rcx, rcx
je 0x180008714
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rax, qword [rdi + 0x18]
and qword [rbx + rax], 0
add ebp, 1
add r13, 0x10
add rbx, 8
cmp ebp, dword [rdi + 0x10]
jl 0x1800086dd
test esi, esi
je 0x180008778
lea rcx, [r12 + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [r12 + 0x18]
mov rdx, rdi
call fcn.1800081c4
lea rcx, [r12 + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r11, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [r11]
mov ecx, dword [r12]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret