joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000212c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x2900
call fcn.1400079a0
sub rsp, rax
mov rax, qword [0x140026100]
xor rax, rsp
mov qword [rsp + 0x28f0], rax
mov rbp, rcx
call fcn.1400025a8
lea rcx, str.DBGHELP.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x1400022d6
lea rdx, str.MiniDumpWriteDump
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140026d80], rax
test rax, rax
je 0x1400022d6
xor ecx, ecx
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r8d, 0xa28
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400022d6
mov rbx, qword [str.Updater.exe]
lea rdi, [rsp + 0x50]
mov eax, eax
mov rcx, rbx
lea rdi, [rdi + rax*2]
call fcn.14000e2cc
add rax, rax
mov rcx, rdi
sub rcx, rax
mov rdx, rbx
call fcn.14000e6ac
test eax, eax
jne 0x14000222a
mov rcx, qword [str.Updater.exe]
call fcn.14000e2cc
add rax, rax
lea rdx, [0x1400196fc]
sub rdi, rax
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x50]
call fcn.140002300
mov rsi, rax
lea rcx, [rax + 1]
test rcx, 0xfffffffffffffffe
jne 0x140002280
mov r8d, 0xa28
lea rdx, [rsp + 0x14a0]
lea rcx, str.APPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14000227b
mov r8, qword [str.materialgram]
lea rcx, [rsp + 0x14a0]
mov eax, eax
lea rdx, str._s_
lea rcx, [rcx + rax*2]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x14a0]
call fcn.140002300
mov rsi, rax
test rsi, rsi
je 0x1400022d6
cmp rsi, 0xffffffffffffffff
je 0x1400022d6
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rdi, qword [0x140026d80]
mov qword [rsp + 0x44], rbp
mov ebp, 1
mov dword [rsp + 0x4c], ebp
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
and qword [rsp + 0x28], 0
mov r9d, ebp
mov qword [rsp + 0x20], rcx
mov r8, rsi
mov rcx, rax
mov edx, ebx
call rdi
mov rcx, qword [rsp + 0x28f0]
xor rcx, rsp
call fcn.140007a00
lea r11, [rsp + 0x2900]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140002300
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x3c80]
mov eax, 0x3d80
call fcn.1400079a0
sub rsp, rax
mov rax, qword [0x140026100]
xor rax, rsp
mov qword [rbp + 0x3c70], rax
mov rbx, rcx
lea rdx, str._stdata_
mov r8, rcx
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_wsprintfW]
xor edx, edx
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140002360
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140002391
mov r8, rbx
lea rdx, str._sdumps_
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_wsprintfW]
xor edx, edx
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140002398
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140002398
xor eax, eax
jmp 0x14000248c
mov r8, qword [str.Updater.exe]
lea rcx, [rbp + 0x13d0]
mov edx, 0xa28
call fcn.14000e264
mov edx, 0x2e
lea rcx, [rbp + 0x13d0]
call fcn.1400083b0
test rax, rax
je 0x1400023d6
lea rdx, [0x1400196fc]
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movzx ecx, word [rsp + 0x7c]
movzx edx, word [rsp + 0x7a]
movzx r8d, word [rsp + 0x78]
movzx r9d, word [rsp + 0x76]
movzx r10d, word [rsp + 0x72]
movzx r11d, word [rsp + 0x70]
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x58], eax
mov rax, qword [section..data]
mov dword [rsp + 0x50], ecx
lea rcx, [rbp + 0x2820]
mov dword [rsp + 0x48], edx
lea rdx, str._s_s__s__04d_02d_02d__02d_02d_02d__ld__ld.dmp
mov dword [rsp + 0x40], r8d
lea r8, [rbp - 0x80]
mov dword [rsp + 0x38], r9d
lea r9, [rbp + 0x13d0]
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], r11d
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_wsprintfW]
and qword [rsp + 0x30], 0
lea rcx, [rbp + 0x2820]
and dword [rsp + 0x28], 0
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rbp + 0x3c70]
xor rcx, rsp
call fcn.140007a00
mov rbx, qword [rsp + 0x3d98]
add rsp, 0x3d80
pop rbp
ret
Function at 0x1400025cc
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x140026100]
xor rax, rsp
mov qword [rbp + 0x47], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x27], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x37], xmm1
mov r8d, 0xe
lea rdx, str.tupdates_ready
lea rcx, [rbp + 0x27]
call fcn.1400012cc
nop
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x17], xmm1
mov r8d, 0xd
lea rdx, str.tupdates_temp
lea rcx, [rbp + 7]
call fcn.1400012cc
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 9], xmm1
mov r8d, 8
lea rdx, str.tupdates
lea rcx, [rbp - 0x19]
call fcn.1400012cc
nop
lea rcx, [rbp + 0x27]
call fcn.1400027bc
lea rcx, [rbp + 7]
call fcn.1400027bc
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 7
cmova rcx, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop
mov ebx, 0x1000
mov rdx, qword [rbp - 1]
cmp rdx, 7
jbe 0x1400026cb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, rbx
jb 0x1400026c6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002786
call fcn.1400073a8
movdqa xmm0, xmmword [0x14001a950]
movdqu xmmword [rbp - 9], xmm0
xor edi, edi
mov word [rbp - 0x19], di
mov rdx, qword [rbp + 0x1f]
cmp rdx, 7
jbe 0x140002716
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, rbx
jb 0x140002711
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000278c
call fcn.1400073a8
movdqa xmm0, xmmword [0x14001a950]
movdqu xmmword [rbp + 0x17], xmm0
mov word [rbp + 7], di
mov rdx, qword [rbp + 0x3f]
cmp rdx, 7
jbe 0x14000275f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, rbx
jb 0x14000275a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002780
call fcn.1400073a8
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140007a00
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call fcn.14000e1ec
nop
call fcn.14000e1ec
nop
call fcn.14000e1ec
int3
Function at 0x1400027bc
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1fb0]
mov eax, 0x20b0
call fcn.1400079a0
sub rsp, rax
mov rax, qword [0x140026100]
xor rax, rsp
mov qword [rbp + 0x1fa0], rax
mov rbx, rcx
mov rax, qword [rcx + 0x10]
lea r8, [rax*2 + 2]
mov rdx, rcx
cmp qword [rcx + 0x18], 7
jbe 0x140002809
mov rdx, qword [rcx]
lea rcx, [rbp - 0x60]
call fcn.1400174e0
mov rax, qword [rbx + 0x10]
lea rax, [rax*2 + 2]
cmp rax, 0x2000
jae 0x14000295c
xor edi, edi
mov word [rbp + rax - 0x60], di
mov r8, rbx
lea rdx, str.Fully_clearing_path_
lea rcx, [rsp + 0x78]
call fcn.140001224
nop
lea r8, [0x1400196c8]
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.1400010c8
nop
mov rcx, rax
call fcn.1400049dc
nop
lea rcx, [rsp + 0x58]
call fcn.140002064
nop
lea rcx, [rsp + 0x78]
call fcn.140002064
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
lea rax, [rbp - 0x60]
mov qword [rsp + 0x30], rax
lea rcx, [0x1400196fc]
mov qword [rsp + 0x38], rcx
mov eax, 0x414
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x140002932
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
lea r8d, [rdi + 0x1f]
lea rdx, str.Error:_failed_to_clear_path__:_
lea rcx, [rsp + 0x58]
call fcn.1400012cc
nop
lea rcx, [rsp + 0x58]
call fcn.1400049dc
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x140002932
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000292d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002956
call fcn.1400073a8
mov rcx, qword [rbp + 0x1fa0]
xor rcx, rsp
call fcn.140007a00
lea r11, [rsp + 0x20b0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.14000e1ec
int3
call fcn.1400076f8
int3
Function at 0x140002a68
Capabilities:
Create directory

Disassembly:
push rbp
lea rbp, [rsp - 0x13d0]
mov eax, 0x14d0
call fcn.1400079a0
sub rsp, rax
mov rax, qword [0x140026100]
xor rax, rsp
mov qword [rbp + 0x13c0], rax
cmp byte [0x140026d18], 0
je 0x140002bf7
cmp qword [0x140026d20], 0
jne 0x140002bf7
xorps xmm0, xmm0
lea rdx, str.DebugLogs
xorps xmm1, xmm1
lea rcx, [rsp + 0x50]
mov r8d, 9
movups xmmword [rsp + 0x50], xmm0
movdqu xmmword [rsp + 0x60], xmm1
call fcn.1400012cc
cmp qword [rsp + 0x68], 7
lea rcx, [rsp + 0x50]
cmova rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140002b14
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140002b14
cmp eax, 0xb7
je 0x140002b14
mov edx, eax
lea rcx, str.Failed_to_create_log_directory
call fcn.14000428c
jmp 0x140002bb9
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rsp + 0x4a]
movzx edx, word [rsp + 0x48]
movzx eax, word [rsp + 0x4c]
movzx r10d, word [rsp + 0x46]
movzx r9d, word [rsp + 0x42]
movzx r8d, word [rsp + 0x40]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x28], edx
lea rdx, str.DebugLogs_04d_02d_02d__02d_02d_02d_upd.txt
mov dword [rsp + 0x20], r10d
call qword [sym.imp.USER32.dll_wsprintfW]
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x70]
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140026d20], rax
cmp rax, 0xffffffffffffffff
jne 0x140002bb9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_create_log_file
call fcn.14000428c
and qword [0x140026d20], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140002bf7
mov rcx, qword [rsp + 0x50]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002bf2
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002c0f
call fcn.1400073a8
mov rcx, qword [rbp + 0x13c0]
xor rcx, rsp
call fcn.140007a00
add rsp, 0x14d0
pop rbp
ret
call fcn.14000e1ec
int3
Function at 0x1400049dc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x140026100]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
xor edi, edi
cmp qword [0x140026d20], rdi
je 0x140004b60
lea eax, [rdi + 0xa]
mov word [rbp - 0x29], ax
mov rax, qword [rcx + 0x10]
movabs rcx, 0x7ffffffffffffffe
cmp rax, rcx
je 0x140004b81
mov r9, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140004a3e
mov r9, qword [rbx]
mov qword [rsp + 0x30], 1
lea rcx, [rbp - 0x29]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r8, rbx
mov dl, byte [rbp - 0x29]
lea rcx, [rbp - 0x19]
call fcn.140001a10
nop
mov dword [rbp - 0x21], edi
mov eax, dword [rbp - 9]
lea r8d, [rax + rax]
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 7
cmova rdx, qword [rbp - 0x19]
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x21]
mov rcx, qword [0x140026d20]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140004aea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov r8, rbx
lea rdx, [0x140019650]
lea rcx, [rbp + 0x27]
call fcn.140001224
nop
lea r8, [0x14001964c]
mov rdx, rax
lea rcx, [rbp + 7]
call fcn.1400010c8
cmp qword [rax + 0x18], 7
jbe 0x140004ad0
mov rax, qword [rax]
mov edx, edi
mov rcx, rax
call fcn.14000428c
lea rcx, [rbp + 7]
call fcn.140002064
nop
lea rcx, [rbp + 0x27]
jmp 0x140004b4c
mov rcx, qword [0x140026d20]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x140004b57
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov r8, rbx
lea rdx, str.Failed_to_flush_log_on_entry_
lea rcx, [rbp + 7]
call fcn.140001224
nop
lea r8, [0x14001964c]
mov rdx, rax
lea rcx, [rbp + 0x27]
call fcn.1400010c8
cmp qword [rax + 0x18], 7
jbe 0x140004b34
mov rax, qword [rax]
mov edx, edi
mov rcx, rax
call fcn.14000428c
lea rcx, [rbp + 0x27]
call fcn.140002064
nop
lea rcx, [rbp + 7]
call fcn.140002064
call fcn.1400025a8
nop
lea rcx, [rbp - 0x19]
call fcn.140002064
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140007a00
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.1400020dc
int3
Function at 0x140008158
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400081a2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400081a2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400081a2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400081a2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400081a2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400081a4
xor al, al
add rsp, 0x28
ret

Function at 0x14000ed94
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000eb90
Function at 0x140011ef0
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
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140011f77
mov rsi, rbx
cmp word [rax], bp
je 0x140011f36
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140011f20
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140011f1c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140010b18
mov rdi, rax
test rax, rax
je 0x140011f64
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400174e0
mov rbp, rdi
xor ecx, ecx
call fcn.140010c54
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140016da4
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140016e1c
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140016e1c
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140016e1c
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140016e10
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140016e2e
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140016dfe
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x140016e1e

Function at 0x1400172e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140017308
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140017308
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000f880
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x14000f903
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
add rax, 1
cmp rax, 2
jb 0x14000f8ce
call fcn.140014640
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsi]
mov rdx, rsi
mov r9, rax
call fcn.1400146c0
mov rcx, qword [rsi]
call fcn.140014650
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x14000f8fc
mov qword [rsi], rdi
call fcn.140014640
mov r8, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
mov r9, rax
call fcn.140014680
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
invalid
jae 0x1400c3e17
or esi, ecx
or dword [rdi + rax*2], edx
sal dword [rsi - 0x67], cl
test dword [rax + rcx*8 - 0x68], ecx
xchg edx, eax
add al, 0x3d
or dword [rdi - 0x28], edi
mov edi, dword [rdi]
jnp 0x1400c3e99
sub al, 0xb
invalid
or esi, eax
cmc
mov esi, dword [rsi]
cld
scasb al, byte [rdi]
mov dl, 0x83
invalid
push rsp
sbb al, 0x82
test esp, edx
fisub word [rbx + 0x2b]
jp 0x1400c3eb7
invalid
or dword [rdi], edi
add edi, dword [rbx - 0x39880567]
cli
ja 0x1400c3e55
cli
ja 0x1400c3e55
jp 0x1400c3ea1
sbb rax, 0xffffffff996084d8
rol dword [rsi + 0xe], 1
rol dword [rcx], 0xc3
xor ch, bl
outsb dx, byte [rsi]
push rsi
invalid
ror byte [rcx - 0x19], 1
jl 0x1400c3e7e
sbb al, 0x9e
or al, 0x4a
pop rsi
cdq
sub edi, dword [rbx]
add al, 0xb4
invalid
insb byte [rdi], dx
invalid

Function at 0x140010e90
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x230
mov r14, rcx
mov rax, qword [0x140065020]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov word [rdi], 0
xor ebx, ebx
lea r15, str.PROGRAMFILES
mov rsi, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx + r15]
mov word [rsp + 0x20], 0
mov r8d, 0x104
mov rdx, rdi
call rsi
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140010eff
mov edx, eax
mov rcx, rdi
mov r8, r14
call fcn.140010e20
test al, al
jne 0x140010f0d
add rbx, 8
cmp rbx, 0x18
jne 0x140010ecd
xor esi, esi
jmp 0x140010f10
mov sil, 1
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.14002a340
mov eax, esi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400018f0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
test rcx, rcx
jle 0x1400019c7
push rbx
sub rsp, 0x40
mov rbx, rcx
cmp rcx, 0x64
jle 0x14000195c
imul rax, rbx, 0xfffffffffffffff6
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x50], rax
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
xor r9d, r9d
lea rdx, [rsp + 0x50]
mov rbx, rax
xor r8d, r8d
xor eax, eax
mov rcx, rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_SetWaitableTimer]
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x40
pop rbx
ret
lea rcx, [rsp + 0x60]
movaps xmmword [rsp + 0x30], xmm6
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movss xmm6, dword [0x140073860]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x50]
xorps xmm1, xmm1
sub rax, qword [rsp + 0x58]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [rsp + 0x60]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
mulss xmm1, xmm6
mulss xmm1, xmm6
cvttss2si rax, xmm1
cmp rax, rbx
jl 0x140001980
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
ret
Function at 0x140002940
Capabilities:
Hash data using djb2

Disassembly:
push rbx
push rbp
push rdi
push r12
push r13
sub rsp, 0x20
mov rax, qword [rcx + 0x10]
lea rbx, reloc.WS2_32.dll_getpeername
mov r12, r9
mov r13, r8
mov rdi, rdx
mov rbp, rcx
mov rax, qword [rbx + rax*8]
cmp qword [rcx], rax
jb 0x140002984
call fcn.140002770
test eax, eax
je 0x140002984
or eax, 0xffffffff
add rsp, 0x20
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret
movsx rax, byte [rdi]
mov rcx, rdi
mov qword [rsp + 0x50], rsi
mov esi, 0x1505
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r15
test rax, rax
je 0x1400029c4
nop dword [rax]
nop dword [rax + rax]
imul rsi, rsi, 0x21
lea rcx, [rcx + 1]
add rsi, rax
movsx rax, byte [rcx]
test rax, rax
jne 0x1400029b0
mov rcx, qword [rbp + 0x10]
lea r15, [rbp + 0x18]
xor edx, edx
mov rax, rsi
div qword [rbx + rcx*8]
mov r14, rdx
shl r14, 4
add r14, qword [rbp + 8]
mov rbx, qword [r14]
cmp rbx, r15
jne 0x1400029f0
cmp rbx, qword [r14 + 8]
je 0x140002a50
nop
cmp qword [rbx - 8], rsi
jne 0x140002a17
lea rax, [rbx + 0x20]
mov r8, rdi
sub r8, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140002a13
inc rax
test ecx, ecx
jne 0x140002a00
test edx, edx
je 0x140002a23
cmp rbx, qword [r14 + 8]
je 0x140002a50
mov rbx, qword [rbx + 8]
jmp 0x1400029f0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140002a45
mov rax, qword [rcx + 8]
cmp rax, 0xffffffffffffffff
je 0x140002a45
sub rax, 1
mov qword [rcx + 8], rax
jne 0x140002a45
call fcn.140004e50
mov qword [rbx + 0x10], r12
xor eax, eax
jmp 0x140002b01
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rdi + rcx], 0
jne 0x140002a54
add rcx, 0x29
je 0x140002afe
call qword [0x14006e2c0]
test rax, rax
je 0x140002afe
mov rdx, rax
mov qword [rax], rsi
sub rdx, rdi
mov qword [rax + 0x20], r13
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rdi]
mov byte [rdx + rdi + 0x28], cl
lea rdi, [rdi + 1]
test cl, cl
jne 0x140002a90
mov qword [rax + 0x18], r12
lea rcx, [rax + 8]
mov qword [rcx + 8], rcx
mov qword [rcx], rcx
mov rdx, qword [r14]
cmp rdx, r15
jne 0x140002adf
cmp rdx, qword [r14 + 8]
jne 0x140002adf
mov qword [rcx + 8], r15
mov rax, qword [r15]
mov qword [rcx], rax
mov rax, qword [r15]
mov qword [rax + 8], rcx
mov qword [r15], rcx
mov qword [r14 + 8], rcx
mov qword [r14], rcx
inc qword [rbp]
xor eax, eax
jmp 0x140002b01
mov qword [rcx + 8], rdx
mov rax, qword [rdx]
mov qword [rcx], rax
mov rax, qword [rdx]
mov qword [rax + 8], rcx
mov qword [rdx], rcx
mov qword [r14], rcx
inc qword [rbp]
xor eax, eax
jmp 0x140002b01
or eax, 0xffffffff
mov r14, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov r15, qword [rsp + 0x60]
add rsp, 0x20
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret