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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140199710]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400c983f
cmp word [rdx], r13w
jne 0x1400c983f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400c9844
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400c9969
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400c998a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400c987d
mov rdx, r9
mov word [rbx], cx
jmp 0x1400c98a4
cmp r9, r8
jae 0x1400c98b4
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400c985e
jmp 0x1400c9969
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400c995e
cmp dword [rsp + 0x80], esi
je 0x1400c995e
lea r8, [0x140199710]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400c9936
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400c9906
mov word [rbx], r13w
jmp 0x1400c9966
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400c9913
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400c9966
cmp word [rsp + 0x70], r13w
jne 0x1400c9943
cmp rbx, r14
je 0x1400c9900
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400d9638
cmp word [rsp + 0x70], r13w
je 0x1400c9969
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140199710]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400c9963
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400c9969
Function at 0x1400d2230
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400d2258
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400d2258
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1400dc1e8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400d5e54
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400dc289
cmp ebx, dword [rsp + 0x30]
je 0x1400dc282
test esi, esi
je 0x1400dc282
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400dc25d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400dc26a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400dc247
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400dc26e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400dc28b
mov eax, 1
jmp 0x1400dc28b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400dd108
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400dd138
xor eax, eax
jmp 0x1400dd1fb
mov rbp, rbx
cmp word [rax], si
je 0x1400dd15d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400dd144
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400dd140
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400dd028
movsxd r14, eax
test eax, eax
jne 0x1400dd19b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400dd131
mov rcx, r14
call fcn.140043180
mov rdi, rax
test rax, rax
jne 0x1400dd1b4
xor ecx, ecx
call fcn.1400431d0
jmp 0x1400dd190
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400dd028
test eax, eax
jne 0x1400dd1e5
mov rcx, rdi
call fcn.1400431d0
jmp 0x1400dd1ef
xor ecx, ecx
call fcn.1400431d0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400dd218
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 0x1400dd29f
mov rsi, rbx
cmp word [rax], bp
je 0x1400dd25e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400dd248
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400dd244
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140043180
mov rdi, rax
test rax, rax
je 0x1400dd28c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400e6940
mov rbp, rdi
xor ecx, ecx
call fcn.1400431d0
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 0x1400df854
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400be638
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400df8de
cmp byte [rbp - 0x21], r15b
je 0x1400df8d9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400df914
call fcn.1400d6624
test eax, eax
jne 0x1400df900
cmp byte [rbp - 0x21], r15b
je 0x1400df8f8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400df914
cmp byte [rbp - 0x21], r15b
je 0x1400df911
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400c3c4c
test eax, eax
jne 0x1400df9b4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400be638
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400df953
cmp byte [rbp - 0x21], r15b
je 0x1400df988
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400df988
call fcn.1400d6624
test eax, eax
jne 0x1400df974
cmp byte [rbp - 0x21], r15b
je 0x1400df96d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400df988
cmp byte [rbp - 0x21], r15b
je 0x1400df985
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400c3c4c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400df9b4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400df9b7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400df9c5
mov rcx, rdi
call fcn.1400431d0
cmp byte [rbp + 0x3f], r15b
je 0x1400df9d4
mov rcx, qword [rbp + 0x27]
call fcn.1400431d0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1400dfb78
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14018a040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400dfbc2
call fcn.1400c6e80
mov dword [rax], 0xf
call fcn.1400c6e60
mov dword [rax], 0xd
call fcn.1400c87c8
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400b64a0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400dfbcd
lea eax, [rbx + 1]
jmp 0x1400dfbaf
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400dfbad
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400dfbaf
Function at 0x1400e0198
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400e01ae
mov al, 1
jmp 0x1400e020e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400e01bf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400e020c
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400c7b0c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400e020c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400e020c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400e020c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400e020e
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1401031c0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x14018a040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 1
je 0x1401031e9
mov rcx, qword [rsi]
jmp 0x1401031f2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x140103245
mov dil, 1
test bl, bl
je 0x140103224
cmp byte [rsi + 8], 1
je 0x140103210
mov rcx, qword [rsi]
jmp 0x140103219
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
cmp rcx, qword [0x14018a040]
je 0x14010323b
call fcn.1400b64a0
int3
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 1
jne 0x14010325c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14010325f
mov rcx, qword [rsi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140103272
xor edi, edi
jmp 0x140103224
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 1
je 0x140103285
mov rcx, qword [rsi]
jmp 0x14010328e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
jmp 0x140103224
Function at 0x1401036f0
Capabilities:
Move file

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rsi, rcx
mov rax, qword [0x14018a040]
xor rax, rsp
mov qword [rsp + 0x80], rax
movaps xmm0, xmmword [0x14015feb0]
lea rbx, [rsp + 0x40]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.DeleteFileAfterReboot
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x20]
mov rcx, r14
mov r9d, 0x1cf
call fcn.14008b1e0
xor edi, edi
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.140091510
mov al, byte [rsi + 0x17]
test al, al
jns 0x14010376e
cmp qword [rsi + 8], 0x103
ja 0x14010378c
test al, al
jns 0x140103775
mov rsi, qword [rsi]
mov rcx, rsi
xor edx, edx
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne dil
lea rcx, [rsp + 0x40]
call fcn.1400915a0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
cmp rcx, qword [0x14018a040]
je 0x1401037b0
call fcn.1400b64a0
int3
mov eax, edi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140103e20
Capabilities:
Access the windows event log
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x860
mov rsi, rcx
mov rax, qword [0x14018a040]
xor rax, rsp
mov qword [rsp + 0x858], rax
mov rdx, qword [0x14019b8a0]
test rdx, rdx
setne al
and al, byte [0x14018c140]
cmp al, 1
jne 0x140103fd9
cmp byte [rdx + 0x17], 0
jns 0x140103e6a
mov rdx, qword [rdx]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
test rax, rax
je 0x140103ffb
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.14008b200
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 0x18]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x60]
mov qword [r14 + 0x10], rax
movaps xmm0, xmmword [0x14015feb0]
movaps xmmword [r14], xmm0
lea rbx, [rsp + 0x80]
mov rdx, rbx
call fcn.1400770f0
lea r15, [rsp + 0x48]
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.1400768c0
mov eax, dword [rsi + 8]
mov bp, 1
lea ecx, [rax - 2]
cmp ecx, 2
jb 0x140104025
cmp eax, 1
je 0x140103efa
test eax, eax
jne 0x140103efe
mov bp, 4
jmp 0x140103efe
mov bp, 2
cmp byte [rsp + 0x77], 0
jns 0x140103f0a
mov r14, qword [rsp + 0x60]
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x48], 0
mov rcx, qword [0x14019b8b0]
cmp byte [rcx + 0x17], 0
jns 0x140103f2b
mov rcx, qword [rcx]
lea rdx, [rsp + 0x48]
call sub.ADVAPI32.dll_ConvertStringSidToSidW
test eax, eax
jne 0x140103f4f
lea rcx, [rsi + 0x10]
lea rdx, str.___ERROR_GETTING_USER_SID__
mov r8d, 0x1b
call fcn.140075c70
mov rax, qword [rsp + 0x48]
mov r9d, dword [0x14019b8ac]
movzx r8d, word [0x14019b8a8]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x30], 0
mov word [rsp + 0x28], 1
mov rcx, rdi
mov edx, ebp
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
test eax, eax
jne 0x140103faa
lea rcx, [rsi + 0x10]
lea rdx, str.___NOT_ADDED_TO_EVENTLOG__
mov r8d, 0x1a
call fcn.140075c70
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140103fba
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp byte [rsp + 0x77], 0
jns 0x140103fcb
mov rcx, qword [rsp + 0x60]
call fcn.1400b51b4
call fcn.14008b200
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, rsi
call fcn.14003c9e0
mov rcx, qword [rsp + 0x858]
xor rcx, rsp
cmp rcx, qword [0x14018a040]
je 0x140104013
call fcn.1400b64a0
int3
lea rcx, [rsi + 0x10]
lea rdx, str.___NOT_ADDED_TO_EVENTLOG__
mov r8d, 0x1a
call fcn.140075c70
jmp 0x140103fd9
add rsp, 0x860
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r12, [rsp + 0x80]
mov r8d, 0x7d8
mov rcx, r12
mov dl, 0xaa
call fcn.1400e6fe0
mov rcx, r12
call fcn.140049070
mov rcx, r12
mov rdx, r15
call fcn.14010d630
movsx r8, byte [rsp + 0x5f]
test r8, r8
jns 0x140104065
mov r8, qword [rsp + 0x50]
mov r15, qword [rsp + 0x48]
lea rcx, [rsp + 0x60]
mov rdx, r15
call fcn.140085610
cmp byte [rsp + 0x5f], 0
jns 0x140103efe
mov rcx, qword [rsp + 0x48]
call fcn.1400b51b4
jmp 0x140103efe
Function at 0x1401040c0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x14018a040]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x14019b8c8], 0
je 0x140104110
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
cmp rcx, qword [0x14018a040]
je 0x140104103
call fcn.1400b64a0
int3
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x14019b8d0]
test rdi, rdi
jne 0x1401041dd
mov ecx, 0x18
call fcn.1400b5178
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1400e6fe0
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x14015feb0]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.140084d70
movsx rax, byte [rdi + 0x17]
mov rcx, rdi
test rax, rax
jns 0x14010418a
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
je 0x1401041c1
add rax, rax
test rax, rax
je 0x1401041c1
lea rdx, [rax - 2]
cmp word [rcx + rax - 2], 0x5c
mov rax, rdx
jne 0x140104192
cmp rdx, 0xfffffffffffffffe
je 0x1401041c1
sar rdx, 1
inc rdx
mov rcx, rdi
mov r8, 0xffffffffffffffff
call fcn.140080140
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.140086170
mov qword [0x14019b8d0], rdi
test byte [0x14018c144], 1
je 0x1401040e9
cmp byte [rdi + 0x17], 0
jns 0x1401041f3
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14019b8c8], rax
inc rax
cmp rax, 1
ja 0x1401040e9
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400e6fe0
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jb 0x14010432f
mov rcx, qword [0x14019b8d0]
lea rdx, [rsp + 0x40]
call fcn.1400361d0
mov rcx, qword [0x14019b8d0]
movsx rax, byte [rcx + 0x17]
test rax, rax
js 0x140104336
test al, al
je 0x140104347
mov rdx, rcx
cmp word [rdx + rax*2 - 2], 0x5c
je 0x1401042c1
lea rdx, [0x1401647be]
mov r8d, 1
call fcn.140086170
mov rcx, qword [0x14019b8d0]
lea rdx, str.debug.log
mov r8d, 9
call fcn.140086170
mov rcx, qword [0x14019b8d0]
cmp byte [rcx + 0x17], 0
jns 0x1401042e3
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14019b8c8], rax
inc rax
cmp rax, 1
ja 0x1401040e9
mov qword [0x14019b8c8], 0
xor esi, esi
jmp 0x1401040e9
mov rax, qword [rcx + 8]
test rax, rax
je 0x140104347
mov rdx, qword [rcx]
jmp 0x1401042a0
ud2
Function at 0x140115eb0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
cmp rdx, r9
mov r10, r9
cmovb r10, rdx
xor eax, eax
test r10, r10
je 0x140115f0f
xor r11d, r11d
mov rsi, qword [r8 + r11*8]
mov rdi, qword [rcx + r11*8]
mov rbx, rdi
xor rbx, rsi
lea r14, [rbx - 1]
mov r15, rdi
sub r15, rsi
xor r15, rdi
or r15, rbx
not rbx
and r14, rbx
sar r14, 0x3f
xor r15, rdi
sar r15, 0x3f
or r15, 1
xor rax, r15
and rax, r14
xor rax, r15
inc r11
cmp r10, r11
jne 0x140115ecb
cmp rdx, r9
jb 0x140115f1e
ja 0x140115f42
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor ecx, ecx
or rcx, qword [r8 + rdx*8]
inc rdx
cmp r9, rdx
jne 0x140115f20
mov rdx, rcx
not rdx
dec rcx
and rcx, rdx
sar rcx, 0x3f
not ecx
or eax, ecx
jmp 0x140115f16
xor r8d, r8d
or r8, qword [rcx + r9*8]
inc r9
cmp rdx, r9
jne 0x140115f45
mov rcx, r8
not rcx
dec r8
and r8, rcx
sar r8, 0x3f
xor eax, 1
and eax, r8d
xor eax, 1
jmp 0x140115f16
Function at 0x14011f570
Capabilities:
Hash data using sha512

Disassembly:
movabs rax, 0x6a09e667f3bcc908
mov qword [rcx], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rcx + 8], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 0x10], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x18], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x20], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x28], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x30], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rcx + 0x38], rax
movabs rax, 0x4000000000
mov qword [rcx + 0xd0], rax
xorps xmm0, xmm0
movups xmmword [rcx + 0x40], xmm0
mov eax, 1
ret
Function at 0x140126580
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r12, r8
mov rdi, rdx
mov rsi, rcx
mov r13, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x38]
add rcx, r13
setb dl
movabs rax, 0xfffffffe0
cmp rcx, rax
seta r8b
xor eax, eax
or r8b, dl
jne 0x1401267ff
mov r14, r9
lea rbp, [rsi + 0x50]
mov rbx, qword [rsi + 0x160]
mov r15, qword [rsi + 0x150]
mov rax, qword [rsi + 0x158]
mov qword [rsp + 0x30], rax
mov qword [rsi + 0x38], rcx
cmp dword [rsi + 0x174], 0
je 0x14012660f
lea rcx, [rsi + 0x40]
mov rdx, rbp
mov rax, r15
call qword [0x14017da68]
mov dword [rsi + 0x174], 0
mov eax, dword [rsi + 0x170]
test eax, eax
je 0x140126676
test r13, r13
je 0x1401267f4
mov cl, byte [r12]
inc r12
mov edx, eax
mov r8b, byte [rsi + rdx + 0x10]
xor r8b, cl
mov byte [r14], r8b
xor byte [rsi + rdx + 0x40], cl
inc r14
lea r8, [r13 - 1]
inc eax
and eax, 0xf
je 0x140126651
cmp r13, 1
mov r13, r8
jne 0x140126622
test eax, eax
jne 0x1401267f4
lea rcx, [rsi + 0x40]
mov qword [rsp + 0x28], rbp
mov rdx, rbp
mov rax, r15
mov r15, r8
call qword [0x14017da68]
mov r8, r15
jmp 0x14012667e
mov qword [rsp + 0x28], rbp
mov r8, r13
mov ebp, dword [rsi + 0xc]
bswap ebp
cmp r8, 0xc00
jb 0x14012673b
lea rax, [rsi + 0x40]
mov qword [rsp + 0x38], rax
lea r13, [rsi + 0x10]
mov rax, r14
mov rcx, r12
mov qword [rsp + 0x40], r8
mov r15, rcx
mov r14, rax
mov r9d, 0xc00
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x28]
mov r8, r15
mov rax, qword [rsp + 0x30]
call qword [0x14017da68]
xor r12d, r12d
mov rcx, rsi
mov rdx, r13
mov r8, rdi
mov rax, rbx
call qword [0x14017da68]
inc ebp
mov eax, ebp
bswap eax
mov dword [rsi + 0xc], eax
mov rax, qword [rsi + 0x10]
xor rax, qword [r15 + r12]
mov qword [r14 + r12], rax
mov rax, qword [rsi + 0x18]
xor rax, qword [r15 + r12 + 8]
mov qword [r14 + r12 + 8], rax
add r12, 0x10
cmp r12, 0xc00
jne 0x1401266cf
mov r8, qword [rsp + 0x40]
add r8, 0xfffffffffffff400
lea rax, [r14 + r12]
lea rcx, [r15 + r12]
cmp r8, 0xbff
ja 0x1401266a3
add r14, r12
add r15, r12
mov r12, r15
mov r9, r8
and r9, 0xff0
je 0x1401267b3
lea rcx, [rsi + 0x40]
mov rdx, qword [rsp + 0x28]
mov r15, r8
mov r8, r12
mov rax, qword [rsp + 0x30]
call qword [0x14017da68]
mov r8, r15
lea r15, [rsi + 0x10]
mov rcx, rsi
mov rdx, r15
mov r13, r8
mov r8, rdi
mov rax, rbx
call qword [0x14017da68]
mov r8, r13
inc ebp
mov eax, ebp
bswap eax
mov dword [rsi + 0xc], eax
mov rax, qword [rsi + 0x10]
xor rax, qword [r12]
mov qword [r14], rax
mov rax, qword [rsi + 0x18]
xor rax, qword [r12 + 8]
mov qword [r14 + 8], rax
add r14, 0x10
add r12, 0x10
add r8, 0xfffffffffffffff0
cmp r8, 0xf
ja 0x140126768
test r8, r8
je 0x140126810
lea rdx, [rsi + 0x10]
mov rcx, rsi
mov r15, r8
mov r8, rdi
mov rax, rbx
call qword [0x14017da68]
mov r8, r15
inc ebp
bswap ebp
mov dword [rsi + 0xc], ebp
xor eax, eax
mov ecx, eax
mov dl, byte [r12 + rcx]
xor byte [rsi + rcx + 0x40], dl
xor dl, byte [rsi + rcx + 0x10]
mov byte [r14 + rcx], dl
inc rax
cmp r8, rax
jne 0x1401267da
mov dword [rsi + 0x170], eax
mov eax, 1
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x1401267f4
Function at 0x140152910
Capabilities:
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
cmp dword [r8], 0
jle 0x14015294f
xor eax, eax
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
cmp ecx, 0x8007000e
jne 0x14015291f
mov dword [rsi], 7
jmp 0x14015291f
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
call fcn.140074850
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000080
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x14015292b
mov r14, rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x14015292b
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 8], rax
test rax, rax
je 0x140152a01
mov qword [rdi + 0x28], rbx
mov al, 1
jmp 0x140152921
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14015291f