joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017b70
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [0x140153508]
mov edi, ecx
cmp byte [rbx + 0x4b21], 0
jne 0x140017bc2
cmp byte [rbx + 0x4b22], 0
jne 0x140017bc2
movsx r9d, word [rbx + 0x5c54]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.1400036a0
test dil, 2
je 0x140017cef
jmp 0x140017c4d
movss xmm1, dword [rbx + 0x3898]
lea r8, str.Tooltip__02d
movaps xmm0, xmm1
lea rcx, [rsp + 0x20]
mulss xmm0, dword [0x1400f25e0]
xor eax, eax
mov edx, 0x10
mulss xmm1, dword [0x1400f25c8]
addss xmm0, dword [rbx + 0xe00]
addss xmm1, dword [rbx + 0xe04]
mov qword [rbx + 0x4808], rax
mov dword [rbx + 0x47f4], 1
movss dword [rbx + 0x4800], xmm0
movss dword [rbx + 0x4804], xmm1
movss xmm0, dword [rbx + 0x3900]
mulss xmm0, dword [0x1400f251c]
or dword [rbx + 0x47f0], 0x41
movss dword [rbx + 0x4850], xmm0
movsx r9d, word [rbx + 0x5c54]
call fcn.1400036a0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140017ca0
lea r11, [0x1400e93b0]
nop dword [rax]
cmp r9b, 0x23
jne 0x140017c83
cmp byte [r8], r9b
jne 0x140017c83
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140017c70
not ecx
call fcn.14000c090
test rax, rax
je 0x140017cef
cmp byte [rax + 0xb6], 0
je 0x140017cef
mov byte [rax + 0xbb], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xbd], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xd8], 1
mov edx, 0x10
inc word [rbx + 0x5c54]
movsx r9d, word [rbx + 0x5c54]
call fcn.1400036a0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14000ed20
mov rbx, qword [rsp + 0x40]
mov al, 1
add rsp, 0x30
pop rdi
ret
Function at 0x14001e090
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5da8], 0
lea rbx, [rcx + 0x5db0]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14001e137
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001e0ea
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140020620
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140004230
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5da8]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5db8]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x140153500]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001e13f
mov rcx, rbx
call fcn.140004230
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14001e500
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140153508]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x14001e563
mov qword [rsp], rbx
lea rbx, [0x1400e93b0]
nop dword [rax]
cmp r9b, 0x23
jne 0x14001e543
cmp byte [r8], r9b
jne 0x14001e543
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x14001e530
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5d18]
not eax
mov r8, qword [r10 + 0x5d20]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x14001e58f
cmp dword [r8 + 8], eax
je 0x14001e596
add r8, 0x48
cmp r8, rcx
jne 0x14001e580
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x14006ca20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov ebp, r8d
mov ecx, 0x3e80000
mov rbx, qword [rax + 0x2f0]
mov rax, qword [rdx + 0x80]
movzx edx, word [rdx + 0x68]
movzx edi, word [rax + 0x18]
mov eax, 0x40000
shl edi, 0x10
cmp edi, eax
cmovl edi, eax
shl edx, 0x10
call fcn.14005b6b0
mov dword [rsp + 0x24], eax
mov ecx, eax
cmp eax, 0x28f
jge 0x14006ca76
xor eax, eax
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0x24]
mov qword [rsp + 0x80], rsi
mov esi, dword [rbx + 0x28]
mov qword [rsp + 0x48], r12
mov r12d, dword [rbx + 0x3c]
mov qword [rsp + 0x40], r13
mov r13d, dword [rbx + 0x38]
mov dword [rsp + 0x88], eax
mov eax, dword [rbx + 0x2c]
mov qword [rsp + 0x38], r14
mov r14d, dword [rbx + 0x40]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x34]
mov qword [rsp + 0x30], r15
mov r15d, dword [rbx + 0x30]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x20], r12d
test ebp, ebp
jg 0x14006cacd
mov ebp, 0x4b0000
jmp 0x14006cadb
shl ebp, 0x10
mov edx, ecx
mov ecx, ebp
call fcn.14005dc90
mov ebp, eax
bsr ecx, ebp
bsr eax, edi
shl r12d, 0x10
add eax, ecx
cmp eax, 0x2e
jl 0x14006caf1
mov eax, r12d
jmp 0x14006cafa
mov edx, edi
mov ecx, ebp
call fcn.14005dc90
mov r9d, dword [rsp + 0x88]
mov ecx, r9d
shl ecx, 0x10
cmp eax, ecx
jge 0x14006cb16
shl esi, 0x10
mov ecx, esi
jmp 0x14006cc05
mov r8d, dword [rsp + 0x70]
mov edx, r8d
shl edx, 0x10
mov dword [rsp + 0x88], edx
cmp eax, edx
jge 0x14006cb74
mov ebx, r8d
mov edx, edi
sub ebx, r9d
call fcn.14005b6b0
mov ecx, ebp
sub ecx, eax
test ebx, ebx
je 0x14006cb64
sub r15d, esi
mov r8d, ebx
mov edx, r15d
call fcn.14005db60
shl esi, 0x10
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.14005b6b0
add ebx, eax
jmp 0x14006cc0e
mov esi, dword [rsp + 0x78]
mov ebx, esi
mov r8d, dword [rsp + 0x70]
shl ebx, 0x10
jmp 0x14006cb81
mov esi, dword [rsp + 0x78]
mov ebx, esi
shl ebx, 0x10
cmp eax, ebx
jge 0x14006cbc0
mov ecx, dword [rsp + 0x88]
mov r12d, esi
mov edx, edi
sub r12d, r8d
call fcn.14005b6b0
mov ecx, ebp
sub ecx, eax
test r12d, r12d
je 0x14006cbc5
sub r13d, r15d
mov r8d, r12d
mov edx, r13d
call fcn.14005db60
shl r15d, 0x10
mov edx, edi
mov ecx, r15d
mov ebx, eax
call fcn.14005b6b0
add ebx, eax
jmp 0x14006cc0e
cmp eax, r12d
jge 0x14006cbfe
mov r15d, dword [rsp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.14005b6b0
sub ebp, eax
sub r15d, esi
je 0x14006cbfe
sub r14d, r13d
mov r8d, r15d
mov edx, r14d
mov ecx, ebp
call fcn.14005db60
shl r13d, 0x10
mov edx, edi
mov ecx, r13d
mov ebx, eax
call fcn.14005b6b0
add ebx, eax
jmp 0x14006cc0e
shl r14d, 0x10
mov ecx, r14d
mov edx, edi
call fcn.14005b6b0
mov ebx, eax
mov edx, dword [rsp + 0x24]
mov ecx, ebx
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rbp
pop rbx
jmp fcn.14005b6b0
Function at 0x1400b8cc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x250
mov rax, qword [0x140103040]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov eax, dword [rcx + 0x58]
lea rbx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
mov ebp, r9d
mov eax, dword [rcx + 0x5c]
mov rsi, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x290]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x30], r9d
mov qword [rsp + 0x278], rdi
nop dword [rax]
mov r10d, dword [rbx + 0x14]
mov eax, r10d
mov r14d, dword [rbx + 4]
cmp r10d, r14d
mov r9d, dword [rbx + 0xc]
cmovg eax, r14d
cmp r9d, eax
jl 0x1400b8e5c
cmp r10d, r14d
mov eax, r14d
cmovg eax, r10d
cmp r9d, eax
jg 0x1400b8e5c
cmp r10d, r14d
jne 0x1400b8d60
sub rbx, 0x10
jmp 0x1400b8ea4
mov edx, dword [rsi + 0x88]
xor r9d, r9d
cmp r10d, r14d
setge r9b
inc r9d
cmp edx, r9d
je 0x1400b8dd2
mov eax, dword [rsi + 4]
mov ecx, eax
mov r8d, dword [rsi + 8]
neg ecx
cmp r10d, r14d
jge 0x1400b8d94
dec eax
add eax, r10d
and eax, ecx
sub eax, r10d
jmp 0x1400b8d9c
and ecx, r10d
mov eax, r10d
sub eax, ecx
cmp eax, r8d
setge r11b
test edx, edx
je 0x1400b8dbb
movzx edx, r11b
mov rcx, rsi
call fcn.1400b9e70
test al, al
jne 0x1400b8eb5
movzx r8d, r11b
mov edx, r9d
mov rcx, rsi
call fcn.1400ba4e0
test al, al
jne 0x1400b8eb5
mov edx, dword [rsi + 0x64]
lea r9, [0x1400ba840]
mov ecx, dword [rsi + 0x60]
mov r8, rbx
cmp r10d, r14d
jge 0x1400b8dfe
mov dword [rsp + 0x28], edx
mov edx, 2
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.1400b8b40
jmp 0x1400b8e52
mov eax, dword [rbx + 4]
neg ecx
movzx edi, byte [rsi + 0x6a]
neg eax
mov dword [rbx + 4], eax
neg edx
mov eax, dword [rbx + 0xc]
neg eax
mov dword [rsp + 0x28], ecx
mov dword [rbx + 0xc], eax
mov rcx, rsi
mov eax, dword [rbx + 0x14]
neg eax
mov dword [rsp + 0x20], edx
mov edx, 2
mov dword [rbx + 0x14], eax
call fcn.1400b8b40
test dil, dil
je 0x1400b8e4a
cmp byte [rsi + 0x6a], 0
jne 0x1400b8e4a
mov rdx, qword [rsi + 0x70]
mov ecx, dword [rdx + 0x20]
neg ecx
mov dword [rdx + 0x20], ecx
mov ecx, dword [rbx + 4]
neg ecx
mov dword [rbx + 4], ecx
test al, al
jne 0x1400b8eb5
sub rbx, 0x10
jmp 0x1400b8ea4
mov eax, dword [rbx + 8]
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x20], ecx
add ecx, eax
mov dword [rbx + 0x24], r10d
lea edx, [rax + rbp]
mov eax, ecx
sar eax, 1
mov dword [rbx + 0x18], eax
lea eax, [rcx + rdx]
sar eax, 2
lea ecx, [r10 + r9]
mov dword [rbx + 0x10], eax
mov eax, ecx
sar edx, 1
sar eax, 1
mov dword [rbx + 8], edx
lea edx, [r14 + r9]
mov dword [rbx + 0x1c], eax
lea eax, [rcx + rdx]
sar eax, 2
sar edx, 1
mov dword [rbx + 0x14], eax
mov dword [rbx + 0xc], edx
add rbx, 0x10
lea rax, [rsp + 0x30]
cmp rbx, rax
jb 0x1400b8eb9
mov ebp, dword [rbx]
jmp 0x1400b8d20
mov al, 1
jmp 0x1400b8ec2
mov dword [rsi + 0x58], ebp
xor al, al
mov dword [rsi + 0x5c], r14d
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400c4fe0
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r14
pop rsi
pop rbp
ret
Function at 0x1400bf210
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1400bf22c
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400bf280
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400bf3a5
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1400bf3a5
test rax, rax
je 0x1400bf3a5
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x1400bf3a5
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1400bf31a
lea rax, [0x1400bf400]
jmp 0x1400bf373
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1400bf3a5
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400bf393
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1400bf340
lea rax, [0x1400bf3d0]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x1400bf3ba
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x1400c0990
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1400c099b
xor eax, eax
ret
lea r11, [0x1400e2ec0]
not ecx
cmp r8d, 8
jb 0x1400c0a71
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1400c09c0
test r8d, r8d
je 0x1400c0a9d
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1400c0a80
not ecx
mov eax, ecx
ret
Function at 0x1400c54d0
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movsxd r8, dword [0x14000003c]
lea rdi, [0x140000000]
add r8, rdi
mov rsi, rdx
mov ebp, ecx
cmp dword [r8 + 0x84], 0xd
jbe 0x14000264c
mov r9d, dword [r8 + 0xf0]
test r9d, r9d
je 0x14000264c
movzx eax, word [r8 + 0x14]
lea rcx, [r8 + 0x18]
mov r10d, dword [r9 + rdi + 0xc]
add rcx, rax
movzx r11d, word [r8 + 6]
xor r9d, r9d
test r11d, r11d
je 0x1400025eb
mov r8d, dword [rcx + 0xc]
cmp r10d, r8d
jb 0x1400025df
mov edx, dword [rcx + 8]
lea eax, [rdx + r8]
cmp r10d, eax
jb 0x140002624
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1400025ca
mov eax, dword [rsp + 0x40]
xor ebx, ebx
mov edx, dword [rsp + 0x40]
test rbx, rbx
je 0x14000264c
cmp dword [0x140071bf0], 0
jne 0x14000262d
mov dword [0x140071bf0], 1
test eax, eax
js 0x140002618
mov ecx, 0x19
int 0x29
mov rcx, rbx
mov edi, edx
call fcn.1400024cc
jmp 0x14000262f
mov eax, dword [rcx + 0x24]
lea rbx, [rdi + r8]
jmp 0x1400025f5
mov edi, edx
mov r9, rsi
mov r8d, ebp
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002652
lea ecx, [rax + 0x19]
int 0x29
jmp 0x140002652
mov dword [rsi], 4
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400047d0
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x14006f5c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor r9d, r9d
lea rdx, [rsp + 0x20]
mov rbx, rcx
lea r8d, [r9 + 0x3c]
lea ecx, [r9 + 0x5a]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
je 0x14000480c
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
jmp 0x140004817
movups xmm0, xmmword [rsp + 0x20]
xor eax, eax
movdqu xmmword [rbx], xmm0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400408d0
add rsp, 0x70
pop rbx
ret

Function at 0x14000482c
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x78
mov rax, qword [0x14006f5c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor r9d, r9d
lea rdx, [rsp + 0x20]
lea r8d, [r9 + 0x3c]
lea ecx, [r9 + 0x5a]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ecx, dword [rsp + 0x30]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov eax, ecx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400408d0
add rsp, 0x78
ret

Function at 0x140004874
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
and dword [rax + 0x10], 0
lea r9, [rax + 0x10]
xor edx, edx
mov r14, rcx
xor r8d, r8d
lea ebx, [rdx + 0x62]
mov ecx, ebx
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000023
jne 0x140004934
mov ecx, dword [rsp + 0x38]
call fcn.140040c48
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, rax
mov ecx, ebx
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
test eax, eax
jne 0x14000492a
movzx edx, word [rdi]
xor ecx, ecx
add edx, 0x1c
call qword [sym.imp.OLEAUT32.dll_DllRegisterServer]
movups xmm0, xmmword [str._GLOBALROOT]
mov rbx, rax
movups xmmword [rax], xmm0
movsd xmm1, qword [0x14005ad88]
movsd qword [rax + 0x10], xmm1
mov ecx, dword [0x14005ad90]
mov dword [rax + 0x18], ecx
movzx ecx, word [0x14005ad94]
mov word [rax + 0x1c], cx
lea rcx, [rax + 0x1c]
movzx r8d, word [rdi]
mov rdx, qword [rdi + 8]
add r8, 2
call sub.msvcrt.dll_memcpy
mov qword [r14], rbx
mov rcx, rdi
call fcn.14003b3dc
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140006434
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x20
jmp 0x14000645d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140006481
mov rcx, rbx
call qword [fcn.140037368]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r8, str.GlobalWinRE_565A8060_7F1C_42D2_9F94_06204826B359
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
test rax, rax
jne 0x14000643c
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rax, rbx
jmp 0x14000647b
Function at 0x140008470
Capabilities:
Create thread
Set 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, 0x60
mov rbp, rdx
mov rbx, r9
mov rdx, r9
mov esi, r8d
mov rdi, rcx
call fcn.140029be0
xor r14d, r14d
test eax, eax
jne 0x14000864e
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test rax, rax
je 0x1400084fb
sub rax, rbx
lea rcx, [rsp + 0x50]
sar rax, 1
mov rdx, rbx
mov r8d, eax
call fcn.140019624
lea rcx, str.WuaWsuscan2RootPath
mov rdx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400084fb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
call fcn.140001b5c
mov rcx, rax
test rax, rax
je 0x140008674
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
lea rdx, [rsp + 0x48]
lea rcx, [0x140000000]
mov qword [rsp + 0x48], rax
call fcn.14001bfb4
mov rbx, qword [rsp + 0x48]
test eax, eax
jne 0x140008580
lea edx, [rax + 0x5c]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_wcsrchr]
test rax, rax
jne 0x14000854b
or eax, 0xffffffff
jmp 0x140008551
sub rax, rbx
sar rax, 1
lea ecx, [rax + 1]
test ecx, ecx
js 0x140008669
cmp ecx, dword [rbx - 0xc]
jg 0x140008669
mov dword [rbx - 0x10], ecx
mov rdx, rbx
cdqe
lea rcx, str.WuaPatchMgrRootPath
mov word [rbx + rax*2 + 2], r14w
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov r8d, esi
mov qword [rsp + 0x40], rbp
xor edx, edx
mov ecx, 0x100478
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rdi + 0x120], rax
test rax, rax
jne 0x1400085ad
call fcn.14001b570
mov edi, eax
jmp 0x140008632
mov rdx, qword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x30], 2
or r8, 0xffffffffffffffff
mov dword [rsp + 0x28], r14d
mov rcx, rax
mov dword [rsp + 0x20], r14d
call qword [0x140057e28]
test eax, eax
je 0x1400085a1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEvent]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r9, rdi
mov qword [rsp + 0x28], r14
lea r8, [0x140008438]
mov qword [rdi + 0x128], rax
xor edx, edx
mov dword [rsp + 0x20], r14d
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov qword [rdi + 0x118], rax
mov rax, qword [rsp + 0x40]
mov qword [rdi + 0x108], rax
mov edi, r14d
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000864c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, edi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov ecx, 0x80070057
call fcn.140002198
int3
mov ecx, 0x80004005
call fcn.140002198
int3
Function at 0x140008680
Capabilities:
Create thread
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov rbx, r9
mov esi, r8d
mov rdi, rcx
test rdx, rdx
je 0x14000888e
cmp word [rdx], bp
je 0x14000888e
test r8d, r8d
je 0x14000888e
test rbx, rbx
je 0x14000888e
cmp word [r9], bp
je 0x14000888e
mov r8, rdx
mov ecx, 0x100002
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov qword [rdi + 0x108], rax
test rax, rax
jne 0x1400086f3
call fcn.14001b570
jmp 0x140008893
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x14000870f
mov eax, 0x8000ffff
jmp 0x140008893
mov r8d, esi
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rdi + 0x120], rax
test rax, rax
je 0x1400086e9
mov rdx, rbx
mov rcx, rdi
call fcn.140029be0
test eax, eax
jne 0x140008893
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
or esi, 0xffffffff
test rax, rax
je 0x140008794
sub rax, rbx
lea rcx, [rsp + 0x30]
sar rax, 1
mov rdx, rbx
mov r8d, eax
call fcn.140019624
lea rcx, str.WuaWsuscan2RootPath
mov rdx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, qword [rsp + 0x30]
mov eax, esi
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x140008794
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
call fcn.140001b5c
mov rcx, rax
test rax, rax
je 0x1400088b3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
lea rdx, [rsp + 0x58]
lea rcx, [0x140000000]
mov qword [rsp + 0x58], rax
call fcn.14001bfb4
mov rbx, qword [rsp + 0x58]
test eax, eax
jne 0x140008817
lea edx, [rax + 0x5c]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_wcsrchr]
test rax, rax
jne 0x1400087e3
mov eax, esi
jmp 0x1400087e9
sub rax, rbx
sar rax, 1
lea ecx, [rax + 1]
test ecx, ecx
js 0x1400088a8
cmp ecx, dword [rbx - 0xc]
jg 0x1400088a8
mov dword [rbx - 0x10], ecx
mov rdx, rbx
cdqe
lea rcx, str.WuaPatchMgrRootPath
mov word [rbx + rax*2 + 2], bp
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rdi + 0x108]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x140008831
call fcn.14001b570
mov edi, eax
jmp 0x140008870
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r9, rdi
mov qword [rsp + 0x28], rbp
lea r8, [0x140008438]
mov qword [rdi + 0x128], rax
xor edx, edx
mov dword [rsp + 0x20], ebp
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov qword [rdi + 0x118], rax
mov edi, ebp
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14000888a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, edi
jmp 0x140008893
mov eax, 0x80070057
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov ecx, 0x80070057
call fcn.140002198
int3
mov ecx, 0x80004005
call fcn.140002198
int3