joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402dce16
Capabilities:
Inspect section memory permissions

Disassembly:
mov edx, ecx
and edx, 1
shl edx, 0x12
mov eax, ecx
and eax, 4
shl eax, 0xe
mov r8d, ecx
and r8d, 2
shl r8d, 0x10
or r8d, eax
mov r9d, ecx
and r9d, 0x10
shl r9d, 0x18
or r9d, r8d
mov eax, ecx
shl eax, 0xd
mov r8d, ecx
shl r8d, 0x14
and r8d, 0x40000000
or r8d, r9d
mov r9d, ecx
shl r9d, 0x13
and r9d, 0x80000000
or r9d, r8d
mov r10d, ecx
shl r10d, 0xc
and r10d, 0x20000000
or r10d, r9d
mov r8d, eax
and r8d, 0x1000000
or r8d, r10d
or r8d, edx
mov edx, ecx
and edx, 0x20
shl edx, 0xd
mov r9d, ecx
shr r9d, 3
and r9d, 8
and eax, 0x200000
or eax, r9d
or eax, edx
or r8d, 0x6c80000
bt ecx, 0x12
mov r9d, 0x110
mov edx, 0x80130
cmovae edx, r9d
or edx, eax
mov eax, r8d
and eax, 0xff30ffff
test ecx, 0x6000
cmove eax, r8d
ret

Function at 0x1402dd82a
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x1402e8cd0]
test ecx, ecx
je 0x1402dd8ff
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1402dd85e
cmp qword [rax + 8], 0
je 0x1402dd85e
add rax, 0x10
jmp 0x1402dd8f8
mov ecx, dword [0x1402e8cd0]
test ecx, ecx
je 0x1402dd912
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1402dd8e2
mov rdi, rax
test rax, rax
jne 0x1402dd8c8
mov al, byte [0x1403f9274]
mov ecx, 0x18
mov edx, 8
call fcn.140061500
test rax, rax
je 0x1402dd935
mov rdi, rax
lea rax, [0x1402e8cb8]
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x1402e8cd0]
test ecx, ecx
je 0x1402dd925
dec ecx
mov rdx, rdi
call sub.kernel32.dll_TlsSetValue
test rsi, rsi
je 0x1402dd8e6
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x1402dd8e8
mov rcx, qword [rsi + 8]
jmp 0x1402dd8e8
xor eax, eax
jmp 0x1402dd8f8
xor ecx, ecx
lea rax, [rdi + 0x10]
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rcx
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1402e8cb8]
call fcn.14020bf50
mov ecx, eax
jmp 0x1402dd843
lea rcx, [0x1402e8cb8]
call fcn.14020bf50
mov ecx, eax
jmp 0x1402dd86e
lea rcx, [0x1402e8cb8]
call fcn.14020bf50
mov ecx, eax
jmp 0x1402dd8c0
mov ecx, 8
mov edx, 0x18
call fcn.140077010
int3
Function at 0x1402dd945
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x1402e8c90]
test ecx, ecx
je 0x1402dda43
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1402dd97f
mov rbx, rax
cmp qword [rax + 8], 0
je 0x1402dd97f
add rbx, 0x10
jmp 0x1402dda36
mov ecx, dword [0x1402e8c90]
test ecx, ecx
je 0x1402dda56
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1402dda34
mov rdi, rax
test rax, rax
jne 0x1402dd9f1
mov al, byte [0x1403f9274]
mov ecx, 0x18
mov edx, 8
call fcn.140061500
test rax, rax
je 0x1402dda7c
mov rdi, rax
lea rax, [0x1402e8c78]
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x1402e8c90]
test ecx, ecx
je 0x1402dda69
dec ecx
mov rdx, rdi
call sub.kernel32.dll_TlsSetValue
test rsi, rsi
je 0x1402dda07
mov r14, qword [rsi + 8]
cmp qword [rsi], 0
mov qword [rsi], 0
jne 0x1402dda16
xor r14d, r14d
xor ecx, ecx
mov edx, 2
call sub.ole32.dll_CoInitializeEx
lea rbx, [rdi + 0x10]
cmp qword [rdi + 8], 0
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], r14
je 0x1402dda36
call sub.ole32.dll_CoUninitialize
jmp 0x1402dda36
xor ebx, ebx
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1402e8c78]
call fcn.14020bf50
mov ecx, eax
jmp 0x1402dd961
lea rcx, [0x1402e8c78]
call fcn.14020bf50
mov ecx, eax
jmp 0x1402dd98f
lea rcx, [0x1402e8c78]
call fcn.14020bf50
mov ecx, eax
jmp 0x1402dd9e9
mov ecx, 8
mov edx, 0x18
call fcn.140077010
int3
Function at 0x1402de14f
Capabilities:
Log keystrokes via input method manager

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov ebx, r8d
mov r14, rdx
mov rsi, rcx
mov rcx, rdx
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call sub.imm32.dll_ImmGetCompositionStringW
test eax, eax
je 0x1402de1a9
js 0x1402de1bc
mov ebp, eax
mov ecx, eax
call fcn.1402d8e30
mov r15, rax
mov rdi, rdx
mov rcx, r14
mov edx, ebx
mov r8, rdi
mov r9d, ebp
call sub.imm32.dll_ImmGetCompositionStringW
test eax, eax
js 0x1402de1d6
mov eax, eax
mov qword [rsi], r15
mov qword [rsi + 8], rdi
jmp 0x1402de1b6
xor eax, eax
mov qword [rsi], rax
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], rax
jmp 0x1402de1c9
movabs rax, 0x8000000000000000
mov qword [rsi], rax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test r15, r15
je 0x1402de1c9
mov rcx, qword [0x1403f9220]
xor edx, edx
mov r8, rdi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.1402e3f64
Function at 0x1402e3361
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x1402e8cb0]
test ecx, ecx
je 0x1402e3436
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1402e3395
cmp qword [rax + 8], 0
je 0x1402e3395
add rax, 0x10
jmp 0x1402e342f
mov ecx, dword [0x1402e8cb0]
test ecx, ecx
je 0x1402e3449
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1402e3419
mov rdi, rax
test rax, rax
jne 0x1402e33ff
mov al, byte [0x1403f9274]
mov ecx, 0x18
mov edx, 8
call fcn.140061500
test rax, rax
je 0x1402e346c
mov rdi, rax
lea rax, [0x1402e8c98]
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x1402e8cb0]
test ecx, ecx
je 0x1402e345c
dec ecx
mov rdx, rdi
call sub.kernel32.dll_TlsSetValue
test rsi, rsi
je 0x1402e341d
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x1402e341f
mov rcx, qword [rsi + 8]
jmp 0x1402e341f
xor eax, eax
jmp 0x1402e342f
xor ecx, ecx
lea rax, [rdi + 0x10]
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rcx
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1402e8c98]
call fcn.14020bf50
mov ecx, eax
jmp 0x1402e337a
lea rcx, [0x1402e8c98]
call fcn.14020bf50
mov ecx, eax
jmp 0x1402e33a5
lea rcx, [0x1402e8c98]
call fcn.14020bf50
mov ecx, eax
jmp 0x1402e33f7
mov ecx, 8
mov edx, 0x18
call fcn.140077010
int3

Function at 0x1402e6450
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1402e71f0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1402e71f0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x1402e64c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1403f9304]
mov rbx, rcx
test esi, esi
jle 0x1402e65f0
mov rax, qword [0x1403f9308]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1402e650b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1402e6595
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1402e64f0
mov rcx, rbx
call fcn.1402e6f10
mov rdi, rax
test rax, rax
je 0x1402e6612
mov rax, qword [0x1403f9308]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1402e7050
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1403f9308]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1402e65f7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1402e658e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1402e65a0
add dword [0x1403f9304], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1403f9308]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x1402e658e
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1402e6450
nop dword [rax]
xor esi, esi
jmp 0x1402e6518
mov rax, qword [0x1403f9308]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1402e6450
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1402e6450
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1402e6b80
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1403f9360]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1403f9340]
test rbx, rbx
je 0x1402e6bdc
mov rbp, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1402e6bd3
test rsi, rsi
je 0x1402e6bd3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1402e6bb8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1402e6f10
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1403b79a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1402e6f30
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1402e6f38
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1402e6f30
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1402e6f8d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1402e6f84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1402e6f30
add rax, 0x28
cmp rax, r9
jne 0x1402e6f70
xor eax, eax
ret

Function at 0x1402e6f90
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1403b79a0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1402e6faf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1402e6fb8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1402e6faf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1402e7050
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1403b79a0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1402e706f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1402e7078
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400020d0
Capabilities:
Allocate or change rwx memory
Check if file exists
Create thread
Get common file path
Get file attributes
Inject dll
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x14004d040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
lea rdx, [rsp + 0x40]
mov ecx, 0x103
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x14000224e
lea r8, str.BehavEyeDll.dll
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.14001bbfc
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000224e
test al, 0x10
jne 0x14000224e
lea rcx, str.kernelbase.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.LoadLibraryA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x14000224e
mov qword [rsp + 0x178], rbx
lea rax, [rsp + 0x40]
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x180], rbp
mov r8, rbx
inc r8
cmp byte [rax + r8], 0
jne 0x140002184
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, rax
mov r9, rbx
lea rax, [rsp + 0x40]
inc r9
cmp byte [rax + r9], 0
jne 0x1400021b2
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], 0
mov r9, rsi
mov dword [rsp + 0x28], 0
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rax
mov edx, 0xffffffff
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rax, [rsp + 0x40]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140002213
mov r8, rbx
mov r9d, 0x8000
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x180]
mov al, 1
mov rbx, qword [rsp + 0x178]
jmp 0x140002250
xor al, al
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000ba30
mov rsi, qword [rsp + 0x188]
add rsp, 0x160
pop rdi
ret
Function at 0x1400026d0
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x180
mov rax, qword [0x14004d040]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rbx, rcx
lea rdx, [rsp + 0x60]
mov ecx, 0x103
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x1400028a5
lea r8, str.BehaviorLogs.txt
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.14001bbfc
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edi, 1
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [rdi + 2]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
jne 0x140002768
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
cmp eax, 0x50
sete dil
jmp 0x140002771
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1400028a5
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], 0
jne 0x140002791
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140004120
nop
mov r8d, 2
lea rdx, [0x140046b7c]
lea rcx, [rsp + 0x40]
call fcn.140003650
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
lea edx, [r9 + 4]
lea r8d, [r9 + 3]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000286c
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdx, qword [rsp + 0x40]
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140002868
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002863
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400028c8
call fcn.14000ba50
mov eax, ebx
jmp 0x1400028a7
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x1400028a5
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400028a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400028c8
call fcn.14000ba50
xor eax, eax
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14000ba30
mov rbx, qword [rsp + 0x198]
add rsp, 0x180
pop rdi
ret
call fcn.14001c020
int3
Function at 0x14000abe0
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 0x14000ac0e
xor eax, eax
jmp 0x14000acf4
cmp qword [rcx + 0x68], 0
je 0x14000ac1f
call fcn.14000ad10
jmp 0x14000acf4
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000ac36
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000ac38
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000ac6a
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14000d960
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 0x14000acee
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14000aca1
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 0x14000acca
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14001d118
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000acee
cmp rsi, rbx
ja 0x14000aca8
test rsi, rsi
je 0x14000acee
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14001d118
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 0x14000c794
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000c7de
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000c7de
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000c7de
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000c7de
cmp dword [rcx + 0x84], 0xe
jbe 0x14000c7de
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000c7e0
xor al, al
add rsp, 0x28
ret
Function at 0x1400121b8
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 0x140012017
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140012017
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140012017
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140012017
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140012017
cmp dword [rcx + 0x84], 0xe
jbe 0x140012017
cmp dword [rcx + 0xf8], 0
je 0x140012017
mov ecx, ebx
call fcn.1400120d4
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.140011ea4
nop
cmp dword [rbp + 0x20], 0
je 0x140012065
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140012070
int3
xor r8d, r8d
xor edx, edx
jmp 0x140011fa8
Function at 0x1400287c4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1400287f6
call fcn.14001ad24
mov dword [rax], 0x16
call fcn.14001c000
jmp 0x140028915
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140028915
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140028915
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140028825
lock or dword [rcx + 0x14], 0x10
jmp 0x140028915
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140028839
call fcn.14002b864
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14001ac28
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14002afe0
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140028903
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400288ce
mov rcx, rsi
call fcn.14001ac28
cmp eax, edi
je 0x1400288b9
mov rcx, rsi
call fcn.14001ac28
cmp eax, 0xfffffffe
je 0x1400288b9
mov rcx, rsi
call fcn.14001ac28
movsxd rbx, eax
lea r14, [0x14004f410]
mov rcx, rsi
sar rbx, 6
call fcn.14001ac28
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400288c0
lea rdx, [0x14004d3d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400288ce
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400288f2
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400288f2
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400288f2
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x140028918
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14002a4bc
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.14000c240
sub rsp, rax
mov rax, qword [0x14004d040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001ac28
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002a50b
mov rax, rbp
jmp 0x14002a613
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 + 0x4f410]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002b7b8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x4f410]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002a60f
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 0x14002a60f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002b7b8
test rax, rax
js 0x14002a60f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002a60f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002a601
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002a601
cmp byte [rcx], 0xd
jne 0x14002a5e7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002a5f6
cmp byte [rcx + 1], 0xa
jne 0x14002a5f6
inc rcx
jmp 0x14002a5f6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4d420]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002a5c9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002a613
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000ba30
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret