joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140074fcc
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov rax, qword [rsp + 0xe8]
mov rcx, qword [rax]
call fcn.140077eec
test rax, rax
je 0x14007503c
lock or dword [rsp], 0
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xf0]
call fcn.140075a94
nop
lock or dword [rsp], 0
jmp 0x1400751fd
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
mov ecx, 0xd8
call fcn.140077b44
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1400750dd
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
lea rcx, [fcn.14007568c]
mov qword [rax + 0x28], rcx
mov rcx, qword [rsp + 0x28]
call fcn.1400803e4
nop
mov rax, qword [rsp + 0x28]
add rax, 0x38
mov rdx, qword [rsp + 0xf0]
mov rcx, rax
call fcn.140074f44
nop
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
jmp 0x1400750e6
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xe0]
call fcn.140077d64
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x1400751f2
mov rax, qword [rsp + 0xe8]
mov rdx, qword [rax]
lea rcx, [rsp + 0xb0]
call fcn.140080434
nop
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xe8]
mov rax, qword [rax]
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x88], 0
call fcn.140289da0
mov qword [rsp + 0x90], rax
xor r9d, r9d
lea r8, [rsp + 0x88]
mov rdx, qword [rsp + 0x78]
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rax + 0x28]
call fcn.14007568c
nop
lea rcx, [rsp + 0x98]
call fcn.140077b74
nop
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x80], rax
lea rax, [0x1403de71c]
mov rdx, qword [rsp + 0x80]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rcx, [rsp + 0x30]
call fcn.14007575c
nop
add rsp, 0xd8
ret
Function at 0x140075208
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov rax, qword [rsp + 0xe8]
mov rcx, qword [rax]
call fcn.140077eec
test rax, rax
je 0x140075278
lock or dword [rsp], 0
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xf0]
call fcn.140075abc
nop
lock or dword [rsp], 0
jmp 0x140075439
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
mov ecx, 0xd8
call fcn.140077b44
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140075319
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
lea rcx, [fcn.1400755bc]
mov qword [rax + 0x28], rcx
mov rcx, qword [rsp + 0x28]
call fcn.1400803e4
nop
mov rax, qword [rsp + 0x28]
add rax, 0x38
mov rdx, qword [rsp + 0xf0]
mov rcx, rax
call fcn.140074f44
nop
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
jmp 0x140075322
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xe0]
call fcn.140077d64
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14007542e
mov rax, qword [rsp + 0xe8]
mov rdx, qword [rax]
lea rcx, [rsp + 0xb0]
call fcn.140080434
nop
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xe8]
mov rax, qword [rax]
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x88], 0
call fcn.140289da0
mov qword [rsp + 0x90], rax
xor r9d, r9d
lea r8, [rsp + 0x88]
mov rdx, qword [rsp + 0x78]
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rax + 0x28]
call fcn.1400755bc
nop
lea rcx, [rsp + 0x98]
call fcn.140077b74
nop
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x80], rax
lea rax, [0x1403de71c]
mov rdx, qword [rsp + 0x80]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rcx, [rsp + 0x30]
call fcn.14007575c
nop
add rsp, 0xd8
ret
Function at 0x140075ae4
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov rax, qword [rsp + 0xe8]
mov rcx, qword [rax]
call fcn.140077eec
test rax, rax
je 0x140075b54
lock or dword [rsp], 0
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xf0]
call fcn.140075f50
nop
lock or dword [rsp], 0
jmp 0x140075d13
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
mov ecx, reloc.WS2_32.dll_WSASetLastError
call fcn.140077b44
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140075bf3
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
lea rcx, [fcn.140075d40]
mov qword [rax + 0x28], rcx
mov rcx, qword [rsp + 0x28]
call fcn.1400803e4
mov rax, qword [rsp + 0x28]
add rax, 0x38
mov rdx, qword [rsp + 0xf0]
mov rcx, rax
call fcn.140075a44
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
jmp 0x140075bfc
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xe0]
call fcn.140077d64
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140075d08
mov rax, qword [rsp + 0xe8]
mov rdx, qword [rax]
lea rcx, [rsp + 0xb0]
call fcn.140080434
nop
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xe8]
mov rax, qword [rax]
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x88], 0
call fcn.140289da0
mov qword [rsp + 0x90], rax
xor r9d, r9d
lea r8, [rsp + 0x88]
mov rdx, qword [rsp + 0x78]
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rax + 0x28]
call fcn.140075d40
nop
lea rcx, [rsp + 0x98]
call fcn.140077b74
nop
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x80], rax
lea rax, [0x1403de71c]
mov rdx, qword [rsp + 0x80]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rcx, [rsp + 0x30]
call fcn.140075e94
nop
add rsp, 0xd8
ret
Function at 0x140076674
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 8]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
add rax, 0x30
lock inc dword [rax]
movzx eax, byte [rsp + 0x98]
test eax, eax
je 0x1400766d3
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.140079390
jmp 0x1400767d2
mov rax, qword [rsp + 0x78]
cmp qword [rax], 0xffffffffffffffff
je 0x1400766e8
mov dword [rsp + 0x44], 1
jmp 0x1400766f0
mov dword [rsp + 0x44], 0
movzx eax, byte [rsp + 0x44]
test eax, eax
jne 0x14007671d
xor r9d, r9d
mov r8d, 0x2719
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.140079390
jmp 0x1400767d2
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_WSASend]
mov dword [rsp + 0x4c], eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x4d2
jne 0x140076789
mov dword [rsp + 0x40], 0x274d
cmp dword [rsp + 0x4c], 0
je 0x1400767bc
cmp dword [rsp + 0x40], 0x3e5
je 0x1400767bc
mov r9d, dword [rsp + 0x48]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.140079390
jmp 0x1400767d2
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.1400794c4
add rsp, 0x68
ret

Function at 0x140077b00
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
lea rax, [0x1403de6a0]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140077b30
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
jmp 0x140077b39
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x28]
add rsp, 0x38
ret

Function at 0x140077d0c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
lea rax, [0x1403de6a0]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140077d5b
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
cmp qword [rax], rcx
jne 0x140077d4b
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 8]
jmp 0x140077d5d
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
jmp 0x140077d29
xor eax, eax
add rsp, 0x38
ret
Function at 0x140077eec
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
lea rax, [0x1403de71c]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140077f3b
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
cmp qword [rax], rcx
jne 0x140077f2b
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 8]
jmp 0x140077f3d
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
jmp 0x140077f09
xor eax, eax
add rsp, 0x38
ret

Function at 0x1400795e8
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 8]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
add rax, 0x30
lock inc dword [rax]
movzx eax, byte [rsp + 0x98]
test eax, eax
je 0x140079647
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.140079390
jmp 0x140079761
mov rax, qword [rsp + 0x78]
cmp qword [rax], 0xffffffffffffffff
je 0x14007965c
mov dword [rsp + 0x44], 1
jmp 0x140079664
mov dword [rsp + 0x44], 0
movzx eax, byte [rsp + 0x44]
test eax, eax
jne 0x140079691
xor r9d, r9d
mov r8d, 0x2719
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.140079390
jmp 0x140079761
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x4c], eax
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_WSARecv]
mov dword [rsp + 0x50], eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x40
jne 0x140079706
mov dword [rsp + 0x40], 0x2746
jmp 0x140079718
cmp dword [rsp + 0x40], 0x4d2
jne 0x140079718
mov dword [rsp + 0x40], 0x274d
cmp dword [rsp + 0x50], 0
je 0x14007974b
cmp dword [rsp + 0x40], 0x3e5
je 0x14007974b
mov r9d, dword [rsp + 0x48]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.140079390
jmp 0x140079761
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.1400794c4
add rsp, 0x68
ret
Function at 0x14007ad54
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
cmp qword [rsp + 0x90], 0xffffffffffffffff
jne 0x14007adb1
call fcn.140289da0
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x48], 0x2719
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xa8]
movups xmm0, xmmword [rsp + 0x48]
movdqu xmmword [rax], xmm0
mov eax, 0xffffffff
jmp 0x14007ae63
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
lea r8, [rsp + 0x20]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.WS2_32.dll_getsockname]
mov dword [rsp + 0x30], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0xa0]
mov qword [rcx], rax
call fcn.140289da0
mov qword [rsp + 0x40], rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xa8]
movups xmm0, xmmword [rsp + 0x58]
movdqu xmmword [rax], xmm0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x14007ae5f
mov dword [rsp + 0x68], 0
call fcn.140289da0
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0xa8]
movups xmm0, xmmword [rsp + 0x68]
movdqu xmmword [rax], xmm0
mov eax, dword [rsp + 0x24]
add rsp, 0x88
ret
Function at 0x140080434
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov qword [rax], rcx
lea rax, [0x1403de71c]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x30]
mov qword [rax + 8], rcx
lea rax, [0x1403de71c]
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rax, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x140080494
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
lea rax, [0x1403de71c]
mov rdx, qword [rsp + 0x20]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x38
ret
Function at 0x14008efe4
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [rsp + 0x30]
call fcn.1400121dc
lea rax, [rsp + 0x30]
mov rdx, rax
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x14008f01e
mov dword [rsp + 0x20], 1
jmp 0x14008f026
mov dword [rsp + 0x20], 0
mov al, byte [rsp + 0x20]
add rsp, 0x88
ret

Function at 0x14008fa24
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov qword [rsp + 0xc0], 0xfffffffffffffffe
xor edx, edx
mov rcx, qword [rsp + 0xf0]
call fcn.140011d54
nop
mov eax, dword [reloc.WS2_32.dll_accept]
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x38]
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14008fc49
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xb0], rax
lea rax, str.Common_AppData
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14008fc2b
mov eax, dword [rsp + 0x34]
mov qword [rsp + 0x80], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xf0]
call fcn.1400a3488
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
cmp qword [rax + 0x18], 0x10
jb 0x14008fb54
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
jmp 0x14008fb5e
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x90], rax
xor eax, eax
imul rax, rax, 1
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
lea rcx, [rsp + 0x34]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14008fc2b
lea rdx, [rsp + 0xd0]
mov rcx, qword [rsp + 0xf0]
call fcn.140010260
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov eax, 1
neg rax
add rax, qword [rsp + 0x60]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
mov r8, qword [rsp + 0xa8]
lea rdx, [rsp + 0xd8]
mov rcx, qword [rsp + 0xf0]
call fcn.140094a48
nop
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0xe8
ret
Function at 0x1400907a4
Capabilities:
Clear file content
Get file size
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400907d6
mov dword [rsp + 0x30], 1
jmp 0x1400907de
mov dword [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x1400907ee
xor al, al
jmp 0x1400909f7
movabs rax, 0x7fffffffffffffff
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x70], rax
movabs rax, 0x7fffffffffffffff
cmp qword [rsp + 0x70], rax
jbe 0x14009083a
mov ecx, 0xdf
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x1400909f7
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0xb8], rax
jle 0x140090977
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14009088e
mov dword [rsp + 0x34], 1
jmp 0x140090896
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
test eax, eax
jne 0x1400908a6
xor al, al
jmp 0x1400909f7
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xb8]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
jmp 0x1400908de
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jbe 0x140090975
mov qword [rsp + 0x98], 0x200
cmp qword [rsp + 0x40], 0x200
jbe 0x14009090c
mov qword [rsp + 0x60], 0x200
jmp 0x140090916
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x54]
mov r8d, dword [rsp + 0x48]
lea rdx, [0x1403de730]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140090956
mov dword [rsp + 0x50], 1
jmp 0x14009095e
mov dword [rsp + 0x50], 0
mov eax, dword [rsp + 0x54]
cmp rax, qword [rsp + 0x48]
je 0x140090970
xor al, al
jmp 0x1400909f7
jmp 0x1400908c9
jmp 0x1400909f5
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x88], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400909b1
mov dword [rsp + 0x38], 1
jmp 0x1400909b9
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
test eax, eax
jne 0x1400909c6
xor al, al
jmp 0x1400909f7
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1400909e2
mov dword [rsp + 0x3c], 1
jmp 0x1400909ea
mov dword [rsp + 0x3c], 0
cmp dword [rsp + 0x3c], 0
jne 0x1400909f5
xor al, al
jmp 0x1400909f7
mov al, 1
add rsp, 0xa8
ret
Function at 0x14009113c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp dword [0x1403de6f8], 0
jne 0x140091165
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x20], eax
jmp 0x14009116f
mov eax, dword [0x1403de6f8]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jbe 0x140091180
mov dword [rsp + 0x24], 0
jmp 0x140091188
mov dword [rsp + 0x24], reloc.WLDAP32.dll_Ordinal_32
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x24]
mov dword [rax + 0xc], ecx
add rsp, 0x68
ret
Function at 0x1400938bc
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [0x1403de700], 0
jne 0x1400938ec
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x58]
mov qword [rsp + 0x20], rax
jmp 0x1400938f8
mov rax, qword [0x1403de700]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rax, qword [rsp + 0x70]
div qword [rsp + 0x20]
imul rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x78]
cmp qword [rax], 0
je 0x14009393d
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x28]
mov rax, qword [rax]
sub rax, rcx
mov rcx, qword [rsp + 0x78]
mov qword [rcx], rax
mov rax, qword [rsp + 0x28]
add rsp, 0x68
ret
Function at 0x1400a6478
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rcx
mov rax, qword [rsp + 8]
mov qword [rax], 0
mov rax, qword [rsp + 8]
mov qword [rax + 8], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x6a09e667
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0xbb67ae85
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x3c6ef372
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0xa54ff53a
mov eax, 4
imul rax, rax, 4
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x510e527f
mov eax, 4
imul rax, rax, 5
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x9b05688c
mov eax, 4
imul rax, rax, 6
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x1f83d9ab
mov eax, 4
imul rax, rax, 7
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x5be0cd19
ret