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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1400af0a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
jne 0x1400240a8
test rdi, rdi
je 0x1400240c1
call fcn.140023e60
movsxd rcx, dword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 4]
movsxd rdx, dword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x14002c28e
Capabilities:
Create pipe

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r14, qword [rsp + 0xc8]
mov rax, qword [0x1400af118]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [r14], 0xffffffffffffffff
cmp ecx, 3
jne 0x14002c368
mov edi, dword [rsp + 0xc0]
mov ebx, dword [rsp + 0xb8]
mov ecx, dword [rsp + 0xb0]
mov r10d, dword [rsp + 0xa8]
mov eax, dword [rsp + 0xa0]
cmp qword [r8 + 0x18], 7
jbe 0x14002c2ee
mov r8, qword [r8]
mov rsi, qword [rdx]
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ecx
mov qword [rsp + 0x38], 0
mov rcx, r8
mov edx, r9d
mov r8d, eax
mov r9d, r10d
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp rax, 0xffffffffffffffff
je 0x14002c37c
mov rdi, rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r15, [rsp + 0x40]
mov qword [r15], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ebx, ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x30], 3
mov rcx, rax
mov rdx, rdi
mov r8, rsi
mov r9, r15
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp eax, 1
sbb rbx, rbx
or rbx, qword [r15]
jmp 0x14002c383
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140065b10
mov eax, 5
jmp 0x14002c3a1
mov rbx, 0xffffffffffffffff
mov qword [r14], rbx
xor eax, eax
cmp rbx, 0xffffffffffffffff
sete al
lea esi, [rax + rax*4]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140065b10
mov eax, esi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14002c7b8
Capabilities:
Create process on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov edi, ecx
mov rax, qword [0x1400af118]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea eax, [rdi - 5]
mov ebp, 5
cmp eax, 1
ja 0x14002c965
mov rsi, r8
mov r15, rdx
mov rbp, qword [rsp + 0x130]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
xor r12d, r12d
mov qword [rsp + 0xb0], r12
mov dword [rsp + 0x50], 0x68
cmp qword [r9 + 0x18], 7
jbe 0x14002c845
mov r9, qword [r9]
mov rcx, r9
call fcn.1400746fc
mov r14, rax
mov rax, qword [rbp + 0x10]
cmp qword [rbp + 0x18], 7
jbe 0x14002c85f
mov rbp, qword [rbp]
mov rbx, qword [rsp + 0x138]
test rax, rax
cmove rbp, rax
cmp qword [rsi + 0x18], 7
jbe 0x14002c878
mov rsi, qword [rsi]
mov r15, qword [r15]
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
mov rcx, rsi
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebp, 5
test eax, eax
je 0x14002c958
cmp edi, 6
mov r12d, 0x1fffff
mov esi, 0x101c01
cmove esi, r12d
mov r13, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x20], esi
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0
mov rcx, rax
mov rdx, r13
mov r8, r15
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14002c94e
cmp edi, 6
mov edi, 0x100c43
cmove edi, r12d
mov rsi, qword [rbx + 8]
add rbx, 8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0
mov rcx, rax
mov rdx, rsi
mov r8, r15
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea ebp, [rcx + rcx*4]
jmp 0x14002c958
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14, r14
je 0x14002c965
mov rcx, r14
call fcn.14006c0e4
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140065b10
mov eax, ebp
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14002c98c
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rax, r8
mov r8, rdx
mov rdi, rcx
mov rsi, qword [rsp + 0x90]
mov edx, dword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
mov qword [rsi], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], r9
xor r14d, r14d
xor edx, edx
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
je 0x14002ca24
mov rbx, rax
mov rdi, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
mov dword [rsp + 0x30], 3
mov rcx, rax
mov rdx, rbx
mov r8, rdi
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea eax, [rcx + rcx*4]
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x14002f9fa
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov r12, rcx
mov rax, qword [0x1400af118]
xor rax, rsp
mov qword [rsp + 0xa8], rax
test dl, dl
je 0x14002fa86
lea rax, [0x14003bd00]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
lea rdi, [0x140094750]
lea r8, str.NtMapViewOfSection
mov rcx, r12
mov rdx, rdi
mov r9d, 1
call fcn.14002f18c
lea rax, [0x14003bd68]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 1
lea r8, str.NtUnmapViewOfSection
mov rcx, r12
mov rdx, rdi
mov r9d, 1
call fcn.14002f18c
jmp 0x14002fa92
cmp qword [r12 + 0x10], 0
je 0x14002fc31
mov rax, qword [r12]
mov r14, qword [rax]
mov dword [rsp + 0x20], 1
mov r13, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r8d, 0x10000
mov rcx, r14
xor edx, edx
mov r9d, 0x2000
call r13
mov rdi, rax
mov rsi, qword [r12 + 0x10]
shl rsi, 6
lea r15, [rsi + 0x60]
mov rcx, r15
call fcn.14002ed48
mov rbx, rax
mov rax, 0xfffffffffffff000
mov rcx, rbx
and rcx, rax
lea rdx, [rcx + rdi]
and ebx, 0xfff
add rsi, 0x105f
and rsi, rax
mov dword [rsp + 0x20], 0x40
mov rcx, r14
mov r8, rsi
mov r9d, 0x1000
call r13
mov rdi, rax
test rax, rax
jne 0x14002fb48
lea rdx, str..._.._sandbox_win_src_interception.cc
lea r9, str.thunk_base
lea rsi, [rsp + 0x48]
mov rcx, rsi
mov r8d, 0x181
call fcn.14000bed0
mov rcx, rsi
call fcn.14000bf50
mov rcx, rsi
call fcn.14000bf60
add rdi, rbx
movaps xmm0, xmmword [0x140092800]
lea rsi, [rsp + 0x48]
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi + 0x50], xmm0
movups xmmword [rsi + 0x40], xmm0
movups xmmword [rsi + 0x30], xmm0
movups xmmword [rsi + 0x20], xmm0
mov qword [rsi], r15
mov dword [rsi + 0x18], 0
mov qword [rsi + 8], 0x20
lea rcx, [0x1400b29d0]
mov r8d, 0xd8
xor edx, edx
call fcn.140067c70
mov rcx, r12
mov rdx, rdi
mov r8, r15
mov r9, rsi
call fcn.14002ff1e
mov ebx, eax
test eax, eax
jne 0x14002fc33
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x40]
mov qword [rcx], rax
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x48]
mov r9d, 0x20
mov rcx, r14
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebx, 0x2a
test eax, eax
je 0x14002fc33
cmp qword [rsp + 0x40], 0x20
jne 0x14002fc33
lea rax, [rsp + 0x3c]
mov dword [rax], 0xaaaaaaaa
mov qword [rsp + 0x20], rax
mov rcx, r14
mov rdx, rdi
mov r8, r15
mov r9d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [r12]
lea rdx, str.g_originals
lea r8, [0x1400b29d0]
mov r9d, 0xd8
call fcn.140019152
mov ebx, eax
jmp 0x14002fc33
xor ebx, ebx
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140065b10
mov eax, ebx
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140032776
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
test r8, r8
je 0x140032890
mov rdi, rcx
mov rax, qword [rcx + 8]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx + 0x84], 0
je 0x140032890
cmp word [rax + rcx + 0x14], 0x78
jb 0x140032890
mov r14, r8
mov r12, rdx
mov edx, dword [rax + rcx + 0x88]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
test rax, rax
je 0x140032890
cmp r12, 0xffff
ja 0x1400327e5
mov word [r14], r12w
jmp 0x1400328c8
mov rsi, rax
mov edx, dword [rax + 0x20]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov edx, dword [rsi + 0x18]
lea rcx, [rdx*4]
test rcx, rcx
je 0x140032890
mov qword [rsp + 0x30], rsi
lea r15, [rax + rdx*4]
lea r13, [r12 + 1]
mov qword [rsp + 0x28], rax
mov rbp, rax
mov rbx, r15
sub rbx, rbp
mov rax, rbx
sar rax, 2
shr rbx, 0x3f
add rbx, rax
and rbx, 0xfffffffffffffffe
mov edx, dword [rbp + rbx*2]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov cl, byte [r12]
test cl, cl
je 0x14003285e
mov rdx, r13
cmp cl, byte [rax]
jne 0x140032860
inc rax
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x14003284e
xor ecx, ecx
lea rbx, [rbx*2]
add rbx, rbp
movzx ecx, cl
movzx eax, byte [rax]
mov edx, ecx
sub edx, eax
lea rsi, [rbx + 4]
test edx, edx
cmovg rbp, rsi
cmovle r15, rbx
cmp ecx, eax
je 0x1400328a3
xor eax, eax
cmp rbp, r15
jne 0x14003281e
jmp 0x140032892
xor eax, eax
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rsi, qword [rsp + 0x30]
mov edx, dword [rsi + 0x24]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
sub rbx, qword [rsp + 0x28]
sar rbx, 1
movzx eax, word [rax + rbx]
add ax, word [rsi + 0x10]
mov word [r14], ax
mov al, 1
jmp 0x140032892

Function at 0x140032970
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rcx + 8]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400329a7
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400329a7
movzx edx, word [rax + rcx + 0x14]
cmp edx, 0xf0
jne 0x1400329a7
movzx eax, word [rax + rcx + 0x18]
cmp eax, 0x20b
sete al
ret
xor eax, eax
ret

Function at 0x1400329b0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rax, qword [0x1400af118]
xor rax, rsp
mov qword [rsp + 0x28], rax
test rdx, rdx
je 0x140032a48
mov rsi, rdx
mov rdi, rcx
mov r13d, 0xffffffff
lea r14, str..._.._base_rand_util_win.cc
lea r15, str.success
lea r12, [rsp + 0x20]
jmp 0x140032a08
add rdi, rbx
sub rsi, rbx
je 0x140032a48
cmp rsi, r13
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x140032a00
mov rcx, r12
mov rdx, r14
mov r8d, 0x20
mov r9, r15
call fcn.14000bed0
mov rcx, r12
call fcn.14000bf50
mov rcx, r12
call fcn.14000bf60
jmp 0x140032a00
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140065b10
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140034800
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2d8
mov r14, rcx
mov rax, qword [0x1400af118]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
movaps xmm0, xmmword [0x140092800]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rdx, [0x140094f9a]
lea r8, str..._.._base_files_file_util_win.cc
lea rdi, [rsp + 0xc0]
mov rcx, rdi
mov r9d, 0x3aa
call fcn.140010b50
lea rcx, [rsp + 0x30]
mov rdx, rdi
xor r8d, r8d
call fcn.1400233e0
lea rbx, [rsp + 0xc0]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140067c70
mov word [rsp + 0xc0], 0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
add edi, 0xffffffff
cmp edi, 0x103
ja 0x140034907
mov qword [rsp + 0x20], rbx
mov rcx, rbx
call fcn.14006f73c
mov qword [rsp + 0x28], rax
lea rbx, [rsp + 0x80]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140009f10
lea rsi, [rsp + 0xa0]
mov rcx, rbx
mov rdx, rsi
call fcn.14000b1b0
mov rcx, r14
mov rdx, rsi
call fcn.14000a050
mov rcx, rsi
call fcn.140009fe0
mov rcx, rbx
call fcn.140009fe0
cmp edi, 0x104
setb bl
lea rcx, [rsp + 0x30]
call fcn.1400233f0
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140065b10
mov eax, ebx
add rsp, 0x2d8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140034940
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rcx
mov rax, qword [0x1400af118]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x140092800]
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
lea rdx, [0x140094faf]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x3ba
call fcn.140010b50
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1400233e0
cmp qword [rsi + 0x18], 7
jbe 0x1400349c0
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rdi
call fcn.1400233f0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140065b10
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x140036930
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140036945
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret

Function at 0x14003b910
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x28
mov edx, 4
call sub.ADVAPI32.dll_SystemFunction036
test al, al
setne al
add rsp, 0x28
ret
Function at 0x14003d940
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rbx, rdx
mov r14, rcx
mov r15, qword [0x1400b2b40]
cmp r15, 1
ja 0x14003d99f
lea rcx, [0x1400b2b40]
call fcn.140035640
test al, al
je 0x14003d998
lea r15, [0x1400b2b48]
mov rcx, r15
call fcn.14001aae0
lea rcx, [0x1400b2b40]
mov rdx, r15
xor r8d, r8d
mov r9, rcx
call fcn.1400356f0
jmp 0x14003d99f
mov r15, qword [0x1400b2b40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14003db82
mov rax, qword [0x1400b2b40]
cmp rax, 1
ja 0x14003d9fa
lea rcx, [0x1400b2b40]
call fcn.140035640
test al, al
je 0x14003d9f3
lea rsi, [0x1400b2b48]
mov rcx, rsi
call fcn.14001aae0
lea rcx, [0x1400b2b40]
mov rdx, rsi
xor r8d, r8d
mov r9, rcx
call fcn.1400356f0
jmp 0x14003d9fa
mov rax, qword [0x1400b2b40]
mov r8, qword [0x1400b2b50]
test r8, r8
jne 0x14003da1f
mov ecx, 0xe8
call fcn.140065764
mov rcx, rax
call fcn.14003ca80
mov r8, qword [0x1400b2b50]
mov r13, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x14003da2d
mov rbx, qword [rbx]
movabs rdx, 0xcbf29ce484222325
test r13, r13
je 0x14003da5b
movabs rcx, 0x100000001b3
lea rax, [r13 - 1]
mov r9d, r13d
and r9d, 3
cmp rax, 3
jae 0x14003da60
xor edi, edi
jmp 0x14003daa8
mov rax, rdx
jmp 0x14003dad7
mov rsi, r13
and rsi, 0xfffffffffffffffc
xor edi, edi
nop dword [rax]
movzx eax, byte [rbx + rdi]
xor rax, rdx
imul rax, rcx
movzx edx, byte [rbx + rdi + 1]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rbx + rdi + 2]
xor rax, rdx
imul rax, rcx
movzx edx, byte [rbx + rdi + 3]
xor rdx, rax
imul rdx, rcx
add rdi, 4
cmp rsi, rdi
jne 0x14003da70
mov rax, rdx
test r9, r9
je 0x14003dad7
add rdi, rbx
xor esi, esi
nop word cs:[rax + rax]
nop
movzx eax, byte [rdi + rsi]
xor rax, rdx
imul rax, rcx
add rsi, 1
mov rdx, rax
cmp r9, rsi
jne 0x14003dac0
and rax, qword [r8 + 0x70]
mov r12, qword [r8 + 0x48]
mov rcx, qword [r8 + 0x58]
mov rdx, rax
shl rdx, 4
mov rdi, qword [rcx + rdx + 8]
cmp rdi, r12
je 0x14003db5f
add rax, rax
mov rsi, qword [rcx + rax*8]
cmp r13, qword [rdi + 0x20]
jne 0x14003db33
nop word cs:[rax + rax]
nop dword [rax + rax]
cmp qword [rdi + 0x28], 0xf
jbe 0x14003db20
mov rdx, qword [rdi + 0x10]
jmp 0x14003db24
lea rdx, [rdi + 0x10]
mov rcx, rbx
mov r8, r13
call fcn.140068390
test eax, eax
je 0x14003db44
cmp rdi, rsi
je 0x14003db5f
mov rdi, qword [rdi + 8]
cmp r13, qword [rdi + 0x20]
je 0x14003db10
jmp 0x14003db33
test rdi, rdi
je 0x14003db5f
cmp rdi, r12
je 0x14003db5f
add rdi, 0x30
mov rcx, r14
mov rdx, rdi
call fcn.14000c540
jmp 0x14003db66
mov qword [r14], 0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rax, r14
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r15
call fcn.1400255c0
jmp 0x14003d9b0
Function at 0x1400495e1
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x2f8
mov r15, r9
mov rbp, r8
mov rbx, rdx
mov rdi, rcx
mov r14, qword [rsp + 0x380]
mov rsi, qword [rsp + 0x370]
mov rax, qword [0x1400af118]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov qword [rsp + 0x80], r8
mov qword [rsp + 0x78], rdx
call fcn.1400012b8
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov rcx, rax
call fcn.1400077a2
test al, al
je 0x1400496a1
mov rax, qword [rsp + 0x378]
mov rcx, qword [rsp + 0x368]
mov edx, dword [rsp + 0x360]
mov r8d, dword [rsp + 0x358]
mov r9, qword [rsp + 0x350]
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], r8d
mov rcx, rbx
mov rdx, rbp
mov r8, r15
call rdi
mov esi, 1
test eax, eax
jne 0x1400497ec
call fcn.1400012b8
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov rcx, rax
call fcn.140007792
xor esi, esi
test al, al
je 0x1400497ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov edx, 0x18
mov rcx, r14
mov r8d, 1
call fcn.14001a89a
test al, al
je 0x1400497e2
call fcn.14001a7d0
test rax, rax
je 0x1400497e2
mov rsi, rax
mov qword [rsp + 0x70], 0
lea rdi, [rsp + 0xe0]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140067c70
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x102
ja 0x140049732
mov qword [rsp + 0x70], rdi
movaps xmm0, xmmword [0x140092800]
lea rbx, [rsp + 0x60]
movaps xmmword [rbx], xmm0
mov rcx, rbx
mov rdx, rsi
call fcn.14001b8e6
lea rsi, [0x140096120]
lea rax, [rsp + 0x88]
mov ecx, 0xb
mov rdi, rax
rep movsq qword [rdi], qword [rsi]
movabs rcx, 0xaaaaaaaaaaaaaaaa
lea rdx, [rsp + 0x50]
mov qword [rdx], rcx
mov dword [rdx], 0x18
mov qword [rdx + 8], r14
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
lea rax, [rsp + 0x370]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x78]
lea r9, [rsp + 0x80]
mov rcx, rbx
mov edx, 0xd
call fcn.14004980e
mov edi, eax
test eax, eax
jne 0x1400497de
mov ecx, dword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
cmp dword [rsp + 0x90], 0
sete sil
test edi, edi
je 0x1400497ec
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.140065b10
mov eax, esi
add rsp, 0x2f8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14004bb50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
mov eax, ecx
test r8, r8
je 0x14004bbcc
cmp r8, 1
jne 0x14004bb62
xor ecx, ecx
jmp 0x14004bbae
mov r9, r8
and r9, 0xfffffffffffffffe
xor ecx, ecx
lea r10, [0x140096280]
nop word cs:[rax + rax]
nop dword [rax]
movzx r11d, al
movzx esi, byte [rdx + rcx]
xor esi, r11d
shr eax, 8
xor eax, dword [r10 + rsi*4]
movzx r11d, al
movzx esi, byte [rdx + rcx + 1]
xor esi, r11d
shr eax, 8
xor eax, dword [r10 + rsi*4]
add rcx, 2
cmp r9, rcx
jne 0x14004bb80
test r8b, 1
je 0x14004bbcc
movzx r8d, al
movzx ecx, byte [rdx + rcx]
xor ecx, r8d
lea rdx, [0x140096280]
shr eax, 8
xor eax, dword [rdx + rcx*4]
pop rsi
ret

Function at 0x14004c164
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r14, rcx
test r8d, r8d
je 0x14004c19c
mov edi, r8d
mov dword [r14], 0
xor ecx, ecx
test dl, 1
jne 0x14004c1b6
xor ebx, ebx
movzx edx, dx
shr edx, 1
inc ebx
mov r15d, edx
test dl, 1
je 0x14004c18b
jmp 0x14004c1bc
movabs rax, 0x100000001
mov qword [r14], rax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
movzx r15d, dx
xor ebx, ebx
test r15d, r15d
je 0x14004c1cb
bsr ecx, r15d
xor ecx, 0xffffffe0
add ecx, 0x21
mov eax, ecx
imul eax, edi
cmp eax, 0xde3
jg 0x14004c2b2
mov eax, 1
mov esi, eax
lea eax, [rsi + rsi]
cmp esi, edi
jle 0x14004c1e0
sar esi, 2
movzx r8d, dx
neg cl
mov r10, 0xffffffffffffffff
shl r10, cl
test esi, esi
je 0x14004c239
xor eax, eax
mov r9d, 1
mov rcx, r8
imul rcx, rcx
test esi, edi
je 0x14004c22a
test rcx, r10
mov edx, 1
cmove rdx, r8
movzx eax, al
cmovne eax, r9d
imul rcx, rdx
sar esi, 1
je 0x14004c240
mov rdx, rcx
shr rdx, 0x20
je 0x14004c20b
jmp 0x14004c240
xor esi, esi
mov rcx, r8
xor eax, eax
mov dword [r14], 0
test rcx, rcx
je 0x14004c26b
xor edx, edx
mov ebp, ecx
and ebp, 0xfffffff
mov dword [r14 + rdx*4 + 4], ebp
shr rcx, 0x1c
inc rdx
test rcx, rcx
jne 0x14004c24e
mov word [r14], dx
test al, 1
je 0x14004c27a
mov rcx, r14
mov edx, r15d
call fcn.14004be9e
test esi, esi
je 0x14004c299
mov rcx, r14
call fcn.14004bfec
test esi, edi
je 0x14004c295
mov rcx, r14
mov edx, r15d
call fcn.14004be9e
sar esi, 1
jne 0x14004c27e
imul ebx, edi
mov rcx, r14
mov edx, ebx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.14004bde4
call fcn.14003528c
int3
Function at 0x14004d840
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1400af118]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
mov rdx, qword [section..data]
lea rcx, [rsp + 0x48]
call fcn.14004d4e0
nop
mov r8, rbx
lea rdx, [0x14008fc24]
lea rcx, [rsp + 0x68]
call fcn.14004d390
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x14004d8a2
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14004dd40
nop
mov rdx, qword [rsp + 0x80]
cmp rdx, 8
jb 0x14004d8f5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004d8f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004da0d
call fcn.1400659f8
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14004d9a2
cmp qword [rsi + 0x18], 8
jb 0x14004d93a
mov rsi, qword [rsi]
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x38], 0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004d991
mov eax, dword [rsp + 0x30]
add eax, 0xfffffffd
cmp eax, 1
ja 0x14004d991
cmp dword [rsp + 0x34], 4
cmove edi, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14004d9a2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14004d9e0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004d9db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004da07
call fcn.1400659f8
mov eax, edi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140065b10
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14006c06c
nop
call fcn.14006c06c
nop
int3