joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14030dce4
Capabilities:
Compute adler32 checksum

Disassembly:
push rbx
sub rsp, 0x20
mov r11d, r8d
mov rbx, rdx
cmp r8d, 0x20
jbe 0x14030dd20
mov dword [rsp + 0x40], ecx
test rdx, rdx
je 0x14030dd68
mov rax, qword [0x140505e48]
lea r8, [rsp + 0x40]
mov edx, r11d
mov rcx, rbx
call qword [case.0x1400ae9d9.0]
mov eax, dword [rsp + 0x40]
jmp 0x14030dec0
mov r10d, ecx
movzx r9d, cx
shr r10d, 0x10
cmp r11d, 1
jne 0x14030dd63
movzx ecx, byte [rdx]
mov r11d, 0xfff1
add ecx, r9d
cmp ecx, r11d
lea edx, [rcx - 0xfff1]
cmovb edx, ecx
lea ecx, [rdx + r10]
cmp ecx, r11d
lea eax, [rcx - 0xfff1]
cmovb eax, ecx
shl eax, 0x10
or eax, edx
jmp 0x14030dec0
test rbx, rbx
jne 0x14030dd72
mov eax, 1
jmp 0x14030dec0
cmp r11d, 0x10
jae 0x14030ddbf
test r8d, r8d
je 0x14030dd8f
movzx eax, byte [rbx]
inc rbx
add r9d, eax
add r10d, r9d
add r11d, 0xffffffff
jne 0x14030dd7d
mov r11d, 0xfff1
lea r8d, [r9 - 0xfff1]
cmp r9d, r11d
mov eax, 0x80078071
cmovb r8d, r9d
mul r10d
shr edx, 0xf
imul eax, edx, 0xf
add eax, r10d
shl eax, 0x10
or eax, r8d
jmp 0x14030dec0
mov rcx, r11
shr rcx, 4
movzx eax, byte [rbx]
add r11d, 0xfffffff0
add r9d, eax
movzx eax, byte [rbx + 1]
add r10d, r9d
add r9d, eax
movzx eax, byte [rbx + 2]
add r10d, r9d
add r9d, eax
movzx eax, byte [rbx + 3]
add r10d, r9d
add r9d, eax
movzx eax, byte [rbx + 4]
add r10d, r9d
add r9d, eax
movzx eax, byte [rbx + 5]
add r10d, r9d
add r9d, eax
movzx eax, byte [rbx + 6]
add r10d, r9d
add r9d, eax
movzx eax, byte [rbx + 7]
add r10d, r9d
add r9d, eax
movzx eax, byte [rbx + 8]
add r10d, r9d
add r9d, eax
movzx eax, byte [rbx + 9]
add r10d, r9d
add r9d, eax
movzx eax, byte [rbx + 0xa]
add r10d, r9d
add r9d, eax
movzx eax, byte [rbx + 0xb]
add r10d, r9d
add r9d, eax
movzx eax, byte [rbx + 0xc]
add r10d, r9d
add r9d, eax
movzx eax, byte [rbx + 0xd]
add r10d, r9d
add r9d, eax
movzx eax, byte [rbx + 0xe]
add r10d, r9d
add r9d, eax
movzx eax, byte [rbx + 0xf]
add r10d, r9d
add rbx, 0x10
add r9d, eax
add r10d, r9d
sub rcx, 1
jne 0x14030ddc6
test r11d, r11d
je 0x14030de8e
movzx eax, byte [rbx]
inc rbx
add r9d, eax
add r10d, r9d
add r11d, 0xffffffff
jne 0x14030de7c
mov eax, 0x80078071
mul r10d
mov eax, 0x80078071
shr edx, 0xf
imul ecx, edx, 0xfff1
mul r9d
sub r10d, ecx
shr edx, 0xf
imul ecx, edx, 0xfff1
shl r10d, 0x10
sub r9d, ecx
or r10d, r9d
mov eax, r10d
add rsp, 0x20
pop rbx
ret
Function at 0x140314900
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r15
sub rsp, 0x30
xor ebp, ebp
mov esi, r8d
mov edi, edx
mov rbx, rcx
test rcx, rcx
je 0x140314a0d
test edx, edx
je 0x140314a0d
cmp r8d, 0x80
jae 0x140314a0d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x140314953
mov eax, ebp
jmp 0x140314a12
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
je 0x14031494c
cmp eax, 3
je 0x140314980
test eax, eax
jle 0x140314a12
movzx eax, ax
or eax, 0x80070000
jmp 0x140314a12
lea rax, [rsp + 0x50]
mov r15d, 0x5c
mov qword [rsp + 0x28], rax
mov edx, r15d
lea rax, [rsp + 0x68]
mov r8d, edi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140314238
test eax, eax
js 0x140314a12
cmp dword [rsp + 0x50], ebp
jne 0x1403149b9
mov eax, 0x80070003
jmp 0x140314a12
mov edx, dword [rsp + 0x68]
lea r8d, [rsi + 1]
mov rcx, rbx
mov edi, edx
mov word [rbx + rdx*2], bp
call fcn.140314900
test eax, eax
js 0x140314a12
xor edx, edx
mov word [rbx + rdi*2], r15w
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x14031494c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
je 0x14031494c
jmp 0x14031496b
mov eax, 0x80070057
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop rdi
pop rsi
ret
Function at 0x140315210
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
xor ebx, ebx
xor esi, esi
mov rbp, r9
mov r14d, r8d
mov r15, rdx
mov rdi, rcx
test rdx, rdx
je 0x140315372
test r8d, r8d
je 0x140315372
test r9, r9
je 0x140315372
test rcx, rcx
je 0x140315372
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
nop dword [rax + rax]
and dword [rsp + 0x40], ebx
mov r9, rbp
and dword [rsp + 0x44], ebx
mov rsi, rax
mov qword [rsp + 0x48], rax
mov r8d, r14d
lea rax, [rsp + 0x30]
mov rdx, r15
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
mov r14d, 0x80070000
test eax, eax
jne 0x1403152e1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x3e5
je 0x1403152e1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x1403152d9
movzx ebx, ax
or ebx, r14d
test ebx, ebx
js 0x140315377
mov edx, 0x2710
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
nop dword [rax + rax]
test eax, eax
je 0x14031532f
cmp eax, 0x102
jne 0x14031536a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CancelIo]
nop dword [rax + rax]
test eax, eax
jne 0x14031532f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14031532b
movzx ebx, ax
or ebx, r14d
test ebx, ebx
js 0x140315377
mov r9d, 1
lea rdx, [rsp + 0x30]
mov r8, rbp
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_GetOverlappedResult]
nop dword [rax + rax]
test eax, eax
jne 0x140315377
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140315377
movzx ebx, ax
or ebx, r14d
jmp 0x140315377
test eax, eax
jg 0x140315362
mov ebx, eax
jmp 0x140315377
mov ebx, 0x80070057
test rsi, rsi
je 0x14031538b
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140315578
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
xor ebx, ebx
xor esi, esi
mov rbp, r9
mov r15d, r8d
mov r14, rdx
mov rdi, rcx
test rdx, rdx
je 0x1403156d6
test r9, r9
je 0x1403156d6
test rcx, rcx
je 0x1403156d6
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
nop dword [rax + rax]
and dword [rsp + 0x40], ebx
mov r9, rbp
and dword [rsp + 0x44], ebx
mov rsi, rax
mov qword [rsp + 0x48], rax
mov r8d, r15d
lea rax, [rsp + 0x30]
mov rdx, r14
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
mov r14d, 0x80070000
test eax, eax
jne 0x140315640
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x3e5
je 0x140315640
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140315638
movzx ebx, ax
or ebx, r14d
test ebx, ebx
js 0x1403156db
mov edx, 0x2710
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
nop dword [rax + rax]
test eax, eax
jne 0x14031565d
xor r9d, r9d
jmp 0x140315699
cmp eax, 0x102
jne 0x1403156ce
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CancelIo]
nop dword [rax + rax]
test eax, eax
jne 0x140315693
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14031568f
movzx ebx, ax
or ebx, r14d
test ebx, ebx
js 0x1403156db
mov r9d, 1
mov r8, rbp
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_GetOverlappedResult]
nop dword [rax + rax]
test eax, eax
jne 0x1403156db
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x1403156db
movzx ebx, ax
or ebx, r14d
jmp 0x1403156db
test eax, eax
jg 0x1403156c6
mov ebx, eax
jmp 0x1403156db
mov ebx, 0x80070057
test rsi, rsi
je 0x1403156ef
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1403179e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rsp + 0x60]
mov esi, r9d
mov rbp, r8
mov rbx, rcx
and dword [rdi], 0
cmp qword [rcx + 0x30], 0
je 0x140317a12
cmp rdx, qword [rcx + 0x30]
je 0x140317a40
mov rcx, qword [rcx + 0x18]
lea r8, [rsp + 0x40]
and qword [rsp + 0x40], 0
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
nop dword [rax + rax]
test eax, eax
jne 0x140317a40
and qword [rbx + 0x30], 0
call fcn.140317c70
jmp 0x140317a76
mov rcx, qword [rbx + 0x18]
lea r9, [rsp + 0x60]
and dword [rsp + 0x60], 0
mov r8d, esi
and qword [rsp + 0x20], 0
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
je 0x140317a39
mov ecx, dword [rsp + 0x60]
add qword [rbx + 0x30], rcx
xor eax, eax
mov dword [rdi], ecx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140326d60
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1404e1800]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rdx
lea rdi, [rdx + 0x2c]
mov rdx, rdi
lea rcx, [rbp - 0x28]
call fcn.14008c350
nop
lea rcx, [rbp - 0x28]
call fcn.1400ba3b4
xor r8d, r8d
lea rdx, [0x140500180]
lea rcx, [rbp - 0x28]
call fcn.140086d00
test al, al
je 0x14032428b
call fcn.140091ae4
cmp dword [rax], 5
jbe 0x1403241ff
mov qword [rbp - 0x30], rdi
mov ecx, dword [rbx + 8]
mov dword [rbp - 0x40], ecx
lea rcx, str.Process_is_already_running._Terminate_it
mov qword [rbp - 0x38], rcx
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
lea rdx, [0x1404595d0]
mov rcx, rax
call fcn.140008b90
mov r8d, dword [rbx + 8]
xor edx, edx
mov ecx, 0x100401
call qword [sym.imp.KERNEL32.dll_OpenProcess]
nop dword [rax + rax]
mov rbx, rax
mov qword [rbp - 0x38], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140324281
lea rdx, [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
nop dword [rax + rax]
test eax, eax
je 0x140324281
cmp dword [rbp - 0x40], 0x103
jne 0x140324281
mov edx, 0x42b
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
nop dword [rax + rax]
test eax, eax
jne 0x140324263
call fcn.14007e73c
mov edx, 0x2710
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
nop dword [rax + rax]
test eax, eax
je 0x140324281
call fcn.14007e73c
nop
lea rcx, [rbp - 0x38]
call fcn.1400f0310
nop
lea rcx, [rbp - 0x28]
call fcn.14007a7c0
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140112420
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
jmp 0x140324158
Function at 0x14032e994
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
mov ebx, r9d
mov rdi, r8
mov esi, edx
and dword [rbp + 0x28], 0
call fcn.14032e4c4
mov qword [rbp - 0x30], rax
and qword [rsp + 0x38], 0
lea rcx, [rbp + 0x28]
mov qword [rsp + 0x30], rcx
mov ecx, dword [rbp + 0x48]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
je 0x14032ea17
lea rcx, [rbp - 0x30]
call fcn.1400f0310
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
nop
mov ebx, eax
call fcn.140091ae4
cmp dword [rax], 2
jbe 0x14032ea7c
mov dword [rbp + 0x20], esi
lea rcx, str.DeviceIoControl_failed
mov qword [rbp - 0x38], rcx
test ebx, ebx
jg 0x14032ea46
mov ecx, ebx
jmp 0x14032ea4f
movzx ecx, bx
or ecx, 0x80070000
mov dword [rbp - 0x40], ecx
lea rcx, [rbp + 0x20]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x20], rcx
lea rdx, [0x1404597f0]
mov rcx, rax
call fcn.14000794c
mov r8d, ebx
mov edx, esi
lea rcx, [rbp - 0x28]
call fcn.14032e1fc
lea rdx, [0x1404af860]
lea rcx, [rbp - 0x28]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3

Function at 0x14032eaa4
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
call fcn.14032e924
mov rdi, rax
test rax, rax
jne 0x14032eacb
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x14032eb09
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_StartServiceW]
nop dword [rax + rax]
test eax, eax
jne 0x14032eaf8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x420
jne 0x14032eafa
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
test ebx, ebx
jne 0x14032eb19
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.14032e2f8
lea rdx, [0x1404af8a8]
lea rcx, [rsp + 0x20]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
Function at 0x14033821c
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x20
and dword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
xor edx, edx
mov rbx, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
nop dword [rax + rax]
test eax, eax
jne 0x140338265
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xea
je 0x140338265
test eax, eax
jle 0x140338271
movzx eax, ax
or eax, 0x80070000
jmp 0x140338271
cmp dword [rsp + 0x38], 1
seta al
mov byte [rbx], al
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14033b304
Capabilities:
Encode data using base64

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbp, r8
mov r13, rdx
mov r14, rcx
xor eax, eax
mov dword [rsp + 0x20], eax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], 7
mov word [rcx], ax
mov dword [rsp + 0x20], 1
lea r12, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
cmp r8, 3
jb 0x14033b3f4
movabs rax, 0xaaaaaaaaaaaaaaab
mul rbp
mov r15, rdx
shr r15, 1
imul rax, r15, 0xfffffffffffffffd
add rbp, rax
movzx ebx, byte [r13]
movzx esi, byte [r13 + 1]
movzx edi, byte [r13 + 2]
mov eax, ebx
shr rax, 2
movsx edx, byte [rax + r12]
mov rcx, r14
call fcn.1400a99c0
and bl, 3
shl bl, 4
movzx ecx, bl
mov eax, esi
shr rax, 4
or rcx, rax
movsx edx, byte [rcx + r12]
mov rcx, r14
call fcn.1400a99c0
mov ebx, edi
and sil, 0xf
shl sil, 2
movzx ecx, sil
mov eax, edi
shr rax, 6
or rcx, rax
movsx edx, byte [rcx + r12]
mov rcx, r14
call fcn.1400a99c0
and ebx, 0x3f
movsx edx, byte [rbx + r12]
mov rcx, r14
call fcn.1400a99c0
add r13, 3
sub r15, 1
jne 0x14033b375
sub rbp, 1
je 0x14033b453
cmp rbp, 1
jne 0x14033b49b
movzx ebx, byte [r13]
movzx edi, byte [r13 + 1]
mov eax, ebx
shr rax, 2
movsx edx, byte [rax + r12]
mov rcx, r14
call fcn.1400a99c0
and bl, 3
shl bl, 4
movzx ecx, bl
mov eax, edi
shr rax, 4
or rcx, rax
movsx edx, byte [rcx + r12]
mov rcx, r14
call fcn.1400a99c0
and dil, 0xf
shl dil, 2
movzx eax, dil
movsx edx, byte [rax + r12]
jmp 0x14033b486
movzx ebx, byte [r13]
mov eax, ebx
shr rax, 2
movsx edx, byte [rax + r12]
mov rcx, r14
call fcn.1400a99c0
and bl, 3
shl bl, 4
movzx eax, bl
movsx edx, byte [rax + r12]
mov rcx, r14
call fcn.1400a99c0
mov edx, 0x3d
mov rcx, r14
call fcn.1400a99c0
mov edx, 0x3d
mov rcx, r14
call fcn.1400a99c0
mov rax, r14
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14033cf94
Capabilities:
Get file size

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rdi, rcx
call fcn.14033d16c
mov ebx, eax
mov dword [rbp + 0x28], eax
cmp eax, 5
jne 0x14033d0b6
call fcn.140091ae4
cmp dword [rax], ebx
jbe 0x14033cffc
lea rcx, [rdi + 0x10]
cmp qword [rcx + 0x18], 8
jb 0x14033cfcc
mov rcx, qword [rcx]
mov qword [rbp + 0x30], rcx
lea rcx, str.Access_denied_for_file__trying_with_impersonation
mov qword [rbp + 0x38], rcx
lea rcx, [rbp + 0x30]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x38]
mov qword [rsp + 0x20], rcx
lea rdx, [0x140459be9]
mov rcx, rax
call fcn.140001534
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
and qword [rbp - 0x10], 0
lea rcx, [rbp - 0x20]
call fcn.14026e580
mov qword [rbp - 0x30], rdi
lea rax, [rbp + 0x28]
mov qword [rbp - 0x28], rax
lea r8, [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
call fcn.14033ca9c
test al, al
je 0x14033d08b
call fcn.140091ae4
cmp dword [rax], 5
jbe 0x14033d08b
mov ecx, dword [rbp + 0x28]
mov dword [rbp + 0x30], ecx
lea rcx, [rdi + 0x10]
cmp qword [rcx + 0x18], 8
jb 0x14033d051
mov rcx, qword [rcx]
mov qword [rbp + 0x38], rcx
lea rcx, str.Failed_accessing_the_file_with_impersonation
mov qword [rbp - 0x30], rcx
lea rcx, [rbp + 0x30]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp + 0x38]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x20], rcx
lea rdx, [0x140459bb1]
mov rcx, rax
call fcn.140003260
nop
mov rbx, qword [rbp - 0x20]
test rbx, rbx
je 0x14033d0b3
mov rdx, qword [rbp - 0x18]
mov rcx, rbx
call fcn.14026d894
mov rdx, qword [rbp - 0x10]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rcx, rbx
call fcn.14007e6f0
mov ebx, dword [rbp + 0x28]
test ebx, ebx
jle 0x14033d0c5
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
jns 0x14033d0e3
mov rcx, qword [rbp + 0x18]
mov r9d, ebx
lea r8, str.amcorewcd_source_streamer_filestreamer.cpp
mov edx, 0x4f
call fcn.140070bd4
mov eax, ebx
jmp 0x14033d121
xor edx, edx
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
mov eax, eax
mov qword [rdi + 0x68], rax
mov ecx, 0xffffffff
cmp rax, rcx
jne 0x14033d11f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14033d121
movzx eax, ax
or eax, 0x80070000
jmp 0x14033d121
xor eax, eax
add rsp, 0x70
pop rdi
pop rbx
pop rbp
ret
Function at 0x14033d200
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x40
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rcx + 0x58]
test rcx, rcx
je 0x14033d27e
mov rax, qword [rcx]
lea rdx, [rsi + 0x30]
mov qword [r11 - 0x28], rdi
mov r9d, dword [rsi + 8]
mov r8, qword [rsi + 0x70]
mov rax, qword [rax + 0x10]
call qword [case.0x1400ae9d9.0]
mov ebx, eax
test eax, eax
jns 0x14033d267
mov rcx, qword [rsp + 0x48]
mov r9d, eax
lea r8, str.amcorewcd_source_streamer_filestreamer.cpp
mov edx, 0xb9
call fcn.140070bd4
mov eax, ebx
jmp 0x14033d2e1
mov rcx, qword [rdi + 8]
sub rcx, qword [rdi]
add qword [rsi + 0x70], rcx
mov rax, qword [rdi + 8]
sub rax, qword [rdi]
mov dword [r14], eax
jmp 0x14033d2d9
mov rax, qword [rdx + 8]
sub rax, qword [rdx]
mov edx, dword [rsi + 8]
cmp rax, rdx
jae 0x14033d295
mov rcx, rdi
call fcn.140091bc0
and qword [rsp + 0x20], 0
mov r9, r14
mov r8d, dword [rsi + 8]
mov rdx, qword [rdi]
mov rcx, qword [rsi + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
cmp eax, 1
jne 0x14033d2be
xor ebx, ebx
jmp 0x14033d2d9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14033d2d9
movzx ebx, ax
or ebx, 0x80070000
mov eax, ebx
jmp 0x14033d2e1
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14034146c
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rcx, qword [rdx]
mov rdi, rdx
add rcx, 0x60
cmp qword [rcx + 0x18], 8
jb 0x14034148f
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathFileExistsW]
nop dword [rax + rax]
test eax, eax
sete bl
call fcn.140091ae4
cmp dword [rax], 4
jbe 0x1403414fd
mov rcx, qword [rdi]
add rcx, 0x60
mov byte [rsp + 0x50], bl
cmp qword [rcx + 0x18], 8
jb 0x1403414bf
mov rcx, qword [rcx]
mov qword [rsp + 0x58], rcx
lea rdx, [0x14045a2f1]
lea rcx, str.irrelevantRulesPredicate_returned_with
mov qword [rsp + 0x60], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.14000b7b0
mov al, bl
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x14034163c
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
sub rsp, 0x50
mov rbx, rcx
mov r8d, 0x104
xor ecx, ecx
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
nop dword [rax + rax]
xor esi, esi
test eax, eax
jne 0x1403416fb
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call fcn.140091ae4
cmp dword [rax], 2
jbe 0x1403416ea
cmp qword [rbx + 0x18], 8
jb 0x140341696
mov rbx, qword [rbx]
lea rcx, str.ComputeSenseModuleFullPath_failed
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
lea rdx, [0x14045a169]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x70], edi
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov dword [rsp + 0x78], SafeArrayGetDim
call fcn.140014f6c
test edi, edi
jle 0x1403416f7
movzx edi, di
or edi, 0x80070000
mov eax, edi
jmp 0x14034172c
mov edx, 0x5c
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsrchr]
nop dword [rax + rax]
mov word [rax], si
cmp qword [rbx + 0x18], 8
jb 0x14034171c
mov rbx, qword [rbx]
mov r8, rbx
mov edx, 0x104
mov rcx, rdi
call fcn.14011a920
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret