joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000483c
Capabilities:
Enumerate internet cache

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
movsxd r14, edx
mov edx, 0x5e1
mov dword [rbp + 0x38], 0x800
call qword [0x14001e428]
lea r12, [0x140036570]
mov esi, 0x104
mov rdi, rax
lea rax, [0x140023840]
lea r9, str._FusionBindError_Category
mov rcx, qword [rax + r14*8]
lea r8, str._ws_ws_exe
mov edx, esi
mov qword [rsp + 0x20], rcx
mov rcx, r12
call fcn.14000329c
xor r15d, r15d
test eax, eax
js 0x1400049df
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1009
mov rcx, rdi
call qword [0x14001e408]
lea r13, [0x140037a20]
lea r8, [rbp + 0x38]
mov rdx, r13
mov rcx, r12
call qword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
mov rbx, rax
test rax, rax
je 0x14000492b
mov rcx, qword [0x140037a28]
test rcx, rcx
je 0x140004907
mov rdx, r12
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
je 0x140004907
mov rcx, rdi
call fcn.1400049fc
lea r8, [rbp + 0x38]
mov rdx, r13
mov rcx, rbx
mov dword [rbp + 0x38], 0x800
call qword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
test eax, eax
jne 0x1400048e5
mov rcx, rbx
call qword [sym.imp.WININET.dll_FindCloseUrlCache]
test r14d, r14d
jne 0x1400049df
lea rdx, str._FusionBindError_exe
mov rcx, r12
mov r8d, r15d
sub rdx, r12
lea rax, [rsi + 0x7ffffefa]
test rax, rax
je 0x140004965
movzx eax, word [rdx + rcx]
test ax, ax
je 0x140004965
mov word [rcx], ax
add rcx, 2
dec rsi
jne 0x140004944
test rsi, rsi
jne 0x140004974
sub rcx, 2
mov r8d, 0x8007007a
mov word [rcx], r15w
test r8d, r8d
js 0x1400049df
lea r8, [rbp + 0x38]
mov esi, 0x800
mov rdx, r13
mov rcx, r12
mov dword [rbp + 0x38], esi
call qword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
mov rbx, rax
test rax, rax
je 0x1400049df
mov rcx, qword [0x140037a28]
test rcx, rcx
je 0x1400049bf
mov rdx, r12
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
je 0x1400049bf
mov rcx, rdi
call fcn.1400049fc
lea r8, [rbp + 0x38]
mov rdx, r13
mov rcx, rbx
mov dword [rbp + 0x38], esi
call qword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
test eax, eax
jne 0x14000499d
mov rcx, rbx
call qword [sym.imp.WININET.dll_FindCloseUrlCache]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140004dc8
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
xor ebx, ebx
mov qword [rbp - 0x18], rbx
mov dword [rbp - 0x10], ebx
mov word [0x1400357c0], bx
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x18]
call fcn.140006610
nop
mov rcx, qword [rax]
mov eax, dword [0x1400357b4]
neg eax
sbb r9d, r9d
and r9d, 0x100
add r9d, 0x20019
mov qword [rsp + 0x20], rcx
call fcn.140006b78
nop
mov rcx, qword [rbp + 0x30]
cmp qword [rcx], rbx
je 0x140004e30
mov dword [rcx + 8], 1
test eax, eax
jne 0x140004edb
mov dword [rbp + 0x20], 0x208
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rsi, [0x1400357c0]
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x28]
xor r8d, r8d
lea rdx, str.LogPath
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004e79
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
cmp word [0x1400357c0], bx
je 0x140004edb
mov dword [0x1400357b0], 1
mov eax, dword [0x140035bfc]
test eax, eax
jne 0x140004ea1
call fcn.1400071f8
mov eax, dword [0x140035bfc]
cmp eax, 2
jne 0x140004edb
mov dword [rbp + 0x20], 4
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rax, [0x1400357a8]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x28]
xor r8d, r8d
lea rdx, str.LogImmersive
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop
cmp dword [rbp - 0x10], ebx
je 0x140004eed
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rbp - 0x10], ebx
add rsp, 0x50
pop rsi
pop rbx
pop rbp
ret
Function at 0x140004f80
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
xor ebx, ebx
mov qword [rbp - 0x28], rbx
mov dword [rbp - 0x20], ebx
mov qword [rbp - 0x18], rbx
mov dword [rbp - 0x10], ebx
mov dword [rbp + 0x20], 4
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x28]
call fcn.140006610
nop
mov rcx, qword [rax]
mov eax, dword [0x1400357b4]
neg eax
sbb r9d, r9d
and r9d, 0x100
add r9d, 0x20019
mov qword [rsp + 0x20], rcx
call fcn.140006b78
nop
lea edi, [rbx + 1]
mov rcx, qword [rbp + 0x30]
cmp qword [rcx], rbx
je 0x140004fee
mov dword [rcx + 8], edi
test eax, eax
jne 0x1400050db
mov qword [0x1400359d0], rbx
mov qword [0x1400359d8], rbx
mov dword [rbp + 0x20], 4
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rax, [0x1400359d4]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x28]
xor r8d, r8d
lea rdx, str.ForceLog
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [0x1400359d4], ebx
jne 0x1400050b0
mov dword [rbp + 0x20], 4
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rax, [0x1400359d8]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x28]
xor r8d, r8d
lea rdx, str.LogFailures
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [0x1400359d8], ebx
jne 0x1400050b0
mov dword [rbp + 0x20], 4
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rax, [0x1400359d0]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x28]
xor r8d, r8d
lea rdx, str.EnableLog
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [0x140035bfc]
test ecx, ecx
jne 0x1400050c5
call fcn.1400071f8
mov ecx, dword [0x140035bfc]
mov eax, dword [0x1400359dc]
cmp ecx, 2
cmove eax, dword [0x1400357a8]
mov dword [0x1400359dc], eax
mov edx, 0x104
lea rcx, [0x1400359e4]
mov r9d, ebx
lea r8, [0x1400357c0]
sub r8, rcx
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140005116
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140005116
mov word [rcx], ax
add rcx, 2
sub rdx, rdi
jne 0x1400050f4
test rdx, rdx
jne 0x140005125
sub rcx, 2
mov r9d, 0x8007007a
mov word [rcx], bx
test r9d, r9d
js 0x140005195
mov eax, dword [0x1400359e0]
cmp word [0x1400357c0], bx
cmovne eax, edi
mov dword [0x1400359e0], eax
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x18]
call fcn.140006610
nop
mov rcx, qword [rax]
mov eax, dword [0x1400357b4]
neg eax
sbb r9d, r9d
and r9d, 0x100
add r9d, 0x20006
mov qword [rsp + 0x20], rcx
call fcn.140006b78
nop
mov rcx, qword [rbp + 0x30]
cmp qword [rcx], rbx
je 0x140005184
mov dword [rcx + 8], edi
mov ecx, dword [0x140035bec]
test eax, eax
cmove ecx, edi
mov dword [0x140035bec], ecx
cmp dword [rbp - 0x10], ebx
je 0x1400051a7
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rbp - 0x10], ebx
cmp dword [rbp - 0x20], ebx
je 0x1400051b9
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rbp - 0x20], ebx
add rsp, 0x60
pop rdi
pop rbx
pop rbp
ret
Function at 0x1400055cc
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edx, edx
mov rdi, rcx
call qword [0x14001e3f0]
mov rcx, rdi
call fcn.140005a84
cmp dword [0x1400359d4], 0
je 0x1400055f9
mov edx, 0x64b
jmp 0x14000561c
cmp dword [0x1400359d8], 0
je 0x140005609
mov edx, 0x64a
jmp 0x14000561c
cmp dword [0x1400359d0], 0
mov edx, 0x649
jne 0x14000561c
mov edx, 0x648
mov rcx, rdi
call qword [0x14001e428]
xor r9d, r9d
mov edx, 0xf1
lea r8d, [r9 + 1]
mov rcx, rax
call qword [0x14001e408]
mov eax, dword [0x140035bfc]
test eax, eax
jne 0x14000564f
call fcn.1400071f8
mov eax, dword [0x140035bfc]
mov edx, 0x64f
mov rcx, rdi
cmp eax, 2
jne 0x1400056b3
call qword [0x14001e428]
mov edx, dword [0x1400359e0]
mov rcx, rax
call qword [0x14001e450]
cmp dword [0x1400359e0], 0
je 0x14000568a
cmp dword [0x1400359dc], 0
je 0x14000568a
mov eax, 1
jmp 0x14000568c
xor eax, eax
mov edx, 0x64f
mov rcx, rdi
movsxd rbx, eax
call qword [0x14001e428]
xor r9d, r9d
mov r8, rbx
mov rcx, rax
mov edx, 0xf1
call qword [0x14001e408]
jmp 0x1400056c4
call qword [0x14001e428]
xor edx, edx
mov rcx, rax
call qword [0x14001e450]
xor ebx, ebx
mov edx, 0x64c
mov rcx, rdi
cmp dword [0x1400359e0], ebx
setne bl
call qword [0x14001e428]
xor r9d, r9d
mov r8, rbx
mov edx, 0xf1
mov rcx, rax
call qword [0x14001e408]
mov ebx, 0x64d
mov rcx, rdi
mov edx, ebx
call qword [0x14001e428]
mov edx, 0xc5
xor r9d, r9d
lea r8d, [rdx + 0x3e]
mov rcx, rax
call qword [0x14001e408]
cmp dword [0x1400359e0], 0
mov edx, ebx
mov rcx, rdi
je 0x140005733
lea r8, [0x1400359e4]
call qword [0x14001e400]
jmp 0x140005744
call qword [0x14001e428]
xor edx, edx
mov rcx, rax
call qword [0x14001e450]
cmp dword [0x140035bec], 0
jne 0x140005755
mov rcx, rdi
call fcn.140005784
mov rcx, qword [0x1400357a0]
mov rdx, rdi
call fcn.140004cd0
mov edx, 5
mov rcx, rdi
call qword [0x14001e3f0]
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret
Function at 0x140005840
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x1030
call fcn.140019220
sub rsp, rax
mov rax, qword [0x1400335a0]
xor rax, rsp
mov qword [rsp + 0x1020], rax
xor edi, edi
mov rbx, rcx
cmp dword [0x140035bec], edi
mov word [rsp + 0x820], di
mov word [rsp + 0x20], di
je 0x1400059e6
mov edx, 0x649
call qword [0x14001e428]
mov esi, pe_nt_image_headers64
xor r9d, r9d
mov rcx, rax
xor r8d, r8d
mov edx, esi
call qword [0x14001e408]
mov ecx, edi
mov edx, 0x64b
cmp rax, 1
sete cl
mov dword [0x1400359d0], ecx
mov rcx, rbx
call qword [0x14001e428]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov edx, esi
call qword [0x14001e408]
mov ecx, edi
mov edx, 0x64a
cmp rax, 1
sete cl
mov dword [0x1400359d4], ecx
mov rcx, rbx
call qword [0x14001e428]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov edx, esi
call qword [0x14001e408]
mov ecx, edi
cmp rax, 1
mov eax, dword [0x140035bfc]
sete cl
mov dword [0x1400359d8], ecx
test eax, eax
jne 0x140005929
call fcn.1400071f8
mov eax, dword [0x140035bfc]
cmp eax, 2
jne 0x14000595c
mov edx, 0x64f
mov rcx, rbx
call qword [0x14001e428]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov edx, esi
call qword [0x14001e408]
mov ecx, edi
cmp rax, 1
sete cl
mov dword [0x1400359dc], ecx
mov edx, 0x64c
mov rcx, rbx
call qword [0x14001e428]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov edx, esi
call qword [0x14001e408]
mov edx, edi
lea rsi, [0x1400359e4]
cmp rax, 1
mov r8d, 0x208
mov rcx, rsi
sete dl
mov dword [0x1400359e0], edx
xor edx, edx
call fcn.140015590
cmp dword [0x1400359e0], edi
je 0x1400059e6
mov eax, 0x103
mov edx, 0x64d
mov rcx, rbx
mov word [0x1400359e4], ax
call qword [0x14001e428]
mov r9, rsi
xor r8d, r8d
mov edx, 0xc4
mov rcx, rax
call qword [0x14001e408]
cmp word [0x1400359e4], di
jne 0x140005a10
mov dword [0x1400359e0], edi
mov eax, 1
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000fbe0
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140005a22
test al, 0x10
jne 0x1400059e6
mov rcx, qword [0x1400359c8]
mov ebx, 0x400
lea r8, [rsp + 0x20]
mov r9d, ebx
mov edx, 0x907
mov dword [0x1400359e0], edi
mov word [0x1400359e4], di
call qword [0x14001e410]
mov rcx, qword [0x1400359c8]
lea r8, [rsp + 0x820]
mov r9d, ebx
mov edx, 0x908
call qword [0x14001e410]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x820]
call fcn.1400030fc
xor eax, eax
jmp 0x1400059eb
Function at 0x1400071f8
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x188]
sub rsp, 0x280
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1400335a0]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov ebx, 1
mov rax, qword [str.combase.dll]
mov qword [rsp + 0x38], rax
mov rax, qword [0x140028f98]
mov qword [rsp + 0x40], rax
mov rax, qword [0x140028fa0]
mov qword [rsp + 0x48], rax
movzx eax, word [0x140028fa8]
mov word [rsp + 0x50], ax
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x60]
call fcn.140015590
mov edx, 0x104
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140007306
mov ecx, eax
mov edx, 0x105
mov eax, edx
sub rax, rcx
cmp rax, 0xd
jb 0x140007306
lea r8, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.140010b58
test eax, eax
jne 0x140007306
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x20], rax
and dword [rsp + 0x28], 0
xor esi, esi
test rax, rax
cmovne esi, ebx
mov dword [rsp + 0x28], esi
je 0x1400072f4
lea rdx, str.RoInitialize
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [rbx + 1]
test rax, rax
cmovne ebx, ecx
test esi, esi
je 0x140007306
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [rsp + 0x28], 0
mov dword [0x140035bfc], ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14000fbe0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14000796c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r13
mov rdi, rcx
mov dword [rbp - 0x48], 2
mov dword [rbp - 0x44], 2
mov dword [rbp - 0x40], 0x10
lea r13, [0x1400239ac]
mov qword [rbp - 0x38], r13
xor r9d, r9d
lea edx, [r9 + 1]
lea r8d, [r9 + 4]
lea rcx, [rbp - 0x48]
call fcn.14000ce78
mov ecx, 0x5c
mov rax, qword [rbp - 0x38]
mov word [rax], cx
xor ebx, ebx
mov rax, qword [rbp - 0x38]
mov word [rax + 2], bx
lea rdx, [rbp - 0x48]
mov rcx, rdi
call fcn.14000c0ec
test eax, eax
sete sil
test byte [rbp - 0x40], 8
je 0x1400079fd
mov rcx, qword [rbp - 0x38]
call fcn.140008a60
test sil, sil
je 0x140007a29
test rdi, rdi
jne 0x140007a0c
mov rcx, rbx
jmp 0x140007a18
mov rcx, rdi
call fcn.14000ba80
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
jmp 0x140007b47
mov dword [rbp - 0x48], 2
mov dword [rbp - 0x44], 2
mov dword [rbp - 0x40], 0x10
mov qword [rbp - 0x38], r13
mov rdx, rdi
lea rcx, [rbp - 0x48]
call fcn.140006f08
mov eax, dword [rdi + 8]
and eax, 7
mov ecx, dword [rbp - 0x40]
and ecx, 0xfffffff8
mov dword [rbp - 0x40], ecx
or ecx, eax
mov dword [rbp - 0x40], ecx
btr ecx, 8
mov dword [rbp - 0x40], ecx
mov eax, ecx
shr eax, 1
not eax
test al, 1
jne 0x140007a8c
lea rcx, [rbp - 0x48]
call fcn.14000ce28
test eax, eax
jne 0x140007a89
lea rcx, [rbp - 0x48]
call fcn.14000ba80
mov ecx, dword [rbp - 0x40]
test cl, 0x10
je 0x140007aa6
mov r8d, 1
mov edx, dword [rbp - 0x44]
lea rcx, [rbp - 0x48]
call fcn.14000da18
mov ecx, dword [rbp - 0x40]
test cl, 2
je 0x140007ad5
mov eax, ecx
and eax, 7
cmp al, 7
jne 0x140007abc
cmp dword [0x1400342bc], ebx
je 0x140007ad5
lea rcx, [rbp - 0x48]
call fcn.14000ce28
test eax, eax
jne 0x140007ad2
lea rcx, [rbp - 0x48]
call fcn.14000ba80
mov ecx, dword [rbp - 0x40]
not ecx
and ecx, 1
mov eax, dword [rbp - 0x48]
shr eax, cl
dec eax
shl eax, cl
movsxd rdx, eax
add rdx, qword [rbp - 0x38]
mov dword [rbp - 0x10], ecx
mov qword [rbp - 0x30], rdx
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 8]
mov qword [rbp - 0x20], rax
or eax, 0xffffffff
shl eax, cl
movsxd rcx, eax
add rcx, rdx
mov qword [rbp - 0x30], rcx
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x48]
call fcn.14000b930
lea rcx, [rbp - 0x48]
call fcn.14000ba80
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
test byte [rbp - 0x40], 8
je 0x140007b45
mov rcx, qword [rbp - 0x38]
call fcn.140008a60
mov al, bl
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r13, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140009068
Capabilities:
Hash data using djb2
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x1400335a0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
or rbp, 0xffffffffffffffff
mov rbx, rcx
xor esi, esi
mov r8, rbp
inc r8
cmp word [rcx + r8*2], si
jne 0x14000909d
mov eax, edx
neg eax
mov eax, 0x3f
sbb ecx, ecx
and ecx, 8
sub eax, ecx
cdqe
cmp r8, rax
jbe 0x1400090c5
xor eax, eax
jmp 0x140009192
mov edi, 0x40
test edx, edx
je 0x140009132
cmp dword [0x140035c40], esi
je 0x14000911c
movzx ecx, word [rbx]
mov r8, rbx
mov edx, 0x1505
jmp 0x1400090fb
lea eax, [rcx - 0x61]
cmp eax, 0x19
ja 0x1400090ee
and ecx, 0xffffffdf
imul edx, edx, 0x21
xor edx, ecx
add r8, 2
movzx ecx, word [r8]
test ecx, ecx
jne 0x1400090e3
movzx ecx, dl
mov edx, ecx
mov eax, ecx
lea rcx, [0x140036318]
shr rax, 5
and edx, 0x1f
mov eax, dword [rcx + rax*4]
bt eax, edx
jae 0x1400090be
lea r8, str.COMPlus_
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.1400109a0
jmp 0x140009137
mov word [rsp + 0x20], si
lea rcx, [rsp + 0x20]
mov r8, rbx
mov rdx, rdi
call fcn.140010b58
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
movsxd rdi, eax
test eax, eax
je 0x1400090be
mov eax, 2
mul rdi
cmovo rax, rbp
mov rcx, rax
call fcn.140008a28
mov rbx, rax
test rax, rax
je 0x14000918f
lea rcx, [rsp + 0x20]
mov r8d, edi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rax, rbx
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14000fbe0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140009628
Capabilities:
Hash data using djb2

Disassembly:
xor r8d, r8d
mov rdx, rcx
cmp dword [0x140035c44], r8d
je 0x140009691
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r8w
jne 0x14000963b
cmp rax, 0x50
ja 0x140009691
movzx ecx, word [rcx]
mov r9d, 0x1505
jmp 0x14000966f
lea eax, [rcx - 0x61]
cmp eax, 0x19
ja 0x140009661
and ecx, 0xffffffdf
imul r9d, r9d, 0x21
xor r9d, ecx
add rdx, 2
movzx ecx, word [rdx]
test ecx, ecx
jne 0x140009656
movzx ecx, r9b
mov edx, ecx
mov eax, ecx
lea rcx, [0x140036338]
shr rax, 5
and edx, 0x1f
mov eax, dword [rcx + rax*4]
bt eax, edx
jae 0x140009697
mov r8d, 1
mov eax, r8d
ret

Function at 0x14000db9c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
lea rcx, str.PATH
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
xor ebp, ebp
mov edi, eax
test eax, eax
je 0x14000dc62
invalid
xor r9d, r9d

Function at 0x14000dcd4
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x1400342d0], 0xffffffff
mov esi, edx
mov edi, ecx
jne 0x14000dd0b
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
or eax, 0xffffffff
lock cmpxchg dword [0x1400342d0], ecx
je 0x14000dd0b
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov ecx, dword [0x1400342d0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14000dd7d
test esi, esi
je 0x14000dd7d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, 0xb0
xor edx, edx
mov rcx, rax
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x14000dd61
cmp edi, 9
je 0x14000dd90
cmp edi, 6
je 0x14000dd90
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc0000017
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov r8, rsi
xor edx, edx
mov rcx, rbx
call fcn.140015590
mov ecx, dword [0x1400342d0]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor eax, eax
jmp 0x14000dd80

Function at 0x140012414
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14001227c
Function at 0x140007470
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov r8d, dword [0x1402006d0]
lea r11, [0x1402006d0]
mov r9d, 0x270
cmp r8d, r9d
jne 0x1400074d5
lea r8, [0x1402006d8]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x140007490
mov r8d, dword [0x1402006d0]
jmp 0x1400075af
cmp r8d, 0x4e0
jb 0x1400075af
xor r8d, r8d
mov r9d, 0x38c
mov r10d, r8d
nop
mov eax, dword [r10 + r11 + 0x9c4]
mov edx, eax
xor edx, dword [r10 + r11 + 0x9c8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + r11 + 0xff8]
xor ecx, edx
mov dword [r10 + r11 + 4], ecx
add r10, 4
cmp r10, r9
jb 0x1400074f0
mov eax, dword [r9 + r11 + 0x9c4]
mov edx, eax
xor edx, dword [r9 + r11 + 0x9c8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + r11 - 0x388]
xor ecx, edx
mov dword [r9 + r11 + 4], ecx
add r9, 4
cmp r9, 0x9bc
jb 0x140007530
mov edx, dword [0x1402006d4]
xor edx, dword [0x140201a50]
btr edx, 0x1f
mov dword [0x1402006d0], r8d
xor edx, dword [0x140201a50]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, edx
xor ecx, dword [0x140200d04]
mov dword [0x140201090], ecx
mov eax, r8d
inc r8d
mov ecx, dword [r11 + rax*4 + 4]
mov eax, ecx
shr eax, 0xb
and eax, dword [0x140201a54]
xor ecx, eax
mov dword [0x1402006d0], r8d
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret
Function at 0x14000bad0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x14013d040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rdx
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov r8d, 0x22
lea rdx, str.SystemCurrentControlSetServices_
lea rcx, [rsp + 0x40]
call fcn.1400050d0
nop
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x14000bb26
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140011a60
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdx, qword [rsp + 0x40]
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x14000bc4b
mov byte [rsp + 0x38], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14000bc4b
mov byte [rsp + 0x39], 3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x39]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ErrorControl
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14000bc4b
mov byte [rsp + 0x3a], 3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x3a]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14000bc4b
mov eax, dword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x14000bc11
mov rbx, qword [rbx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14000bc4b
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
sete bl
jmp 0x14000bc4d
xor bl, bl
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000bc8d
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000bc88
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000bc88
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400f44a4
movzx eax, bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400f4440
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret