joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140128060
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x140128125
sub rsp, 0x28
mov qword [rsp + 0x20], rbp
lea rbp, [rsp + 0x20]
nop dword [rax + rax]
cmp ebx, 0x10
jae 0x140128119
mov dword [rsp + 0x38], ebx
mov byte [rsp + 0x3c], cl
mov qword [rsp + 0x10], rax
xor ebx, ebx
call fcn.140127d60
nop dword [rax]
test rax, rax
je 0x14012810d
mov qword [rsp + 0x18], rax
nop
mov rax, qword [rsp + 0x10]
call fcn.140127f20
cmp ax, 0x20b
jne 0x1401280d3
mov ecx, dword [rsp + 0x38]
mov ecx, ecx
mov rdx, qword [rsp + 0x18]
lea rcx, [rdx + rcx*8]
lea rcx, [rcx + 0x88]
jmp 0x1401280e6
mov edx, dword [rsp + 0x38]
mov edx, edx
mov rbx, qword [rsp + 0x18]
lea rcx, [rbx + rdx*8]
lea rcx, [rcx + 0x78]
movzx edx, byte [rsp + 0x3c]
test dl, dl
jne 0x1401280f4
cmp dword [rcx], 0
je 0x140128101
mov rax, rcx
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
ret
xor eax, eax
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
ret
xor eax, eax
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
ret
xor eax, eax
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
ret
mov qword [rsp + 8], rax
mov dword [rsp + 0x10], ebx
mov byte [rsp + 0x14], cl
call fcn.140062740
mov rax, qword [rsp + 8]
mov ebx, dword [rsp + 0x10]
movzx ecx, byte [rsp + 0x14]
jmp fcn.140128060

Function at 0x14012f920
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.14013aac0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.14013aac0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x14012f990
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1403598f4]
mov r12, rcx
test ebx, ebx
jle 0x14012fac0
mov rax, qword [0x1403598f8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14012f9dc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14012fa63
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x14012f9c0
mov rcx, r12
call fcn.140130330
mov rsi, rax
test rax, rax
je 0x14012fae2
mov rax, qword [0x1403598f8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.140130460
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1403598f8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14012fac7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14012fa5c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14012fa70
add dword [0x1403598f4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1403598f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14012fa5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14012f920
nop dword [rax]
xor ebx, ebx
jmp 0x14012f9e7
mov rax, qword [0x1403598f8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14012f920
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14012f920
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14012ffa0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140359960]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140359940]
test rbx, rbx
je 0x14012fff4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14012ffeb
test r12, r12
je 0x14012ffeb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14012ffd0
lea rcx, [0x140359960]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140130330
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1402fbd60]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140130350
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140130358
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140130350
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1401303a5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14013039c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140130350
add rax, 0x28
cmp rax, r9
jne 0x140130388
xor eax, eax
ret

Function at 0x1401303b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1402fbd60]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1401303d0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1401303d8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x1401303d0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140130460
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1402fbd60]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140130480
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140130488
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140131de0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1402fbde0]
mov rax, qword [rsi]
test rax, rax
je 0x140131e70
cmp qword [rax + 0x30], 0
jne 0x140131e90
lea rbx, [0x1401599c8]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140131e40
cmp qword [rax + 0x30], 0
jne 0x140131e60
lea rdx, [0x1401599c8]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x14013ac50
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140136ce0
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140131e22
test rax, rax
jne 0x140131e60
call fcn.140136ce0
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140131e30
call fcn.140136ce0
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140131e00
test rax, rax
jne 0x140131e90
call fcn.140136ce0
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140131e0b
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x140131ea0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140131fb2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140131f8a
add rax, 1
cmp rax, 0x6b
je 0x140131fa7
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140131f80
cmp edx, 0x6a
je 0x140131fa7
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x140131f9b
Function at 0x1401329c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, qword [0x1402fbde0]
mov rax, qword [rsi]
test rax, rax
je 0x140132bb0
cmp qword [rax + 0x28], 0
jne 0x140132b98
lea rcx, [0x140359a18]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x140132ba5
call fcn.140131fd0
mov rax, qword [rsi]
test rax, rax
je 0x140132a40
cmp qword [rax + 0x30], 0
jne 0x140132a60
lea rdx, [0x1401599c8]
mov qword [rax + 0x30], rdx
mov rax, rdx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x140132a74
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140136ce0
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140132a10
test rax, rax
jne 0x140132a60
call fcn.140136ce0
nop dword [rax]
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
jne 0x140132a2e
call fcn.140131b10
cmp qword [0x14035d050], 0
mov rbx, rax
je 0x140132a2e
test rax, rax
je 0x140132a2e
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.140138b80
cmp eax, 1
je 0x140132c1d
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, r12
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14013ac56
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [rsi]
test rax, rax
je 0x140132bf8
cmp qword [rax + 0x30], 0
je 0x140132be0
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14013ac56
mov r12, rbx
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x1401329fc
mov rax, qword [rsi]
jmp 0x140132a09
call fcn.140136ce0
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x1401329e8
test rax, rax
jne 0x140132b98
call fcn.140136ce0
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x1401329fc
jmp 0x140132a01
lea rdx, [0x1401599c8]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x140132b6e
call fcn.140136ce0
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140132be0
test rax, rax
jne 0x140132b6a
call fcn.140136ce0
jmp 0x140132b6a
call fcn.140131ea0
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x1402fbde0]
mov rdx, qword [rax]
lea rax, [0x140359a28]
mov qword [rdx + 0x10], rax
ret
Function at 0x140136b60
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140136b80
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x140136bc8
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140136b74
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140136bb5
Function at 0x140136ce0
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x140359b00]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x140136d03
lea rax, [0x140359b08]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x140136d4b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140136d48
lea rax, [0x140359b40]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x140136d7b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140136d78
xor ecx, ecx
mov byte [0x140359b59], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x140359b62], rdx
lea r8, [0x140359b00]
lea rbx, [0x140359b5a]
mov qword [0x140359b72], rdx
mov qword [0x140359b82], rdx
mov qword [0x140359b92], rdx
xor edx, edx
mov qword [0x140359b5a], rax
mov qword [0x140359b6a], rax
mov qword [0x140359b7a], rax
mov qword [0x140359b8a], rax
mov byte [0x140359b9a], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140136f56
lea rcx, [0x140359b40]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140136ea1
lea rsi, [0x140359a40]
lea r8, [0x140359b9a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x140136e4d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140136e40
lea rcx, [0x140359b40]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x140136f43
lea rcx, [0x140136bf0]
mov qword [0x140359a40], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x140359a40]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x140359b40]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x140359b9a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x140136f76
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140136ef3
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140136ee0
mov rax, rdx
mov qword [0x140359a40], rax
lea rsi, [0x140359a40]
jmp 0x140136f19
cmp rdx, rsi
je 0x140136e7f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140136f10
cmp rdx, rsi
je 0x140136e7f
mov qword [rdx + 8], rsi
lea rcx, [0x140136bf0]
call sub.msvcrt.dll__onexit
jmp 0x140136e7f
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.140136b60
xor eax, eax
jmp 0x140136e98
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.140136b60
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, str.failed_to_get_string_from_atom_n
call fcn.140136b60
xor eax, eax
jmp 0x140136eff
Function at 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x140012940
Capabilities:
Encode data using xor

Disassembly:
xor byte [rbx - 0x549f54b8], ch
nop
stosd dword [rdi], eax
test al, 0xab
shr byte [rbx - 0x540f5428], 0x20
lodsb al, byte [rsi]
cmp byte [rax + rdx*2 - 0x5f539754], ch
lodsb al, byte [rsi]
mov eax, 0xe8acd0ac
lodsb al, byte [rsi]
add byte [rbp - 0x52b752d0], ch
invalid
Function at 0x140001af0
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x2c0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x14003e010]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov r14d, r9d
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0x54]
call fcn.140019d60
mov dword [rsp + 0x50], 0x11c
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140001c5d
cmp dword [rsp + 0x54], 6
ja 0x140001b6a
jne 0x140001c0e
cmp dword [rsp + 0x58], 2
jb 0x140001c0e
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x140001c0e
mov edx, 1
lea r8d, [rdx + 0xf]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140001c0e
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140001c0e
movups xmm0, xmmword [0x140034a68]
movups xmmword [rsp + 0x290], xmm0
movups xmm1, xmmword [0x140034a78]
movups xmmword [rsp + 0x2a0], xmm1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140001c0e
lea rcx, [rax + 6]
lea rdx, [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140001c0e
cmp word [rbx + 2], ax
jbe 0x140001c0e
movzx edx, word [rbx + 0x32]
movzx eax, word [rbx + 0x30]
movzx ecx, word [rbx + 0x36]
mov dword [rsp + 0x54], edx
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x5c], ecx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140001c5d
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0x174]
call fcn.140019d60
mov dword [rsp + 0x170], 0x11c
lea rcx, [rsp + 0x170]
call rbx
cmp dword [rsp + 0x54], 6
ja 0x140001c9e
jne 0x140001c6d
cmp dword [rsp + 0x58], 1
jae 0x140001c9e
mov r9d, 1
lea r8, [0x1400344e8]
lea rdx, [0x140034500]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
jne 0x140001c9a
lea rcx, [0x140034580]
call fcn.140002740
xor eax, eax
jmp 0x140001d0d
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
xor ebx, ebx
mov qword [rsp + 0x30], rbx
lea ecx, [rbx + 0x28]
call fcn.140018420
mov qword [rsp + 0x38], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
mov qword [rsp + 0x40], rbx
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140009c50
test rax, rax
je 0x140001d01
lea rdx, str.PdfReaderMain
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140001d01
mov r9d, r14d
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call rax
mov ebx, eax
lea rcx, [rsp + 0x20]
call fcn.140009190
mov eax, ebx
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.140018190
add rsp, 0x2c0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
jmp 0x140001af0
Function at 0x140001de0
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x2c0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x14003e010]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov r14d, r9d
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0x54]
call fcn.140019d60
mov dword [rsp + 0x50], 0x11c
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140001c5d
cmp dword [rsp + 0x54], 6
ja 0x140001b6a
jne 0x140001c0e
cmp dword [rsp + 0x58], 2
jb 0x140001c0e
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x140001c0e
mov edx, 1
lea r8d, [rdx + 0xf]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140001c0e
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140001c0e
movups xmm0, xmmword [0x140034a68]
movups xmmword [rsp + 0x290], xmm0
movups xmm1, xmmword [0x140034a78]
movups xmmword [rsp + 0x2a0], xmm1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140001c0e
lea rcx, [rax + 6]
lea rdx, [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140001c0e
cmp word [rbx + 2], ax
jbe 0x140001c0e
movzx edx, word [rbx + 0x32]
movzx eax, word [rbx + 0x30]
movzx ecx, word [rbx + 0x36]
mov dword [rsp + 0x54], edx
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x5c], ecx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140001c5d
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0x174]
call fcn.140019d60
mov dword [rsp + 0x170], 0x11c
lea rcx, [rsp + 0x170]
call rbx
cmp dword [rsp + 0x54], 6
ja 0x140001c9e
jne 0x140001c6d
cmp dword [rsp + 0x58], 1
jae 0x140001c9e
mov r9d, 1
lea r8, [0x1400344e8]
lea rdx, [0x140034500]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
jne 0x140001c9a
lea rcx, [0x140034580]
call fcn.140002740
xor eax, eax
jmp 0x140001d0d
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
xor ebx, ebx
mov qword [rsp + 0x30], rbx
lea ecx, [rbx + 0x28]
call fcn.140018420
mov qword [rsp + 0x38], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
mov qword [rsp + 0x40], rbx
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140009c50
test rax, rax
je 0x140001d01
lea rdx, str.PdfReaderMain
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140001d01
mov r9d, r14d
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call rax
mov ebx, eax
lea rcx, [rsp + 0x20]
call fcn.140009190
mov eax, ebx
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.140018190
add rsp, 0x2c0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
jmp 0x140001af0
Function at 0x140001fc0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x14003e010]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x44]
mov r8d, 0x110
call fcn.140019d60
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140002047
cmp dword [rsp + 0x44], 6
jb 0x140002047
lea rax, [rsp + 0x34]
mov dword [rsp + 0x34], 0x207
mov r9, rbx
mov qword [rsp + 0x20], rax
lea r8, [0x140034648]
mov rcx, 0xffffffff80000001
lea rdx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
call fcn.140001df0
test al, al
je 0x140002047
cmp word [rbx], 0
jne 0x1400020b1
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x207
mov r9, rbx
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.http_shellopencommand
mov rcx, 0xffffffff80000000
call fcn.140001df0
test al, al
je 0x14000207c
cmp word [rbx], 0
jne 0x1400020b1
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x207
mov r9, rbx
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareClasses.html
mov rcx, 0xffffffff80000001
call fcn.140001df0
test al, al
je 0x1400020b5
cmp word [rbx], 0
je 0x1400020b5
mov al, 1
jmp 0x1400020b7
xor al, al
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140018190
add rsp, 0x170
pop rbx
ret