joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001e50
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.140002c90
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.140002c90
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 0x140001ec0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400070a4]
mov rbx, rcx
test esi, esi
jle 0x140001ff0
mov rax, qword [0x1400070a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001f0b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001f95
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001ef0
mov rcx, rbx
call fcn.140002930
mov rdi, rax
test rax, rax
je 0x140002012
mov rax, qword [0x1400070a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002a70
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400070a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001ff7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001f8e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001fa0
add dword [0x1400070a4], 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 [0x1400070a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001f8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001e50
nop dword [rax]
xor esi, esi
jmp 0x140001f18
mov rax, qword [0x1400070a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001e50
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001e50
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400025a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x1400025fc
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 rsi, rsi
je 0x1400025f3
test eax, eax
jne 0x1400025f3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400025d8
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 0x140002930
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004380]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002950
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002958
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002950
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400029ad
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 0x1400029a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002950
add rax, 0x28
cmp rax, r9
jne 0x140002990
xor eax, eax
ret

Function at 0x1400029b0
Capabilities:
Parse pe header

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

Function at 0x140002a70
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004380]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002a8f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002a98
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140179e20]
mov dword [rax], 1
mov rax, qword [0x140179e30]
mov dword [rax], 1
mov rax, qword [0x140179e40]
mov dword [rax], 1
mov rax, qword [0x140179dd0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400eaa50
Capabilities:
Query environment variable

Disassembly:
push r15
mov eax, 0x10088
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.140154fc0
sub rsp, rax
xor edx, edx
mov rbp, rcx
xor ecx, ecx
mov word [rsp + 0x80], dx
lea r15, [rsp + 0x30]
movzx eax, byte [rbp]
mov word [rsp + 0x30], cx
test al, al
je 0x1400eab15
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x140165ece
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1400eaaf6
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1400eaae8
test rsi, rsi
je 0x140165ece
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1400eaaa8
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x1400eab44
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10088
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400eab60
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movzx eax, byte [rcx]
mov qword [rsp + 0xd8], rdx
xor edx, edx
mov rbp, rcx
lea r15, [rsp + 0x30]
mov word [rsp + 0x30], dx
test al, al
je 0x1400eac1d
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x140165ed4
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1400eabfe
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1400eabf0
test rsi, rsi
je 0x140165ed4
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1400eabb0
mov rdx, qword [rsp + 0xd8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14014b390
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x140191321], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x14014b418
lea rdx, [0x140175cda]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14014b480
mov rbx, qword [0x1401911c0]
jmp 0x14014b3d5
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x14014b3d0
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14013a560
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x1401911c0], rax
mov ebx, dword [rax]
mov qword [0x1401911c0], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1401911c0], rdx
call fcn.14014a4c0
cmp eax, ebx
jne 0x14014b4e8
mov byte [0x140191321], 1
jmp 0x14014b3ac
cmp byte [0x140191320], 0
jne 0x14014b3c3
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x140191c88], rax
call rbx
mov qword [0x140191c80], rax
call rbx
mov qword [0x140191c78], rax
call rbx
mov qword [0x140191c70], rax
call rbx
mov qword [0x140191c68], rax
call rbx
mov qword [0x140191c60], rax
call rbx
mov qword [0x140191c58], rax
call rbx
mov byte [0x140191320], 1
mov qword [0x140191c50], rax
jmp 0x14014b3c3
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140153ca0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140165420
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140165420
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x140154972
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140192148]
test eax, eax
je 0x140154a0a
lea rax, [0x140192120]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140192150]
mov qword [rbp - 8], rax
jmp 0x1401549ee
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1401549e2
cmp qword [rbp - 0x10], 0
je 0x1401549e2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1401549a8
lea rax, [0x140192120]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140154a0b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140154b10
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140154b38
mov eax, 0
jmp 0x140154b86
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140154b61
mov eax, 0
jmp 0x140154b86
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140154b81
mov eax, 0
jmp 0x140154b86
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140154b8c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140154c0a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140154c01
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140154c01
mov rax, qword [rbp - 8]
jmp 0x140154c1f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140154bd4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000d4f0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x468
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3e0], 0xfffffffffffffffe
mov qword [rbp + 0x3d8], rcx
xor ebx, ebx
lea rcx, [rbp - 0x58]
mov r8d, 0x400
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov r13, qword [0x14002f3b0]
mov qword [rbp + 0x3c0], r13
xorps xmm0, xmm0
movups xmmword [rbp + 0x3c8], xmm0
mov esi, 0x200
cmp rsi, 0x201
jae 0x14000d575
jmp 0x14000d5c0
cmp rsi, r15
mov rsi, r15
ja 0x14000d61d
cmp rsi, 0x201
jb 0x14000d5c0
mov r8, rsi
sub r8, rbx
mov rax, qword [rbp + 0x3c8]
sub rax, rbx
cmp rax, r8
jae 0x14000d5a0
lea rcx, [rbp + 0x3c0]
mov rdx, rbx
call fcn.14002c570
mov r13, qword [rbp + 0x3c0]
mov qword [rbp + 0x3d0], rsi
mov rbx, rsi
mov r12, r13
mov r14, rsi
mov rdi, r13
jmp 0x14000d5cd
lea rdi, [rbp - 0x58]
mov r12, rdi
mov r14d, 0x200
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x14000d5f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000d668
mov r15d, edi
cmp rsi, r15
jne 0x14000d560
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000d560
add rsi, rsi
cmp rsi, 0x201
jae 0x14000d575
jmp 0x14000d5c0
cmp r14, r15
jb 0x14000d6c8
lea rcx, [rbp + 0x3a8]
mov rdx, r12
mov r8, r15
call fcn.1400101a0
mov rax, qword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d8]
mov qword [rsi + 0x18], rax
movups xmm0, xmmword [rbp + 0x3a8]
movups xmmword [rsi + 8], xmm0
xor eax, eax
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3c8]
test rdx, rdx
jne 0x14000d699
jmp 0x14000d6b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
mov rsi, qword [rbp + 0x3d8]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], 0
mov eax, 1
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3c8]
test rdx, rdx
je 0x14000d6b1
test r13, r13
je 0x14000d6b1
add rdx, rdx
je 0x14000d6b1
mov r8d, 2
mov rcx, r13
call fcn.140007460
mov rax, rsi
add rsp, 0x468
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r15
mov rdx, r14
call fcn.14002cf20
ud2
Function at 0x140014fb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov rcx, qword [0x14003a008]
test rcx, rcx
je 0x14001501e
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140015038
mov rcx, qword [0x14003a008]
test rcx, rcx
je 0x140015094
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rdx, qword [rax + 0x10]
cmp rdx, qword [rax + 8]
je 0x1400150a8
mov rax, qword [rbx]
mov rcx, rdx
shl rcx, 4
mov qword [rax + rcx], rdi
mov qword [rax + rcx + 8], rsi
add rdx, 1
mov qword [rbx + 0x10], rdx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x14003a008]
call fcn.140015200
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140014fd4
mov ecx, 0x18
mov edx, 8
call fcn.140007450
test rax, rax
je 0x1400150b9
mov rbx, rax
mov rax, qword [0x14002f390]
mov qword [rbx], rax
xorps xmm0, xmm0
movups xmmword [rbx + 8], xmm0
mov rcx, qword [0x14003a008]
test rcx, rcx
jne 0x14001507b
lea rcx, [0x14003a008]
call fcn.140015200
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x14003a008]
test rcx, rcx
jne 0x140014fe4
lea rcx, [0x14003a008]
call fcn.140015200
mov rcx, rax
jmp 0x140014fe4
mov rcx, rbx
call fcn.14002c4b0
mov rdx, qword [rbx + 0x10]
jmp 0x140014ffb
mov ecx, 0x18
mov edx, 8
call fcn.14002cc20
ud2
Function at 0x140015200
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov rsi, rcx
lea rdi, [0x14003a188]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov qword [rbp + 0x20], rdi
mov rbx, qword [rsi]
test rbx, rbx
jne 0x14001529b
mov rbx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400152b4
mov edi, eax
test rbx, rbx
je 0x14001528f
mov ecx, 0x18
mov edx, 8
call fcn.140007450
test rax, rax
je 0x14001536b
mov rcx, rax
mov qword [rax], rbx
mov qword [rax + 8], 0
mov dword [rax + 0x10], edi
mov rax, qword [0x14003a1e8]
mov qword [rcx + 8], rax
lock cmpxchg qword [0x14003a1e8], rcx
jne 0x140015280
mov ebx, edi
mov rax, rbx
xchg qword [rsi], rax
test edi, edi
je 0x1400152ce
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rax, rbx
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.assertion_failed:_key___c::TLS_OUT_OF_INDEXESlibrary_std_src_syswindows_thread_local_key.rs
lea r8, [0x140031120]
mov edx, 0x2e
call fcn.14002ccf0
ud2
mov byte [rbp + 0x2c], 0
mov dword [rbp + 0x28], 0
lea rax, str.assertion_failed:_key___0
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x50], 0
lea rax, [0x14002ea68]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 0
lea rax, [rbp - 0x60]
mov qword [rbp], rax
lea rax, [0x140027d80]
mov qword [rbp + 8], rax
lea rax, str.fatal_runtime_error:__n
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 2
mov qword [rbp - 0x20], 0
mov rax, rbp
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], 1
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x30]
call fcn.14000fbe0
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rdx
lea rcx, [rbp + 0x10]
call fcn.1400085c0
mov ecx, 7
int 0x29
ud2
mov ecx, 0x18
mov edx, 8
call fcn.14002cc20
ud2
Function at 0x140018990
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx + 0x20], 0
jne 0x140018aac
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rdx, qword [rbx + 8]
test rdx, rdx
jne 0x1400189cb
mov rdx, qword [rbx + 0x10]
mov rax, rdx
neg rax
cmp rax, 0xf
jbe 0x140018a72
xor edx, edx
mov rax, qword [rbx + 0x10]
cmp rdx, rax
je 0x140018a91
sub rdx, rax
add rax, qword [rbx]
mov rbx, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rdx, rcx
mov r8d, 0xffffffff
cmovb r8d, edx
mov dword [rsp + 0x30], 0
mov rcx, qword [rdi]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x30]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140018a25
mov ecx, dword [rsp + 0x30]
mov eax, 2
test ecx, ecx
jne 0x140018a3e
jmp 0x140018a4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140018a4e
cmp eax, 0x3e5
jne 0x140018a5e
mov eax, 1
xor ecx, ecx
mov ecx, ecx
mov qword [rdi + 0x20], rax
mov qword [rdi + 0x28], rcx
mov byte [rsi + 1], 1
jmp 0x140018a52
mov byte [rsi + 1], 0
xor eax, eax
mov byte [rsi], al
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
shl rax, 0x20
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], 0
mov al, 1
jmp 0x140018a54
mov r8d, 0x10
mov rcx, rbx
call fcn.14002c630
mov rdx, qword [rbx + 8]
mov rax, qword [rbx + 0x10]
cmp rdx, rax
jne 0x1400189d8
mov r8d, 1
mov rcx, rbx
call fcn.14002c630
mov rdx, qword [rbx + 8]
mov rax, qword [rbx + 0x10]
jmp 0x1400189d8
mov qword [rsp + 0x30], 0
add rdi, 0x20
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14002c380
ud2
Function at 0x14000163c
Capabilities:
Copy file
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x60]
sub rsp, 0x160
lea rdx, [rsp + 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rcx, [rsp + 0x50]
dec rcx
inc rcx
cmp byte [rcx], 0
jne 0x14000166b
movsd xmm0, qword [str.doppel.exe]
movsd qword [rcx], xmm0
movzx eax, word [0x14001cc48]
mov word [rcx + 8], ax
mov al, byte [0x14001cc4a]
mov byte [rcx + 0xa], al
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, str.doppel.exe
call qword [sym.imp.KERNEL32.dll_CopyFileA]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
and qword [rsp + 0x40], 0
and qword [rsp + 0x48], 0
mov r8d, 0x26
lea rdx, str.schtasks__create__tn__UpdateSvc___tr__
lea rcx, [rsp + 0x30]
call fcn.140001ab4
nop
lea rax, [rsp + 0x50]
or rdi, 0xffffffffffffffff
inc rdi
cmp byte [rax + rdi], 0
jne 0x1400016dd
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
sub rax, rcx
cmp rdi, rax
ja 0x14000172b
lea rax, [rcx + rdi]
mov qword [rsp + 0x40], rax
lea rbx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rbx, qword [rsp + 0x30]
add rbx, rcx
mov r8, rdi
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140013a50
mov byte [rbx + rdi], 0
jmp 0x140001742
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x50]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140001bc4
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
sub rax, rcx
mov edx, 0xd
cmp rax, rdx
jb 0x14000178e
lea rax, [rcx + 0xd]
mov qword [rsp + 0x40], rax
lea rbx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rbx, qword [rsp + 0x30]
add rbx, rcx
mov r8d, edx
lea rdx, str.___sc_onstart
mov rcx, rbx
call fcn.140013a50
mov byte [rbx + 0xd], 0
jmp 0x1400017a4
mov qword [rsp + 0x20], rdx
lea r9, str.___sc_onstart
lea rcx, [rsp + 0x30]
call fcn.140001bc4
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rcx, qword [rsp + 0x30]
call fcn.140007734
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x1400017f4
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400017ef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001809
call fcn.140001e8c
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call fcn.140007c9c
int3