joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f300
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push r15
sub rsp, 0x290
mov rsi, rcx
mov rdi, rdx
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x14000f328
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], 0xffffffffffffffff
mov rax, qword [rdi]
xor r15d, r15d
mov qword [rsp + 0x2c0], rbx
mov rcx, qword [rax]
mov qword [rax], rax
mov rax, qword [rdi]
mov qword [rax + 8], rax
mov qword [rdi + 8], r15
cmp rcx, qword [rdi]
je 0x14000f360
nop dword [rax]
mov rbx, qword [rcx]
call fcn.14007b810
mov rcx, rbx
cmp rbx, qword [rdi]
jne 0x14000f350
cmp qword [rsi + 0x20], 0x10
lea rcx, [rsi + 8]
jb 0x14000f36e
mov rcx, qword [rcx]
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], r15d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
je 0x14000f3e8
lea r9, [rsp + 0x2b0]
mov dword [rsp + 0x2b0], r15d
mov r8d, 4
mov qword [rsp + 0x20], r15
lea rdx, [rsp + 0x2b8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x2b0]
cmp ecx, 4
jae 0x14000f3ef
mov rcx, qword [rsi]
cmp rcx, 0xffffffffffffffff
je 0x14000f3e8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], 0xffffffffffffffff
xor al, al
jmp 0x14000f519
mov eax, dword [rsp + 0x2b8]
sub eax, ecx
mov qword [rsp + 0x280], r14
mov ecx, eax
movabs rax, 0x6a63bd81a98ef607
mul rcx
lea rcx, [rsp + 0x40]
mov r14, rdx
shr r14, 7
call fcn.140008320
cmp qword [rsi + 0x40], 0x10
lea rdx, [rsi + 0x28]
jb 0x14000f42e
mov rdx, qword [rdx]
mov qword [rsp + 0x2c8], rbp
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x288], r12
call fcn.140008360
mov ebx, r15d
test r14d, r14d
je 0x14000f4f9
movabs r12, 0xc7ce0c7ce0c7cd
nop
mov rcx, qword [rsi]
lea r9, [rsp + 0x2b0]
mov r8d, 0x134
mov qword [rsp + 0x20], r15
lea rdx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x2b0], 0x134
jb 0x14000f52d
mov r8d, 0x134
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x40]
call fcn.140008450
test al, al
je 0x14000f52d
mov rbp, qword [rdi]
lea r9, [rsp + 0x140]
mov rdx, rbp
mov rcx, rdi
mov r8, qword [rbp + 8]
call fcn.1400104e0
mov rdx, qword [rdi + 8]
mov rcx, r12
sub rcx, rdx
cmp rcx, 1
jb 0x14000f547
lea rcx, [rdx + 1]
inc ebx
mov qword [rdi + 8], rcx
mov qword [rbp + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
cmp ebx, r14d
jb 0x14000f460
xor ebx, ebx
mov r12, qword [rsp + 0x288]
mov rbp, qword [rsp + 0x2c8]
mov r14, qword [rsp + 0x280]
movzx eax, bl
xor eax, 1
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop r15
pop rdi
pop rsi
ret
mov rcx, qword [rsi]
mov bl, 1
cmp rcx, 0xffffffffffffffff
je 0x14000f4fb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], 0xffffffffffffffff
jmp 0x14000f4fb
lea rcx, str.list_T__too_long
call fcn.14007e084
int3
Function at 0x14000f930
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov qword [rax - 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
xor dil, dil
cmp qword [rdx + 0x18], 0x10
jb 0x14000f96e
mov rcx, qword [rdx]
jmp 0x14000f971
mov rcx, rsi
xor r12d, r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r12 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14000fafe
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp dword [r14 + 4], eax
sete dil
test dil, dil
je 0x14000faf4
cmp ebx, 1
jne 0x14000faf4
mov dword [rsp + 0xc8], r12d
mov edx, ebp
lea rcx, [rsp + 0x48]
call fcn.14000b2a0
nop
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0xc8]
mov r8d, ebp
mov rbx, qword [rsp + 0x48]
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0xc8], ebp
sete dil
test dil, dil
je 0x14000fa9f
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
call fcn.14000ea30
lea rdx, [r14 + 0x108]
cmp byte [rdx], r12b
jne 0x14000fa37
mov ebx, r12d
jmp 0x14000fa49
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rdx + rbx], 0
jne 0x14000fa40
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
mov r8, rbx
mov rdi, qword [rsp + 0x70]
cmp rdi, rbx
cmovb r8, rdi
test r8, r8
je 0x14000fa77
call fcn.1400ad400
test eax, eax
jne 0x14000fa8c
cmp rdi, rbx
jae 0x14000fa81
or eax, 0xffffffff
jmp 0x14000fa8a
mov eax, r12d
cmp rdi, rbx
seta al
test eax, eax
sete dil
lea rcx, [rsp + 0x60]
call fcn.140007010
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x14000faf4
mov rax, qword [rsp + 0x58]
sub rax, rbx
cmp rax, 0x1000
jb 0x14000faec
test bl, 0x1f
je 0x14000fabf
call fcn.1400e463c
int3
mov rax, qword [rbx - 8]
cmp rax, rbx
jb 0x14000face
call fcn.1400e463c
int3
sub rbx, rax
cmp rbx, 8
jae 0x14000fadd
call fcn.1400e463c
int3
cmp rbx, 0x27
jbe 0x14000fae9
call fcn.1400e463c
int3
mov rbx, rax
mov rcx, rbx
call fcn.14007b810
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rsi
call fcn.140007010
movzx eax, dil
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14001c840
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x14001ca80
cmp byte [rcx + 0x71], 0
je 0x14001ca80
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
jne 0x14001c88b
xor al, al
jmp 0x14001ca82
mov edx, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x10], rdx
mov byte [rbp - 0x28], 0
xor ecx, ecx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x18], 8
lea rax, [rbp - 0x28]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
xor r14d, r14d
mov r9, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x28]
lea rdx, [rbp - 0x28]
cmp r9, 0x10
cmovae rdx, rcx
lea r8, [rbp - 0x28]
cmovae r8, rcx
mov rcx, qword [rdi + 0x68]
mov r10, qword [rcx]
mov r9, qword [rbp - 0x18]
add r9, rdx
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x74]
call qword [r10 + 0x40]
test eax, eax
je 0x14001c902
sub eax, 1
jne 0x14001c9fe
jmp 0x14001c906
mov byte [rdi + 0x71], r14b
lea rax, [rbp - 0x28]
mov rcx, qword [rbp - 0x28]
mov r9, qword [rbp - 0x10]
cmp r9, 0x10
cmovae rax, rcx
mov rbx, qword [rbp + 0x20]
sub rbx, rax
je 0x14001c957
lea rax, [rbp - 0x28]
cmp r9, 0x10
cmovae rax, rcx
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.1400e8628
mov r9, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x28]
cmp rbx, rax
jne 0x14001ca0b
cmp byte [rdi + 0x71], r14b
je 0x14001ca29
test rbx, rbx
jne 0x14001c8c0
or rax, 0xffffffffffffffff
mov r8, qword [rbp - 0x18]
sub rax, r8
cmp rax, 8
jbe 0x14001ca1c
lea rbx, [r8 + 8]
cmp rbx, 0xfffffffffffffffe
ja 0x14001ca0f
cmp r9, rbx
jae 0x14001c9a8
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.140007250
mov r9, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x28]
jmp 0x14001c9c5
test rbx, rbx
jne 0x14001c9ce
mov qword [rbp - 0x18], r14
lea rax, [rbp - 0x28]
cmp r9, 0x10
cmovae rax, rcx
mov byte [rax], r14b
jmp 0x14001c8b8
test rbx, rbx
je 0x14001c8c0
lea rdx, [rbp - 0x28]
cmp r9, 0x10
cmovae rdx, rcx
mov rax, qword [rbp - 0x18]
xor ecx, ecx
mov qword [rax + rdx], rcx
mov qword [rbp - 0x18], rbx
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rax, qword [rbp - 0x28]
mov byte [rbx + rax], cl
jmp 0x14001c8b8
sub eax, 2
mov r9, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x28]
je 0x14001ca29
xor bl, bl
jmp 0x14001ca2b
lea rcx, str.string_too_long
call fcn.14007e084
int3
lea rcx, str.string_too_long
call fcn.14007e084
int3
mov bl, 1
cmp r9, 0x10
jb 0x14001ca7b
lea rax, [r9 + 1]
cmp rax, 0x1000
jb 0x14001ca76
test byte [rbp - 0x28], 0x1f
je 0x14001ca49
call fcn.1400e463c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14001ca58
call fcn.1400e463c
int3
sub rcx, rax
cmp rcx, 8
jae 0x14001ca67
call fcn.1400e463c
int3
cmp rcx, 0x27
jbe 0x14001ca73
call fcn.1400e463c
int3
mov rcx, rax
call fcn.14007b810
movzx eax, bl
jmp 0x14001ca82
mov al, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140025cc0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
lea rax, [rcx + 2]
mov ebp, 4
nop dword [rax]
movzx esi, byte [rax - 2]
movzx r9d, byte [rax - 1]
movzx r8d, sil
movzx edi, byte [rax + 1]
xor r8b, r9b
movzx r11d, byte [rax]
lea rax, [rax + 4]
movzx ecx, r8b
movzx r10d, dil
shr cl, 7
add r8b, r8b
movzx ecx, cl
xor r10b, r11b
imul edx, ecx, 0x1b
movzx ebx, r10b
xor bl, sil
xor bl, r9b
xor dl, r8b
movzx r8d, r9b
xor dl, sil
xor r8b, r11b
xor dl, bl
movzx ecx, r8b
mov byte [rax - 6], dl
xor sil, dil
shr cl, 7
add r8b, r8b
movzx ecx, cl
imul edx, ecx, 0x1b
movzx ecx, r10b
shr cl, 7
add r10b, r10b
movzx ecx, cl
xor dl, r8b
xor dl, r9b
xor dl, bl
mov byte [rax - 5], dl
imul edx, ecx, 0x1b
movzx ecx, sil
shr cl, 7
add sil, sil
movzx ecx, cl
xor dl, r10b
xor dl, r11b
xor dl, bl
mov byte [rax - 4], dl
imul edx, ecx, 0x1b
xor dl, sil
xor dl, dil
xor dl, bl
mov byte [rax - 3], dl
sub rbp, 1
jne 0x140025ce0
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret

Function at 0x1400279f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x40
xor r8d, r8d
mov dword [rbp - 0x18], 0x7761626f
mov byte [rbp - 1], r8b
mov rbx, rcx
mov qword [rcx + 0x10], r8
mov dword [rbp - 5], 0x6373706c
mov dword [rbp - 0xb], 0x656d6b63
mov word [rbp - 0xd], 0x7161
mov word [rbp - 0x10], 0x6467
mov word [rbp - 0x13], 0x6a61
mov byte [rbp - 0x14], reloc.WS2_32.dll_WSAGetLastError
mov word [rbp - 7], 0x6d73
mov byte [rbp - 0xe], WSAGetLastError
mov byte [rbp - 0x11], 0x63
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], r8b
mov dword [rbp - 0x20], r8d
cmp byte [rbp - 0x18], r8b
je 0x140027a6b
lea rax, [rbp - 0x18]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140027a61
lea rdx, [rbp - 0x18]
call fcn.1400080d0
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret
Function at 0x140027f10
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov rdi, rdx
mov rbx, rcx
mov dword [rsp + 0x20], 0
call fcn.14000bcc0
mov rcx, rax
test rax, rax
jne 0x140027f4e
mov ecx, 0x80004005
call fcn.14000b790
int3
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rbx], rax
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x50], 0
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x140027fb0
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x140027fb0
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], 0
jne 0x140027f90
mov r8d, eax
mov rcx, rbx
call fcn.1400144a0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140029190
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
sub rsp, 0x60
mov qword [rax - 0x48], 0xfffffffffffffffe
mov dword [rax + 0x10], 4
mov dword [rax + 8], 4
mov edx, reloc.WS2_32.dll_recvfrom
lea rcx, [rax - 0x40]
call fcn.1400244d0
mov rdi, rax
cmp qword [rax + 0x18], 8
jb 0x1400291cb
mov rdi, qword [rax]
call fcn.14000bcc0
mov rcx, rax
test rax, rax
jne 0x1400291e3
mov ecx, 0x80004005
call fcn.14000b790
int3
mov rax, qword [rax]
call qword [rax + Ordinal_26]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x98], rbx
or rsi, 0xffffffffffffffff
test rdi, rdi
je 0x14002923c
test rdi, 0xffffffffffff0000
jne 0x14002922d
movzx edi, di
xor edx, edx
mov ecx, edi
call fcn.14000b6e0
test rax, rax
je 0x140029259
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x98]
call fcn.14000bf00
jmp 0x140029251
mov rax, rsi
inc rax
cmp word [rdi + rax*2], 0
jne 0x140029230
jmp 0x14002923e
xor eax, eax
mov r8d, eax
mov rdx, rdi
lea rcx, [rsp + 0x98]
call fcn.1400144a0
mov rbx, qword [rsp + 0x98]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x88]
lea r8, [0x14012f528]
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x1400292aa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x1400292c7
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.1400146a0
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400292e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
sub rsp, 0x60
mov qword [rax - 0x48], 0xfffffffffffffffe
mov dword [rax + 0x10], 4
mov dword [rax + 8], 4
mov edx, reloc.WS2_32.dll_select
lea rcx, [rax - 0x40]
call fcn.1400244d0
mov rdi, rax
cmp qword [rax + 0x18], 8
jb 0x14002931b
mov rdi, qword [rax]
call fcn.14000bcc0
mov rcx, rax
test rax, rax
jne 0x140029333
mov ecx, 0x80004005
call fcn.14000b790
int3
mov rax, qword [rax]
call qword [rax + Ordinal_26]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x98], rbx
or rsi, 0xffffffffffffffff
test rdi, rdi
je 0x14002938c
test rdi, 0xffffffffffff0000
jne 0x14002937d
movzx edi, di
xor edx, edx
mov ecx, edi
call fcn.14000b6e0
test rax, rax
je 0x1400293a9
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x98]
call fcn.14000bf00
jmp 0x1400293a1
mov rax, rsi
inc rax
cmp word [rdi + rax*2], 0
jne 0x140029380
jmp 0x14002938e
xor eax, eax
mov r8d, eax
mov rdx, rdi
lea rcx, [rsp + 0x98]
call fcn.1400144a0
mov rbx, qword [rsp + 0x98]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x88]
lea r8, [0x14012f528]
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x1400293fa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x140029417
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.1400146a0
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
Function at 0x140029430
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov dword [r11 + 0x20], r9d
mov qword [r11 + 0x18], r8
push rsi
push rdi
push r14
sub rsp, 0x50
mov rsi, r8
lea rax, [r11 + 0x18]
mov r14, rdx
mov qword [r11 - 0x48], rax
mov rdx, qword [rdx]
xor ebp, ebp
xor r8d, r8d
mov qword [r11 + 0x18], rbp
mov r9d, 0x20206
mov rdi, rcx
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400294bb
cmp eax, 2
jne 0x1400294fe
mov rdx, qword [r14]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rbp
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rbp
mov rcx, rdi
mov dword [rsp + 0x28], 0x20206
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400294fe
mov r8, qword [rsi]
lea rax, [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
lea rdx, [0x14012f528]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov rcx, qword [rsp + 0x80]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [r14]
test ebx, ebx
sete dil
sub rdx, 0x18
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140029523
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14002953e
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
mov rbx, qword [rsp + 0x70]
movzx eax, dil
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x14002a100
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r14
sub rsp, 0x68
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov r14, rcx
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rcx, [rsp + 0x40]
call fcn.1400244d0
mov rsi, rax
cmp qword [rax + 0x18], 8
jb 0x14002a136
mov rsi, qword [rax]
call fcn.14000bcc0
mov rcx, rax
test rax, rax
jne 0x14002a14e
mov ecx, 0x80004005
call fcn.14000b790
int3
mov rax, qword [rax]
call qword [rax + Ordinal_26]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
or rdi, 0xffffffffffffffff
test rsi, rsi
je 0x14002a1a1
test rsi, 0xffffffffffff0000
jne 0x14002a192
movzx esi, si
xor edx, edx
mov ecx, esi
call fcn.14000b6e0
test rax, rax
je 0x14002a1b8
mov r8d, esi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14000bf00
jmp 0x14002a1b3
mov rax, rdi
inc rax
cmp word [rsi + rax*2], 0
jne 0x14002a195
jmp 0x14002a1a3
xor eax, eax
mov r8d, eax
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.1400144a0
mov rbx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x14002a1d5
inc r8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.1400146a0
mov dword [rsp + 0xa8], 4
mov dword [rsp + 0x98], 0
mov dword [rsp + 0xa0], 4
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xa8]
mov r8, qword [r14]
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea rdx, [rbx - 0x18]
test eax, eax
mov eax, edi
je 0x14002a267
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002a249
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14002a263
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor eax, eax
jmp 0x14002a29f
mov esi, dword [rsp + 0x98]
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002a282
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14002a29d
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
mov eax, esi
add rsp, 0x68
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x14002a2b0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov r14, rcx
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rcx, [rax - 0x40]
call fcn.1400244d0
mov rdi, rax
cmp qword [rax + 0x18], 8
jb 0x14002a2ec
mov rdi, qword [rax]
call fcn.14000bcc0
mov rcx, rax
test rax, rax
jne 0x14002a304
mov ecx, 0x80004005
call fcn.14000b790
int3
mov rax, qword [rax]
call qword [rax + Ordinal_26]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x90], rbx
or rsi, 0xffffffffffffffff
test rdi, rdi
je 0x14002a35d
test rdi, 0xffffffffffff0000
jne 0x14002a34e
movzx edi, di
xor edx, edx
mov ecx, edi
call fcn.14000b6e0
test rax, rax
je 0x14002a37a
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.14000bf00
jmp 0x14002a372
mov rax, rsi
inc rax
cmp word [rdi + rax*2], 0
jne 0x14002a351
jmp 0x14002a35f
xor eax, eax
mov r8d, eax
mov rdx, rdi
lea rcx, [rsp + 0x90]
call fcn.1400144a0
mov rbx, qword [rsp + 0x90]
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x14002a397
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.1400146a0
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8, qword [r14]
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002a3df
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x14002a3f9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
Function at 0x14002aa20
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 ebx, ecx
mov rbp, rdx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx edx, bx
mov r8d, 0xa
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rdi
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r8d, eax
mov rdx, rbx
mov rcx, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp 0x14002ab80
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, r8
mov rcx, qword [rcx]
mov rsi, rdx
test rcx, rcx
je 0x14002abae
call fcn.1400e1944
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x14002abc0
mov rdx, rdi
call fcn.1400e1954
jmp 0x14002abc8
mov rcx, rdi
call fcn.1400e194c
mov rcx, rax
mov qword [rbx], rax
add rcx, qword [rbx + 8]
mov r8, rdi
mov rdx, rsi
call fcn.1400ac280
mov rsi, qword [rsp + 0x38]
mov qword [rbx + 8], rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret