joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c86f8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movzx edx, dx
xor ecx, ecx
mov rsi, r9
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x1400c8755
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x1400c8755
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, qword [rsp + 0x50]
mov edx, eax
mov qword [rcx], rdx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsi], rax
mov al, 1
jmp 0x1400c8757
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400c8890
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub rsp, 0x38
mov r10, r9
cmp r8d, 1
jne 0x1400c88b1
lea r8, str.CSR1
add rcx, 0xfffffffffffffff0
add rsp, 0x38
jmp fcn.1400c86f8
cmp r8d, 7
jne 0x1400c88c0
lea r8, str.CSR2
jmp 0x1400c88a4
mov rax, qword [rcx]
mov r8, r10
mov r9, qword [rsp + 0x60]
mov rax, qword [rax + 8]
call qword [case.0x140174a01.0]
add rsp, 0x38
ret
Function at 0x1400e105c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140222818]
xor rax, rsp
mov qword [rbp - 0x10], rax
cmp byte [0x140230865], 0
jne 0x1400e1129
cmp byte [0x140230866], 0
mov byte [0x140230865], 1
je 0x1400e1129
movups xmm0, xmmword [0x1401c5e78]
lea rax, [rbp - 0x48]
mov r9d, 1
movups xmm1, xmmword [0x1401c5e88]
xor r8d, r8d
lea rdx, [rbp - 0x40]
movups xmmword [rbp - 0x40], xmm0
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
movups xmm0, xmmword [0x1401c5e98]
movups xmmword [rbp - 0x30], xmm1
movups xmmword [rbp - 0x20], xmm0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x1400e1129
and dword [rbp - 0x50], 0
lea rax, [rbp - 0x4c]
mov qword [rsp + 0x28], rax
lea rdx, str.bLaunchTiming
lea rax, [rbp - 0x50]
mov dword [rbp - 0x4c], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rbp - 0x50], 0
mov rcx, qword [rbp - 0x48]
setne byte [0x140230864]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [0x140230864]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14013a2d0
add rsp, 0x80
pop rbp
ret
Function at 0x1400e995c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
cmp byte [0x1402309b3], 0
je 0x1400e9976
test cl, cl
je 0x1400e9ae4
lea rax, [rbp - 0x10]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREAdobeAdobe_AcrobatDCInstaller_
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400e9add
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x1400e9add
and dword [rbp + 0x20], eax
and dword [rbp + 0x18], eax
cmp byte [0x1402309b3], al
mov dword [rbp + 0x28], 4
jne 0x1400e9a00
lea rax, [rbp + 0x28]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rax, [rbp + 0x18]
lea rdx, str.bIsSingleClientApp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400e9a00
cmp dword [rbp + 0x20], 4
jne 0x1400e9a00
cmp dword [rbp + 0x18], eax
setne byte [0x1402309b1]
cmp byte [0x1402309b1], 0
je 0x1400e9ad3
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x28]
and dword [rbp + 0x18], 0
lea r9, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rdx, str.bIsSCAcroAppInstalled
lea rax, [rbp + 0x18]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400e9a4f
cmp dword [rbp + 0x20], 4
jne 0x1400e9a4f
cmp dword [rbp + 0x18], eax
setne byte [0x1402309b0]
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x28]
and dword [rbp + 0x18], 0
lea r9, [rbp + 0x20]
mov qword [rsp + 0x28], rax
lea rdx, str.SCAPackageLevel
lea rax, [rbp + 0x18]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400e9a95
mov eax, dword [0x140222540]
cmp dword [rbp + 0x20], 4
cmove eax, dword [rbp + 0x18]
mov dword [0x140222540], eax
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rax, [rbp + 0x18]
xor r8d, r8d
lea rdx, str.IsAcrInstalledInRdrMode
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400e9ad3
cmp dword [rbp + 0x20], 4
jne 0x1400e9ad3
cmp dword [rbp + 0x18], eax
setne byte [0x1402309b2]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [0x1402309b3], 1
add rsp, 0x40
pop rbp
ret
Function at 0x1400f1b98
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rax, vtable.rna::messaging::NamedPipeChannelServer.0
mov qword [rcx], rax
call fcn.140174410
mov rcx, qword [rdi + 0x10]
mov ebx, 1
cmp rcx, 0xffffffffffffffff
je 0x1400f1be9
mov edx, 0xfa
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, ebx
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x108]
xor esi, esi
test rcx, rcx
je 0x1400f1c05
mov rax, qword [rcx]
mov edx, ebx
mov rax, qword [rax]
call qword [case.0x140174a01.0]
mov rcx, qword [rdi + 0x110]
test rcx, rcx
je 0x1400f1c1f
mov rax, qword [rcx]
mov edx, ebx
mov rax, qword [rax]
call qword [case.0x140174a01.0]
lea rcx, [rdi + 0x118]
call fcn.140058d38
lea rbx, [rdi + 0xd8]
lea rcx, [rbx + 0x28]
call fcn.140058d38
mov rcx, rbx
call fcn.1400ce340
mov rcx, qword [rbx]
mov qword [rbx], rsi
mov edx, 0x10
call fcn.140139cc4
nop
lea rcx, [rdi + 0x78]
call fcn.1400c72ec
mov rdx, qword [rdi + 0x70]
cmp rdx, 8
jb 0x1400f1c78
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi + 0x58]
call fcn.1400520e8
mov qword [rdi + 0x68], rsi
mov ebx, 7
mov qword [rdi + 0x70], rbx
mov word [rdi + 0x58], si
mov rdx, qword [rdi + 0x50]
cmp rdx, 8
jb 0x1400f1ca4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi + 0x38]
call fcn.1400520e8
mov qword [rdi + 0x48], rsi
mov qword [rdi + 0x50], rbx
mov word [rdi + 0x38], si
lea rax, vtable.rna::messaging::IpcChannelBase.0
mov qword [rdi], rax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400f20dc
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov ebx, r9d
mov rdi, r8
mov r14, rdx
mov rsi, rcx
mov ecx, pe_nt_image_headers64
call fcn.140139c88
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400f212b
mov dword [rsp + 0x20], ebx
xor r9d, r9d
mov r8, rdi
mov rdx, qword [r14]
mov rcx, rax
call fcn.1400f1950
mov rdi, rax
jmp 0x1400f212d
xor edi, edi
mov qword [rsp + 0x50], rdi
mov ecx, 0x10
call fcn.140139c88
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400f2159
lea rax, vtable.ServerChannelStateChangeHandler.0
mov qword [rbx], rax
mov qword [rbx + 8], rsi
jmp 0x1400f215b
xor ebx, ebx
mov rcx, qword [rdi + 0x108]
test rcx, rcx
je 0x1400f2178
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax]
call qword [case.0x140174a01.0]
mov qword [rdi + 0x108], rbx
lea rcx, [rsi + 0x10]
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx + 0x10]
je 0x1400f2197
mov qword [rdx], rdi
add qword [rcx + 8], 8
jmp 0x1400f21a1
lea r8, [rsp + 0x50]
call fcn.1400523b0
mov rcx, rdi
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
jmp 0x140174904
push rbx
sub rsp, 0x30
and dword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, [0x140174a20]
and dword [rsp + 0x20], 0
mov rbx, rcx
mov r9, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x10], rax
add rsp, 0x30
pop rbx
ret
Function at 0x140111040
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x140230bf4], 0x12c
mov rdi, rcx
jg 0x14011110f
lea rdx, [rcx + 0x20]
add rcx, 0x50
lea r8, [rsp + 0x38]
call fcn.140174f80
lea rbx, [rdi + 0x18]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x1401110d3
cmp dword [rsp + 0x38], 0
jne 0x1401110d3
cmp byte [rdi + 0x70], 0
lea rdx, [rsp + 0x38]
mov rcx, rbx
je 0x14011109c
call fcn.1401751b8
test al, al
jne 0x1401110ab
jmp 0x1401110d3
mov r8d, 0x493e0
call fcn.14017521c
test al, al
je 0x14011110f
and dword [0x140230bf4], 0
mov rcx, qword [rdi + 0x28]
mov byte [rdi + 0x70], 1
test rcx, rcx
je 0x1401110d3
mov rax, qword [rcx]
mov rdx, rbx
mov rax, qword [rax + 8]
call qword [case.0x140174a01.0]
test al, al
jne 0x140111104
cmp qword [rbx], 0xffffffffffffffff
je 0x1401110ec
cmp dword [rsp + 0x38], 0
jne 0x140111104
mov rcx, rbx
call fcn.140174e2c
or qword [rbx], 0xffffffffffffffff
cmp dword [rsp + 0x38], 0
je 0x140111104
inc dword [0x140230bf4]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x14016e4e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov al, byte [rcx + 8]
test al, al
je 0x14016e597
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x140174a01.0]
test al, al
je 0x14016e597
xor eax, eax
xchg byte [rbx + 8], al
mov rdi, qword [rbx + 0x10]
test rdi, rdi
je 0x14016e539
mov rcx, qword [rdi + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x14016e52c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov edx, 0x18
mov rcx, rdi
call fcn.140139cc4
mov ecx, 0x18
call fcn.140139c88
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14016e565
lea rax, [0x14016e4a0]
mov qword [rdi], rax
mov qword [rdi + 8], rbx
or qword [rdi + 0x10], 0xffffffffffffffff
jmp 0x14016e567
xor edi, edi
mov qword [rbx + 0x10], rdi
and dword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
mov r9, rdi
lea r8, [0x14016e650]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0x10], rax
mov al, byte [rbx + 8]
test al, al
sete al
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14016ed98
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x140222818]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov qword [rcx], rdx
mov rbx, rcx
mov byte [rcx + 8], r8b
lea rdi, str.Proxy_object_acquired_for_write_by_thread__d._n
test r8b, r8b
jne 0x14016edd4
lea rdi, str.Proxy_object_acquired_for_read__by_thread__d._n
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rdx, rdi
lea rcx, [rsp + 0x20]
mov r8d, eax
call fcn.14016de44
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp byte [rbx + 8], 1
mov rcx, qword [rbx]
jne 0x14016ee05
call fcn.140058d7c
jmp 0x14016ee0a
call fcn.140058d54
mov rax, rbx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14013a2d0
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret

Function at 0x14016f010
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x140222818]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rcx
cmp byte [rcx + 8], 0
lea rdi, str.Thread__d_releasing_Proxy_object_acquired_for_write._n
jne 0x14016f046
lea rdi, str.Thread__d_releasing_Proxy_object_acquired_for_read._n
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, eax
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.14016de44
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rbx]
cmp byte [rbx + 8], 1
jne 0x14016f077
call fcn.140058d90
jmp 0x14016f07d
call fcn.140058d68
nop
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14013a2d0
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
Function at 0x140174f80
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
or rsi, 0xffffffffffffffff
mov dword [r8], 7
cmp qword [rcx + 0x10], 0
mov rbx, r8
mov rdi, rcx
jne 0x140174fb3
mov dword [r8], 1
jmp 0x14017506b
and qword [rsp + 0x70], 0
lea r8, [rsp + 0x70]
xor r9d, r9d
lea rcx, str.S:_ML__NW___LW_
lea edx, [r9 + 1]
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
and dword [rsp + 0x50], 0
cmp qword [rdi + 0x18], 8
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 0x18
jb 0x140174ff2
mov rdi, qword [rdi]
mov al, byte [0x1402234b8]
mov r9d, 0xff
neg al
mov r8d, 8
lea rax, [rsp + 0x40]
mov rcx, rdi
mov qword [rsp + 0x38], rax
sbb edx, edx
and dword [rsp + 0x30], 0
mov eax, 0x400
and edx, 0x80000
mov dword [rsp + 0x28], eax
inc edx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rcx, qword [rsp + 0x70]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp rsi, 0xffffffffffffffff
jne 0x140175061
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], eax
call fcn.140174d84
mov dword [rbx], eax
jmp 0x14017506b
and dword [rbx], 0
mov byte [0x1402234b8], 0
lea r11, [rsp + 0x60]
mov rax, rsi
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1401751b8
Capabilities:
Connect pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rcx, qword [rcx]
mov rsi, rdx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
xor ebx, ebx
test eax, eax
jne 0x140175203
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x140175203
mov dil, bl
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x38], eax
call fcn.140174d84
mov ebx, eax
jmp 0x140175206
mov dil, 1
mov dword [rsi], ebx
mov al, dil
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14017521c
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x18], r8d
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x50
mov rdi, rdx
mov rbx, rcx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbp + 0x20], rax
mov ecx, 0x18
call fcn.140139c88
test rax, rax
je 0x140175269
lea rcx, [rbp + 0x30]
mov qword [rax], rcx
lea rcx, [rbp + 0x20]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rbx
mov qword [rbp + 0x38], rax
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x28], rcx
and dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140174c00]
xor edx, edx
xor ecx, ecx
call fcn.1401a504c
mov qword [rbp - 0x20], rax
test rax, rax
je 0x1401752ff
mov rdx, rdi
mov rcx, rbx
call fcn.1401751b8
mov bl, al
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [rbp - 0x18], 0
je 0x14017530e
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [rbp - 0x18], eax
je 0x140175319
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x10], xmm0
xor edx, edx
lea rcx, [rbp - 0x10]
call fcn.1401a4534
test eax, eax
jne 0x140175324
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x20], xmm0
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp dword [rbp - 0x18], 0
jne 0x1401752f9
mov al, bl
add rsp, 0x50
pop rdi
pop rbx
pop rbp
ret
call fcn.14015921c
nop
and dword [rbp - 0x18], 0
mov ecx, 6
call fcn.1401a4b5c
nop
mov ecx, 1
call fcn.1401a4b5c
int3
mov ecx, 5
call fcn.1401a4b5c
int3
mov ecx, 2
call fcn.1401a4b5c
int3
Function at 0x1401a3450
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov r14, r8
mov rsi, rdx
mov rdi, rcx
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x1401a3475
mov rcx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
cmp eax, 0xffffffff
jne 0x1401a3495
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call fcn.1401a3350
jmp 0x1401a35be
mov edx, ebp
mov rcx, rsi
call fcn.1401a3220
mov r15d, eax
xor r12d, r12d
bt ebp, 0xa
jae 0x1401a357c
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1401a34bc
mov rdx, qword [rsi]
movdqa xmm0, xmmword [0x1401b6d30]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r12w
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], r12w
jne 0x1401a34e0
lea rcx, [rsp + 0x48]
call fcn.1400558e0
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x48]
call fcn.140053970
cmp rbx, 0xffffffffffffffff
jne 0x1401a3552
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call fcn.1401a3350
nop
jmp 0x1401a35be
mov rcx, rsi
call fcn.1401a3100
test al, al
jne 0x1401a3573
mov dword [rdi], 9
mov dword [rdi + 4], r15d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1401a35be
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14, r14
je 0x1401a3594
mov dword [r14], r12d
mov byte [r14 + 4], 0
lea rax, [0x1401c1448]
mov qword [r14 + 8], rax
and ebp, 0x10
je 0x1401a359f
mov eax, dword [rsp + 0x40]
jmp 0x1401a35a7
mov eax, r15d
mov r15d, dword [rsp + 0x40]
test ebp, ebp
setne r12b
add r12d, 2
mov dword [rdi], r12d
test ebp, ebp
cmove r15d, eax
mov dword [rdi + 4], r15d
mov rax, rdi
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000724c
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14000727a
xor eax, eax
jmp 0x140007360
cmp qword [rcx + 0x68], 0
je 0x14000728b
call fcn.14000737c
jmp 0x140007360
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400072a2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400072a4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400072d6
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140026950
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14000735a
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14000730d
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140007336
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140011584
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000735a
cmp rsi, rbx
ja 0x140007314
test rsi, rsi
je 0x14000735a
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140011584
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140008960
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140013a6b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140013a6b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140013a6b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140013a6b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140013a6b
cmp dword [rcx + 0x84], 0xe
jbe 0x140013a6b
cmp dword [rcx + 0xf8], 0
je 0x140013a6b
mov ecx, ebx
call fcn.140013b1c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400138f8
nop
cmp dword [rbp + 0x20], 0
je 0x140013ab9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140013ac4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400139fc

Function at 0x140013c00
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400139fc
Function at 0x14001b4d8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140008100
sub rsp, rax
mov rax, qword [0x140038040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140018c6c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001b527
mov rax, rbp
jmp 0x14001b62f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x3a550]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001c5f8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3a550]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001b62b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001b62b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001c5f8
test rax, rax
js 0x14001b62b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001b62b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001b61d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001b61d
cmp byte [rcx], 0xd
jne 0x14001b603
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001b612
cmp byte [rcx + 1], 0xa
jne 0x14001b612
inc rcx
jmp 0x14001b612
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x38480]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001b5e5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001b62f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140007b70
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14001b850
Capabilities:
Get file size

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